{
 "instance": {
  "ufcs-2018930x10q.htm": {
   "axisCustom": 0,
   "axisStandard": 25,
   "contextCount": 595,
   "dts": {
    "calculationLink": {
     "local": [
      "ufcs-20180930_cal.xml"
     ]
    },
    "definitionLink": {
     "local": [
      "ufcs-20180930_def.xml"
     ],
     "remote": [
      "http://xbrl.fasb.org/srt/2018/elts/srt-eedm1-def-2018-01-31.xml",
      "http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-eedm-def-2018-01-31.xml"
     ]
    },
    "inline": {
     "local": [
      "ufcs-2018930x10q.htm"
     ]
    },
    "labelLink": {
     "local": [
      "ufcs-20180930_lab.xml"
     ],
     "remote": [
      "http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-doc-2018-01-31.xml",
      "https://xbrl.sec.gov/dei/2018/dei-doc-2018-01-31.xml"
     ]
    },
    "presentationLink": {
     "local": [
      "ufcs-20180930_pre.xml"
     ]
    },
    "referenceLink": {
     "remote": [
      "http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-ref-2018-01-31.xml",
      "https://xbrl.sec.gov/dei/2018/dei-ref-2018-01-31.xml"
     ]
    },
    "schema": {
     "local": [
      "ufcs-20180930.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/dtr/type/nonNumeric-2009-12-16.xsd",
      "http://www.xbrl.org/dtr/type/numeric-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/arcrole/factExplanatory-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/deprecated-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/negated-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/net-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/reference-2009-12-16.xsd",
      "http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd",
      "http://xbrl.fasb.org/srt/2018/elts/srt-roles-2018-01-31.xsd",
      "http://xbrl.fasb.org/srt/2018/elts/srt-types-2018-01-31.xsd",
      "http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd",
      "http://xbrl.fasb.org/us-gaap/2018/elts/us-parts-codification-2018-01-31.xsd",
      "http://xbrl.fasb.org/us-gaap/2018/elts/us-roles-2018-01-31.xsd",
      "http://xbrl.fasb.org/us-gaap/2018/elts/us-types-2018-01-31.xsd",
      "http://xbrl.sec.gov/country/2017/country-2017-01-31.xsd",
      "http://xbrl.sec.gov/currency/2017/currency-2017-01-31.xsd",
      "http://xbrl.sec.gov/invest/2013/invest-2013-01-31.xsd",
      "http://xbrl.sec.gov/naics/2017/naics-2017-01-31.xsd",
      "http://xbrl.sec.gov/sic/2011/sic-2011-01-31.xsd",
      "https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd",
      "https://xbrl.sec.gov/exch/2018/exch-2018-01-31.xsd",
      "https://xbrl.sec.gov/stpr/2018/stpr-2018-01-31.xsd"
     ]
    }
   },
   "elementCount": 565,
   "entityCount": 1,
   "hidden": {
    "http://fasb.org/us-gaap/2018-01-31": 25,
    "http://www.unitedfiregroup.com/20180930": 9,
    "http://xbrl.sec.gov/dei/2018-01-31": 11,
    "total": 45
   },
   "keyCustom": 61,
   "keyStandard": 284,
   "memberCustom": 26,
   "memberStandard": 50,
   "nsprefix": "ufcs",
   "nsuri": "http://www.unitedfiregroup.com/20180930",
   "report": {
    "R1": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3YTD",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "dei:DocumentType",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "true",
     "longName": "0001000 - Document - Document and Entity Information",
     "role": "http://www.unitedfiregroup.com/role/DocumentAndEntityInformation",
     "shortName": "Document and Entity Information",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3YTD",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "dei:DocumentType",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R10": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3YTD",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2104100 - Disclosure - Summary of Investments",
     "role": "http://www.unitedfiregroup.com/role/SummaryOfInvestments",
     "shortName": "Summary of Investments",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3YTD",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R11": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3YTD",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueDisclosuresTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2107100 - Disclosure - Fair Value of Financial Instruments",
     "role": "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstruments",
     "shortName": "Fair Value of Financial Instruments",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3YTD",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueDisclosuresTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R12": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3YTD",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LiabilityForFuturePolicyBenefitsAndUnpaidClaimsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2110100 - Disclosure - Reserves for Losses and Loss Settlement Expenses",
     "role": "http://www.unitedfiregroup.com/role/ReservesForLossesAndLossSettlementExpenses",
     "shortName": "Reserves for Losses and Loss Settlement Expenses",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3YTD",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LiabilityForFuturePolicyBenefitsAndUnpaidClaimsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R13": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3YTD",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2113100 - Disclosure - Employee Benefits",
     "role": "http://www.unitedfiregroup.com/role/EmployeeBenefits",
     "shortName": "Employee Benefits",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3YTD",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R14": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3YTD",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2116100 - Disclosure - Stock-Based Compensation",
     "role": "http://www.unitedfiregroup.com/role/StockBasedCompensation",
     "shortName": "Stock-Based Compensation",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3YTD",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R15": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3YTD",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SegmentReportingDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2119100 - Disclosure - Segment Information",
     "role": "http://www.unitedfiregroup.com/role/SegmentInformation",
     "shortName": "Segment Information",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3YTD",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SegmentReportingDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R16": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3YTD",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:EarningsPerShareTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2131100 - Disclosure - Earnings Per Common Share",
     "role": "http://www.unitedfiregroup.com/role/EarningsPerCommonShare",
     "shortName": "Earnings Per Common Share",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3YTD",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:EarningsPerShareTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R17": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3YTD",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DebtDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2132100 - Disclosure - Credit Facility",
     "role": "http://www.unitedfiregroup.com/role/CreditFacility",
     "shortName": "Credit Facility",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3YTD",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DebtDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R18": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3YTD",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ComprehensiveIncomeNoteTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2133100 - Disclosure - Accumulated Other Comprehensive Income (Loss)",
     "role": "http://www.unitedfiregroup.com/role/AccumulatedOtherComprehensiveIncomeLoss",
     "shortName": "Accumulated Other Comprehensive Income (Loss)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3YTD",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ComprehensiveIncomeNoteTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R19": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3YTD",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisposalGroupsIncludingDiscontinuedOperationsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2134100 - Disclosure - Discontinued Operations",
     "role": "http://www.unitedfiregroup.com/role/DiscontinuedOperations",
     "shortName": "Discontinued Operations",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3YTD",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisposalGroupsIncludingDiscontinuedOperationsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R2": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "contextRef": "FI2018Q3",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:HeldToMaturitySecurities",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "1001000 - Statement - Consolidated Balance Sheets",
     "role": "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets",
     "shortName": "Consolidated Balance Sheets",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "contextRef": "FI2018Q3",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:OtherLongTermInvestments",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R20": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3YTD",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DiscontinuedOperationsPolicyTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2201201 - Disclosure - Nature of Operations and Basis of Presentation (Policies)",
     "role": "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationPolicies",
     "shortName": "Nature of Operations and Basis of Presentation (Policies)",
     "subGroupType": "policies",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3YTD",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DiscontinuedOperationsPolicyTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R21": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3YTD",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "ufcs:ScheduleOfDeferredPolicyAcquisitionCostsTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2301302 - Disclosure - Nature of Operations and Basis of Presentation (Tables)",
     "role": "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationTables",
     "shortName": "Nature of Operations and Basis of Presentation (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3YTD",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "ufcs:ScheduleOfDeferredPolicyAcquisitionCostsTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R22": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3YTD",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:MarketableSecuritiesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2304301 - Disclosure - Summary of Investments (Tables)",
     "role": "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsTables",
     "shortName": "Summary of Investments (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3YTD",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:MarketableSecuritiesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R23": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3YTD",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueByBalanceSheetGroupingTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2307301 - Disclosure - Fair Value of Financial Instruments (Tables)",
     "role": "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsTables",
     "shortName": "Fair Value of Financial Instruments (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3YTD",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueByBalanceSheetGroupingTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R24": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3YTD",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfLiabilityForUnpaidClaimsAndClaimsAdjustmentExpense",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2310301 - Disclosure - Reserves for Losses and Loss Settlement Expenses (Tables)",
     "role": "http://www.unitedfiregroup.com/role/ReservesForLossesAndLossSettlementExpensesTables",
     "shortName": "Reserves for Losses and Loss Settlement Expenses (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3YTD",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfLiabilityForUnpaidClaimsAndClaimsAdjustmentExpense",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R25": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3YTD",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfNetBenefitCostsTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2313301 - Disclosure - Employee Benefits (Tables)",
     "role": "http://www.unitedfiregroup.com/role/EmployeeBenefitsTables",
     "shortName": "Employee Benefits (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3YTD",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfNetBenefitCostsTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R26": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3YTD",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisclosureOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2316301 - Disclosure - Stock-Based Compensation (Tables)",
     "role": "http://www.unitedfiregroup.com/role/StockBasedCompensationTables",
     "shortName": "Stock-Based Compensation (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3YTD",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisclosureOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R27": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3YTD",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2331301 - Disclosure - Earnings Per Common Share (Tables)",
     "role": "http://www.unitedfiregroup.com/role/EarningsPerCommonShareTables",
     "shortName": "Earnings Per Common Share (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3YTD",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R28": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3YTD",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfAccumulatedOtherComprehensiveIncomeLossTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2333301 - Disclosure - Accumulated Other Comprehensive Income (Loss) (Tables)",
     "role": "http://www.unitedfiregroup.com/role/AccumulatedOtherComprehensiveIncomeLossTables",
     "shortName": "Accumulated Other Comprehensive Income (Loss) (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3YTD",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfAccumulatedOtherComprehensiveIncomeLossTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R29": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3YTD",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfDisposalGroupsIncludingDiscontinuedOperationsIncomeStatementBalanceSheetAndAdditionalDisclosuresTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2334301 - Disclosure - Discontinued Operations (Tables)",
     "role": "http://www.unitedfiregroup.com/role/DiscontinuedOperationsTables",
     "shortName": "Discontinued Operations (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3YTD",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfDisposalGroupsIncludingDiscontinuedOperationsIncomeStatementBalanceSheetAndAdditionalDisclosuresTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R3": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FI2017Q4",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:HeldToMaturitySecuritiesFairValue",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "1001501 - Statement - Consolidated Balance Sheets (Parentheticals)",
     "role": "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheetsParentheticals",
     "shortName": "Consolidated Balance Sheets (Parentheticals)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": null
    },
    "R30": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "span",
       "ix:continuation",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "D2017Q3Sept17",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:NumberOfOperatingSegments",
      "reportCount": 1,
      "unitRef": "segment",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2401403 - Disclosure - Nature of Operations and Basis of Presentation (Narrative) (Details)",
     "role": "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationNarrativeDetails",
     "shortName": "Nature of Operations and Basis of Presentation (Narrative) (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3YTD",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:IncomeTaxesPaid",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R31": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "contextRef": "FI2017Q4",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DeferredPolicyAcquisitionCostsAndValueOfBusinessAcquired",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2401404 - Disclosure - Nature of Operations and Basis of Presentation (Deferred Policy Acquisition Costs) (Details)",
     "role": "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationDeferredPolicyAcquisitionCostsDetails",
     "shortName": "Nature of Operations and Basis of Presentation (Deferred Policy Acquisition Costs) (Details)",
     "subGroupType": "policies",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FI2017Q4_us-gaap_StatementBusinessSegmentsAxis_us-gaap_PropertyLiabilityAndCasualtyInsuranceSegmentMember",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:DeferredPolicyAcquisitionCostsAndValueOfBusinessAcquired",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R32": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "contextRef": "FI2018Q3",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:HeldToMaturitySecurities",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2404402 - Disclosure - Summary of Investments (Fair Value of Investments) (Details)",
     "role": "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails",
     "shortName": "Summary of Investments (Fair Value of Investments) (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FI2017Q4",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R33": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FI2018Q3",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2404403 - Disclosure - Summary of Investments (Maturities) (Details)",
     "role": "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails",
     "shortName": "Summary of Investments (Maturities) (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FI2018Q3",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R34": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3QTD",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:RealizedInvestmentGainsLosses",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2404404 - Disclosure - Summary of Investments (Net Realized Investment Gains and Losses and Proceeds) (Details)",
     "role": "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsNetRealizedInvestmentGainsAndLossesAndProceedsDetails",
     "shortName": "Summary of Investments (Net Realized Investment Gains and Losses and Proceeds) (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3QTD",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:ProceedsFromSaleOfAvailableForSaleSecuritiesDebt",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R35": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3QTD",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "ufcs:SaleofHeldtomaturitySecurities",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2404405 - Disclosure - Summary of Investments (Narrative) (Details)",
     "role": "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsNarrativeDetails",
     "shortName": "Summary of Investments (Narrative) (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3QTD",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "ufcs:SaleofHeldtomaturitySecurities",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R36": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3YTD",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeTax",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2404406 - Disclosure - Summary of Investments (Unrealized Appreciation) (Details)",
     "role": "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsUnrealizedAppreciationDetails",
     "shortName": "Summary of Investments (Unrealized Appreciation) (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3YTD",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeTax",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R37": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "contextRef": "FI2017Q4_us-gaap_StatementOperatingActivitiesSegmentAxis_ufcs_ContinuingandDiscontinuingOperationsMember",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:AvailableForSaleSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositionsLessThanOneYear",
      "reportCount": 1,
      "unique": true,
      "unitRef": "issue",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2404407 - Disclosure - Summary of Investments (Investments in Unrealized Loss Position) (Details)",
     "role": "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails",
     "shortName": "Summary of Investments (Investments in Unrealized Loss Position) (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "contextRef": "FI2017Q4_us-gaap_StatementOperatingActivitiesSegmentAxis_ufcs_ContinuingandDiscontinuingOperationsMember",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:AvailableForSaleSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositionsLessThanOneYear",
      "reportCount": 1,
      "unique": true,
      "unitRef": "issue",
      "xsiNil": "false"
     }
    },
    "R38": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FI2018Q3_us-gaap_BalanceSheetLocationAxis_us-gaap_OtherAssetsMember_us-gaap_DeferredCompensationArrangementWithIndividualShareBasedPaymentsByTypeOfDeferredCompensationAxis_ufcs_RabbiTrustMember_us-gaap_FairValueByFairValueHierarchyLevelAxis_us-gaap_FairValueInputsLevel2Member",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:CashSurrenderValueFairValueDisclosure",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2407402 - Disclosure - Fair Value of Financial Instruments (Narrative) (Details)",
     "role": "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsNarrativeDetails",
     "shortName": "Fair Value of Financial Instruments (Narrative) (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FI2018Q3_us-gaap_BalanceSheetLocationAxis_us-gaap_OtherAssetsMember_us-gaap_DeferredCompensationArrangementWithIndividualShareBasedPaymentsByTypeOfDeferredCompensationAxis_ufcs_RabbiTrustMember_us-gaap_FairValueByFairValueHierarchyLevelAxis_us-gaap_FairValueInputsLevel2Member",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:CashSurrenderValueFairValueDisclosure",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R39": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FI2017Q4",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:HeldToMaturitySecuritiesFairValue",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2407403 - Disclosure - Fair Value of Financial Instruments (Carrying Value and Estimated Fair Value) (Details)",
     "role": "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueAndEstimatedFairValueDetails",
     "shortName": "Fair Value of Financial Instruments (Carrying Value and Estimated Fair Value) (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FI2018Q3_us-gaap_FairValueByMeasurementBasisAxis_us-gaap_EstimateOfFairValueFairValueDisclosureMember",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:HeldToMaturitySecuritiesFairValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R4": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3QTD",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:PremiumsEarnedNet",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "1002000 - Statement - Consolidated Statements of Income and Comprehensive Income (Unaudited)",
     "role": "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited",
     "shortName": "Consolidated Statements of Income and Comprehensive Income (Unaudited)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3QTD",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:PremiumsEarnedNet",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R40": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "contextRef": "FI2018Q3",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AvailableForSaleSecuritiesDebtSecurities",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2407404 - Disclosure - Fair Value of Financial Instruments (Financial Instruments Measured at Fair Value) (Details)",
     "role": "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails",
     "shortName": "Fair Value of Financial Instruments (Financial Instruments Measured at Fair Value) (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FI2018Q3_us-gaap_FairValueByMeasurementFrequencyAxis_us-gaap_FairValueMeasurementsRecurringMember",
      "decimals": "-3",
      "lang": null,
      "name": "ufcs:ShortTermInvestmentsFairValueDisclosure",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R41": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FI2018Q2_us-gaap_FairValueByMeasurementFrequencyAxis_us-gaap_FairValueMeasurementsRecurringMember",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2407405 - Disclosure - Fair Value of Financial Instruments (Level 3 Securities) (Details)",
     "role": "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsLevel3SecuritiesDetails",
     "shortName": "Fair Value of Financial Instruments (Level 3 Securities) (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FI2018Q2_us-gaap_FairValueByMeasurementFrequencyAxis_us-gaap_FairValueMeasurementsRecurringMember",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R42": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FI2018Q3",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:MortgageLoansOnRealEstateCommercialAndConsumerNet",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2407406 - Disclosure - Fair Value of Financial Instruments (Carrying Value of Commercial Mortgage Loans and Additional Information) (Details)",
     "role": "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueOfCommercialMortgageLoansAndAdditionalInformationDetails",
     "shortName": "Fair Value of Financial Instruments (Carrying Value of Commercial Mortgage Loans and Additional Information) (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:SchedulesOfConcentrationOfRiskByRiskFactorTextBlock",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FI2018Q3_us-gaap_ConcentrationRiskByBenchmarkAxis_ufcs_CommercialMortgageLoansMember_us-gaap_ConcentrationRiskByTypeAxis_us-gaap_GeographicConcentrationRiskMember",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:MortgageLoansOnRealEstateCommercialAndConsumerNet",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R43": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FI2017Q4",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:LiabilityForClaimsAndClaimsAdjustmentExpense",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2410402 - Disclosure - Reserves for Losses and Loss Settlement Expenses (Details)",
     "role": "http://www.unitedfiregroup.com/role/ReservesForLossesAndLossSettlementExpensesDetails",
     "shortName": "Reserves for Losses and Loss Settlement Expenses (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FI2016Q4",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:LiabilityForClaimsAndClaimsAdjustmentExpense",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R44": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3QTD_us-gaap_RetirementPlanTypeAxis_us-gaap_PensionPlansDefinedBenefitMember",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DefinedBenefitPlanServiceCost",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2413402 - Disclosure - Employee Benefits (Details)",
     "role": "http://www.unitedfiregroup.com/role/EmployeeBenefitsDetails",
     "shortName": "Employee Benefits (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3QTD_us-gaap_RetirementPlanTypeAxis_us-gaap_PensionPlansDefinedBenefitMember",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DefinedBenefitPlanServiceCost",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R45": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3QTD",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AllocatedShareBasedCompensationExpense",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2416402 - Disclosure - Stock-Based Compensation (Narrative) (Details)",
     "role": "http://www.unitedfiregroup.com/role/StockBasedCompensationNarrativeDetails",
     "shortName": "Stock-Based Compensation (Narrative) (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3QTD",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AllocatedShareBasedCompensationExpense",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R46": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FI2017Q4_us-gaap_PlanNameAxis_ufcs_EmployeeStockAwardPlan2008Member",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant",
      "reportCount": 1,
      "unitRef": "shares",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2416403 - Disclosure - Stock-Based Compensation (Activity in the Stock Plan) (Details)",
     "role": "http://www.unitedfiregroup.com/role/StockBasedCompensationActivityInStockPlanDetails",
     "shortName": "Stock-Based Compensation (Activity in the Stock Plan) (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3YTD_us-gaap_PlanNameAxis_ufcs_EmployeeStockAwardPlan2008Member",
      "decimals": "INF",
      "lang": null,
      "name": "ufcs:ShareBasedCompensationArrangementByShareBasedPaymentAwardGrantsInPeriodGross",
      "reportCount": 1,
      "unique": true,
      "unitRef": "shares",
      "xsiNil": "false"
     }
    },
    "R47": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "contextRef": "FI2018Q3",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "ufcs:FutureShareBasedCompensationExpenseRemainderOfCurrentYear",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2416404 - Disclosure - Stock-Based Compensation (Stock-based Compensation Expense) (Details)",
     "role": "http://www.unitedfiregroup.com/role/StockBasedCompensationStockBasedCompensationExpenseDetails",
     "shortName": "Stock-Based Compensation (Stock-based Compensation Expense) (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "contextRef": "FI2018Q3",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "ufcs:FutureShareBasedCompensationExpenseRemainderOfCurrentYear",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R48": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "span",
       "ix:continuation",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "D2017Q3Sept17",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:NumberOfOperatingSegments",
      "reportCount": 1,
      "unitRef": "segment",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2419401 - Disclosure - Segment Information (Details)",
     "role": "http://www.unitedfiregroup.com/role/SegmentInformationDetails",
     "shortName": "Segment Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "span",
       "ix:continuation",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FI2018Q3_us-gaap_StatementBusinessSegmentsAxis_us-gaap_PropertyLiabilityAndCasualtyInsuranceSegmentMember",
      "decimals": "INF",
      "lang": null,
      "name": "ufcs:NumberOfBusinessLocations",
      "reportCount": 1,
      "unique": true,
      "unitRef": "location",
      "xsiNil": "false"
     }
    },
    "R49": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3QTD",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:IncomeLossFromContinuingOperations",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2431402 - Disclosure - Earnings Per Common Share (Details)",
     "role": "http://www.unitedfiregroup.com/role/EarningsPerCommonShareDetails",
     "shortName": "Earnings Per Common Share (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3QTD",
      "decimals": "0",
      "lang": null,
      "name": "us-gaap:WeightedAverageNumberOfSharesOutstandingBasic",
      "reportCount": 1,
      "unique": true,
      "unitRef": "shares",
      "xsiNil": "false"
     }
    },
    "R5": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3QTD",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesBeforeTax",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "1002501 - Statement - Consolidated Statements of Income and Comprehensive Income (Unaudited) (Parentheticals)",
     "role": "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnauditedParentheticals",
     "shortName": "Consolidated Statements of Income and Comprehensive Income (Unaudited) (Parentheticals)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": null
    },
    "R50": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "I2016Q1Feb2",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:LineOfCreditFacilityMaximumBorrowingCapacity",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2432401 - Disclosure - Credit Facility (Details)",
     "role": "http://www.unitedfiregroup.com/role/CreditFacilityDetails",
     "shortName": "Credit Facility (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "I2016Q1Feb2",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:LineOfCreditFacilityMaximumBorrowingCapacity",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R51": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "contextRef": "FI2017Q4",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:StockholdersEquity",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2433402 - Disclosure - Accumulated Other Comprehensive Income (Loss) (Details)",
     "role": "http://www.unitedfiregroup.com/role/AccumulatedOtherComprehensiveIncomeLossDetails",
     "shortName": "Accumulated Other Comprehensive Income (Loss) (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3QTD",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:OciBeforeReclassificationsNetOfTaxAttributableToParent",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R52": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3QTD",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DiscontinuedOperationGainLossOnDisposalOfDiscontinuedOperationNetOfTax",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2434402 - Disclosure - Discontinued Operations (Narrative) (Details)",
     "role": "http://www.unitedfiregroup.com/role/DiscontinuedOperationsNarrativeDetails",
     "shortName": "Discontinued Operations (Narrative) (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "I2018Q1Mar30_us-gaap_DisposalGroupClassificationAxis_us-gaap_DiscontinuedOperationsDisposedOfBySaleMember_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_ufcs_UnitedLifeInsuranceCompanyMember",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:DisposalGroupIncludingDiscontinuedOperationConsideration",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R53": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "contextRef": "FI2018Q3",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AssetsOfDisposalGroupIncludingDiscontinuedOperation",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2434403 - Disclosure - Discontinued Operations (Balance Sheets) (Details)",
     "role": "http://www.unitedfiregroup.com/role/DiscontinuedOperationsBalanceSheetsDetails",
     "shortName": "Discontinued Operations (Balance Sheets) (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FI2018Q3_us-gaap_DisposalGroupClassificationAxis_us-gaap_DiscontinuedOperationsDisposedOfBySaleMember_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_ufcs_UnitedLifeInsuranceCompanyMember",
      "decimals": "-3",
      "lang": null,
      "name": "ufcs:DisposalGroupIncludingDiscontinuedOperationHeldtomaturitySecurities",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R54": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3QTD",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2434404 - Disclosure - Discontinued Operations (Statements of Income) (Details)",
     "role": "http://www.unitedfiregroup.com/role/DiscontinuedOperationsStatementsOfIncomeDetails",
     "shortName": "Discontinued Operations (Statements of Income) (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3QTD_us-gaap_DisposalGroupClassificationAxis_us-gaap_DiscontinuedOperationsDisposedOfBySaleMember_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_ufcs_UnitedLifeInsuranceCompanyMember",
      "decimals": "-3",
      "lang": null,
      "name": "ufcs:DisposalGroupIncludingDiscontinuedOperationPremiumsEarnedNet",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R6": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "contextRef": "FI2017Q4",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "1003000 - Statement - Consolidated Statement of Stockholders' Equity (Unaudited)",
     "role": "http://www.unitedfiregroup.com/role/ConsolidatedStatementOfStockholdersEquityUnaudited",
     "shortName": "Consolidated Statement of Stockholders' Equity (Unaudited)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "contextRef": "FI2017Q4_us-gaap_StatementEquityComponentsAxis_us-gaap_RetainedEarningsMember",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R7": {
     "firstAnchor": null,
     "groupType": "statement",
     "isDefault": "false",
     "longName": "1003501 - Statement - Consolidated Statement of Stockholders' Equity (Unaudited) (Parentheticals)",
     "role": "http://www.unitedfiregroup.com/role/ConsolidatedStatementOfStockholdersEquityUnauditedParentheticals",
     "shortName": "Consolidated Statement of Stockholders' Equity (Unaudited) (Parentheticals)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": null
    },
    "R8": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3YTD",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:NetIncomeLoss",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "1004000 - Statement - Consolidated Statements of Cash Flows (Unaudited)",
     "role": "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited",
     "shortName": "Consolidated Statements of Cash Flows (Unaudited)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3YTD",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:AccretionAmortizationOfDiscountsAndPremiumsInvestments",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R9": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3YTD",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureAndSignificantAccountingPoliciesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "2101100 - Disclosure - Nature of Operations and Basis of Presentation",
     "role": "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentation",
     "shortName": "Nature of Operations and Basis of Presentation",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "contextRef": "FD2018Q3YTD",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureAndSignificantAccountingPoliciesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    }
   },
   "segmentCount": 78,
   "tag": {
    "dei_AmendmentFlag": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "If the value is true, then the document is an amendment to previously-filed/accepted document.",
        "label": "Amendment Flag",
        "terseLabel": "Amendment Flag"
       }
      }
     },
     "localname": "AmendmentFlag",
     "nsuri": "http://xbrl.sec.gov/dei/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DocumentAndEntityInformation"
     ],
     "xbrltype": "booleanItemType"
    },
    "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",
        "terseLabel": "Current Fiscal Year End Date"
       }
      }
     },
     "localname": "CurrentFiscalYearEndDate",
     "nsuri": "http://xbrl.sec.gov/dei/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DocumentAndEntityInformation"
     ],
     "xbrltype": "gMonthDayItemType"
    },
    "dei_DocumentFiscalPeriodFocus": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "This is focus fiscal period of the document report. For a first quarter 2006 quarterly report, which may also provide financial information from prior periods, the first fiscal quarter should be given as the fiscal period focus. Values: FY, Q1, Q2, Q3, Q4, H1, H2, M9, T1, T2, T3, M8, CY.",
        "label": "Document Fiscal Period Focus",
        "terseLabel": "Document Fiscal Period Focus"
       }
      }
     },
     "localname": "DocumentFiscalPeriodFocus",
     "nsuri": "http://xbrl.sec.gov/dei/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DocumentAndEntityInformation"
     ],
     "xbrltype": "fiscalPeriodItemType"
    },
    "dei_DocumentFiscalYearFocus": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "This is focus fiscal year of the document report in CCYY 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",
        "terseLabel": "Document Fiscal Year Focus"
       }
      }
     },
     "localname": "DocumentFiscalYearFocus",
     "nsuri": "http://xbrl.sec.gov/dei/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DocumentAndEntityInformation"
     ],
     "xbrltype": "gYearItemType"
    },
    "dei_DocumentPeriodEndDate": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The end date of the period reflected on the cover page if a periodic report. For all other reports and registration statements containing historical data, it is the date up through which that historical data is presented.  If there is no historical data in the report, use the filing date. The format of the date is CCYY-MM-DD.",
        "label": "Document Period End Date",
        "terseLabel": "Document Period End Date"
       }
      }
     },
     "localname": "DocumentPeriodEndDate",
     "nsuri": "http://xbrl.sec.gov/dei/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DocumentAndEntityInformation"
     ],
     "xbrltype": "dateItemType"
    },
    "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",
        "terseLabel": "Document Type"
       }
      }
     },
     "localname": "DocumentType",
     "nsuri": "http://xbrl.sec.gov/dei/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DocumentAndEntityInformation"
     ],
     "xbrltype": "submissionTypeItemType"
    },
    "dei_EntityCentralIndexKey": {
     "auth_ref": [
      "r399"
     ],
     "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",
        "terseLabel": "Entity Central Index Key"
       }
      }
     },
     "localname": "EntityCentralIndexKey",
     "nsuri": "http://xbrl.sec.gov/dei/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DocumentAndEntityInformation"
     ],
     "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",
        "terseLabel": "Entity Common Stock, Shares Outstanding (in shares)"
       }
      }
     },
     "localname": "EntityCommonStockSharesOutstanding",
     "nsuri": "http://xbrl.sec.gov/dei/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DocumentAndEntityInformation"
     ],
     "xbrltype": "sharesItemType"
    },
    "dei_EntityEmergingGrowthCompany": {
     "auth_ref": [
      "r399"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Indicate if registrant meets the emerging growth company criteria.",
        "label": "Entity Emerging Growth Company",
        "terseLabel": "Entity Emerging Growth Company"
       }
      }
     },
     "localname": "EntityEmergingGrowthCompany",
     "nsuri": "http://xbrl.sec.gov/dei/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DocumentAndEntityInformation"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_EntityFilerCategory": {
     "auth_ref": [
      "r399"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Indicate whether the registrant is one of the following: (1) Large Accelerated Filer, (2) Accelerated Filer, (3) Non-accelerated Filer, (4) Smaller Reporting Company (Non-accelerated), (5) Smaller Reporting Accelerated Filer or (6) Smaller Reporting Company and Large 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",
        "terseLabel": "Entity Filer Category"
       }
      }
     },
     "localname": "EntityFilerCategory",
     "nsuri": "http://xbrl.sec.gov/dei/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DocumentAndEntityInformation"
     ],
     "xbrltype": "filerCategoryItemType"
    },
    "dei_EntityRegistrantName": {
     "auth_ref": [
      "r399"
     ],
     "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",
        "terseLabel": "Entity Registrant Name"
       }
      }
     },
     "localname": "EntityRegistrantName",
     "nsuri": "http://xbrl.sec.gov/dei/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DocumentAndEntityInformation"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_EntitySmallBusiness": {
     "auth_ref": [
      "r399"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Indicates that the company is a smaller reporting company with both a public float and revenues of less than $75 million.",
        "label": "Entity Small Business",
        "terseLabel": "Entity Small Business"
       }
      }
     },
     "localname": "EntitySmallBusiness",
     "nsuri": "http://xbrl.sec.gov/dei/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DocumentAndEntityInformation"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_TradingSymbol": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Trading symbol of an instrument as listed on an exchange.",
        "label": "Trading Symbol",
        "terseLabel": "Trading Symbol"
       }
      }
     },
     "localname": "TradingSymbol",
     "nsuri": "http://xbrl.sec.gov/dei/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DocumentAndEntityInformation"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "invest_InvestmentAxis": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Investment [Axis]",
        "terseLabel": "Investment [Axis]"
       }
      }
     },
     "localname": "InvestmentAxis",
     "nsuri": "http://xbrl.sec.gov/invest/2013-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsNetRealizedInvestmentGainsAndLossesAndProceedsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "invest_InvestmentDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Investment [Domain]",
        "terseLabel": "Investment [Domain]"
       }
      }
     },
     "localname": "InvestmentDomain",
     "nsuri": "http://xbrl.sec.gov/invest/2013-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsNetRealizedInvestmentGainsAndLossesAndProceedsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "invest_InvestmentSectorAxis": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Investment Sector [Axis]",
        "terseLabel": "Investment Sector [Axis]"
       }
      }
     },
     "localname": "InvestmentSectorAxis",
     "nsuri": "http://xbrl.sec.gov/invest/2013-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "invest_InvestmentSectorDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Investment Sector [Domain]",
        "terseLabel": "Investment Sector [Domain]"
       }
      }
     },
     "localname": "InvestmentSectorDomain",
     "nsuri": "http://xbrl.sec.gov/invest/2013-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_MortgageLoansOnRealEstateDescriptionTypeOfPropertyAxis": {
     "auth_ref": [
      "r396",
      "r398"
     ],
     "lang": {
      "en-US": {
       "role": {
        "label": "Real Estate, Type of Property [Axis]",
        "terseLabel": "Real Estate, Type of Property [Axis]"
       }
      }
     },
     "localname": "MortgageLoansOnRealEstateDescriptionTypeOfPropertyAxis",
     "nsuri": "http://fasb.org/srt/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueOfCommercialMortgageLoansAndAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_MortgageLoansOnRealEstateNamePropertyTypeDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Real Estate [Domain]",
        "terseLabel": "Real Estate [Domain]"
       }
      }
     },
     "localname": "MortgageLoansOnRealEstateNamePropertyTypeDomain",
     "nsuri": "http://fasb.org/srt/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueOfCommercialMortgageLoansAndAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_MultifamilyMember": {
     "auth_ref": [
      "r396",
      "r398"
     ],
     "lang": {
      "en-US": {
       "role": {
        "label": "Multifamily [Member]",
        "terseLabel": "Multifamily"
       }
      }
     },
     "localname": "MultifamilyMember",
     "nsuri": "http://fasb.org/srt/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueOfCommercialMortgageLoansAndAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_OfficeBuildingMember": {
     "auth_ref": [
      "r396",
      "r398"
     ],
     "lang": {
      "en-US": {
       "role": {
        "label": "Office Building [Member]",
        "terseLabel": "Office"
       }
      }
     },
     "localname": "OfficeBuildingMember",
     "nsuri": "http://fasb.org/srt/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueOfCommercialMortgageLoansAndAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_SegmentGeographicalDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Geographical [Domain]",
        "terseLabel": "Geographical [Domain]"
       }
      }
     },
     "localname": "SegmentGeographicalDomain",
     "nsuri": "http://fasb.org/srt/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueOfCommercialMortgageLoansAndAdditionalInformationDetails",
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_StatementGeographicalAxis": {
     "auth_ref": [
      "r153",
      "r205",
      "r207",
      "r396",
      "r398"
     ],
     "lang": {
      "en-US": {
       "role": {
        "label": "Geographical [Axis]",
        "terseLabel": "Geographical [Axis]"
       }
      }
     },
     "localname": "StatementGeographicalAxis",
     "nsuri": "http://fasb.org/srt/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueOfCommercialMortgageLoansAndAdditionalInformationDetails",
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "ufcs_AccruedExpensesAndOtherLiabilities": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets": {
       "order": 3.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Accrued expenses and other liabilities.",
        "label": "Accrued expenses and other liabilities",
        "terseLabel": "Accrued expenses and other liabilities"
       }
      }
     },
     "localname": "AccruedExpensesAndOtherLiabilities",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_AvailableForSaleEquitySecuritiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Available-For-Sale Equity Securities [Abstract]",
        "label": "Available-For-Sale Equity Securities [Abstract]",
        "terseLabel": "Equity securities:"
       }
      }
     },
     "localname": "AvailableForSaleEquitySecuritiesAbstract",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "ufcs_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAggregateLossAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Available-For-Sale Securities, Continuous Unrealized Loss Position, Aggregate Loss [Abstract]",
        "label": "Available-For-Sale Securities, Continuous Unrealized Loss Position, Aggregate Loss [Abstract]",
        "terseLabel": "Gross Unrealized Depreciation"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAggregateLossAbstract",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "ufcs_ChangesInStockholdersEquityAccountsExcludingNetIncomeLoss": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Total changes in stockholders' equity accounts excluding net income loss.",
        "label": "Changes In Stockholders Equity Accounts Excluding Net Income Loss",
        "negatedTerseLabel": "All other changes in stockholders\u2019 equity accounts"
       }
      }
     },
     "localname": "ChangesInStockholdersEquityAccountsExcludingNetIncomeLoss",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementOfStockholdersEquityUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_CommercialMortgageLoansMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Commercial Mortgage Loans [Member]",
        "label": "Commercial Mortgage Loans [Member]",
        "terseLabel": "Total mortgage loans"
       }
      }
     },
     "localname": "CommercialMortgageLoansMember",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueOfCommercialMortgageLoansAndAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ufcs_ConsumerGoodsAndServiceMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Consumer Goods and Service [Member]",
        "label": "Consumer Goods and Service [Member]",
        "terseLabel": "Consumer goods and services"
       }
      }
     },
     "localname": "ConsumerGoodsAndServiceMember",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ufcs_ContinuingandDiscontinuingOperationsMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Continuing and Discontinuing Operations [Member]",
        "label": "Continuing and Discontinuing Operations [Member]",
        "terseLabel": "Continuing and Discontinuing Operations"
       }
      }
     },
     "localname": "ContinuingandDiscontinuingOperationsMember",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails",
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationDeferredPolicyAcquisitionCostsDetails",
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationNarrativeDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsNetRealizedInvestmentGainsAndLossesAndProceedsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ufcs_DebtCovenantMaximumDebttoTotalCapitalizationRatio": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Debt Covenant, Maximum Debt to Total Capitalization Ratio",
        "label": "Debt Covenant, Maximum Debt to Total Capitalization Ratio",
        "terseLabel": "Debt covenant, maximum debt to total capitalization ratio"
       }
      }
     },
     "localname": "DebtCovenantMaximumDebttoTotalCapitalizationRatio",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/CreditFacilityDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "ufcs_DeferredPolicyAcquisitionCostAmortizationExpenseAndAmortizationOfValueOfBusinessAcquiredVoba": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited": {
       "order": 2.0,
       "parentTag": "us-gaap_BenefitsLossesAndExpenses",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Deferred Policy Acquisition Cost, Amortization Expense and Amortization of Value of Business Acquired (VOBA)",
        "label": "Deferred Policy Acquisition Cost, Amortization Expense and Amortization of Value of Business Acquired (VOBA)",
        "terseLabel": "Amortization of deferred policy acquisition costs"
       }
      }
     },
     "localname": "DeferredPolicyAcquisitionCostAmortizationExpenseAndAmortizationOfValueOfBusinessAcquiredVoba",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_DeferredPolicyAcquisitionCostsDisclosureLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Deferred Policy Acquisition Costs Disclosure [Line Items]",
        "label": "Deferred Policy Acquisition Costs Disclosure [Line Items]",
        "terseLabel": "Deferred Policy Acquisition Costs Disclosure [Line Items]"
       }
      }
     },
     "localname": "DeferredPolicyAcquisitionCostsDisclosureLineItems",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationDeferredPolicyAcquisitionCostsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "ufcs_DeferredPolicyAcquisitionCostsPeriodIncreaseDecreaseDeferredAcquisitionCostOffsetAdjustmentRelatedToAssumedRealizationOfUnrealizedGainsLosses": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Deferred Policy Acquisition Costs, Period Increase (Decrease), Deferred Acquisition Cost Offset Adjustment Related to Assumed Realization of Unrealized Gains (Losses)",
        "label": "Deferred Policy Acquisition Costs, Period Increase (Decrease), Deferred Acquisition Cost Offset Adjustment Related to Assumed Realization of Unrealized Gains (Losses)",
        "negatedLabel": "Decrease in DAC asset related to assumed realization of unrealized gains (losses)"
       }
      }
     },
     "localname": "DeferredPolicyAcquisitionCostsPeriodIncreaseDecreaseDeferredAcquisitionCostOffsetAdjustmentRelatedToAssumedRealizationOfUnrealizedGainsLosses",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_DirectorPlan2005Member": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "the 2005 Non-qualified Non-employee Director Stock Option and Restricted Stock Plan (the \"Director Plan\" [Member]",
        "label": "Director Plan - 2005 [Member]",
        "terseLabel": "Director Plan - 2005"
       }
      }
     },
     "localname": "DirectorPlan2005Member",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/StockBasedCompensationActivityInStockPlanDetails",
      "http://www.unitedfiregroup.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ufcs_DisposalGroupIncludingDiscontinuedOperationAccruedExpensesandOtherLiabilities": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsBalanceSheetsDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_LiabilitiesOfDisposalGroupIncludingDiscontinuedOperation",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disposal Group, Including Discontinued Operation, Accrued Expenses and Other Liabilities",
        "label": "Disposal Group, Including Discontinued Operation, Accrued Expenses and Other Liabilities",
        "terseLabel": "Accrued expenses and other liabilities"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationAccruedExpensesandOtherLiabilities",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsBalanceSheetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_DisposalGroupIncludingDiscontinuedOperationAdjustmentToConsideration": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disposal Group, Including Discontinued Operation, Adjustment To Consideration",
        "label": "Disposal Group, Including Discontinued Operation, Adjustment To Consideration",
        "terseLabel": "Disposal group, adjustment to consideration"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationAdjustmentToConsideration",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_DisposalGroupIncludingDiscontinuedOperationAvailableforsaleSecuritiesDebtSecurities": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsBalanceSheetsDetails": {
       "order": 2.0,
       "parentTag": "ufcs_DisposalGroupIncludingDiscontinuedOperationInvestments",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disposal Group, Including Discontinued Operation, Available-for-sale Securities, Debt Securities",
        "label": "Disposal Group, Including Discontinued Operation, Available-for-sale Securities, Debt Securities",
        "terseLabel": "Available-for-sale, at fair value (amortized cost $0 in 2018 and $1,412,291 in 2017)"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationAvailableforsaleSecuritiesDebtSecurities",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsBalanceSheetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_DisposalGroupIncludingDiscontinuedOperationBenefitsLossesandExpenses": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsStatementsOfIncomeDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_DiscontinuedOperationIncomeLossFromDiscontinuedOperationBeforeIncomeTax",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disposal Group, Including Discontinued Operation, Benefits, Losses and Expenses",
        "label": "Disposal Group, Including Discontinued Operation, Benefits, Losses and Expenses",
        "totalLabel": "Total benefits, losses and expenses"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationBenefitsLossesandExpenses",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsStatementsOfIncomeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_DisposalGroupIncludingDiscontinuedOperationBenefitsLossesandExpensesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disposal Group, Including Discontinued Operation, Benefits, Losses and Expenses [Abstract]",
        "label": "Disposal Group, Including Discontinued Operation, Benefits, Losses and Expenses [Abstract]",
        "terseLabel": "Benefits, Losses and Expenses"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationBenefitsLossesandExpensesAbstract",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsStatementsOfIncomeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "ufcs_DisposalGroupIncludingDiscontinuedOperationDeferredPolicyAcquisitionCostAmortizationExpenseandAmortizationofValueofBusinessAcquiredVOBA": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsStatementsOfIncomeDetails": {
       "order": 3.0,
       "parentTag": "ufcs_DisposalGroupIncludingDiscontinuedOperationBenefitsLossesandExpenses",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disposal Group, Including Discontinued Operation, Deferred Policy Acquisition Cost, Amortization Expense and Amortization of Value of Business Acquired (VOBA)",
        "label": "Disposal Group, Including Discontinued Operation, Deferred Policy Acquisition Cost, Amortization Expense and Amortization of Value of Business Acquired (VOBA)",
        "terseLabel": "Amortization of deferred policy acquisition costs"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationDeferredPolicyAcquisitionCostAmortizationExpenseandAmortizationofValueofBusinessAcquiredVOBA",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsStatementsOfIncomeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_DisposalGroupIncludingDiscontinuedOperationDeferredPolicyAcquisitionCosts": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsBalanceSheetsDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperation",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disposal Group, Including Discontinued Operation, Deferred Policy Acquisition Costs",
        "label": "Disposal Group, Including Discontinued Operation, Deferred Policy Acquisition Costs",
        "terseLabel": "Deferred policy acquisition costs"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationDeferredPolicyAcquisitionCosts",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsBalanceSheetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_DisposalGroupIncludingDiscontinuedOperationEquitySecurities": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsBalanceSheetsDetails": {
       "order": 6.0,
       "parentTag": "ufcs_DisposalGroupIncludingDiscontinuedOperationInvestments",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disposal Group, Including Discontinued Operation, Equity Securities",
        "label": "Disposal Group, Including Discontinued Operation, Equity Securities",
        "terseLabel": "Equity Securities at fair value (cost $0 in 2018 and $5,099 in 2017)"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationEquitySecurities",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsBalanceSheetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_DisposalGroupIncludingDiscontinuedOperationHeldtomaturitySecurities": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsBalanceSheetsDetails": {
       "order": 1.0,
       "parentTag": "ufcs_DisposalGroupIncludingDiscontinuedOperationInvestments",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disposal Group, Including Discontinued Operation, Held-to-maturity Securities",
        "label": "Disposal Group, Including Discontinued Operation, Held-to-maturity Securities",
        "terseLabel": "Held-to-maturity, at amortized cost (fair value $0 in 2018 and $34 in 2017)"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationHeldtomaturitySecurities",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsBalanceSheetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_DisposalGroupIncludingDiscontinuedOperationInterestCreditedtoPolicyholdersAccountBalances": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsStatementsOfIncomeDetails": {
       "order": 5.0,
       "parentTag": "ufcs_DisposalGroupIncludingDiscontinuedOperationBenefitsLossesandExpenses",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disposal Group, Including Discontinued Operation, Interest Credited to Policyholders Account Balances",
        "label": "Disposal Group, Including Discontinued Operation, Interest Credited to Policyholders Account Balances",
        "terseLabel": "Interest on policyholders\u2019 accounts"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationInterestCreditedtoPolicyholdersAccountBalances",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsStatementsOfIncomeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_DisposalGroupIncludingDiscontinuedOperationInvestments": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsBalanceSheetsDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperation",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disposal Group, Including Discontinued Operation, Investments",
        "label": "Disposal Group, Including Discontinued Operation, Investments",
        "totalLabel": "Total investments"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationInvestments",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsBalanceSheetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_DisposalGroupIncludingDiscontinuedOperationInvestmentsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disposal Group, Including Discontinued Operation, Investments [Abstract]",
        "label": "Disposal Group, Including Discontinued Operation, Investments [Abstract]",
        "terseLabel": "Investments"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationInvestmentsAbstract",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsBalanceSheetsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "ufcs_DisposalGroupIncludingDiscontinuedOperationLiabilityforFuturePolicyBenefitsLife": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsBalanceSheetsDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_LiabilitiesOfDisposalGroupIncludingDiscontinuedOperation",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disposal Group, Including Discontinued Operation, Liability for Future Policy Benefits, Life",
        "label": "Disposal Group, Including Discontinued Operation, Liability for Future Policy Benefits, Life",
        "terseLabel": "Future policy benefits and losses"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationLiabilityforFuturePolicyBenefitsLife",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsBalanceSheetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_DisposalGroupIncludingDiscontinuedOperationLiabilityforFuturePolicyBenefitsPeriodExpenseIncome": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsStatementsOfIncomeDetails": {
       "order": 2.0,
       "parentTag": "ufcs_DisposalGroupIncludingDiscontinuedOperationBenefitsLossesandExpenses",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disposal Group, Including Discontinued Operation, Liability for Future Policy Benefits, Period Expense (Income)",
        "label": "Disposal Group, Including Discontinued Operation, Liability for Future Policy Benefits, Period Expense (Income)",
        "terseLabel": "Increase in liability for future policy benefits"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationLiabilityforFuturePolicyBenefitsPeriodExpenseIncome",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsStatementsOfIncomeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_DisposalGroupIncludingDiscontinuedOperationLoansGrossInsurancePolicy": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsBalanceSheetsDetails": {
       "order": 4.0,
       "parentTag": "ufcs_DisposalGroupIncludingDiscontinuedOperationInvestments",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disposal Group, Including Discontinued Operation, Loans, Gross, Insurance Policy",
        "label": "Disposal Group, Including Discontinued Operation, Loans, Gross, Insurance Policy",
        "terseLabel": "Policy loans"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationLoansGrossInsurancePolicy",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsBalanceSheetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_DisposalGroupIncludingDiscontinuedOperationMarketableSecuritiesFixedAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disposal Group, Including Discontinued Operation, Marketable Securities, Fixed [Abstract]",
        "label": "Disposal Group, Including Discontinued Operation, Marketable Securities, Fixed [Abstract]",
        "terseLabel": "Fixed maturities"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationMarketableSecuritiesFixedAbstract",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsBalanceSheetsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "ufcs_DisposalGroupIncludingDiscontinuedOperationMortgageLoansonRealEstateCommercialandConsumerNet": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsBalanceSheetsDetails": {
       "order": 3.0,
       "parentTag": "ufcs_DisposalGroupIncludingDiscontinuedOperationInvestments",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disposal Group, Including Discontinued Operation, Mortgage Loans on Real Estate, Commercial and Consumer, Net",
        "label": "Disposal Group, Including Discontinued Operation, Mortgage Loans on Real Estate, Commercial and Consumer, Net",
        "terseLabel": "Mortgage loans"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationMortgageLoansonRealEstateCommercialandConsumerNet",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsBalanceSheetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_DisposalGroupIncludingDiscontinuedOperationNetInvestmentIncome": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsStatementsOfIncomeDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_DisposalGroupIncludingDiscontinuedOperationRevenue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disposal Group, Including Discontinued Operation, Net Investment Income",
        "label": "Disposal Group, Including Discontinued Operation, Net Investment Income",
        "terseLabel": "Investment income, net of investment expenses"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationNetInvestmentIncome",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsStatementsOfIncomeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_DisposalGroupIncludingDiscontinuedOperationOtherLongtermInvestments": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsBalanceSheetsDetails": {
       "order": 5.0,
       "parentTag": "ufcs_DisposalGroupIncludingDiscontinuedOperationInvestments",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disposal Group, Including Discontinued Operation, Other Long-term Investments",
        "label": "Disposal Group, Including Discontinued Operation, Other Long-term Investments",
        "terseLabel": "Other long-term investments"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationOtherLongtermInvestments",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsBalanceSheetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_DisposalGroupIncludingDiscontinuedOperationOtherUnderwritingExpense": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsStatementsOfIncomeDetails": {
       "order": 4.0,
       "parentTag": "ufcs_DisposalGroupIncludingDiscontinuedOperationBenefitsLossesandExpenses",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disposal Group, Including Discontinued Operation, Other Underwriting Expense",
        "label": "Disposal Group, Including Discontinued Operation, Other Underwriting Expense",
        "terseLabel": "Other underwriting expenses"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationOtherUnderwritingExpense",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsStatementsOfIncomeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_DisposalGroupIncludingDiscontinuedOperationPolicyholderBenefitsandClaimsIncurredNet": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsStatementsOfIncomeDetails": {
       "order": 1.0,
       "parentTag": "ufcs_DisposalGroupIncludingDiscontinuedOperationBenefitsLossesandExpenses",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disposal Group, Including Discontinued Operation, Policyholder Benefits and Claims Incurred, Net",
        "label": "Disposal Group, Including Discontinued Operation, Policyholder Benefits and Claims Incurred, Net",
        "terseLabel": "Losses and loss settlement expenses"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationPolicyholderBenefitsandClaimsIncurredNet",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsStatementsOfIncomeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_DisposalGroupIncludingDiscontinuedOperationPremiumsEarnedNet": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsStatementsOfIncomeDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_DisposalGroupIncludingDiscontinuedOperationRevenue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disposal Group, Including Discontinued Operation, Premiums Earned, Net",
        "label": "Disposal Group, Including Discontinued Operation, Premiums Earned, Net",
        "terseLabel": "Net premiums earned"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationPremiumsEarnedNet",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsStatementsOfIncomeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_DisposalGroupIncludingDiscontinuedOperationRealizedInvestmentGainsLosses": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsStatementsOfIncomeDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_DisposalGroupIncludingDiscontinuedOperationRevenue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disposal Group, Including Discontinued Operation, Realized Investment Gains (Losses)",
        "label": "Disposal Group, Including Discontinued Operation, Realized Investment Gains (Losses)",
        "terseLabel": "Net realized investment gains (losses)"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationRealizedInvestmentGainsLosses",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsStatementsOfIncomeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_DisposalGroupIncludingDiscontinuedOperationRevenuesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disposal Group, Including Discontinued Operation, Revenues [Abstract]",
        "label": "Disposal Group, Including Discontinued Operation, Revenues [Abstract]",
        "terseLabel": "Revenues"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationRevenuesAbstract",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsStatementsOfIncomeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "ufcs_DisposalGroupIncludingDiscontinuedOperationsAvailableforsaleDebtSecuritiesAmortizedCostBasis": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disposal Group, Including Discontinued Operations, Available-for-sale Debt Securities, Amortized Cost Basis",
        "label": "Disposal Group, Including Discontinued Operations, Available-for-sale Debt Securities, Amortized Cost Basis",
        "terseLabel": "Fixed maturities, available-for-sale securities, amortized cost"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationsAvailableforsaleDebtSecuritiesAmortizedCostBasis",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsBalanceSheetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_DisposalGroupIncludingDiscontinuedOperationsEquitySecuritiesAmortizedCostBasis": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disposal Group, Including Discontinued Operations, Equity Securities, Amortized Cost Basis",
        "label": "Disposal Group, Including Discontinued Operations, Equity Securities, Amortized Cost Basis",
        "terseLabel": "Equity securities, amortized cost"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationsEquitySecuritiesAmortizedCostBasis",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsBalanceSheetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_DisposalGroupIncludingDiscontinuedOperationsHeldtomaturitySecuritiesFairValue": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disposal Group, Including Discontinued Operations, Held-to-maturity Securities, Fair Value",
        "label": "Disposal Group, Including Discontinued Operations, Held-to-maturity Securities, Fair Value",
        "terseLabel": "Fixed maturities, held-to-maturity securities, fair value"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationsHeldtomaturitySecuritiesFairValue",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsBalanceSheetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_DocumentAndEntityInformationAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Document and Entity Information [Abstract]",
        "label": "Document and Entity Information [Abstract]"
       }
      }
     },
     "localname": "DocumentAndEntityInformationAbstract",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "xbrltype": "stringItemType"
    },
    "ufcs_EarningsPerShareBasicAndDilutedContinuingOperationsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Earnings Per Share, Basic And Diluted, Continuing Operations [Abstract]",
        "label": "Earnings Per Share, Basic And Diluted, Continuing Operations [Abstract]",
        "terseLabel": "Earnings (loss) per common share from continuing operations:"
       }
      }
     },
     "localname": "EarningsPerShareBasicAndDilutedContinuingOperationsAbstract",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited"
     ],
     "xbrltype": "stringItemType"
    },
    "ufcs_EarningsPerShareBasicAndDilutedDiscontinuedOperationsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Earnings Per Share, Basic And Diluted, Discontinued Operations [Abstract]",
        "label": "Earnings Per Share, Basic And Diluted, Discontinued Operations [Abstract]",
        "terseLabel": "Earnings (loss) per common share from discontinued operations:"
       }
      }
     },
     "localname": "EarningsPerShareBasicAndDilutedDiscontinuedOperationsAbstract",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsStatementsOfIncomeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "ufcs_EastNorthCentralMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "East North Central [Member]",
        "label": "East North Central [Member]",
        "terseLabel": "East North Central"
       }
      }
     },
     "localname": "EastNorthCentralMember",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueOfCommercialMortgageLoansAndAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ufcs_EastSouthCentralMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "East South Central [Member]",
        "label": "East South Central [Member]",
        "terseLabel": "East South Central"
       }
      }
     },
     "localname": "EastSouthCentralMember",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueOfCommercialMortgageLoansAndAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ufcs_EmployeeStockAwardPlan2008Member": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Employee Stock Award Plan (the \"2008 Stock Plan\") [Member]",
        "label": "Employee Stock Award Plan-2008 [Member]",
        "terseLabel": "Employee Stock Award Plan-2008"
       }
      }
     },
     "localname": "EmployeeStockAwardPlan2008Member",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/StockBasedCompensationActivityInStockPlanDetails",
      "http://www.unitedfiregroup.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ufcs_EnergyMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Energy [Member]",
        "label": "Energy [Member]",
        "terseLabel": "Energy"
       }
      }
     },
     "localname": "EnergyMember",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ufcs_EquitySecuritiesChangeInNetUnrealizedHoldingGainLossBeforeTax": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Equity Securities, Change in Net Unrealized Holding Gain (Loss), Before Tax",
        "label": "Equity Securities, Change in Net Unrealized Holding Gain (Loss), Before Tax",
        "terseLabel": "Available-for-sale equity securities"
       }
      }
     },
     "localname": "EquitySecuritiesChangeInNetUnrealizedHoldingGainLossBeforeTax",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsUnrealizedAppreciationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_EquitySecuritiesFVNIGainLossNetOfTax": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Equity Securities, FV-NI, Gain (Loss), Net Of Tax",
        "label": "Equity Securities, FV-NI, Gain (Loss), Net Of Tax",
        "terseLabel": "Net realized investment gain"
       }
      }
     },
     "localname": "EquitySecuritiesFVNIGainLossNetOfTax",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_FinancialServicesMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Financial Services [Member]",
        "label": "Financial Services [Member]",
        "terseLabel": "Financial services"
       }
      }
     },
     "localname": "FinancialServicesMember",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ufcs_FutureShareBasedCompensationExpenseRemainderOfCurrentYear": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/StockBasedCompensationStockBasedCompensationExpenseDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Future Share-based Compensation Expense, Remainder of Current Year",
        "label": "Future Share-based Compensation Expense, Remainder of Current Year",
        "terseLabel": "2018"
       }
      }
     },
     "localname": "FutureShareBasedCompensationExpenseRemainderOfCurrentYear",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/StockBasedCompensationStockBasedCompensationExpenseDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_FutureShareBasedCompensationExpenseYearFour": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/StockBasedCompensationStockBasedCompensationExpenseDetails": {
       "order": 5.0,
       "parentTag": "us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Future Share-based Compensation Expense, Year Four",
        "label": "Future Share-based Compensation Expense, Year Four",
        "terseLabel": "2022"
       }
      }
     },
     "localname": "FutureShareBasedCompensationExpenseYearFour",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/StockBasedCompensationStockBasedCompensationExpenseDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_FutureShareBasedCompensationExpenseYearOne": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/StockBasedCompensationStockBasedCompensationExpenseDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Future Share-based Compensation Expense, Year One",
        "label": "Future Share-based Compensation Expense, Year One",
        "terseLabel": "2019"
       }
      }
     },
     "localname": "FutureShareBasedCompensationExpenseYearOne",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/StockBasedCompensationStockBasedCompensationExpenseDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_FutureShareBasedCompensationExpenseYearThree": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/StockBasedCompensationStockBasedCompensationExpenseDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Future Share-based Compensation Expense, Year Three",
        "label": "Future Share-based Compensation Expense, Year Three",
        "terseLabel": "2021"
       }
      }
     },
     "localname": "FutureShareBasedCompensationExpenseYearThree",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/StockBasedCompensationStockBasedCompensationExpenseDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_FutureShareBasedCompensationExpenseYearTwo": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/StockBasedCompensationStockBasedCompensationExpenseDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Future Share-based Compensation Expense, Year Two",
        "label": "Future Share-based Compensation Expense, Year Two",
        "terseLabel": "2020"
       }
      }
     },
     "localname": "FutureShareBasedCompensationExpenseYearTwo",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/StockBasedCompensationStockBasedCompensationExpenseDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_GeneralObligationsMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "General Obligations [Member]",
        "label": "General Obligations [Member]",
        "terseLabel": "General obligations:"
       }
      }
     },
     "localname": "GeneralObligationsMember",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ufcs_GoodwillAndIntangibleAssets": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets": {
       "order": 10.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Goodwill and intangible assets",
        "label": "Goodwill and intangible assets",
        "terseLabel": "Goodwill and intangible assets"
       }
      }
     },
     "localname": "GoodwillAndIntangibleAssets",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_IncreaseDecreaseInAccruedExpensesAndOtherLiabilities": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 15.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Increase (Decrease) in Accrued expenses and other liabilities.",
        "label": "Increase (Decrease) In Accrued Expenses And Other Liabilities",
        "terseLabel": "Accrued expenses and other liabilities"
       }
      }
     },
     "localname": "IncreaseDecreaseInAccruedExpensesAndOtherLiabilities",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_IncreaseDecreaseInDeferredPolicyAcquisitionCostAndValueOfBusinessAcquired": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 8.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Increase (Decrease) in Deferred Policy Acquisition Cost and Value of Business Acquired",
        "label": "Increase Decrease in Deferred Policy Acquisition Cost and Value of Business Acquired",
        "negatedLabel": "Deferred policy acquisition costs"
       }
      }
     },
     "localname": "IncreaseDecreaseInDeferredPolicyAcquisitionCostAndValueOfBusinessAcquired",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_IndustrialMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Industrial [Member]",
        "label": "Industrial [Member]",
        "terseLabel": "Industrials"
       }
      }
     },
     "localname": "IndustrialMember",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ufcs_LiabilityForAnnuityAccumulationsFairValueDisclosure": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Liability For Annuity Accumulations, Fair Value Disclosure",
        "label": "Liability For Annuity Accumulations, Fair Value Disclosure",
        "terseLabel": "Annuity (accumulations)"
       }
      }
     },
     "localname": "LiabilityForAnnuityAccumulationsFairValueDisclosure",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueAndEstimatedFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_LiabilityForAnnuityBenefitPaymentsFairValueDisclosure": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Liability for Annuity Benefit Payments, Fair Value Disclosure",
        "label": "Liability for Annuity Benefit Payments, Fair Value Disclosure",
        "terseLabel": "Annuity (benefit payments)"
       }
      }
     },
     "localname": "LiabilityForAnnuityBenefitPaymentsFairValueDisclosure",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueAndEstimatedFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseCededLossAndLossSettlementExpense": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ReservesForLossesAndLossSettlementExpensesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseNet",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Liability for Unpaid Claims and Claims Adjustment Expense, Ceded Loss and Loss Settlement Expense",
        "label": "Liability for Unpaid Claims and Claims Adjustment Expense, Ceded Loss and Loss Settlement Expense",
        "negatedPeriodStartLabel": "Ceded losses and loss settlement expenses",
        "periodEndLabel": "Ceded loss and loss settlement expenses"
       }
      }
     },
     "localname": "LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseCededLossAndLossSettlementExpense",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ReservesForLossesAndLossSettlementExpensesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_LtvLessThan65PercentMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Ltv Less Than 65 Percent [Member]",
        "label": "Ltv Less Than 65 Percent [Member]",
        "terseLabel": "Less than 65%"
       }
      }
     },
     "localname": "LtvLessThan65PercentMember",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueOfCommercialMortgageLoansAndAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ufcs_MidwestMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Midwest [Member]",
        "label": "Midwest [Member]",
        "terseLabel": "Midwest"
       }
      }
     },
     "localname": "MidwestMember",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ufcs_NortheastMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Northeast [Member]",
        "label": "Northeast [Member]",
        "terseLabel": "Northeast"
       }
      }
     },
     "localname": "NortheastMember",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ufcs_NumberOfBusinessLocations": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Number of Business Locations",
        "label": "Number of Business Locations",
        "terseLabel": "Number of domestic locations"
       }
      }
     },
     "localname": "NumberOfBusinessLocations",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SegmentInformationDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "ufcs_OperatingLeasesFutureMinimumPaymentsDueAsAPercentageOfTotalAssets": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Operating Leases, Future Minimum Payments Due As A Percentage Of Total Assets",
        "label": "Operating Leases, Future Minimum Payments Due As A Percentage Of Total Assets",
        "terseLabel": "Future minimum payments due as a percentage of total assets (less than)"
       }
      }
     },
     "localname": "OperatingLeasesFutureMinimumPaymentsDueAsAPercentageOfTotalAssets",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationNarrativeDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "ufcs_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentSecuritiesSoldNetOfTaxPortionAttributableToParent": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Other Comprehensive Income (Loss), Available-For-Sale Securities Adjustment, Securities Sold, Net Of Tax, Portion Attributable To Parent",
        "label": "Other Comprehensive Income (Loss), Available-For-Sale Securities Adjustment, Securities Sold, Net Of Tax, Portion Attributable To Parent",
        "verboseLabel": "Net unrealized investment depreciation of discontinued operations, sold"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentSecuritiesSoldNetOfTaxPortionAttributableToParent",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsUnrealizedAppreciationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_OtherLongTermInvestmentsFairValueDisclosure": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Other Long-term Investments, Fair Value Disclosure",
        "label": "Other Long-term Investments, Fair Value Disclosure",
        "terseLabel": "Other long-term investments"
       }
      }
     },
     "localname": "OtherLongTermInvestmentsFairValueDisclosure",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueAndEstimatedFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_PaymentsToAcquireShortTermAndOtherInvestments": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 4.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Payments to Acquire Short-term and Other Investments.",
        "label": "Payments to Acquire Short term and Other Investments",
        "negatedLabel": "Purchase of short-term and other investments"
       }
      }
     },
     "localname": "PaymentsToAcquireShortTermAndOtherInvestments",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_PolicyLoanFairValueDisclosure": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Policy Loan, Fair Value Disclosure",
        "label": "Policy Loan, Fair Value Disclosure",
        "terseLabel": "Policy loans"
       }
      }
     },
     "localname": "PolicyLoanFairValueDisclosure",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueAndEstimatedFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_ProceedsFromDivestitureOfBusinessesGross": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Proceeds From Divestiture Of Businesses, Gross",
        "label": "Proceeds From Divestiture Of Businesses, Gross",
        "terseLabel": "Proceeds from disposal of subsidiary"
       }
      }
     },
     "localname": "ProceedsFromDivestitureOfBusinessesGross",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_PropertyTypeConcentrationRiskMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Property Type Concentration Risk [Member]",
        "label": "Property Type Concentration Risk [Member]",
        "terseLabel": "Mortgage Loans by Property Type"
       }
      }
     },
     "localname": "PropertyTypeConcentrationRiskMember",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueOfCommercialMortgageLoansAndAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ufcs_RabbiTrustMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Rabbi Trust [Member]",
        "label": "Rabbi Trust [Member]",
        "terseLabel": "Rabbi Trust"
       }
      }
     },
     "localname": "RabbiTrustMember",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ufcs_SaleofHeldtomaturitySecurities": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Sale of Held-to-maturity Securities",
        "label": "Sale of Held-to-maturity Securities",
        "terseLabel": "Sale of held-to-maturity securities"
       }
      }
     },
     "localname": "SaleofHeldtomaturitySecurities",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_ScheduleOfDeferredPolicyAcquisitionCostsTable": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Schedule of Deferred Policy Acquisition Costs [Table]",
        "label": "Schedule of Deferred Policy Acquisition Costs [Table]",
        "terseLabel": "Schedule of Deferred Policy Acquisition Costs [Table]"
       }
      }
     },
     "localname": "ScheduleOfDeferredPolicyAcquisitionCostsTable",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationDeferredPolicyAcquisitionCostsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "ufcs_ScheduleOfDeferredPolicyAcquisitionCostsTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Schedule of Deferred Policy Acquisition Costs [Table Text Block]",
        "label": "Schedule of Deferred Policy Acquisition Costs [Table Text Block]",
        "terseLabel": "Components of Deferred Acquisition Costs"
       }
      }
     },
     "localname": "ScheduleOfDeferredPolicyAcquisitionCostsTableTextBlock",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "ufcs_ScheduleOfMarketableSecuritiesLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Schedule of Marketable Securities [Line Items]",
        "label": "Schedule of Marketable Securities [Line Items]",
        "terseLabel": "Reconciliation of the Amortized Costs to Fair Value [Line Items]"
       }
      }
     },
     "localname": "ScheduleOfMarketableSecuritiesLineItems",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "ufcs_ScheduleOfMarketableSecuritiesTable": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Schedule of Marketable Securities [Table]",
        "label": "Schedule of Marketable Securities [Table]",
        "terseLabel": "Schedule of Marketable Securities [Table]"
       }
      }
     },
     "localname": "ScheduleOfMarketableSecuritiesTable",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "ufcs_ShareBasedCompensationArrangementByShareBasedPaymentAwardAvailableForGrantRollForward": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Share-based Compensation Arrangement by Share-based Payment Award Available for Grant [Roll Forward]",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award Available for Grant [Roll Forward]",
        "terseLabel": "Authorized Shares Available for Future Award Grants"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardAvailableForGrantRollForward",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/StockBasedCompensationActivityInStockPlanDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "ufcs_ShareBasedCompensationArrangementByShareBasedPaymentAwardForfeituresAndExpirationInPeriod": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Number of share-based compensation awards forfeited or expired in Period",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Forfeitures and Expiration in Period",
        "terseLabel": "Number of awards forfeited or expired (in shares)"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardForfeituresAndExpirationInPeriod",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/StockBasedCompensationActivityInStockPlanDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "ufcs_ShareBasedCompensationArrangementByShareBasedPaymentAwardGrantsInPeriodGross": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Share-based Compensation Arrangement by Share-based Payment Award, Grants in Period, Gross",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Grants in Period, Gross",
        "negatedLabel": "Number of awards granted (in shares)"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardGrantsInPeriodGross",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/StockBasedCompensationActivityInStockPlanDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "ufcs_ShortTermInvestmentsFairValueDisclosure": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_AssetsFairValueDisclosure",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Short-term Investments, Fair Value Disclosure",
        "label": "Short-term Investments, Fair Value Disclosure",
        "terseLabel": "Short-term investments",
        "verboseLabel": "Short-Term Investments"
       }
      }
     },
     "localname": "ShortTermInvestmentsFairValueDisclosure",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueAndEstimatedFairValueDetails",
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_SouthMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "South [Member]",
        "label": "South [Member]",
        "terseLabel": "South"
       }
      }
     },
     "localname": "SouthMember",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ufcs_SouthernAtlanticMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Southern Atlantic [Member]",
        "label": "Southern Atlantic [Member]",
        "terseLabel": "Southern Atlantic"
       }
      }
     },
     "localname": "SouthernAtlanticMember",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueOfCommercialMortgageLoansAndAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ufcs_SpecialRevenueMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Special Revenue [Member]",
        "label": "Special Revenue [Member]",
        "terseLabel": "Special revenue:"
       }
      }
     },
     "localname": "SpecialRevenueMember",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ufcs_SwingLineOfCreditMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Swing Line of Credit [Member]",
        "label": "Swing Line of Credit [Member]",
        "terseLabel": "Swing Line of Credit"
       }
      }
     },
     "localname": "SwingLineOfCreditMember",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/CreditFacilityDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ufcs_TechnologyMediaAndTelecommunicationsMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Technology, Media and Telecommunications [Member]",
        "label": "Technology, Media and Telecommunications [Member]",
        "terseLabel": "Technology, media and telecommunications"
       }
      }
     },
     "localname": "TechnologyMediaAndTelecommunicationsMember",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ufcs_TradingAccountAssetsChangeInFairValueMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Trading Account Assets, Change in Fair Value [Member]",
        "label": "Trading Account Assets, Change in Fair Value [Member]",
        "terseLabel": "Change in fair value"
       }
      }
     },
     "localname": "TradingAccountAssetsChangeInFairValueMember",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsNetRealizedInvestmentGainsAndLossesAndProceedsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ufcs_TradingAccountAssetsSalesMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Trading Account Assets, Sales [Member]",
        "label": "Trading Account Assets, Sales [Member]",
        "terseLabel": "Sales"
       }
      }
     },
     "localname": "TradingAccountAssetsSalesMember",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsNetRealizedInvestmentGainsAndLossesAndProceedsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ufcs_TradingSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCostBasis": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_TradingSecuritiesDebtAmortizedCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Trading Securities, Debt Maturities, after Five Through Ten Years, Amortized Cost Basis",
        "label": "Trading Securities, Debt Maturities, after Five Through Ten Years, Amortized Cost Basis",
        "terseLabel": "Due after five years through 10 years"
       }
      }
     },
     "localname": "TradingSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCostBasis",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_TradingSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_TradingSecuritiesDebt",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Trading Securities, Debt Maturities, after Five Through Ten Years, Fair Value",
        "label": "Trading Securities, Debt Maturities, after Five Through Ten Years, Fair Value",
        "terseLabel": "Due after five years through 10 years"
       }
      }
     },
     "localname": "TradingSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_TradingSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCostBasis": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_TradingSecuritiesDebtAmortizedCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Trading Securities, Debt Maturities, after One Through Five Years, Amortized Cost Basis",
        "label": "Trading Securities, Debt Maturities, after One Through Five Years, Amortized Cost Basis",
        "terseLabel": "Due after one year through five years"
       }
      }
     },
     "localname": "TradingSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCostBasis",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_TradingSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_TradingSecuritiesDebt",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Trading Securities, Debt Maturities, after One Through Five Years, Fair Value",
        "label": "Trading Securities, Debt Maturities, after One Through Five Years, Fair Value",
        "terseLabel": "Due after one year through five years"
       }
      }
     },
     "localname": "TradingSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_TradingSecuritiesDebtMaturitiesAfterTenYearsAmortizedCostBasis": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_TradingSecuritiesDebtAmortizedCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Trading Securities, Debt Maturities, after Ten Years, Amortized Cost Basis",
        "label": "Trading Securities, Debt Maturities, after Ten Years, Amortized Cost Basis",
        "terseLabel": "Due after 10 years"
       }
      }
     },
     "localname": "TradingSecuritiesDebtMaturitiesAfterTenYearsAmortizedCostBasis",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_TradingSecuritiesDebtMaturitiesAfterTenYearsFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_TradingSecuritiesDebt",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Trading Securities, Debt Maturities, after Ten Years, Fair Value",
        "label": "Trading Securities, Debt Maturities, after Ten Years, Fair Value",
        "terseLabel": "Due after 10 years"
       }
      }
     },
     "localname": "TradingSecuritiesDebtMaturitiesAfterTenYearsFairValue",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_TradingSecuritiesDebtMaturitiesAmortizedCostBasisFiscalYearMaturityAbstractRollForward": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Trading Securities, Debt Maturities, Amortized Cost Basis, Fiscal Year Maturity [Abstract]",
        "label": "Trading Securities, Debt Maturities, Amortized Cost Basis, Fiscal Year Maturity [Abstract] [Roll Forward]",
        "terseLabel": "Trading, Amortized Cost"
       }
      }
     },
     "localname": "TradingSecuritiesDebtMaturitiesAmortizedCostBasisFiscalYearMaturityAbstractRollForward",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "ufcs_TradingSecuritiesDebtMaturitiesFairValueFiscalYearMaturityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Trading Securities, Debt Maturities, Fair Value, Fiscal Year Maturity [Abstract]",
        "label": "Trading Securities, Debt Maturities, Fair Value, Fiscal Year Maturity [Abstract]",
        "terseLabel": "Trading, Fair Value"
       }
      }
     },
     "localname": "TradingSecuritiesDebtMaturitiesFairValueFiscalYearMaturityAbstract",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "ufcs_TradingSecuritiesDebtMaturitiesWithinOneYearAmortizedCostBasis": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_TradingSecuritiesDebtAmortizedCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Trading Securities, Debt Maturities, within One Year, Amortized Cost Basis",
        "label": "Trading Securities, Debt Maturities, within One Year, Amortized Cost Basis",
        "terseLabel": "Due in one year or less"
       }
      }
     },
     "localname": "TradingSecuritiesDebtMaturitiesWithinOneYearAmortizedCostBasis",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_TradingSecuritiesDebtMaturitiesWithinOneYearFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_TradingSecuritiesDebt",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Trading Securities, Debt Maturities, within One Year, Fair Value",
        "label": "Trading Securities, Debt Maturities, within One Year, Fair Value",
        "terseLabel": "Due in one year or less"
       }
      }
     },
     "localname": "TradingSecuritiesDebtMaturitiesWithinOneYearFairValue",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ufcs_UnitedLifeInsuranceCompanyMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "United Life Insurance Company [Member]",
        "label": "United Life Insurance Company [Member]",
        "terseLabel": "United Life"
       }
      }
     },
     "localname": "UnitedLifeInsuranceCompanyMember",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsBalanceSheetsDetails",
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsNarrativeDetails",
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsStatementsOfIncomeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ufcs_UnrestrictedStockAwardsMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Unrestricted Stock Awards [Member]",
        "label": "Unrestricted Stock Awards [Member]",
        "terseLabel": "Unrestricted Stock Awards"
       }
      }
     },
     "localname": "UnrestrictedStockAwardsMember",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/StockBasedCompensationActivityInStockPlanDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ufcs_WestMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "West [Member]",
        "label": "West [Member]",
        "terseLabel": "West"
       }
      }
     },
     "localname": "WestMember",
     "nsuri": "http://www.unitedfiregroup.com/20180930",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AccountingStandardsUpdate201601Member": {
     "auth_ref": [
      "r299"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Accounting Standards Update 2016-01 Financial Instruments-Overall (Subtopic 825-10): Recognition and Measurement of Financial Assets and Financial Liabilities.",
        "label": "Accounting Standards Update 2016-01 [Member]",
        "terseLabel": "Accounting Standards Update 2016-01"
       }
      }
     },
     "localname": "AccountingStandardsUpdate201601Member",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments": {
     "auth_ref": [
      "r103"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 1.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The sum of the periodic adjustments of the differences between securities' face values and purchase prices that are charged against earnings. This is called accretion if the security was purchased at a discount and amortization if it was purchased at premium. As a noncash item, this element is an adjustment to net income when calculating cash provided by or used in operations using the indirect method.",
        "label": "Accretion (Amortization) of Discounts and Premiums, Investments",
        "negatedLabel": "Net accretion of bond premium"
       }
      }
     },
     "localname": "AccretionAmortizationOfDiscountsAndPremiumsInvestments",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccruedInvestmentIncomeReceivable": {
     "auth_ref": [
      "r46",
      "r311",
      "r347"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets": {
       "order": 3.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Interest, dividends, rents, ancillary and other revenues earned but not yet received by the entity on its investments.",
        "label": "Accrued Investment Income Receivable",
        "terseLabel": "Accrued investment income"
       }
      }
     },
     "localname": "AccruedInvestmentIncomeReceivable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccumulatedDefinedBenefitPlansAdjustmentMember": {
     "auth_ref": [
      "r63",
      "r69",
      "r72",
      "r222",
      "r275"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Accumulated other comprehensive (income) loss related to defined benefit plans attributable to the parent.",
        "label": "Accumulated Defined Benefit Plans Adjustment Attributable to Parent [Member]",
        "terseLabel": "Liability for underfunded employee benefit costs"
       }
      }
     },
     "localname": "AccumulatedDefinedBenefitPlansAdjustmentMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/AccumulatedOtherComprehensiveIncomeLossDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment": {
     "auth_ref": [
      "r55",
      "r190"
     ],
     "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": "Property and equipment accumulated depreciation"
       }
      }
     },
     "localname": "AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheetsParentheticals"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccumulatedNetUnrealizedInvestmentGainLossMember": {
     "auth_ref": [
      "r60",
      "r61",
      "r62",
      "r69",
      "r72"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Accumulated 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), attributable to parent.",
        "label": "Accumulated Net Investment Gain (Loss) Attributable to Parent [Member]",
        "terseLabel": "Net unrealized appreciation on investments"
       }
      }
     },
     "localname": "AccumulatedNetUnrealizedInvestmentGainLossMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/AccumulatedOtherComprehensiveIncomeLossDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems": {
     "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": "Accumulated Other Comprehensive Income (Loss) [Line Items]",
        "terseLabel": "Accumulated Other Comprehensive Income (Loss) [Line Items]"
       }
      }
     },
     "localname": "AccumulatedOtherComprehensiveIncomeLossLineItems",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/AccumulatedOtherComprehensiveIncomeLossDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax": {
     "auth_ref": [
      "r66",
      "r68",
      "r69"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets": {
       "order": 4.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 (loss), net of tax"
       }
      }
     },
     "localname": "AccumulatedOtherComprehensiveIncomeLossNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets",
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeLossTable": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of information about components of accumulated other comprehensive income (loss).",
        "label": "Accumulated Other Comprehensive Income (Loss) [Table]",
        "terseLabel": "Accumulated Other Comprehensive Income (Loss) [Table]"
       }
      }
     },
     "localname": "AccumulatedOtherComprehensiveIncomeLossTable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/AccumulatedOtherComprehensiveIncomeLossDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeMember": {
     "auth_ref": [
      "r65",
      "r69",
      "r72",
      "r275"
     ],
     "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": "AOCI Attributable to Parent [Member]",
        "terseLabel": "Accumulated other comprehensive income (loss), net of tax",
        "verboseLabel": "Total"
       }
      }
     },
     "localname": "AccumulatedOtherComprehensiveIncomeMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/AccumulatedOtherComprehensiveIncomeLossDetails",
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementOfStockholdersEquityUnaudited"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AdditionalPaidInCapitalCommonStock": {
     "auth_ref": [
      "r47"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets": {
       "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/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AdditionalPaidInCapitalMember": {
     "auth_ref": [],
     "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 [Member]",
        "terseLabel": "Additional paid-in capital"
       }
      }
     },
     "localname": "AdditionalPaidInCapitalMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementOfStockholdersEquityUnaudited"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AdjustmentsForNewAccountingPronouncementsAxis": {
     "auth_ref": [
      "r114"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by new accounting pronouncement.",
        "label": "Adjustments for New Accounting Pronouncements [Axis]",
        "terseLabel": "Adjustments for New Accounting Pronouncements [Axis]"
       }
      }
     },
     "localname": "AdjustmentsForNewAccountingPronouncementsAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue": {
     "auth_ref": [
      "r237",
      "r239",
      "r252",
      "r253"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of increase to additional paid-in capital (APIC) from recognition of equity-based compensation.",
        "label": "Adjustments to Additional Paid in Capital, Share-based Compensation, Requisite Service Period Recognition",
        "terseLabel": "Compensation expense and related tax benefit for stock-based award grants"
       }
      }
     },
     "localname": "AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementOfStockholdersEquityUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities": {
     "auth_ref": [
      "r103"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 3.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The sum of adjustments which are added to or deducted from net income or loss, including the portion attributable to noncontrolling interest, to reflect cash provided by or used in operating activities, in accordance with the indirect cash flow method.",
        "label": "Adjustments to Reconcile Net Income (Loss) to Cash Provided by (Used in) Operating Activities",
        "totalLabel": "Total adjustments"
       }
      }
     },
     "localname": "AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "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/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AllocatedShareBasedCompensationExpense": {
     "auth_ref": [
      "r239",
      "r248",
      "r251"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents the expense recognized during the period arising from equity-based compensation arrangements (for example, shares of stock, unit, stock options or other equity instruments) with employees, directors and certain consultants qualifying for treatment as employees.",
        "label": "Allocated Share-based Compensation Expense",
        "terseLabel": "Stock-based compensation expense"
       }
      }
     },
     "localname": "AllocatedShareBasedCompensationExpense",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount": {
     "auth_ref": [
      "r125"
     ],
     "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": "Awards excluded from diluted earnings per share calculation (in shares)"
       }
      }
     },
     "localname": "AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/EarningsPerCommonShareDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_AssetBackedSecuritiesMember": {
     "auth_ref": [
      "r179",
      "r213"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Securities that are primarily serviced by the cash flows of a discrete pool of receivables or other financial assets for example, but not limited to, credit card receivables, car loans, recreational vehicle loans, and mobile home loans.",
        "label": "Asset-backed Securities [Member]",
        "terseLabel": "Asset-backed securities"
       }
      }
     },
     "localname": "AssetBackedSecuritiesMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails",
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsLevel3SecuritiesDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_Assets": {
     "auth_ref": [
      "r149",
      "r312",
      "r343"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets": {
       "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/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Assets [Abstract]",
        "terseLabel": "ASSETS",
        "verboseLabel": "Assets"
       }
      }
     },
     "localname": "AssetsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets",
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueAndEstimatedFairValueDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AssetsFairValueDisclosure": {
     "auth_ref": [
      "r281"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value portion of probable future economic benefits obtained or controlled by an entity as a result of past transactions or events.",
        "label": "Assets, Fair Value Disclosure",
        "totalLabel": "Total Assets Measured at Fair Value"
       }
      }
     },
     "localname": "AssetsFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperation": {
     "auth_ref": [
      "r1",
      "r2",
      "r25",
      "r27",
      "r192"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets": {
       "order": 12.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      },
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsBalanceSheetsDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount classified as assets attributable to disposal group held for sale or disposed of.",
        "label": "Disposal Group, Including Discontinued Operation, Assets",
        "terseLabel": "Assets held for sale",
        "totalLabel": "Total assets held for sale"
       }
      }
     },
     "localname": "AssetsOfDisposalGroupIncludingDiscontinuedOperation",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets",
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsBalanceSheetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperationAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Disposal Group, Including Discontinued Operation, Assets [Abstract]",
        "terseLabel": "Assets"
       }
      }
     },
     "localname": "AssetsOfDisposalGroupIncludingDiscontinuedOperationAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsBalanceSheetsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax": {
     "auth_ref": [
      "r167"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_AvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainBeforeTax",
       "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": "Debt Securities, Available-for-sale, Accumulated Gross Unrealized Gain, before Tax",
        "terseLabel": "Gross Unrealized Appreciation"
       }
      }
     },
     "localname": "AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax": {
     "auth_ref": [
      "r168"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis",
       "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": "Debt Securities, Available-for-sale, Accumulated Gross Unrealized Loss, before Tax",
        "terseLabel": "Gross Unrealized Depreciation"
       }
      }
     },
     "localname": "AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis": {
     "auth_ref": [
      "r165"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "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).",
        "label": "Debt Securities, Available-for-sale, Amortized Cost",
        "terseLabel": "Fixed maturities, available-for-sale securities, amortized cost",
        "totalLabel": "Amortized Cost"
       }
      }
     },
     "localname": "AvailableForSaleDebtSecuritiesAmortizedCostBasis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheetsParentheticals",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleEquitySecuritiesAccumulatedGrossUnrealizedGainBeforeTax": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_AvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainBeforeTax",
       "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 classified as available-for-sale.",
        "label": "Available-for-sale Equity Securities, Accumulated Gross Unrealized Gain, before Tax",
        "terseLabel": "Gross Unrealized Appreciation"
       }
      }
     },
     "localname": "AvailableForSaleEquitySecuritiesAccumulatedGrossUnrealizedGainBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleEquitySecuritiesAccumulatedGrossUnrealizedLossBeforeTax": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_AvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossBeforeTax",
       "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 classified as available-for-sale.",
        "label": "Available-for-sale Equity Securities, Accumulated Gross Unrealized Loss, before Tax",
        "terseLabel": "Gross Unrealized Depreciation"
       }
      }
     },
     "localname": "AvailableForSaleEquitySecuritiesAccumulatedGrossUnrealizedLossBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleEquitySecuritiesAmortizedCostBasis": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "This item represents the cost of equity securities, which are categorized neither as held-to-maturity nor trading, net of adjustments for other-than-temporary impairments recognized in earnings (less any cumulative-effect adjustments recognized, as defined), and fair value hedge accounting adjustments, if any.",
        "label": "Available-for-sale Equity Securities, Amortized Cost Basis",
        "totalLabel": "Cost or Amortized Cost"
       }
      }
     },
     "localname": "AvailableForSaleEquitySecuritiesAmortizedCostBasis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecurities": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails": {
       "order": 7.0,
       "parentTag": "us-gaap_AssetsFairValueDisclosure",
       "weight": 1.0
      },
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_AvailableForSaleSecuritiesAmortizedCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of investment in debt and equity securities categorized neither as held-to-maturity nor trading.",
        "label": "Available-for-sale Securities",
        "totalLabel": "Available-for-sale securities, fair value"
       }
      }
     },
     "localname": "AvailableForSaleSecurities",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Debt Securities, Available-for-sale [Abstract]",
        "terseLabel": "Debt Securities, Available-for-sale [Abstract]",
        "verboseLabel": "AVAILABLE-FOR-SALE"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsNetRealizedInvestmentGainsAndLossesAndProceedsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainBeforeTax": {
     "auth_ref": [
      "r167"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_AvailableForSaleSecuritiesAmortizedCost",
       "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 debt and equity securities classified as available-for-sale.",
        "label": "Available-for-sale Securities, Accumulated Gross Unrealized Gain, before Tax",
        "totalLabel": "Gross Unrealized Appreciation"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossBeforeTax": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_AvailableForSaleSecuritiesAmortizedCost",
       "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 debt and equity securities classified as available-for-sale.",
        "label": "Available-for-sale Securities, Accumulated Gross Unrealized Loss, before Tax",
        "totalLabel": "Gross Unrealized Depreciation"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesAmortizedCost": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "This item represents the cost of debt and equity securities, which are categorized neither as held-to-maturity nor trading, net of adjustments including accretion, amortization, collection of cash, previous other-than-temporary impairments recognized in earnings (less any cumulative-effect adjustments recognized, as defined), and fair value hedge accounting adjustments, if any.",
        "label": "Available-for-sale Securities, Amortized Cost Basis",
        "totalLabel": "Cost or Amortized Cost"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesAmortizedCost",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLoss",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of accumulated unrealized loss on investments in debt and equity securities classified as available-for-sale that have been in a continuous loss position for twelve months or longer.",
        "label": "Available-for-sale Securities, Continuous Unrealized Loss Position, 12 Months or Longer, Accumulated Loss",
        "terseLabel": "12 months or longer"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Available-for-sale Securities, Continuous Unrealized Loss Position [Abstract]",
        "terseLabel": "AVAILABLE-FOR-SALE"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLoss": {
     "auth_ref": [
      "r183"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of accumulated unrealized loss on investments in debt and equity securities classified as available-for-sale in a continuous loss position.",
        "label": "Available-for-sale Securities, Continuous Unrealized Loss Position, Accumulated Loss",
        "totalLabel": "Total"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLoss",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Debt Securities, Available-for-sale, Unrealized Loss Position, Accumulated Loss [Abstract]",
        "terseLabel": "Gross Unrealized Depreciation"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "This item represents the aggregate fair value of investments in debt and equity securities in an unrealized loss position which are categorized neither as held-to-maturity nor trading securities.",
        "label": "Available-for-sale Securities, Continuous Unrealized Loss Position, Fair Value",
        "totalLabel": "Total"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValue",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValueAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Debt Securities, Available-for-sale, Unrealized Loss Position [Abstract]",
        "terseLabel": "Fair Value"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValueAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLoss",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of accumulated unrealized loss on investments in debt and equity securities classified as available-for-sale that have been in a continuous loss position for less than twelve months.",
        "label": "Available-for-sale Securities, Continuous Unrealized Loss Position, Less than 12 Months, Accumulated Loss",
        "terseLabel": "Less than 12 months"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValue",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "This item represents the aggregate fair value of investments in debt and equity securities categorized neither as held-to-maturity nor trading securities that have been in a continuous unrealized loss position for less than twelve months.",
        "label": "Available-for-sale Securities, Continuous Unrealized Loss Position, Less than Twelve Months, Fair Value",
        "terseLabel": "Less than 12 months"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValue",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "This item represents the aggregate fair value of investments in debt and equity securities categorized neither as held-to-maturity nor trading securities that have been in a continuous unrealized loss position for twelve months or longer.",
        "label": "Available-for-sale Securities, Continuous Unrealized Loss Position, Twelve Months or Longer, Fair Value",
        "terseLabel": "12 months or longer"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost": {
     "auth_ref": [
      "r172"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis",
       "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 fiscal year through tenth fiscal year following latest fiscal year. Excludes interim and annual periods when interim period is reported on rolling approach, from latest statement of financial position date.",
        "label": "Debt Securities, Available-for-sale, Maturity, Allocated and Single Maturity Date, after Five Through Ten Years, Amortized Cost",
        "terseLabel": "Due after five years through 10 years"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue": {
     "auth_ref": [
      "r169",
      "r172",
      "r329"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_AvailableForSaleSecuritiesDebtSecurities",
       "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 latest fiscal year. Excludes interim and annual periods when interim period is reported on rolling approach, from latest statement of financial position date.",
        "label": "Debt Securities, Available-for-sale, Maturity, Allocated and Single Maturity Date, after Five Through Ten Years, Fair Value",
        "terseLabel": "Due after five years through 10 years"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost": {
     "auth_ref": [
      "r171"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis",
       "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 latest fiscal year. Excludes interim and annual periods when interim period is reported on rolling approach, from latest statement of financial position date.",
        "label": "Debt Securities, Available-for-sale, Maturity, Allocated and Single Maturity Date, after One Through Five Years, Amortized Cost",
        "terseLabel": "Due after one year through five years"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue": {
     "auth_ref": [
      "r169",
      "r171",
      "r328"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_AvailableForSaleSecuritiesDebtSecurities",
       "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 latest fiscal year. Excludes interim and annual periods when interim period is reported on rolling approach, from latest statement of financial position date.",
        "label": "Debt Securities, Available-for-sale, Maturity, Allocated and Single Maturity Date, after One Through Five Years, Fair Value",
        "terseLabel": "Due after one year through five years"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost": {
     "auth_ref": [
      "r173"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis",
       "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 latest fiscal year. Excludes interim and annual periods when interim period is reported on rolling approach, from latest statement of financial position date.",
        "label": "Debt Securities, Available-for-sale, Allocated and Single Maturity Date, Maturity, after 10 Years, Amortized Cost",
        "terseLabel": "Due after 10 years"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue": {
     "auth_ref": [
      "r169",
      "r173",
      "r330"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_AvailableForSaleSecuritiesDebtSecurities",
       "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 after tenth fiscal year following latest fiscal year. Excludes interim and annual periods when interim period is reported on rolling approach, from latest statement of financial position date.",
        "label": "Debt Securities, Available-for-sale, Maturity, Allocated and Single Maturity Date, after 10 Years, Fair Value",
        "terseLabel": "Due after 10 years"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAmortizedCostAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Debt Securities, Available-for-sale, Amortized Cost, Fiscal Year Maturity [Abstract]",
        "terseLabel": "Available-For-Sale, Amortized Cost"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAmortizedCostAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesFairValueAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Debt Securities, Available-for-sale, Fair Value, Fiscal Year Maturity [Abstract]",
        "terseLabel": "Available-For-Sale, Fair Value"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesFairValueAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost": {
     "auth_ref": [
      "r170"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amortized cost of investment in debt security measured at fair value with change recognized in other comprehensive income (available-for-sale), with single maturity date and allocated without single maturity date, maturing in next fiscal year following latest fiscal year. Excludes interim and annual periods when interim period is reported on rolling approach, from latest statement of financial position date.",
        "label": "Debt Securities, Available-for-sale, Maturity, Allocated and Single Maturity Date, within One Year, Amortized Cost",
        "terseLabel": "Due in one year or less"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue": {
     "auth_ref": [
      "r169",
      "r170",
      "r327"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_AvailableForSaleSecuritiesDebtSecurities",
       "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), maturing in next fiscal year following latest fiscal year. Excludes interim and annual periods when interim period is reported on rolling approach, from latest statement of financial position date.",
        "label": "Debt Securities, Available-for-sale, Maturity, Allocated and Single Maturity Date, within One Year, Fair Value",
        "terseLabel": "Due in one year or less"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateAmortizedCost": {
     "auth_ref": [
      "r174"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails": {
       "order": 5.0,
       "parentTag": "us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis",
       "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": "Debt Securities, Available-for-sale, Maturity, without Single Maturity Date, Amortized Cost",
        "terseLabel": "Securities not categorized by contractual maturity"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateAmortizedCost",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateFairValue": {
     "auth_ref": [
      "r174"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails": {
       "order": 5.0,
       "parentTag": "us-gaap_AvailableForSaleSecuritiesDebtSecurities",
       "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": "Debt Securities, Available-for-sale, Maturity, without Single Maturity Date, Fair Value",
        "terseLabel": "Securities not categorized by contractual maturity"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateFairValue",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtSecurities": {
     "auth_ref": [
      "r161",
      "r166"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets": {
       "order": 2.0,
       "parentTag": "us-gaap_Investments",
       "weight": 1.0
      },
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails": {
       "order": 6.0,
       "parentTag": "us-gaap_AssetsFairValueDisclosure",
       "weight": 1.0
      },
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis",
       "weight": 1.0
      },
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "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).",
        "label": "Debt Securities, Available-for-sale",
        "netLabel": "Fair Value",
        "terseLabel": "Available-for-sale, at fair value (amortized cost $1,764,380 in 2018 and $1,516,610 in 2017)",
        "totalLabel": "Fair Value",
        "verboseLabel": "Available-for-sale, debt securities"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtSecurities",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets",
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueAndEstimatedFairValueDetails",
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesEquitySecurities": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_AvailableForSaleEquitySecuritiesAmortizedCostBasis",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of equity securities categorized neither as held-to-maturity nor as trading.",
        "label": "Available-for-sale Securities, Equity Securities",
        "terseLabel": "Fair Value",
        "verboseLabel": "Available-for-sale, equity securities"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesEquitySecurities",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueAndEstimatedFairValueDetails",
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesFairValueToAmortizedCostBasisAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Debt Securities, Available-for-sale, Fair Value to Amortized Cost [Abstract]",
        "verboseLabel": "Fixed maturities:"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesFairValueToAmortizedCostBasisAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositionsLessThanOneYear": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Number of investment positions in available-for-sale investments in a continuous unrealized loss position for less than one year or normal operating cycle, if longer, for which an other-than-temporary impairment (OTTI) has not been recognized in the income statement.",
        "label": "Available-for-sale, Securities in Unrealized Loss Positions, Qualitative Disclosure, Number of Positions, Less than One Year",
        "terseLabel": "Less than 12 months"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositionsLessThanOneYear",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "us-gaap_AvailableForsaleSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositionsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, Number of Positions [Abstract]",
        "terseLabel": "Number of Issues"
       }
      }
     },
     "localname": "AvailableForsaleSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositionsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AvailableforsaleSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositionsGreaterThanOrEqualToOneYear": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Number of investment positions in available-for-sale investments that have been in a continuous unrealized loss position for greater than or equal to a year for which an other-than-temporary impairment (OTTI) has not been recognized in the income statement.",
        "label": "Available-for-sale, Securities in Unrealized Loss Positions, Qualitative Disclosure, Number of Positions, Greater than or Equal to One Year",
        "terseLabel": "12 months or longer"
       }
      }
     },
     "localname": "AvailableforsaleSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositionsGreaterThanOrEqualToOneYear",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "us-gaap_AvailableforsaleSecuritiesMember": {
     "auth_ref": [
      "r185"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "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 [Member]",
        "terseLabel": "Available-for-sale"
       }
      }
     },
     "localname": "AvailableforsaleSecuritiesMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsNetRealizedInvestmentGainsAndLossesAndProceedsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AwardTypeAxis": {
     "auth_ref": [
      "r241",
      "r250"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by award type pertaining to equity-based compensation.",
        "label": "Award Type [Axis]",
        "terseLabel": "Award Type [Axis]"
       }
      }
     },
     "localname": "AwardTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/EarningsPerCommonShareDetails",
      "http://www.unitedfiregroup.com/role/StockBasedCompensationActivityInStockPlanDetails",
      "http://www.unitedfiregroup.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BalanceSheetLocationAxis": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by location on balance sheet (statement of financial position).",
        "label": "Balance Sheet Location [Axis]",
        "terseLabel": "Balance Sheet Location [Axis]"
       }
      }
     },
     "localname": "BalanceSheetLocationAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BalanceSheetLocationDomain": {
     "auth_ref": [
      "r277",
      "r278"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Location in the balance sheet (statement of financial position).",
        "label": "Balance Sheet Location [Domain]",
        "terseLabel": "Balance Sheet Location [Domain]"
       }
      }
     },
     "localname": "BalanceSheetLocationDomain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_BasisOfAccountingPolicyPolicyTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of accounting policy for basis of accounting, or basis of presentation, used to prepare the financial statements (for example, US Generally Accepted Accounting Principles, Other Comprehensive Basis of Accounting, IFRS).",
        "label": "Basis of Accounting, Policy [Policy Text Block]",
        "terseLabel": "Basis of Presentation"
       }
      }
     },
     "localname": "BasisOfAccountingPolicyPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_BenefitsLossesAndExpenses": {
     "auth_ref": [
      "r366"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited": {
       "order": 2.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments",
       "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",
        "totalLabel": "Total benefits, losses and expenses"
       }
      }
     },
     "localname": "BenefitsLossesAndExpenses",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BenefitsLossesAndExpensesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Benefits, Losses and Expenses [Abstract]",
        "terseLabel": "Benefits, Losses and Expenses"
       }
      }
     },
     "localname": "BenefitsLossesAndExpensesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_CapitalizationOfDeferredPolicyAcquisitionCostsPolicy": {
     "auth_ref": [
      "r108",
      "r374"
     ],
     "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 (DAC)"
       }
      }
     },
     "localname": "CapitalizationOfDeferredPolicyAcquisitionCostsPolicy",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_CarryingReportedAmountFairValueDisclosureMember": {
     "auth_ref": [
      "r294",
      "r295"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Measured as reported on the statement of financial position (balance sheet).",
        "label": "Reported Value Measurement [Member]",
        "terseLabel": "Carrying Value"
       }
      }
     },
     "localname": "CarryingReportedAmountFairValueDisclosureMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueAndEstimatedFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CashAndCashEquivalentsAtCarryingValue": {
     "auth_ref": [
      "r35",
      "r53",
      "r104"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets": {
       "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",
        "periodEndLabel": "Cash and Cash Equivalents at End of Period - Continuing Operations",
        "periodStartLabel": "Cash and Cash Equivalents at Beginning of Period - Continuing Operations",
        "terseLabel": "Cash and cash equivalents"
       }
      }
     },
     "localname": "CashAndCashEquivalentsAtCarryingValue",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets",
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashAndCashEquivalentsFairValueDisclosure": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_AssetsFairValueDisclosure",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value portion 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.",
        "label": "Cash and Cash Equivalents, Fair Value Disclosure",
        "terseLabel": "Cash and cash equivalents",
        "verboseLabel": "Money Market Accounts"
       }
      }
     },
     "localname": "CashAndCashEquivalentsFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueAndEstimatedFairValueDetails",
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashAndCashEquivalentsPolicyTextBlock": {
     "auth_ref": [
      "r37",
      "r106",
      "r108",
      "r155"
     ],
     "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/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect": {
     "auth_ref": [
      "r97",
      "r300"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of increase (decrease) in cash and cash equivalents, and cash and cash equivalents restricted to withdrawal or usage; excluding 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), Excluding Exchange Rate Effect",
        "totalLabel": "Net Change in Cash and Cash Equivalents"
       }
      }
     },
     "localname": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashProvidedByUsedInFinancingActivitiesDiscontinuedOperations": {
     "auth_ref": [
      "r97"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 3.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInDiscontinuedOperations",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of cash inflow (outflow) of financing activities of 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": "Cash Provided by (Used in) Financing Activities, Discontinued Operations",
        "terseLabel": "Cash from financing activities - discontinued operations"
       }
      }
     },
     "localname": "CashProvidedByUsedInFinancingActivitiesDiscontinuedOperations",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashProvidedByUsedInInvestingActivitiesDiscontinuedOperations": {
     "auth_ref": [
      "r24",
      "r97"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 2.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInDiscontinuedOperations",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of cash inflow (outflow) of investing activities of 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": "Cash Provided by (Used in) Investing Activities, Discontinued Operations",
        "terseLabel": "Cash from investing activities - discontinued operations"
       }
      }
     },
     "localname": "CashProvidedByUsedInInvestingActivitiesDiscontinuedOperations",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashProvidedByUsedInOperatingActivitiesDiscontinuedOperations": {
     "auth_ref": [
      "r24",
      "r97"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 2.0,
       "parentTag": "us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of cash inflow (outflow) of operating activities of discontinued operations. Operating activity cash flows include transactions, adjustments, and changes in value not defined as investing or financing activities.",
        "label": "Cash Provided by (Used in) Operating Activities, Discontinued Operations",
        "terseLabel": "Cash from operating activities - discontinued operations"
       }
      }
     },
     "localname": "CashProvidedByUsedInOperatingActivitiesDiscontinuedOperations",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashSurrenderValueFairValueDisclosure": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_AssetsFairValueDisclosure",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value portion of the amount that could be realized under a life insurance contract or contracts owned by the entity, commonly known as corporate-owned life insurance (COLI) or bank-owned life insurance (BOLI).",
        "label": "Cash Surrender Value, Fair Value Disclosure",
        "netLabel": "Cash surrender value",
        "terseLabel": "Corporate-owned life insurance",
        "verboseLabel": "Corporate-Owned Life Insurance"
       }
      }
     },
     "localname": "CashSurrenderValueFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueAndEstimatedFairValueDetails",
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails",
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CollateralizedMortgageObligationsMember": {
     "auth_ref": [
      "r199"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The category includes multiclass, pay-through securitizations collateralized by mortgages secured by assets, such as automobiles and boats, which are generally structured so that the collections of principal and interest due from the underlying debtors are paid to the holders of the CMO.",
        "label": "Collateralized Mortgage Obligations [Member]",
        "terseLabel": "Collateralized mortgage obligations"
       }
      }
     },
     "localname": "CollateralizedMortgageObligationsMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CommonStockDividendsPerShareDeclared": {
     "auth_ref": [
      "r203"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Aggregate dividends declared during the period for each share of common stock outstanding.",
        "label": "Common Stock, Dividends, Per Share, Declared",
        "verboseLabel": "Dividends on common stock, per share (in dollars per share)"
       }
      }
     },
     "localname": "CommonStockDividendsPerShareDeclared",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementOfStockholdersEquityUnauditedParentheticals"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_CommonStockMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Stock that is subordinate to all other stock of the issuer.",
        "label": "Common Stock [Member]",
        "terseLabel": "Common stock",
        "verboseLabel": "Common stocks"
       }
      }
     },
     "localname": "CommonStockMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementOfStockholdersEquityUnaudited",
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CommonStockParOrStatedValuePerShare": {
     "auth_ref": [
      "r45"
     ],
     "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/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheetsParentheticals"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_CommonStockSharesAuthorized": {
     "auth_ref": [
      "r45"
     ],
     "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 (in shares)"
       }
      }
     },
     "localname": "CommonStockSharesAuthorized",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheetsParentheticals"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_CommonStockSharesIssued": {
     "auth_ref": [
      "r45"
     ],
     "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 (in shares)"
       }
      }
     },
     "localname": "CommonStockSharesIssued",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheetsParentheticals"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_CommonStockSharesOutstanding": {
     "auth_ref": [
      "r45",
      "r202"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Number of shares of common stock outstanding. Common stock represent the ownership interest in a corporation.",
        "label": "Common Stock, Shares, Outstanding",
        "terseLabel": "Common stock, shares outstanding (in shares)"
       }
      }
     },
     "localname": "CommonStockSharesOutstanding",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheetsParentheticals"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_CommonStockValue": {
     "auth_ref": [
      "r45"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets": {
       "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",
        "verboseLabel": "Common stock, $0.001 par value; authorized 75,000,000 shares; 25,066,384 and 24,916,806 shares issued and outstanding in 2018 and 2017, respectively"
       }
      }
     },
     "localname": "CommonStockValue",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CompensationAndRetirementDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Retirement Benefits [Abstract]"
       }
      }
     },
     "localname": "CompensationAndRetirementDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_ComprehensiveIncomeNetOfTax": {
     "auth_ref": [
      "r74",
      "r76",
      "r77"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited": {
       "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 (loss)"
       }
      }
     },
     "localname": "ComprehensiveIncomeNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ComprehensiveIncomeNoteTextBlock": {
     "auth_ref": [
      "r87"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for comprehensive income, which includes, but is not limited to, 1) the amount of income tax expense or benefit allocated to each component of other comprehensive income, including reclassification adjustments, 2) the reclassification adjustments for each classification of other comprehensive income and 3) the ending accumulated balances for each component of comprehensive income.",
        "label": "Comprehensive Income (Loss) Note [Text Block]",
        "terseLabel": "Accumulated Other Comprehensive Income (Loss)"
       }
      }
     },
     "localname": "ComprehensiveIncomeNoteTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/AccumulatedOtherComprehensiveIncomeLoss"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ConcentrationRiskBenchmarkDomain": {
     "auth_ref": [
      "r136",
      "r137",
      "r296",
      "r297"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The denominator in a calculation of a disclosed concentration risk percentage.",
        "label": "Concentration Risk Benchmark [Domain]",
        "terseLabel": "Concentration Risk Benchmark [Domain]"
       }
      }
     },
     "localname": "ConcentrationRiskBenchmarkDomain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueOfCommercialMortgageLoansAndAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ConcentrationRiskByBenchmarkAxis": {
     "auth_ref": [
      "r136",
      "r137",
      "r296",
      "r297",
      "r392"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by benchmark of concentration risk.",
        "label": "Concentration Risk Benchmark [Axis]",
        "terseLabel": "Concentration Risk Benchmark [Axis]"
       }
      }
     },
     "localname": "ConcentrationRiskByBenchmarkAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueOfCommercialMortgageLoansAndAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ConcentrationRiskByTypeAxis": {
     "auth_ref": [
      "r136",
      "r137",
      "r296",
      "r297",
      "r392"
     ],
     "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]",
        "terseLabel": "Concentration Risk Type [Axis]"
       }
      }
     },
     "localname": "ConcentrationRiskByTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueOfCommercialMortgageLoansAndAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ConcentrationRiskPercentage1": {
     "auth_ref": [
      "r136",
      "r137",
      "r296",
      "r297"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "For an entity that discloses a concentration risk in relation to quantitative amount, which serves as the \"benchmark\" (or denominator) in the equation, this concept represents the concentration percentage derived from the division.",
        "label": "Concentration Risk, Percentage",
        "terseLabel": "Percent of Total"
       }
      }
     },
     "localname": "ConcentrationRiskPercentage1",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueOfCommercialMortgageLoansAndAdditionalInformationDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_ConcentrationRiskTypeDomain": {
     "auth_ref": [
      "r136",
      "r137",
      "r296",
      "r297"
     ],
     "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]",
        "terseLabel": "Concentration Risk Type [Domain]"
       }
      }
     },
     "localname": "ConcentrationRiskTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueOfCommercialMortgageLoansAndAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ContractualObligation": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of contractual obligation, including but not limited to, long-term debt, capital lease obligations, operating lease obligations, purchase obligations, and other commitments.",
        "label": "Contractual Obligation",
        "terseLabel": "Remaining potential contractual obligation"
       }
      }
     },
     "localname": "ContractualObligation",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CorporateDebtSecuritiesMember": {
     "auth_ref": [
      "r213",
      "r234"
     ],
     "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 Debt Securities [Member]",
        "terseLabel": "Corporate bonds"
       }
      }
     },
     "localname": "CorporateDebtSecuritiesMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails",
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsLevel3SecuritiesDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails"
     ],
     "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]",
        "terseLabel": "Credit Facility [Axis]"
       }
      }
     },
     "localname": "CreditFacilityAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/CreditFacilityDetails"
     ],
     "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]",
        "terseLabel": "Credit Facility [Domain]"
       }
      }
     },
     "localname": "CreditFacilityDomain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/CreditFacilityDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount after tax of increase (decrease) to equity or (increase) decrease to net assets, resulting from the cumulative effect adjustment of a new accounting principle applied in the period of adoption.",
        "label": "Cumulative Effect of New Accounting Principle in Period of Adoption",
        "terseLabel": "Cumulative effect of change in accounting principle",
        "verboseLabel": "Cumulative change in accounting principles"
       }
      }
     },
     "localname": "CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/AccumulatedOtherComprehensiveIncomeLossDetails",
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementOfStockholdersEquityUnaudited",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsUnrealizedAppreciationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Debt Disclosure [Abstract]"
       }
      }
     },
     "localname": "DebtDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtDisclosureTextBlock": {
     "auth_ref": [
      "r200"
     ],
     "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": "Credit Facility"
       }
      }
     },
     "localname": "DebtDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/CreditFacility"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DebtInstrumentTerm": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Period of time between issuance and maturity of debt instrument, in PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days.",
        "label": "Debt Instrument, Term",
        "terseLabel": "Credit agreement term"
       }
      }
     },
     "localname": "DebtInstrumentTerm",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/CreditFacilityDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_DebtSecuritiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Debt Securities [Abstract]",
        "terseLabel": "Fixed maturities"
       }
      }
     },
     "localname": "DebtSecuritiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger": {
     "auth_ref": [
      "r183"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition",
       "weight": 1.0
      }
     },
     "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.",
        "label": "Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, 12 Months or Longer",
        "terseLabel": "12 months or longer"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss": {
     "auth_ref": [
      "r183"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss",
       "weight": 1.0
      }
     },
     "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.",
        "label": "Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, 12 Months or Longer, Accumulated Loss",
        "terseLabel": "12 months or longer"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerNumberOfPositions": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Number of investments in debt securities 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.",
        "label": "Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, 12 Months or Longer, Number of Positions",
        "terseLabel": "12 months or longer"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerNumberOfPositions",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months": {
     "auth_ref": [
      "r183"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition",
       "weight": 1.0
      }
     },
     "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.",
        "label": "Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, Less than 12 Months",
        "terseLabel": "Less than 12 months"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss": {
     "auth_ref": [
      "r183"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss",
       "weight": 1.0
      }
     },
     "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.",
        "label": "Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, Less than 12 Months, Accumulated Loss",
        "terseLabel": "Less than 12 months"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsNumberOfPositions": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Number of investments in debt securities 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": "Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, Less than 12 Months, Number of Positions",
        "terseLabel": "Less than 12 months"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsNumberOfPositions",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleRealizedGain": {
     "auth_ref": [
      "r186"
     ],
     "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"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleRealizedGain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsNetRealizedInvestmentGainsAndLossesAndProceedsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleRealizedLoss": {
     "auth_ref": [
      "r186"
     ],
     "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"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleRealizedLoss",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsNetRealizedInvestmentGainsAndLossesAndProceedsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition": {
     "auth_ref": [
      "r180"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "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.",
        "label": "Debt Securities, Available-for-sale, Unrealized Loss Position",
        "totalLabel": "Total"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleUnrealizedLossPosition",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss": {
     "auth_ref": [
      "r181"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "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.",
        "label": "Debt Securities, Available-for-sale, Unrealized Loss Position, Accumulated Loss",
        "totalLabel": "Total"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesMember": {
     "auth_ref": [
      "r188"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Debt instrument issued by corporations, governments and governmental agencies, municipalities, and other institutions.",
        "label": "Debt Securities [Member]",
        "terseLabel": "Fixed Maturities"
       }
      }
     },
     "localname": "DebtSecuritiesMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DeferredCompensationArrangementWithIndividualShareBasedPaymentsByTypeOfDeferredCompensationAxis": {
     "auth_ref": [
      "r250"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by type of deferred compensation related to equity-based payment arrangements. Includes, but is not limited to, employment contracts with one or more selected officers or key employees. Excludes broad group equity-based compensation plans, defined benefit pension plans, defined benefit other postretirement benefit plans and other deferred compensation that is not equivalent to a defined benefit pension plan or a defined benefit other postretirement benefit plan.",
        "label": "Equity-Based Arrangements, Individual Contracts, Type of Deferred Compensation [Axis]",
        "terseLabel": "Type of Deferred Compensation [Axis]"
       }
      }
     },
     "localname": "DeferredCompensationArrangementWithIndividualShareBasedPaymentsByTypeOfDeferredCompensationAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DeferredIncomeTaxExpenseBenefit": {
     "auth_ref": [
      "r102",
      "r109",
      "r265",
      "r266"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 5.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations",
       "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": "Deferred income tax benefit"
       }
      }
     },
     "localname": "DeferredIncomeTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredIncomeTaxLiabilitiesNet": {
     "auth_ref": [
      "r258",
      "r263"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets": {
       "order": 4.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/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredPolicyAcquisitionCostAmortizationExpense": {
     "auth_ref": [
      "r102",
      "r333",
      "r363",
      "r373"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of amortization expense (reversal of expense) for deferred policy acquisition costs.",
        "label": "Deferred Policy Acquisition Costs, Amortization Expense",
        "negatedLabel": "Amortization of deferred policy acquisition costs"
       }
      }
     },
     "localname": "DeferredPolicyAcquisitionCostAmortizationExpense",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationDeferredPolicyAcquisitionCostsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredPolicyAcquisitionCostUnrealizedInvestmentGainLoss": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of unrealized investment gain (loss) which decreases (increases) deferred policy acquisition cost.",
        "label": "Deferred Policy Acquisition Cost, Unrealized Investment Gain (Loss)",
        "terseLabel": "Impact of unrealized gains and losses on available-for-sale securities",
        "verboseLabel": "Deferred policy acquisition costs"
       }
      }
     },
     "localname": "DeferredPolicyAcquisitionCostUnrealizedInvestmentGainLoss",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationDeferredPolicyAcquisitionCostsDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsUnrealizedAppreciationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredPolicyAcquisitionCosts": {
     "auth_ref": [
      "r348",
      "r371",
      "r375",
      "r390"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Net amount of deferred policy acquisition costs capitalized on contracts remaining in force as of the balance sheet date.",
        "label": "Deferred Policy Acquisition Costs",
        "terseLabel": "Ending unamortized deferred policy acquisition costs"
       }
      }
     },
     "localname": "DeferredPolicyAcquisitionCosts",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationDeferredPolicyAcquisitionCostsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredPolicyAcquisitionCostsAdditions": {
     "auth_ref": [
      "r372"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Total amount of policy acquisition costs capitalized during the income statement period.",
        "label": "Deferred Policy Acquisition Costs, Additions",
        "terseLabel": "Underwriting costs deferred"
       }
      }
     },
     "localname": "DeferredPolicyAcquisitionCostsAdditions",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationDeferredPolicyAcquisitionCostsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredPolicyAcquisitionCostsAndValueOfBusinessAcquired": {
     "auth_ref": [
      "r336",
      "r356",
      "r372"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets": {
       "order": 5.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount, after accumulated amortization, of deferred policy acquisition costs and present value of future profits from insurance contract acquired in business combination.",
        "label": "Deferred Policy Acquisition Costs and Present Value of Future Insurance Profits, Net",
        "periodEndLabel": "Recorded asset at end of period",
        "periodStartLabel": "Recorded asset at beginning of period",
        "terseLabel": "Deferred policy acquisition costs"
       }
      }
     },
     "localname": "DeferredPolicyAcquisitionCostsAndValueOfBusinessAcquired",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets",
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationDeferredPolicyAcquisitionCostsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredPolicyAcquisitionCostsDisposition": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of deferred policy acquisition costs disposed or classified as held-for-sale.",
        "label": "Deferred Policy Acquisition Costs, Disposition",
        "negatedTerseLabel": "Sale of discontinued operations"
       }
      }
     },
     "localname": "DeferredPolicyAcquisitionCostsDisposition",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationDeferredPolicyAcquisitionCostsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses": {
     "auth_ref": [
      "r220",
      "r231",
      "r234"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/EmployeeBenefitsDetails": {
       "order": 5.0,
       "parentTag": "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of gain (loss) recognized in net periodic benefit (cost) credit of defined benefit plan.",
        "label": "Defined Benefit Plan, Amortization of Gain (Loss)",
        "negatedTerseLabel": "Amortization of net loss"
       }
      }
     },
     "localname": "DefinedBenefitPlanAmortizationOfGainsLosses",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/EmployeeBenefitsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit": {
     "auth_ref": [
      "r221",
      "r232",
      "r234"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/EmployeeBenefitsDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of prior service cost (credit) recognized in net periodic benefit cost (credit) of defined benefit plan.",
        "label": "Defined Benefit Plan, Amortization of Prior Service Cost (Credit)",
        "terseLabel": "Amortization of prior service credit"
       }
      }
     },
     "localname": "DefinedBenefitPlanAmortizationOfPriorServiceCostCredit",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/EmployeeBenefitsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanContributionsByEmployer": {
     "auth_ref": [
      "r212",
      "r213",
      "r214",
      "r233",
      "r234"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of contribution received by defined benefit plan from employer which increases plan assets.",
        "label": "Defined Benefit Plan, Plan Assets, Contributions by Employer",
        "terseLabel": "Contribution by employer"
       }
      }
     },
     "localname": "DefinedBenefitPlanContributionsByEmployer",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/EmployeeBenefitsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanDisclosureLineItems": {
     "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": "Defined Benefit Plan Disclosure [Line Items]",
        "terseLabel": "Defined Benefit Plan Disclosure [Line Items]"
       }
      }
     },
     "localname": "DefinedBenefitPlanDisclosureLineItems",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/EmployeeBenefitsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DefinedBenefitPlanExpectedFutureEmployerContributionsNextFiscalYear": {
     "auth_ref": [
      "r215"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of contributions expected to be received by defined benefit plan from employer in next fiscal year following latest fiscal year.",
        "label": "Defined Benefit Plan, Expected Future Employer Contributions, Next Fiscal Year",
        "terseLabel": "Estimated 2018 pension plan contribution, disclosed in prior year 10K"
       }
      }
     },
     "localname": "DefinedBenefitPlanExpectedFutureEmployerContributionsNextFiscalYear",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/EmployeeBenefitsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets": {
     "auth_ref": [
      "r219",
      "r230",
      "r234"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/EmployeeBenefitsDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of expected return (loss) recognized in net periodic benefit (cost) credit, calculated based on expected long-term rate of return and market-related value of plan assets of defined benefit plan.",
        "label": "Defined Benefit Plan, Expected Return (Loss) on Plan Assets",
        "negatedTerseLabel": "Expected return on plan assets"
       }
      }
     },
     "localname": "DefinedBenefitPlanExpectedReturnOnPlanAssets",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/EmployeeBenefitsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanInterestCost": {
     "auth_ref": [
      "r211",
      "r218",
      "r229",
      "r234"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/EmployeeBenefitsDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of cost recognized for passage of time related to defined benefit plan.",
        "label": "Defined Benefit Plan, Interest Cost",
        "terseLabel": "Interest cost"
       }
      }
     },
     "localname": "DefinedBenefitPlanInterestCost",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/EmployeeBenefitsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost": {
     "auth_ref": [
      "r216",
      "r227",
      "r234"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/EmployeeBenefitsDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of net periodic benefit cost (credit) for defined benefit plan.",
        "label": "Defined Benefit Plan, Net Periodic Benefit Cost (Credit)",
        "totalLabel": "Net periodic benefit cost"
       }
      }
     },
     "localname": "DefinedBenefitPlanNetPeriodicBenefitCost",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/EmployeeBenefitsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Defined Benefit Plan, Net Periodic Benefit Cost (Credit) [Abstract]",
        "terseLabel": "Net periodic benefit cost"
       }
      }
     },
     "localname": "DefinedBenefitPlanNetPeriodicBenefitCostAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/EmployeeBenefitsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DefinedBenefitPlanServiceCost": {
     "auth_ref": [
      "r210",
      "r217",
      "r228",
      "r234"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/EmployeeBenefitsDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of cost for actuarial present value of benefits attributed to service rendered by employee for defined benefit plan.",
        "label": "Defined Benefit Plan, Service Cost",
        "terseLabel": "Service cost"
       }
      }
     },
     "localname": "DefinedBenefitPlanServiceCost",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/EmployeeBenefitsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DepreciationDepletionAndAmortization": {
     "auth_ref": [
      "r102",
      "r147"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 2.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations",
       "weight": 1.0
      }
     },
     "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/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock": {
     "auth_ref": [
      "r204",
      "r254"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for compensation-related costs for equity-based compensation, which may include disclosure of policies, compensation plan details, allocation of equity compensation, incentive distributions, equity-based arrangements to obtain goods and services, deferred compensation arrangements, employee stock ownership plan details and employee stock purchase plan details.",
        "label": "Disclosure of Compensation Related Costs, Share-based Payments [Text Block]",
        "terseLabel": "Stock-Based Compensation"
       }
      }
     },
     "localname": "DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/StockBasedCompensation"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DisclosureOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTextBlock": {
     "auth_ref": [
      "r241",
      "r250"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of components of a stock option or other award plan under which equity-based compensation is awarded to employees, typically comprised of the amount of unearned compensation (deferred compensation cost), compensation expense, and changes in the quantity and fair value of the shares (or other type of equity) granted, exercised, forfeited, and issued and outstanding pertaining to that plan.  Disclosure may also include nature and general terms of such arrangements that existed during the period and potential effects of those arrangements on shareholders, effect of compensation cost arising from equity-based payment arrangements on the income statement, method of estimating the fair value of the goods or services received, or the fair value of the equity instruments granted, during the period, cash flow effects resulting from equity-based payment arrangements and, for registrants that accelerate vesting of out of the money share options, reasons for the decision to accelerate.",
        "label": "Disclosure of Share-based Compensation Arrangements by Share-based Payment Award [Table Text Block]",
        "terseLabel": "Activity in Stock Award Plans"
       }
      }
     },
     "localname": "DisclosureOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/StockBasedCompensationTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DiscontinuedOperationAmountOfContinuingCashFlowsAfterDisposal": {
     "auth_ref": [
      "r19"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of cash inflow (outflow) from (to) the discontinued operation after the disposal transaction.",
        "label": "Discontinued Operation, Amount of Continuing Cash Flows after Disposal",
        "terseLabel": "Cash received as part of the TSA agreement"
       }
      }
     },
     "localname": "DiscontinuedOperationAmountOfContinuingCashFlowsAfterDisposal",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DiscontinuedOperationGainLossFromDisposalOfDiscontinuedOperationBeforeIncomeTax": {
     "auth_ref": [
      "r8",
      "r10",
      "r12"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 3.0,
       "parentTag": "us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount before tax of gain (loss) not previously recognized resulting from the disposal of a discontinued operation.",
        "label": "Discontinued Operation, Gain (Loss) from Disposal of Discontinued Operation, before Income Tax",
        "negatedLabel": "Cash from operating activities - gain on sale of discontinued operations"
       }
      }
     },
     "localname": "DiscontinuedOperationGainLossFromDisposalOfDiscontinuedOperationBeforeIncomeTax",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DiscontinuedOperationGainLossOnDisposalOfDiscontinuedOperationNetOfTax": {
     "auth_ref": [
      "r8",
      "r10",
      "r12",
      "r28"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited": {
       "order": 3.0,
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount after tax of gain (loss) not previously recognized resulting from the disposal of a discontinued operation.",
        "label": "Discontinued Operation, Gain (Loss) on Disposal of Discontinued Operation, Net of Tax",
        "terseLabel": "Gain on sale of discontinued operations, net of taxes"
       }
      }
     },
     "localname": "DiscontinuedOperationGainLossOnDisposalOfDiscontinuedOperationNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited",
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DiscontinuedOperationGainLossOnDisposalOfDiscontinuedOperationNetOfTaxPerBasicShare": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/EarningsPerCommonShareDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_EarningsPerShareBasic",
       "weight": 1.0
      }
     },
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Per basic share amount, after tax, of the gain (loss) on the disposal of discontinued operations.",
        "label": "Discontinued Operation, Gain (Loss) on Disposal of Discontinued Operation, Net of Tax, Per Basic Share",
        "verboseLabel": "Gain on sale of discontinued operations, net of taxes, basic (in dollars per share)"
       }
      }
     },
     "localname": "DiscontinuedOperationGainLossOnDisposalOfDiscontinuedOperationNetOfTaxPerBasicShare",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/EarningsPerCommonShareDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_DiscontinuedOperationGainLossOnDisposalOfDiscontinuedOperationNetOfTaxPerDilutedShare": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/EarningsPerCommonShareDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_EarningsPerShareDiluted",
       "weight": 1.0
      }
     },
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Per diluted share amount, after tax, of the gain (loss) on the disposal of discontinued operations.",
        "label": "Discontinued Operation, Gain (Loss) on Disposal of Discontinued Operation, Net of Tax, Per Diluted Share",
        "terseLabel": "Gain on sale of discontinued operations, net of taxes, diluted (in dollars per share)"
       }
      }
     },
     "localname": "DiscontinuedOperationGainLossOnDisposalOfDiscontinuedOperationNetOfTaxPerDilutedShare",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/EarningsPerCommonShareDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_DiscontinuedOperationIncomeLossFromDiscontinuedOperationBeforeIncomeTax": {
     "auth_ref": [
      "r8",
      "r9",
      "r10",
      "r11",
      "r12",
      "r22",
      "r81",
      "r359"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsStatementsOfIncomeDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount before tax of income (loss) from a discontinued operation. Includes, but is not limited to, the income (loss) from operations during the phase-out period, gain (loss) on disposal, gain (loss) for reversal of write-down (write-down) to fair value, less cost to sell, and adjustments to a prior period gain (loss) on disposal.",
        "label": "Discontinued Operation, Income (Loss) from Discontinued Operation, before Income Tax",
        "totalLabel": "Income (loss) from discontinued operations before income taxes"
       }
      }
     },
     "localname": "DiscontinuedOperationIncomeLossFromDiscontinuedOperationBeforeIncomeTax",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsStatementsOfIncomeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DiscontinuedOperationIncomeLossFromDiscontinuedOperationNetOfTaxPerBasicShare": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/EarningsPerCommonShareDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_EarningsPerShareBasic",
       "weight": 1.0
      }
     },
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Per basic share amount, after tax, of income (loss) from the day-to-day business activities of the discontinued operation.",
        "label": "Discontinued Operation, Income (Loss) from Discontinued Operation, Net of Tax, Per Basic Share",
        "terseLabel": "Earnings per common share from discontinued operations, basic (in dollars per share)",
        "verboseLabel": "Basic (in dollars per share)"
       }
      }
     },
     "localname": "DiscontinuedOperationIncomeLossFromDiscontinuedOperationNetOfTaxPerBasicShare",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsStatementsOfIncomeDetails",
      "http://www.unitedfiregroup.com/role/EarningsPerCommonShareDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_DiscontinuedOperationIncomeLossFromDiscontinuedOperationNetOfTaxPerDilutedShare": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/EarningsPerCommonShareDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_EarningsPerShareDiluted",
       "weight": 1.0
      }
     },
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Per diluted share amount, after tax, of income (loss) from the day-to-day business activities of the discontinued operation.",
        "label": "Discontinued Operation, Income (Loss) from Discontinued Operation, Net of Tax, Per Diluted Share",
        "terseLabel": "Earnings per common share from discontinued operations, diluted (in dollars per share)",
        "verboseLabel": "Diluted (in dollars per share)"
       }
      }
     },
     "localname": "DiscontinuedOperationIncomeLossFromDiscontinuedOperationNetOfTaxPerDilutedShare",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsStatementsOfIncomeDetails",
      "http://www.unitedfiregroup.com/role/EarningsPerCommonShareDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_DiscontinuedOperationPeriodOfContinuingInvolvementAfterDisposal": {
     "auth_ref": [
      "r18"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Period of expected continuing involvement with a discontinued operation after the disposal date, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days.",
        "label": "Discontinued Operation, Period of Continuing Involvement after Disposal",
        "terseLabel": "Transition services agreement duration"
       }
      }
     },
     "localname": "DiscontinuedOperationPeriodOfContinuingInvolvementAfterDisposal",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsNarrativeDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_DiscontinuedOperationTaxEffectOfDiscontinuedOperation": {
     "auth_ref": [
      "r9",
      "r10",
      "r11",
      "r12",
      "r22",
      "r28",
      "r259",
      "r269"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsStatementsOfIncomeDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of tax expense (benefit) related to a discontinued operation. Includes, but is not limited to, tax expense (benefit) related to income (loss) from operations during the phase-out period, tax expense (benefit) related to gain (loss) on disposal, tax expense (benefit) related to gain (loss) for reversal of write-down (write-down) to fair value, less cost to sell, and tax expense (benefit) related to adjustments of a prior period gain (loss) on disposal.",
        "label": "Discontinued Operation, Tax Effect of Discontinued Operation",
        "terseLabel": "Federal income tax expense"
       }
      }
     },
     "localname": "DiscontinuedOperationTaxEffectOfDiscontinuedOperation",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsStatementsOfIncomeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DiscontinuedOperationsAndDisposalGroupsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Discontinued Operations and Disposal Groups [Abstract]"
       }
      }
     },
     "localname": "DiscontinuedOperationsAndDisposalGroupsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_DiscontinuedOperationsDisposedOfBySaleMember": {
     "auth_ref": [
      "r4"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Component or group of components disposed of by sale and representing a strategic shift that has or will have a major effect on operations and financial results.",
        "label": "Discontinued Operations, Disposed of by Sale [Member]",
        "terseLabel": "Discontinued Operations, Disposed of by Sale"
       }
      }
     },
     "localname": "DiscontinuedOperationsDisposedOfBySaleMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsBalanceSheetsDetails",
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsNarrativeDetails",
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsStatementsOfIncomeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DiscontinuedOperationsPolicyTextBlock": {
     "auth_ref": [
      "r14",
      "r32",
      "r108",
      "r126"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of accounting policy for discontinued operations. Includes, but is not limited to, method of interest allocation to a discontinued operation.",
        "label": "Discontinued Operations, Policy [Policy Text Block]",
        "terseLabel": "Discontinued Operations"
       }
      }
     },
     "localname": "DiscontinuedOperationsPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DisposalGroupClassificationAxis": {
     "auth_ref": [
      "r27"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by disposal group classification.",
        "label": "Disposal Group Classification [Axis]",
        "terseLabel": "Disposal Group Classification [Axis]"
       }
      }
     },
     "localname": "DisposalGroupClassificationAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsBalanceSheetsDetails",
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsNarrativeDetails",
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsStatementsOfIncomeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DisposalGroupClassificationDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Component or group of components disposed of, including but not limited to, disposal group held-for-sale or disposed of by sale, disposed of by means other than sale, and discontinued operations.",
        "label": "Disposal Group Classification [Domain]",
        "terseLabel": "Disposal Group Classification [Domain]"
       }
      }
     },
     "localname": "DisposalGroupClassificationDomain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsBalanceSheetsDetails",
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsNarrativeDetails",
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsStatementsOfIncomeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DisposalGroupIncludingDiscontinuedOperationCashAndCashEquivalents": {
     "auth_ref": [
      "r1",
      "r2",
      "r25",
      "r192"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsBalanceSheetsDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperation",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount classified as cash and cash equivalents attributable to disposal group held for sale or disposed of.",
        "label": "Disposal Group, Including Discontinued Operation, Cash and Cash Equivalents",
        "terseLabel": "Cash and cash equivalents"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationCashAndCashEquivalents",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsBalanceSheetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DisposalGroupIncludingDiscontinuedOperationConsideration": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of consideration received or receivable for the disposal of assets and liabilities, including discontinued operation.",
        "label": "Disposal Group, Including Discontinued Operation, Consideration",
        "terseLabel": "Disposal group, cash consideration"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationConsideration",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DisposalGroupIncludingDiscontinuedOperationDeferredTaxLiabilities": {
     "auth_ref": [
      "r1",
      "r2",
      "r25",
      "r192"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsBalanceSheetsDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_LiabilitiesOfDisposalGroupIncludingDiscontinuedOperation",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount classified as deferred tax liabilities attributable to disposal group held for sale or disposed of.",
        "label": "Disposal Group, Including Discontinued Operation, Deferred Tax Liabilities",
        "terseLabel": "Deferred income taxes"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationDeferredTaxLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsBalanceSheetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DisposalGroupIncludingDiscontinuedOperationOtherAssets": {
     "auth_ref": [
      "r1",
      "r2",
      "r25",
      "r192"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsBalanceSheetsDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperation",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount classified as other assets attributable to disposal group held for sale or disposed of.",
        "label": "Disposal Group, Including Discontinued Operation, Other Assets",
        "terseLabel": "Other assets"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationOtherAssets",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsBalanceSheetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DisposalGroupIncludingDiscontinuedOperationOtherIncome": {
     "auth_ref": [
      "r23"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsStatementsOfIncomeDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_DisposalGroupIncludingDiscontinuedOperationRevenue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of other income attributable to disposal group, including, but not limited to, discontinued operation.",
        "label": "Disposal Group, Including Discontinued Operation, Other Income",
        "terseLabel": "Other income"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationOtherIncome",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsStatementsOfIncomeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DisposalGroupIncludingDiscontinuedOperationRevenue": {
     "auth_ref": [
      "r23"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsStatementsOfIncomeDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_DiscontinuedOperationIncomeLossFromDiscontinuedOperationBeforeIncomeTax",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of revenue attributable to disposal group, including, but not limited to, discontinued operation.",
        "label": "Disposal Group, Including Discontinued Operation, Revenue",
        "totalLabel": "Total revenues"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationRevenue",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsStatementsOfIncomeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DisposalGroupsIncludingDiscontinuedOperationsDisclosureTextBlock": {
     "auth_ref": [
      "r33",
      "r196"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure related to a disposal group. Includes, but is not limited to, a discontinued operation, disposal classified as held-for-sale or disposed of by means other than sale or disposal of an individually significant component.",
        "label": "Disposal Groups, Including Discontinued Operations, Disclosure [Text Block]",
        "terseLabel": "Discontinued Operations"
       }
      }
     },
     "localname": "DisposalGroupsIncludingDiscontinuedOperationsDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperations"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Name of disposal group.",
        "label": "Disposal Group Name [Domain]",
        "terseLabel": "Disposal Group Name [Domain]"
       }
      }
     },
     "localname": "DisposalGroupsIncludingDiscontinuedOperationsNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsBalanceSheetsDetails",
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsNarrativeDetails",
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsStatementsOfIncomeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DividendsCommonStock": {
     "auth_ref": [
      "r203",
      "r332"
     ],
     "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",
        "negatedTerseLabel": "Dividends on common stock ($3.90 per share)"
       }
      }
     },
     "localname": "DividendsCommonStock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementOfStockholdersEquityUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EarningsPerShareAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Earnings Per Share [Abstract]"
       }
      }
     },
     "localname": "EarningsPerShareAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_EarningsPerShareBasic": {
     "auth_ref": [
      "r83",
      "r115",
      "r118",
      "r122",
      "r123",
      "r124",
      "r128",
      "r325",
      "r361"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/EarningsPerCommonShareDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "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",
        "totalLabel": "Earnings (loss) per common share, basic (in dollars per share)",
        "verboseLabel": "Basic (in dollars per share)"
       }
      }
     },
     "localname": "EarningsPerShareBasic",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited",
      "http://www.unitedfiregroup.com/role/EarningsPerCommonShareDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_EarningsPerShareBasicAndDilutedAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Earnings Per Share, Basic and Diluted [Abstract]",
        "terseLabel": "Earnings (loss) per common share:"
       }
      }
     },
     "localname": "EarningsPerShareBasicAndDilutedAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_EarningsPerShareDiluted": {
     "auth_ref": [
      "r83",
      "r115",
      "r118",
      "r122",
      "r123",
      "r124",
      "r128",
      "r325",
      "r361"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/EarningsPerCommonShareDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "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",
        "totalLabel": "Earnings (loss) per common share, diluted (in dollars per share)",
        "verboseLabel": "Diluted (in dollars per share)"
       }
      }
     },
     "localname": "EarningsPerShareDiluted",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited",
      "http://www.unitedfiregroup.com/role/EarningsPerCommonShareDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_EarningsPerShareDilutedLineItems": {
     "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": "Earnings Per Share, Diluted, by Common Class, Including Two Class Method [Line Items]",
        "terseLabel": "Basic and Diluted Earnings per Share [Line Items]"
       }
      }
     },
     "localname": "EarningsPerShareDilutedLineItems",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/EarningsPerCommonShareDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_EarningsPerSharePolicyTextBlock": {
     "auth_ref": [
      "r108",
      "r125",
      "r126",
      "r127"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of accounting policy for computing basic and diluted earnings or loss per share for each class of common stock and participating security. Addresses all significant policy factors, including any antidilutive items that have been excluded from the computation and takes into account stock dividends, splits and reverse splits that occur after the balance sheet date of the latest reporting period but before the issuance of the financial statements.",
        "label": "Earnings Per Share, Policy [Policy Text Block]",
        "terseLabel": "Earnings Per Share"
       }
      }
     },
     "localname": "EarningsPerSharePolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_EarningsPerShareTextBlock": {
     "auth_ref": [
      "r129"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for earnings per share.",
        "label": "Earnings Per Share [Text Block]",
        "terseLabel": "Earnings Per Common Share"
       }
      }
     },
     "localname": "EarningsPerShareTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/EarningsPerCommonShare"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized": {
     "auth_ref": [
      "r249"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/StockBasedCompensationStockBasedCompensationExpenseDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Unrecognized cost of unvested share-based compensation awards.",
        "label": "Employee Service Share-based Compensation, Nonvested Awards, Compensation Cost Not yet Recognized",
        "terseLabel": "Stock-based compensation expense to be recognized through results of operations",
        "totalLabel": "Total"
       }
      }
     },
     "localname": "EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/StockBasedCompensationNarrativeDetails",
      "http://www.unitedfiregroup.com/role/StockBasedCompensationStockBasedCompensationExpenseDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EmployeeStockOptionMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "An arrangement whereby an employee is entitled to receive in the future, subject to vesting and other restrictions, a number of shares in the entity at a specified price, as defined in the agreement. Although there are variations, normally, after vesting, when an option is exercised, the employee-holder pays the strike value in cash to the issuing employer-entity and receives equity shares. The equity shares can be sold into the market for cash at the current market price without restriction. Options may be used to attract, retain and incentivize employees, in addition to their regular salary and other benefits.",
        "label": "Employee Stock Option [Member]",
        "terseLabel": "Options Awards",
        "verboseLabel": "Stock Options"
       }
      }
     },
     "localname": "EmployeeStockOptionMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/EarningsPerCommonShareDetails",
      "http://www.unitedfiregroup.com/role/StockBasedCompensationActivityInStockPlanDetails",
      "http://www.unitedfiregroup.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_EquityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Equity [Abstract]"
       }
      }
     },
     "localname": "EquityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_EquityBasedArrangementsIndividualContractsTypeOfDeferredCompensationDomain": {
     "auth_ref": [
      "r250"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Deferred compensation related to equity-based payment arrangements. Includes, but is not limited to, employment contracts with one or more selected officers or key employees. Excludes broad group equity-based compensation plans, defined benefit pension plans, defined benefit other postretirement benefit plans and other deferred compensation that is not equivalent to a defined benefit pension plan or a defined benefit other postretirement benefit plan.",
        "label": "Equity-Based Arrangements, Individual Contracts, Type of Deferred Compensation [Domain]",
        "terseLabel": "Type of Deferred Compensation, All Types [Domain]"
       }
      }
     },
     "localname": "EquityBasedArrangementsIndividualContractsTypeOfDeferredCompensationDomain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_EquityComponentDomain": {
     "auth_ref": [
      "r202"
     ],
     "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]",
        "terseLabel": "Equity Component [Domain]"
       }
      }
     },
     "localname": "EquityComponentDomain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/AccumulatedOtherComprehensiveIncomeLossDetails",
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementOfStockholdersEquityUnaudited"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_EquitySecuritiesFvNi": {
     "auth_ref": [
      "r291"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets": {
       "order": 6.0,
       "parentTag": "us-gaap_Investments",
       "weight": 1.0
      },
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails": {
       "order": 5.0,
       "parentTag": "us-gaap_AssetsFairValueDisclosure",
       "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).",
        "label": "Equity Securities, FV-NI",
        "terseLabel": "Equity securities at fair value (cost $65,458 in 2018 and $63,275 in 2017)",
        "verboseLabel": "Equity securities"
       }
      }
     },
     "localname": "EquitySecuritiesFvNi",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets",
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueAndEstimatedFairValueDetails",
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EquitySecuritiesFvNiCost": {
     "auth_ref": [],
     "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, amortized cost"
       }
      }
     },
     "localname": "EquitySecuritiesFvNiCost",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheetsParentheticals"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EquitySecuritiesMember": {
     "auth_ref": [
      "r38",
      "r42",
      "r188",
      "r316",
      "r341",
      "r394"
     ],
     "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.",
        "label": "Equity Securities [Member]",
        "terseLabel": "Equity securities",
        "verboseLabel": "Equities"
       }
      }
     },
     "localname": "EquitySecuritiesMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails",
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsLevel3SecuritiesDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsNetRealizedInvestmentGainsAndLossesAndProceedsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_EstimateOfFairValueFairValueDisclosureMember": {
     "auth_ref": [
      "r293"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Measured as an estimate of fair value.",
        "label": "Estimate of Fair Value Measurement [Member]",
        "terseLabel": "Fair Value"
       }
      }
     },
     "localname": "EstimateOfFairValueFairValueDisclosureMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueAndEstimatedFairValueDetails"
     ],
     "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]",
        "terseLabel": "Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]"
       }
      }
     },
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable": {
     "auth_ref": [
      "r280",
      "r281",
      "r282",
      "r283",
      "r287",
      "r288"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of information about 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, Recurring and Nonrecurring [Table]",
        "terseLabel": "Fair Value Measurements, Recurring and Nonrecurring [Table]"
       }
      }
     },
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "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": "Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward]"
       }
      }
     },
     "localname": "FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsLevel3SecuritiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems": {
     "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 Measured on Recurring Basis, Unobservable Input Reconciliation [Line Items]",
        "terseLabel": "Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation [Line Items]"
       }
      }
     },
     "localname": "FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsLevel3SecuritiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable": {
     "auth_ref": [
      "r284",
      "r288"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Schedule of information required and determined to be provided for purposes of reconciling beginning and ending balances of fair value measurements of assets using significant unobservable inputs (level 3). Such reconciliation, separately presenting changes during the period, at a minimum, may include, but is not limited to: (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, 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": "Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation [Table]",
        "terseLabel": "Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation [Table]"
       }
      }
     },
     "localname": "FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsLevel3SecuritiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock": {
     "auth_ref": [
      "r284",
      "r288"
     ],
     "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": "Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation [Table Text Block]",
        "terseLabel": "Changes in Fair Value of Level 3 Securities"
       }
      }
     },
     "localname": "FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems": {
     "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, Balance Sheet Grouping, Financial Statement Captions [Line Items]",
        "terseLabel": "Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]"
       }
      }
     },
     "localname": "FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueAndEstimatedFairValueDetails",
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByBalanceSheetGroupingTable": {
     "auth_ref": [
      "r281",
      "r294",
      "r295"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of information about the fair value of financial instruments, including financial assets and financial liabilities, and the measurements of those instruments, assets, and liabilities.",
        "label": "Fair Value, by Balance Sheet Grouping [Table]",
        "terseLabel": "Fair Value, by Balance Sheet Grouping [Table]"
       }
      }
     },
     "localname": "FairValueByBalanceSheetGroupingTable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueAndEstimatedFairValueDetails",
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByBalanceSheetGroupingTextBlock": {
     "auth_ref": [
      "r281",
      "r294"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of the fair value of financial instruments, including financial assets and financial liabilities, and the measurements of those instruments, assets, and liabilities.",
        "label": "Fair Value, by Balance Sheet Grouping [Table Text Block]",
        "terseLabel": "Carrying Value and Estimated Fair Value of Financial Instruments"
       }
      }
     },
     "localname": "FairValueByBalanceSheetGroupingTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueByFairValueHierarchyLevelAxis": {
     "auth_ref": [
      "r213",
      "r214",
      "r234",
      "r282",
      "r305"
     ],
     "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 and NAV [Axis]",
        "terseLabel": "Fair Value Hierarchy and NAV [Axis]"
       }
      }
     },
     "localname": "FairValueByFairValueHierarchyLevelAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails",
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByMeasurementBasisAxis": {
     "auth_ref": [
      "r281",
      "r289"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by measurement basis.",
        "label": "Measurement Basis [Axis]",
        "terseLabel": "Measurement Basis [Axis]"
       }
      }
     },
     "localname": "FairValueByMeasurementBasisAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueAndEstimatedFairValueDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByMeasurementFrequencyAxis": {
     "auth_ref": [
      "r280"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by measurement frequency.",
        "label": "Measurement Frequency [Axis]",
        "terseLabel": "Measurement Frequency [Axis]"
       }
      }
     },
     "localname": "FairValueByMeasurementFrequencyAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails",
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsLevel3SecuritiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueDisclosureItemAmountsDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Measurement basis, for example, but not limited to, reported value, fair value, portion at fair value, portion at other than fair value.",
        "label": "Fair Value Measurement [Domain]",
        "terseLabel": "Fair Value Measurement [Domain]"
       }
      }
     },
     "localname": "FairValueDisclosureItemAmountsDomain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueAndEstimatedFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueDisclosuresAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Fair Value Disclosures [Abstract]"
       }
      }
     },
     "localname": "FairValueDisclosuresAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueDisclosuresTextBlock": {
     "auth_ref": [
      "r290"
     ],
     "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/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstruments"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueInputsLevel1Member": {
     "auth_ref": [
      "r213",
      "r214",
      "r234",
      "r282",
      "r306"
     ],
     "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": "Fair Value, Inputs, Level 1 [Member]",
        "terseLabel": "Level 1"
       }
      }
     },
     "localname": "FairValueInputsLevel1Member",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueInputsLevel2Member": {
     "auth_ref": [
      "r213",
      "r214",
      "r234",
      "r282",
      "r307"
     ],
     "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": "Fair Value, Inputs, Level 2 [Member]",
        "terseLabel": "Level 2"
       }
      }
     },
     "localname": "FairValueInputsLevel2Member",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails",
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueInputsLevel3Member": {
     "auth_ref": [
      "r213",
      "r214",
      "r234",
      "r282",
      "r308"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value, Inputs, Level 3 [Member]",
        "terseLabel": "Level 3"
       }
      }
     },
     "localname": "FairValueInputsLevel3Member",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueMeasurementFrequencyDomain": {
     "auth_ref": [
      "r280",
      "r286"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Provides the general categories used to describe the frequency with which financial assets and liabilities (as defined) are measured at fair value (on a recurring or nonrecurring basis).",
        "label": "Fair Value, Measurement Frequency [Domain]",
        "terseLabel": "Fair Value, Measurement Frequency [Domain]"
       }
      }
     },
     "localname": "FairValueMeasurementFrequencyDomain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails",
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsLevel3SecuritiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueMeasurementPolicyPolicyTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of accounting policy for fair value measurements of financial and non-financial assets, liabilities and instruments classified in shareholders' equity. Disclosures include, but are not limited to, how an entity that manages a group of financial assets and liabilities on the basis of its net exposure measures the fair value of those assets and liabilities.",
        "label": "Fair Value Measurement, Policy [Policy Text Block]",
        "terseLabel": "Fair Value Measurement"
       }
      }
     },
     "localname": "FairValueMeasurementPolicyPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInOtherComprehensiveIncomeLoss": {
     "auth_ref": [
      "r285"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of gain (loss) recognized in other comprehensive income (loss) for 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, Gain (Loss) Included in Other Comprehensive Income (Loss)",
        "terseLabel": "Net unrealized gains (losses)"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInOtherComprehensiveIncomeLoss",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsLevel3SecuritiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue": {
     "auth_ref": [
      "r284"
     ],
     "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": "Ending Balance",
        "periodStartLabel": "Beginning Balance"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsLevel3SecuritiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementsFairValueHierarchyDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Categories used to prioritize the inputs to valuation techniques to measure fair value.",
        "label": "Fair Value Hierarchy and NAV [Domain]",
        "terseLabel": "Fair Value Hierarchy and NAV [Domain]"
       }
      }
     },
     "localname": "FairValueMeasurementsFairValueHierarchyDomain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails",
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueMeasurementsRecurringMember": {
     "auth_ref": [
      "r280",
      "r286"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "This item represents a description of the frequency with which certain items are measured at fair value. Items measured at fair value on a recurring basis generally include those items for which measurement inputs are readily available and which are measured at fair value at successive reporting periods.",
        "label": "Fair Value, Measurements, Recurring [Member]",
        "terseLabel": "Recurring"
       }
      }
     },
     "localname": "FairValueMeasurementsRecurringMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails",
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsLevel3SecuritiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FederalHomeLoanMortgageCorporationCertificatesAndObligationsFHLMCMember": {
     "auth_ref": [
      "r317"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Investments in debentures, bonds and other debt securities issued by the Federal Home Loan Mortgage Corporation (FHLMC or Freddie Mac).",
        "label": "Federal Home Loan Mortgage Corporation Certificates and Obligations (FHLMC) [Member]",
        "terseLabel": "Federal home loan mortgage corporation"
       }
      }
     },
     "localname": "FederalHomeLoanMortgageCorporationCertificatesAndObligationsFHLMCMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FederalNationalMortgageAssociationCertificatesAndObligationsFNMAMember": {
     "auth_ref": [
      "r317"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Investments in debentures, bonds and other debt securities issued by the Federal National Mortgage Association (FNMA or Fannie Mae).",
        "label": "Federal National Mortgage Association Certificates and Obligations (FNMA) [Member]",
        "terseLabel": "Federal national mortgage association"
       }
      }
     },
     "localname": "FederalNationalMortgageAssociationCertificatesAndObligationsFNMAMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FinancialInstrumentAxis": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by type of financial instrument.",
        "label": "Financial Instrument [Axis]",
        "terseLabel": "Financial Instrument [Axis]"
       }
      }
     },
     "localname": "FinancialInstrumentAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails",
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsLevel3SecuritiesDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancingReceivableCreditQualityIndicatorsTableTextBlock": {
     "auth_ref": [
      "r157",
      "r159"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of financing receivables by credit quality indicator. The credit quality indicator is a statistic about the credit quality of financing receivables. Examples include, but not limited to, consumer credit risk scores, credit-rating-agency ratings, an entity's internal credit risk grades, loan-to-value ratios, collateral, collection experience and other internal metrics.",
        "label": "Financing Receivable Credit Quality Indicators [Table Text Block]",
        "terseLabel": "Carrying Value of Commercial Mortgage Loans by Loan-to-Value Ratio"
       }
      }
     },
     "localname": "FinancingReceivableCreditQualityIndicatorsTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FinancingReceivableRecordedInvestmentLineItems": {
     "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": "Financing Receivable, Recorded Investment [Line Items]",
        "terseLabel": "Financing Receivable, Recorded Investment [Line Items]"
       }
      }
     },
     "localname": "FinancingReceivableRecordedInvestmentLineItems",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueOfCommercialMortgageLoansAndAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FixedMaturitiesMember": {
     "auth_ref": [
      "r389"
     ],
     "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": "Fixed Maturities [Member]",
        "terseLabel": "Fixed maturities"
       }
      }
     },
     "localname": "FixedMaturitiesMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsNetRealizedInvestmentGainsAndLossesAndProceedsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ForeignGovernmentDebtSecuritiesMember": {
     "auth_ref": [
      "r213"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Debt security issued by government not domiciled in United States of America (US).",
        "label": "Debt Security, Government, Non-US [Member]",
        "terseLabel": "Foreign bonds"
       }
      }
     },
     "localname": "ForeignGovernmentDebtSecuritiesMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_GeographicConcentrationRiskMember": {
     "auth_ref": [
      "r135"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Reflects the percentage that a specified dollar value on the balance sheet or income statement in the period from one or more specified geographic areas is to a corresponding consolidated, segment, or product line amount. Risk is the materially adverse effects of economic decline or antagonistic political actions resulting in loss of assets, sales volume, labor supply, or source of materials and supplies in a US state or a specified country, continent, or region such as EMEA (Europe, Middle East, Africa).",
        "label": "Geographic Concentration Risk [Member]",
        "terseLabel": "Mortgage Loans by Region"
       }
      }
     },
     "localname": "GeographicConcentrationRiskMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueOfCommercialMortgageLoansAndAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_GovernmentNationalMortgageAssociationCertificatesAndObligationsGNMAMember": {
     "auth_ref": [
      "r320"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Investments in debentures, bonds and other debt securities issued by the Government National Mortgage Association (GNMA or Ginnie Mae).",
        "label": "Government National Mortgage Association Certificates and Obligations (GNMA) [Member]",
        "verboseLabel": "Government national mortgage association"
       }
      }
     },
     "localname": "GovernmentNationalMortgageAssociationCertificatesAndObligationsGNMAMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_HealthCareMember": {
     "auth_ref": [
      "r206"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Service provided for prevention, maintenance, diagnosis or treatment of physical and mental health.",
        "label": "Health Care [Member]",
        "terseLabel": "Health care"
       }
      }
     },
     "localname": "HealthCareMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_HeldToMaturitySecurities": {
     "auth_ref": [
      "r161",
      "r175"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets": {
       "order": 1.0,
       "parentTag": "us-gaap_Investments",
       "weight": 1.0
      },
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of investment in debt security measured at amortized cost (held-to-maturity).",
        "label": "Debt Securities, Held-to-maturity",
        "terseLabel": "Held-to-maturity, at amortized cost (fair value $0 in 2018 and $150 in 2017)",
        "totalLabel": "Amortized Cost"
       }
      }
     },
     "localname": "HeldToMaturitySecurities",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain": {
     "auth_ref": [
      "r177"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_HeldToMaturitySecurities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of accumulated unrecognized gain on investment in debt security measured at amortized cost (held-to-maturity).",
        "label": "Debt Securities, Held-to-maturity, Accumulated Unrecognized Gain",
        "terseLabel": "Gross Unrealized Appreciation"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss": {
     "auth_ref": [
      "r178"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_HeldToMaturitySecurities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of accumulated unrealized loss on investment in debt security measured at amortized cost (held-to-maturity).",
        "label": "Debt Securities, Held-to-maturity, Accumulated Unrecognized Loss",
        "terseLabel": "Gross Unrealized Depreciation"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Debt Securities, Held-to-maturity, Maturity [Abstract]",
        "terseLabel": "HELD-TO-MATURITY"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesDebtMaturitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesFairValue": {
     "auth_ref": [
      "r176"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_HeldToMaturitySecurities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value of investment in debt security measured at amortized cost (held-to-maturity).",
        "label": "Debt Securities, Held-to-maturity, Fair Value",
        "netLabel": "Fixed maturities, held-to-maturity securities, fair value",
        "terseLabel": "Fair Value",
        "verboseLabel": "Held-to-maturity securities"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesFairValue",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheetsParentheticals",
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueAndEstimatedFairValueDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeLossFromContinuingOperations": {
     "auth_ref": [
      "r85",
      "r103",
      "r124",
      "r271"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited": {
       "order": 1.0,
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount after tax of income (loss) from continuing operations attributable to the parent.",
        "label": "Income (Loss) from Continuing Operations, Net of Tax, Attributable to Parent",
        "totalLabel": "Income (loss) from continuing operations",
        "verboseLabel": "Net income (loss) from continuing operations"
       }
      }
     },
     "localname": "IncomeLossFromContinuingOperations",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited",
      "http://www.unitedfiregroup.com/role/EarningsPerCommonShareDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments": {
     "auth_ref": [
      "r111"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited": {
       "order": 1.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperations",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of income (loss) from continuing operations before deduction of income tax expense (benefit) and income (loss) attributable to noncontrolling interest, and addition of income (loss) from equity method investments.",
        "label": "Income (Loss) from Continuing Operations before Equity Method Investments, Income Taxes, Noncontrolling Interest",
        "totalLabel": "Income (loss) from continuing operations before income taxes"
       }
      }
     },
     "localname": "IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeLossFromContinuingOperationsPerBasicShare": {
     "auth_ref": [
      "r79",
      "r83",
      "r118",
      "r122",
      "r123",
      "r321",
      "r323",
      "r325",
      "r358"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/EarningsPerCommonShareDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_EarningsPerShareBasic",
       "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": "Basic (in dollars per share)",
        "verboseLabel": "Earnings (loss) per common share from continuing operations, basic (in dollars per share)"
       }
      }
     },
     "localname": "IncomeLossFromContinuingOperationsPerBasicShare",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited",
      "http://www.unitedfiregroup.com/role/EarningsPerCommonShareDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_IncomeLossFromContinuingOperationsPerDilutedShare": {
     "auth_ref": [
      "r79",
      "r83",
      "r118",
      "r122",
      "r123",
      "r124",
      "r325",
      "r358",
      "r361"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/EarningsPerCommonShareDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_EarningsPerShareDiluted",
       "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": "Diluted (in dollars per share)",
        "verboseLabel": "Earnings (loss) per common share from continuing operations, diluted (in dollars per share)"
       }
      }
     },
     "localname": "IncomeLossFromContinuingOperationsPerDilutedShare",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited",
      "http://www.unitedfiregroup.com/role/EarningsPerCommonShareDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity": {
     "auth_ref": [
      "r8",
      "r9",
      "r10",
      "r11",
      "r12",
      "r22",
      "r28",
      "r272"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 2.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      },
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited": {
       "order": 2.0,
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": 1.0
      },
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsStatementsOfIncomeDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount after tax of income (loss) from a discontinued operation attributable to the parent. Includes, but is not limited to, the income (loss) from operations during the phase-out period, gain (loss) on disposal, gain (loss) for reversal of write-down (write-down) to fair value, less cost to sell, and adjustments to a prior period gain (loss) on disposal.",
        "label": "Income (Loss) from Discontinued Operations, Net of Tax, Attributable to Parent",
        "terseLabel": "Less net income (loss) from discontinued operations, net of taxes",
        "totalLabel": "Income from discontinued operations, net of taxes",
        "verboseLabel": "Income (loss) from discontinued operations, net of taxes"
       }
      }
     },
     "localname": "IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited",
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited",
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsStatementsOfIncomeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeStatementAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Income Statement [Abstract]"
       }
      }
     },
     "localname": "IncomeStatementAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by name of disposal group.",
        "label": "Disposal Group Name [Axis]",
        "terseLabel": "Disposal Group Name [Axis]"
       }
      }
     },
     "localname": "IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsBalanceSheetsDetails",
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsNarrativeDetails",
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsStatementsOfIncomeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems": {
     "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": "Income Statement, Balance Sheet and Additional Disclosures by Disposal Groups, Including Discontinued Operations [Line Items]",
        "terseLabel": "Income Statement, Balance Sheet and Additional Disclosures by Disposal Groups, Including Discontinued Operations [Line Items]"
       }
      }
     },
     "localname": "IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsBalanceSheetsDetails",
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsNarrativeDetails",
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsStatementsOfIncomeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsTable": {
     "auth_ref": [
      "r2",
      "r14",
      "r15",
      "r16",
      "r17",
      "r20",
      "r21",
      "r26",
      "r29",
      "r30",
      "r31",
      "r194",
      "r195"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of information about a disposal group. Includes, but is not limited to, a discontinued operation, disposal classified as held-for-sale or disposed of by means other than sale or disposal of an individually significant component.",
        "label": "Disposal Groups, Including Discontinued Operations [Table]",
        "terseLabel": "Disposal Groups, Including Discontinued Operations [Table]"
       }
      }
     },
     "localname": "IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsTable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsBalanceSheetsDetails",
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsNarrativeDetails",
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsStatementsOfIncomeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeTaxExpenseBenefit": {
     "auth_ref": [
      "r109",
      "r148",
      "r268"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited": {
       "order": 2.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperations",
       "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": "Federal income tax expense (benefit) (includes reclassifications of $453 and $1,184 in 2018 and $327 and ($610) in 2017; previously included in accumulated other comprehensive income)",
        "verboseLabel": "Federal income tax expense (benefit)"
       }
      }
     },
     "localname": "IncomeTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited",
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeTaxPolicyTextBlock": {
     "auth_ref": [
      "r108",
      "r256",
      "r257",
      "r261",
      "r262",
      "r264",
      "r270",
      "r397"
     ],
     "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/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_IncomeTaxReceivable": {
     "auth_ref": [
      "r52",
      "r337"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets": {
       "order": 9.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": "Income taxes receivable"
       }
      }
     },
     "localname": "IncomeTaxReceivable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeTaxesPaid": {
     "auth_ref": [
      "r98",
      "r107"
     ],
     "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": "Payment for income taxes"
       }
      }
     },
     "localname": "IncomeTaxesPaid",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInAccruedInvestmentIncomeReceivable": {
     "auth_ref": [
      "r101"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 6.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The increase (decrease) during the reporting period in investment income that has been earned but not yet received in cash.",
        "label": "Increase (Decrease) in Accrued Investment Income Receivable",
        "negatedLabel": "Accrued investment income"
       }
      }
     },
     "localname": "IncreaseDecreaseInAccruedInvestmentIncomeReceivable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInDeferredIncomeTaxes": {
     "auth_ref": [
      "r101"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 16.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The increase (decrease) during the reporting period in the account that represents the temporary difference that results from Income or Loss that is recognized for accounting purposes but not for tax purposes and vice versa.",
        "label": "Increase (Decrease) in Deferred Income Taxes",
        "negatedLabel": "Deferred income taxes"
       }
      }
     },
     "localname": "IncreaseDecreaseInDeferredIncomeTaxes",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInFuturePolicyBenefitReserves": {
     "auth_ref": [
      "r101"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 13.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The change in the future policy benefit reserve balance on the balance sheet.",
        "label": "Increase (Decrease) in Future Policy Benefit Reserves",
        "terseLabel": "Losses and loss settlement expenses"
       }
      }
     },
     "localname": "IncreaseDecreaseInFuturePolicyBenefitReserves",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInIncomeTaxesReceivable": {
     "auth_ref": [
      "r101"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 11.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations",
       "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": "Income taxes receivable"
       }
      }
     },
     "localname": "IncreaseDecreaseInIncomeTaxesReceivable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInOperatingCapitalAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Increase (Decrease) in Operating Capital [Abstract]",
        "terseLabel": "Changes in:"
       }
      }
     },
     "localname": "IncreaseDecreaseInOperatingCapitalAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncreaseDecreaseInOtherOperatingAssets": {
     "auth_ref": [
      "r101"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 12.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations",
       "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/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInOtherOperatingLiabilities": {
     "auth_ref": [
      "r101"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 17.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations",
       "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, net"
       }
      }
     },
     "localname": "IncreaseDecreaseInOtherOperatingLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInPremiumsReceivable": {
     "auth_ref": [
      "r101"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 7.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The change in the premium receivable balance on the balance sheet.",
        "label": "Increase (Decrease) in Premiums Receivable",
        "negatedLabel": "Premiums receivable"
       }
      }
     },
     "localname": "IncreaseDecreaseInPremiumsReceivable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInPrepaidReinsurancePremiums": {
     "auth_ref": [
      "r101"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations",
       "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": "Prepaid reinsurance premiums"
       }
      }
     },
     "localname": "IncreaseDecreaseInPrepaidReinsurancePremiums",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInReinsuranceRecoverable": {
     "auth_ref": [
      "r101"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 9.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations",
       "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": "Reinsurance receivables"
       }
      }
     },
     "localname": "IncreaseDecreaseInReinsuranceRecoverable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInStockholdersEquityRollForward": {
     "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": "Increase (Decrease) in Stockholders' Equity [Roll Forward]",
        "terseLabel": "Increase (Decrease) in Stockholders' Equity [Roll Forward]",
        "verboseLabel": "Accumulated Other Comprehensive Income (Loss) [Roll Forward]"
       }
      }
     },
     "localname": "IncreaseDecreaseInStockholdersEquityRollForward",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/AccumulatedOtherComprehensiveIncomeLossDetails",
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementOfStockholdersEquityUnaudited"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncreaseDecreaseInUnearnedPremiums": {
     "auth_ref": [
      "r101"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 14.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations",
       "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 premiums"
       }
      }
     },
     "localname": "IncreaseDecreaseInUnearnedPremiums",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements": {
     "auth_ref": [
      "r119",
      "r126"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/EarningsPerCommonShareDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding",
       "weight": 1.0
      }
     },
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Additional shares included in the calculation of diluted EPS as a result of the potentially dilutive effect of share based payment arrangements using the treasury stock method.",
        "label": "Incremental Common Shares Attributable to Dilutive Effect of Share-based Payment Arrangements",
        "terseLabel": "Add dilutive effect of share-based awards outstanding (in shares)"
       }
      }
     },
     "localname": "IncrementalCommonSharesAttributableToShareBasedPaymentArrangements",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/EarningsPerCommonShareDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_InformationByCategoryOfDebtSecurityAxis": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by category of debt security, either available-for-sale or held-to-maturity.",
        "label": "Debt Security Category [Axis]",
        "terseLabel": "Debt Security Category [Axis]"
       }
      }
     },
     "localname": "InformationByCategoryOfDebtSecurityAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsNetRealizedInvestmentGainsAndLossesAndProceedsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_InsuranceLossReservesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Insurance Loss Reserves [Abstract]"
       }
      }
     },
     "localname": "InsuranceLossReservesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_InterestExpense": {
     "auth_ref": [
      "r80",
      "r146",
      "r301",
      "r302",
      "r326"
     ],
     "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 incurred"
       }
      }
     },
     "localname": "InterestExpense",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/CreditFacilityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestPaid": {
     "auth_ref": [
      "r107"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of cash paid for interest, including, but not limited to, capitalized interest and payment to settle zero-coupon bond attributable to 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; classified as operating and investing activities.",
        "label": "Interest Paid, Including Capitalized Interest, Operating and Investing Activities",
        "terseLabel": "Interest payments"
       }
      }
     },
     "localname": "InterestPaid",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_Investments": {
     "auth_ref": [
      "r355"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets": {
       "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/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InvestmentsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Investments [Abstract]",
        "terseLabel": "Investments",
        "verboseLabel": "Investments"
       }
      }
     },
     "localname": "InvestmentsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets",
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueAndEstimatedFairValueDetails"
     ],
     "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": "Maturities"
       }
      }
     },
     "localname": "InvestmentsClassifiedByContractualMaturityDateTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock": {
     "auth_ref": [
      "r188",
      "r310",
      "r331",
      "r395"
     ],
     "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": "Summary of Investments"
       }
      }
     },
     "localname": "InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestments"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_LetterOfCreditMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "A document typically issued by a financial institution which acts as a guarantee of payment to a beneficiary, or as the source of payment for a specific transaction (for example, wiring funds to a foreign exporter if and when specified merchandise is accepted pursuant to the terms of the letter of credit).",
        "label": "Letter of Credit [Member]",
        "terseLabel": "Letter of Credit"
       }
      }
     },
     "localname": "LetterOfCreditMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/CreditFacilityDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_Liabilities": {
     "auth_ref": [
      "r57"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets": {
       "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/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Liabilities [Abstract]",
        "terseLabel": "Liabilities"
       }
      }
     },
     "localname": "LiabilitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets",
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueAndEstimatedFairValueDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LiabilitiesAndStockholdersEquity": {
     "auth_ref": [
      "r51",
      "r314",
      "r346"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets": {
       "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 STOCKHOLDERS\u2019 EQUITY"
       }
      }
     },
     "localname": "LiabilitiesAndStockholdersEquity",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilitiesAndStockholdersEquityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Liabilities and Equity [Abstract]",
        "terseLabel": "LIABILITIES AND STOCKHOLDERS\u2019 EQUITY"
       }
      }
     },
     "localname": "LiabilitiesAndStockholdersEquityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LiabilitiesOfDisposalGroupIncludingDiscontinuedOperation": {
     "auth_ref": [
      "r1",
      "r2",
      "r25",
      "r27",
      "r192"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets": {
       "order": 5.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      },
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsBalanceSheetsDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount classified as liabilities attributable to disposal group held for sale or disposed of.",
        "label": "Disposal Group, Including Discontinued Operation, Liabilities",
        "terseLabel": "Liabilities held for sale",
        "totalLabel": "Total liabilities held for sale"
       }
      }
     },
     "localname": "LiabilitiesOfDisposalGroupIncludingDiscontinuedOperation",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets",
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsBalanceSheetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilitiesOfDisposalGroupIncludingDiscontinuedOperationAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Disposal Group, Including Discontinued Operation, Liabilities [Abstract]",
        "terseLabel": "Liabilities"
       }
      }
     },
     "localname": "LiabilitiesOfDisposalGroupIncludingDiscontinuedOperationAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsBalanceSheetsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LiabilityForClaimsAndClaimsAdjustmentExpense": {
     "auth_ref": [
      "r379",
      "r382"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ReservesForLossesAndLossSettlementExpensesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseNet",
       "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": "Gross liability for losses and loss settlement expenses at end of period",
        "periodStartLabel": "Gross liability for losses and loss settlement expenses at beginning of year"
       }
      }
     },
     "localname": "LiabilityForClaimsAndClaimsAdjustmentExpense",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ReservesForLossesAndLossSettlementExpensesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilityForClaimsAndClaimsAdjustmentExpensePropertyCasualtyLiability": {
     "auth_ref": [
      "r379",
      "r382"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets": {
       "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 casualty insurance insured events that have occurred on or before a particular date (ordinarily, the balance sheet date) and the amount needed to provide for the estimated ultimate cost required to investigate and settle claims relating to insured events that have occurred on or before a particular date (ordinarily, the balance sheet date), whether or not reported to the insurer at that date.",
        "label": "Liability for Claims and Claims Adjustment Expense, Property Casualty Liability",
        "terseLabel": "Losses and loss settlement expenses"
       }
      }
     },
     "localname": "LiabilityForClaimsAndClaimsAdjustmentExpensePropertyCasualtyLiability",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilityForFuturePolicyBenefitsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Liability for Future Policy Benefits [Abstract]",
        "terseLabel": "Policy reserves"
       }
      }
     },
     "localname": "LiabilityForFuturePolicyBenefitsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueAndEstimatedFairValueDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LiabilityForFuturePolicyBenefitsAndUnpaidClaimsDisclosureTextBlock": {
     "auth_ref": [
      "r386"
     ],
     "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": "Reserves for Losses and Loss Settlement Expenses"
       }
      }
     },
     "localname": "LiabilityForFuturePolicyBenefitsAndUnpaidClaimsDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ReservesForLossesAndLossSettlementExpenses"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseClaimsPaidAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Liability for Unpaid Claims and Claims Adjustment Expense, Claims Paid [Abstract]",
        "terseLabel": "Losses and loss settlement expense payments for claims occurring during"
       }
      }
     },
     "localname": "LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseClaimsPaidAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ReservesForLossesAndLossSettlementExpensesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseClaimsPaidCurrentYear1": {
     "auth_ref": [
      "r381"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ReservesForLossesAndLossSettlementExpensesDetails": {
       "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/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ReservesForLossesAndLossSettlementExpensesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseClaimsPaidPriorYears1": {
     "auth_ref": [
      "r381"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ReservesForLossesAndLossSettlementExpensesDetails": {
       "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/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ReservesForLossesAndLossSettlementExpensesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseIncurredClaims1": {
     "auth_ref": [
      "r380"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ReservesForLossesAndLossSettlementExpensesDetails": {
       "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"
       }
      }
     },
     "localname": "LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseIncurredClaims1",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ReservesForLossesAndLossSettlementExpensesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseIncurredClaimsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Liability for Unpaid Claims and Claims Adjustment Expense, Incurred Claims [Abstract]",
        "terseLabel": "Losses and loss settlement expenses incurred for claims occurring during"
       }
      }
     },
     "localname": "LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseIncurredClaimsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ReservesForLossesAndLossSettlementExpensesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseNet": {
     "auth_ref": [
      "r338",
      "r379",
      "r382"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ReservesForLossesAndLossSettlementExpensesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "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 liability for losses and loss settlement expenses at end of year",
        "periodStartLabel": "Net liability for losses and loss settlement expenses at beginning of year"
       }
      }
     },
     "localname": "LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseNet",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ReservesForLossesAndLossSettlementExpensesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseNetAbstract": {
     "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": "Liability for Unpaid Claims and Claims Adjustment Expense [Roll Forward]",
        "terseLabel": "Liability for Unpaid Claims and Claims Adjustment Expense [Roll Forward]"
       }
      }
     },
     "localname": "LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseNetAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ReservesForLossesAndLossSettlementExpensesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LifeInsuranceSegmentMember": {
     "auth_ref": [
      "r370",
      "r378",
      "r385"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Product line consisting of insurance policies providing death benefits.",
        "label": "Life Insurance Product Line [Member]",
        "terseLabel": "Life Insurance"
       }
      }
     },
     "localname": "LifeInsuranceSegmentMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationDeferredPolicyAcquisitionCostsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_LineOfCredit": {
     "auth_ref": [
      "r43",
      "r313",
      "r339"
     ],
     "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 balance on credit facility"
       }
      }
     },
     "localname": "LineOfCredit",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/CreditFacilityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "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": "Line of Credit Facility [Line Items]"
       }
      }
     },
     "localname": "LineOfCreditFacilityLineItems",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/CreditFacilityDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity": {
     "auth_ref": [
      "r56"
     ],
     "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/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/CreditFacilityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LineOfCreditFacilityTable": {
     "auth_ref": [
      "r56",
      "r110"
     ],
     "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]",
        "terseLabel": "Line of Credit Facility [Table]"
       }
      }
     },
     "localname": "LineOfCreditFacilityTable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/CreditFacilityDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LoanToValueAxis": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by loan-to-value (LTV) ratio, for example, but not limited to, 80% to 100%. Element name and standard label in LTV [numeric lower end] to [numeric higher end] Percent [Member] or LTV Greater Than [low end numeric value] Percent [Member] or LTV Less Than [high end numeric value] Percent [Member] formats.",
        "label": "Loan to Value [Axis]",
        "terseLabel": "Loan to Value [Axis]"
       }
      }
     },
     "localname": "LoanToValueAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueOfCommercialMortgageLoansAndAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LoanToValueDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Loan-to-value (LTV) ratio, for example, but not limited to, 80% to 100%. Element name and standard label in LTV [numeric lower end] to [numeric higher end] Percent [Member] or LTV Greater Than [low end numeric value] Percent [Member] or LTV Less Than [high end numeric value] Percent [Member] formats.",
        "label": "Loan to Value [Domain]",
        "terseLabel": "Loan to Value [Domain]"
       }
      }
     },
     "localname": "LoanToValueDomain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueOfCommercialMortgageLoansAndAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "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": "Fair Value of Investments"
       }
      }
     },
     "localname": "MarketableSecuritiesTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_MortgageBackedSecuritiesMember": {
     "auth_ref": [
      "r164",
      "r213",
      "r214",
      "r234"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Securities collateralized by mortgage loans.",
        "label": "Collateralized Mortgage Backed Securities [Member]",
        "terseLabel": "Mortgage-backed securities"
       }
      }
     },
     "localname": "MortgageBackedSecuritiesMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet": {
     "auth_ref": [
      "r352"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets": {
       "order": 7.0,
       "parentTag": "us-gaap_Investments",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The balance represents the amount of loans that are secured by real estate mortgages, offset by the reserve to cover probable credit losses on the loan portfolio.",
        "label": "Mortgage Loans on Real Estate, Commercial and Consumer, Net",
        "terseLabel": "Mortgage loans",
        "verboseLabel": "Carrying Value"
       }
      }
     },
     "localname": "MortgageLoansOnRealEstateCommercialAndConsumerNet",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets",
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueOfCommercialMortgageLoansAndAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_MortgagesHeldForSaleFairValueDisclosure": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value portion of mortgage loans held-for-sale.",
        "label": "Mortgages Held-for-sale, Fair Value Disclosure",
        "terseLabel": "Mortgage loans"
       }
      }
     },
     "localname": "MortgagesHeldForSaleFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueAndEstimatedFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_MovementAnalysisOfDeferredPolicyAcquisitionCostsRollForward": {
     "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": "Movement Analysis of Deferred Policy Acquisition Costs [Roll Forward]",
        "terseLabel": "Movement Analysis of Deferred Policy Acquisition Costs [Roll Forward]"
       }
      }
     },
     "localname": "MovementAnalysisOfDeferredPolicyAcquisitionCostsRollForward",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationDeferredPolicyAcquisitionCostsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetCashProvidedByUsedInContinuingOperations": {
     "auth_ref": [
      "r97"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The increase (decrease) in cash associated with the entity's continuing operating, investing, and financing activities. While for technical reasons this element has no balance attribute, the default assumption is a debit balance consistent with its label.",
        "label": "Net Cash Provided by (Used in) Continuing Operations",
        "terseLabel": "Net (decrease) increase in cash and cash equivalents - continuing operations"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInContinuingOperations",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetCashProvidedByUsedInDiscontinuedOperations": {
     "auth_ref": [
      "r97"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Increase (decrease) in cash associated with the entity's discontinued operations.",
        "label": "Net Cash Provided by (Used in) Discontinued Operations",
        "negatedTotalLabel": "Less: increase in cash and cash equivalents - discontinued operations"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInDiscontinuedOperations",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetCashProvidedByUsedInFinancingActivities": {
     "auth_ref": [
      "r97"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 3.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect",
       "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 in financing activities"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInFinancingActivities",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "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/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations": {
     "auth_ref": [
      "r97"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 1.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of cash inflow (outflow) of financing activities, excluding 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, Continuing Operations",
        "totalLabel": "Cash from financing activities - continuing operations"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInFinancingActivitiesContinuingOperations",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetCashProvidedByUsedInInvestingActivities": {
     "auth_ref": [
      "r97"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 2.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect",
       "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 provided by (used in) investing activities"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInInvestingActivities",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "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/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations": {
     "auth_ref": [
      "r97"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 1.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of cash inflow (outflow) of investing activities, excluding 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, Continuing Operations",
        "totalLabel": "Cash from investing activities - continuing operations"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInInvestingActivitiesContinuingOperations",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetCashProvidedByUsedInOperatingActivities": {
     "auth_ref": [
      "r97",
      "r100",
      "r103"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 1.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect",
       "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/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "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/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations": {
     "auth_ref": [
      "r97",
      "r100",
      "r103"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 1.0,
       "parentTag": "us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of cash inflow (outflow) from operating activities, excluding 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, Continuing Operations",
        "totalLabel": "Cash from operating activities - continuing operations"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInOperatingActivitiesContinuingOperations",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetIncomeLoss": {
     "auth_ref": [
      "r73",
      "r75",
      "r82",
      "r103",
      "r126",
      "r324",
      "r360"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 1.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      },
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited": {
       "order": 3.0,
       "parentTag": "us-gaap_ComprehensiveIncomeNetOfTax",
       "weight": 1.0
      }
     },
     "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",
        "totalLabel": "Net income (loss)",
        "verboseLabel": "Net income"
       }
      }
     },
     "localname": "NetIncomeLoss",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementOfStockholdersEquityUnaudited",
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited",
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetInvestmentIncome": {
     "auth_ref": [
      "r362"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited": {
       "order": 2.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": "Investment income, net of investment expenses"
       }
      }
     },
     "localname": "NetInvestmentIncome",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "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": "Recently Issued Accounting Standards"
       }
      }
     },
     "localname": "NewAccountingPronouncementsPolicyPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_NonredeemablePreferredStockMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Preferred shares that are not redeemable before liquidation of the entity. Preferred shares may provide a preferential dividend to the dividend on common stock and may take precedence over common stock in the event of a liquidation. Preferred shares typically represent an ownership interest in the company.",
        "label": "Nonredeemable Preferred Stock [Member]",
        "terseLabel": "Nonredeemable preferred stocks"
       }
      }
     },
     "localname": "NonredeemablePreferredStockMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_NumberOfOperatingSegments": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Number of operating segments. An operating segment is a component of an enterprise: (a) that engages in business activities from which it may earn revenues and incur expenses (including revenues and expenses relating to transactions with other components of the same enterprise), (b) whose operating results are regularly reviewed by the enterprise's chief operating decision maker to make decisions about resources to be allocated to the segment and assess its performance, and (c) for which discrete financial information is available. An operating segment may engage in business activities for which it has yet to earn revenues, for example, start-up operations may be operating segments before earning revenues.",
        "label": "Number of Operating Segments",
        "terseLabel": "Number of business segments"
       }
      }
     },
     "localname": "NumberOfOperatingSegments",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationNarrativeDetails",
      "http://www.unitedfiregroup.com/role/SegmentInformationDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "us-gaap_NumberOfStatesInWhichEntityOperates": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The number of states the entity operates in as of the balance sheet date.",
        "label": "Number of States in which Entity Operates",
        "terseLabel": "Number of states in which we are licensed as insurer"
       }
      }
     },
     "localname": "NumberOfStatesInWhichEntityOperates",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationNarrativeDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "us-gaap_OciBeforeReclassificationsNetOfTaxAttributableToParent": {
     "auth_ref": [
      "r69",
      "r78"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount after tax, before reclassification adjustments, of other comprehensive income (loss), attributable to parent.",
        "label": "OCI, before Reclassifications, Net of Tax, Attributable to Parent",
        "terseLabel": "Change in accumulated other comprehensive income before reclassifications"
       }
      }
     },
     "localname": "OciBeforeReclassificationsNetOfTaxAttributableToParent",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/AccumulatedOtherComprehensiveIncomeLossDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeasesFutureMinimumPaymentsDue": {
     "auth_ref": [
      "r303",
      "r304"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of required minimum rental payments for leases having an initial or remaining non-cancelable letter-terms in excess of one year.",
        "label": "Operating Leases, Future Minimum Payments Due",
        "terseLabel": "Future minimum lease payments due"
       }
      }
     },
     "localname": "OperatingLeasesFutureMinimumPaymentsDue",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OrganizationConsolidationAndPresentationOfFinancialStatementsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Organization, Consolidation and Presentation of Financial Statements [Abstract]"
       }
      }
     },
     "localname": "OrganizationConsolidationAndPresentationOfFinancialStatementsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureAndSignificantAccountingPoliciesTextBlock": {
     "auth_ref": [
      "r34",
      "r113",
      "r142",
      "r276"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for the organization, consolidation and basis of presentation of financial statements disclosure, and significant accounting policies of the reporting entity. May be provided in more than one note to the financial statements, as long as users are provided with an understanding of (1) the significant judgments and assumptions made by an enterprise in determining whether it must consolidate a VIE and/or disclose information about its involvement with a VIE, (2) the nature of restrictions on a consolidated VIE's assets reported by an enterprise in its statement of financial position, including the carrying amounts of such assets, (3) the nature of, and changes in, the risks associated with an enterprise's involvement with the VIE, and (4) how an enterprise's involvement with the VIE affects the enterprise's financial position, financial performance, and cash flows.  Describes procedure if disclosures are provided in more than one note to the financial statements.",
        "label": "Organization, Consolidation and Presentation of Financial Statements Disclosure and Significant Accounting Policies [Text Block]",
        "terseLabel": "Nature of Operations and Basis of Presentation"
       }
      }
     },
     "localname": "OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureAndSignificantAccountingPoliciesTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentation"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_OtherAssets": {
     "auth_ref": [
      "r41",
      "r311",
      "r342"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets": {
       "order": 11.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"
       }
      }
     },
     "localname": "OtherAssets",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherAssetsMember": {
     "auth_ref": [
      "r277",
      "r279"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Primary financial statement caption encompassing other assets.",
        "label": "Other Assets [Member]",
        "terseLabel": "Other Assets"
       }
      }
     },
     "localname": "OtherAssetsMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent": {
     "auth_ref": [
      "r272",
      "r273",
      "r274"
     ],
     "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), Available-for-sale Securities Adjustment, Net of Tax, Portion Attributable to Parent",
        "terseLabel": "Change in net unrealized investment appreciation and depreciation of discontinued operations, sold"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementOfStockholdersEquityUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentNetOfTaxPortionAttributableToParent": {
     "auth_ref": [
      "r64",
      "r66",
      "r272",
      "r274"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount, after tax and reclassification adjustment, of (increase) decrease in accumulated other comprehensive income for defined benefit plan, attributable to parent.",
        "label": "Other Comprehensive (Income) Loss, Defined Benefit Plan, after Tax and Reclassification Adjustment, Attributable to Parent",
        "negatedTerseLabel": "Change in liability for underfunded employee benefit plans"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentNetOfTaxPortionAttributableToParent",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementOfStockholdersEquityUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeReclassificationAdjustmentsNetOfTaxAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Other Comprehensive Income (Loss), Securities, Available-for-sale, Adjustment, before Reclassification Adjustments, after Tax [Abstract]",
        "terseLabel": "Change in net unrealized investment appreciation"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeReclassificationAdjustmentsNetOfTaxAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsUnrealizedAppreciationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeTax": {
     "auth_ref": [
      "r60"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount before tax, after reclassification adjustments, of appreciation (loss) in value of unsold available-for-sale securities. Excludes amounts related to other than temporary impairment (OTTI) loss.",
        "label": "Other Comprehensive Income (Loss), Securities, Available-for-sale, Adjustment, before Tax",
        "terseLabel": "Available-for-sale fixed maturities"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsUnrealizedAppreciationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsBeforeTax": {
     "auth_ref": [
      "r69"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited": {
       "order": 1.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount before tax and reclassification adjustments of other comprehensive income (loss).",
        "label": "Other Comprehensive Income (Loss), before Reclassifications, before Tax",
        "totalLabel": "Other comprehensive income (loss), before tax and reclassification adjustments"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossBeforeReclassificationsBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax": {
     "auth_ref": [
      "r69",
      "r78"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited": {
       "order": 1.0,
       "parentTag": "us-gaap_ComprehensiveIncomeNetOfTax",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount after tax, before reclassification adjustments of other comprehensive income (loss).",
        "label": "Other Comprehensive Income (Loss), before Reclassifications, Net of Tax",
        "totalLabel": "Other comprehensive income (loss), after tax, before reclassification adjustments"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsTax": {
     "auth_ref": [
      "r67",
      "r267"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited": {
       "order": 2.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of tax expense (benefit) allocated to other comprehensive income (loss) before reclassification adjustment from accumulated other comprehensive income (loss).",
        "label": "Other Comprehensive Income (Loss) before Reclassifications, Tax",
        "negatedTerseLabel": "Income tax effect"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossBeforeReclassificationsTax",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Other Comprehensive Income (Loss), Net of Tax [Abstract]",
        "terseLabel": "Other comprehensive income (loss)"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeReclassificationAdjustmentsAndTax": {
     "auth_ref": [
      "r64",
      "r66"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited": {
       "order": 2.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsBeforeTax",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount, before tax and reclassification adjustment, of (increase) decrease in accumulated other comprehensive income of defined benefit plan, that has not been recognized in net periodic benefit cost (credit).",
        "label": "Other Comprehensive (Income) Loss, Defined Benefit Plan, before Reclassification Adjustment and Tax",
        "negatedTerseLabel": "Change in liability for underfunded employee benefit plans"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeReclassificationAdjustmentsAndTax",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesBeforeTax": {
     "auth_ref": [
      "r66",
      "r70",
      "r71",
      "r187"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited": {
       "order": 1.0,
       "parentTag": "us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount before 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, before Tax",
        "negatedTerseLabel": "Reclassification adjustment for net realized investment (gains) losses included in income",
        "terseLabel": "Reclassifications for net unrealized gains on available-for-sale securities"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited",
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnauditedParentheticals"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansBeforeTax": {
     "auth_ref": [
      "r66",
      "r70",
      "r71"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited": {
       "order": 2.0,
       "parentTag": "us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount, before tax, of reclassification adjustment from accumulated other comprehensive (income) loss for net period benefit cost (credit) of defined benefit plan.",
        "label": "Other Comprehensive (Income) Loss, Defined Benefit Plan, Reclassification Adjustment from AOCI, before Tax",
        "terseLabel": "Reclassification adjustment for employee benefit costs included in expense"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited",
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnauditedParentheticals"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax": {
     "auth_ref": [
      "r60",
      "r66",
      "r187"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited": {
       "order": 1.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsBeforeTax",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount before tax and reclassification adjustments of unrealized holding gain (loss) on available-for-sale securities.",
        "label": "Other Comprehensive Income (Loss), Securities, Available-for-Sale, Unrealized Holding Gain (Loss) Arising During Period, before Tax",
        "terseLabel": "Change in net unrealized appreciation on investments"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax": {
     "auth_ref": [
      "r60",
      "r66"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount after tax, before reclassification adjustments, of unrealized holding gain (loss) on available-for-sale securities.",
        "label": "Other Comprehensive Income (Loss), Securities, Available-for-Sale, Unrealized Holding Gain (Loss) Arising During Period, after Tax",
        "terseLabel": "Total change in net unrealized investment appreciation, net of tax"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsUnrealizedAppreciationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax": {
     "auth_ref": [
      "r61",
      "r67"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of tax expense (benefit) before reclassification adjustments of unrealized holding gain (loss) on available-for-sale securities.",
        "label": "Other Comprehensive Income (Loss), Securities, Available-for-Sale, Unrealized Holding Gain (Loss) Arising During Period, Tax",
        "negatedTerseLabel": "Income tax effect"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsUnrealizedAppreciationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherLongTermInvestments": {
     "auth_ref": [
      "r54",
      "r353"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets": {
       "order": 4.0,
       "parentTag": "us-gaap_Investments",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of long-term investments classified as other.",
        "label": "Other Long-term Investments",
        "terseLabel": "Other long-term investments"
       }
      }
     },
     "localname": "OtherLongTermInvestments",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember": {
     "auth_ref": [
      "r209",
      "r223",
      "r224",
      "r235"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Plan designed to provide other postretirement benefits. Includes, but is not limited to, defined benefit and defined contribution plans. Excludes pension benefits.",
        "label": "Other Postretirement Benefits Plan [Member]",
        "terseLabel": "Postretirement Benefit Plan"
       }
      }
     },
     "localname": "OtherPostretirementBenefitPlansDefinedBenefitMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/EmployeeBenefitsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_OtherShortTermInvestments": {
     "auth_ref": [
      "r59",
      "r319",
      "r354"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets": {
       "order": 5.0,
       "parentTag": "us-gaap_Investments",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of short-term investments classified as other.",
        "label": "Other Short-term Investments",
        "terseLabel": "Short-term investments"
       }
      }
     },
     "localname": "OtherShortTermInvestments",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain": {
     "auth_ref": [
      "r184"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Provides the categories of debt securities, available-for-sale or held-to-maturity, on which an entity may recognize other than temporary impairments (OTTI) for which a portion related to credit losses has been recognized in earnings and a portion related to all other factors has been recognized in other comprehensive income.",
        "label": "Other than Temporary Impairment, Credit Losses Recognized in Earnings, Categories of Investments [Domain]",
        "terseLabel": "Gain (Loss) on Investments, Including Marketable Securities and Investments Held at Cost, Categories of Investments [Domain]"
       }
      }
     },
     "localname": "OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsNetRealizedInvestmentGainsAndLossesAndProceedsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_OtherUnderwritingExpense": {
     "auth_ref": [
      "r367",
      "r388"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited": {
       "order": 3.0,
       "parentTag": "us-gaap_BenefitsLossesAndExpenses",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Costs incurred during the period, such as those relating to general administration and policy maintenance that do not vary with and are not primarily related to the acquisition or renewal of insurance contracts.",
        "label": "Other Underwriting Expense",
        "terseLabel": "Other underwriting expenses (includes reclassifications for employee benefit costs of $1,661 and $4,982 in 2018 and $1,352 and $4,056 in 2017; previously included in accumulated other comprehensive income)"
       }
      }
     },
     "localname": "OtherUnderwritingExpense",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsForLossesAndLossAdjustmentExpense": {
     "auth_ref": [
      "r99",
      "r381"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ReservesForLossesAndLossSettlementExpensesDetails": {
       "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"
       }
      }
     },
     "localname": "PaymentsForLossesAndLossAdjustmentExpense",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ReservesForLossesAndLossSettlementExpensesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsForProceedsFromProductiveAssets": {
     "auth_ref": [
      "r112"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 5.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The net cash outflow or inflow from purchases, sales and disposals of property, plant and equipment and other productive assets, including intangibles.",
        "label": "Payments for (Proceeds from) Productive Assets",
        "negatedLabel": "Net purchases and sales of property and equipment"
       }
      }
     },
     "localname": "PaymentsForProceedsFromProductiveAssets",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsForRepurchaseOfCommonStock": {
     "auth_ref": [
      "r96"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 2.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations",
       "weight": -1.0
      }
     },
     "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": "Repurchase of common stock"
       }
      }
     },
     "localname": "PaymentsForRepurchaseOfCommonStock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsOfDividends": {
     "auth_ref": [
      "r96"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 1.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations",
       "weight": -1.0
      }
     },
     "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",
        "negatedLabel": "Payment of cash dividends"
       }
      }
     },
     "localname": "PaymentsOfDividends",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquireAvailableForSaleSecurities": {
     "auth_ref": [
      "r94",
      "r163"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 3.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The cash outflow to acquire debt and equity securities not classified as either held-to-maturity securities or trading securities which would be classified as available-for-sale securities and reported at fair value, with unrealized gains and losses excluded from earnings and reported in a separate component of shareholders' equity.",
        "label": "Payments to Acquire Available-for-sale Securities",
        "negatedLabel": "Purchase of available-for-sale investments"
       }
      }
     },
     "localname": "PaymentsToAcquireAvailableForSaleSecurities",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquireLoansReceivable": {
     "auth_ref": [
      "r93"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 8.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The cash outflow for the purchase of loan receivable arising from the financing of goods and services.",
        "label": "Payments to Acquire Loans Receivable",
        "negatedTerseLabel": "Purchase of mortgage loans"
       }
      }
     },
     "localname": "PaymentsToAcquireLoansReceivable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PensionAndOtherPostretirementBenefitsDisclosureTextBlock": {
     "auth_ref": [
      "r236"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for pension and other postretirement benefits.",
        "label": "Pension and Other Postretirement Benefits Disclosure [Text Block]",
        "terseLabel": "Employee Benefits"
       }
      }
     },
     "localname": "PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/EmployeeBenefits"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_PensionPlansDefinedBenefitMember": {
     "auth_ref": [
      "r208",
      "r223",
      "r224",
      "r235"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Plan designed to provide participant with pension benefits. Includes, but is not limited to, defined benefit and defined contribution plans. Excludes other postretirement benefits.",
        "label": "Pension Plan [Member]",
        "terseLabel": "Pension Plan"
       }
      }
     },
     "localname": "PensionPlansDefinedBenefitMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/EmployeeBenefitsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PlanNameAxis": {
     "auth_ref": [
      "r241",
      "r250"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by plan name pertaining to equity-based compensation arrangements.",
        "label": "Plan Name [Axis]",
        "terseLabel": "Plan Name [Axis]"
       }
      }
     },
     "localname": "PlanNameAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/StockBasedCompensationActivityInStockPlanDetails",
      "http://www.unitedfiregroup.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_PlanNameDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Name of the equity-based compensation arrangement plan.",
        "label": "Plan Name [Domain]",
        "terseLabel": "Plan Name [Domain]"
       }
      }
     },
     "localname": "PlanNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/StockBasedCompensationActivityInStockPlanDetails",
      "http://www.unitedfiregroup.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PolicyholderBenefitsAndClaimsIncurredNet": {
     "auth_ref": [
      "r334",
      "r365"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited": {
       "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 settlement expenses"
       }
      }
     },
     "localname": "PolicyholderBenefitsAndClaimsIncurredNet",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PortionAtFairValueFairValueDisclosureMember": {
     "auth_ref": [
      "r292"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Measured at fair value for financial reporting purposes.",
        "label": "Portion at Fair Value Measurement [Member]",
        "terseLabel": "Portion at Fair Value Measurement [Member]"
       }
      }
     },
     "localname": "PortionAtFairValueFairValueDisclosureMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueAndEstimatedFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PremiumsEarnedNet": {
     "auth_ref": [
      "r322",
      "r357",
      "r369",
      "r387"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited": {
       "order": 1.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 premiums earned"
       }
      }
     },
     "localname": "PremiumsEarnedNet",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PremiumsReceivableAllowanceForDoubtfulAccounts": {
     "auth_ref": [
      "r156",
      "r158",
      "r340"
     ],
     "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": "Allowance for doubtful accounts"
       }
      }
     },
     "localname": "PremiumsReceivableAllowanceForDoubtfulAccounts",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheetsParentheticals"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PremiumsReceivableAtCarryingValue": {
     "auth_ref": [
      "r350"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets": {
       "order": 4.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The carrying amount as of the balance sheet date due the entity from (a) agents and insureds, (b) uncollected premiums and (c) others, net of the allowance for doubtful accounts.",
        "label": "Premiums Receivable, Net",
        "verboseLabel": "Premiums receivable (net of allowance for doubtful accounts of $968 in 2018 and $1,255 in 2017)"
       }
      }
     },
     "localname": "PremiumsReceivableAtCarryingValue",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PrepaidReinsurancePremiums": {
     "auth_ref": [
      "r377",
      "r391"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets": {
       "order": 8.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": "Prepaid reinsurance premiums"
       }
      }
     },
     "localname": "PrepaidReinsurancePremiums",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PriorPeriodReclassificationAdjustmentDescription": {
     "auth_ref": [
      "r0"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of accounting policy for reclassifications that affects the comparability of the financial statements.",
        "label": "Reclassification, Policy [Policy Text Block]",
        "terseLabel": "Reclassification"
       }
      }
     },
     "localname": "PriorPeriodReclassificationAdjustmentDescription",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ProceedsFromDivestitureOfBusinesses": {
     "auth_ref": [
      "r91"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 6.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The cash inflow associated with the amount received from the sale of a portion of the company's business, for example a segment, division, branch or other business, during the period.",
        "label": "Proceeds from Divestiture of Businesses",
        "terseLabel": "Proceeds from the sale of discontinued operations"
       }
      }
     },
     "localname": "ProceedsFromDivestitureOfBusinesses",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromIncomeTaxRefunds": {
     "auth_ref": [
      "r100",
      "r107"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The amount of cash received during the period as refunds for the overpayment of taxes.",
        "label": "Proceeds from Income Tax Refunds",
        "terseLabel": "Federal tax refund received"
       }
      }
     },
     "localname": "ProceedsFromIncomeTaxRefunds",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromIssuanceOfCommonStock": {
     "auth_ref": [
      "r95"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 3.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The cash inflow from the additional capital contribution to the entity.",
        "label": "Proceeds from Issuance of Common Stock",
        "terseLabel": "Issuance of common stock"
       }
      }
     },
     "localname": "ProceedsFromIssuanceOfCommonStock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities": {
     "auth_ref": [
      "r88",
      "r89",
      "r163"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 1.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations",
       "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 Debt Securities, Available-for-sale",
        "terseLabel": "Proceeds from call and maturity of available-for-sale investments"
       }
      }
     },
     "localname": "ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromPaymentsForTradingSecurities": {
     "auth_ref": [
      "r89",
      "r93",
      "r105"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 4.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of cash inflow (outflow) from sales and purchases of trading securities.",
        "label": "Proceeds from (Payments for) Trading Securities, Short-term",
        "terseLabel": "Net cash flows from equity and trading investments"
       }
      }
     },
     "localname": "ProceedsFromPaymentsForTradingSecurities",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromSaleMaturityAndCollectionOfShorttermInvestments": {
     "auth_ref": [
      "r92"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 2.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The cash inflow from sales, maturities, prepayments, calls and collections of all investments, including securities and other assets, having ready marketability and intended by management 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": "Proceeds from Sale, Maturity and Collection of Short-term Investments",
        "terseLabel": "Proceeds from short-term and other investments"
       }
      }
     },
     "localname": "ProceedsFromSaleMaturityAndCollectionOfShorttermInvestments",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromSaleOfAvailableForSaleSecurities": {
     "auth_ref": [
      "r90",
      "r163"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 9.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The cash inflow associated with the sale of debt and equity securities classified as available-for-sale securities.",
        "label": "Proceeds from Sale of Available-for-sale Securities",
        "terseLabel": "Proceeds from sale of available-for-sale investments",
        "verboseLabel": "Proceeds from sales"
       }
      }
     },
     "localname": "ProceedsFromSaleOfAvailableForSaleSecurities",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsNetRealizedInvestmentGainsAndLossesAndProceedsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt": {
     "auth_ref": [
      "r88",
      "r89",
      "r163"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 7.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations",
       "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 Debt Securities, Available-for-sale",
        "terseLabel": "Proceeds from sales",
        "verboseLabel": "Proceeds from sale of available-for-sale investments"
       }
      }
     },
     "localname": "ProceedsFromSaleOfAvailableForSaleSecuritiesDebt",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsNetRealizedInvestmentGainsAndLossesAndProceedsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PropertyLiabilityAndCasualtyInsuranceSegmentMember": {
     "auth_ref": [
      "r368",
      "r370",
      "r385"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Product line consisting of insurance against property related losses. Includes, but is not limited to, damage, theft or legal liability for personal injury.",
        "label": "Property, Liability and Casualty Insurance Product Line [Member]",
        "terseLabel": "Property and Casualty Insurance",
        "verboseLabel": "Property &amp; Casualty Insurance"
       }
      }
     },
     "localname": "PropertyLiabilityAndCasualtyInsuranceSegmentMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationDeferredPolicyAcquisitionCostsDetails",
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationNarrativeDetails",
      "http://www.unitedfiregroup.com/role/SegmentInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentNet": {
     "auth_ref": [
      "r39",
      "r40",
      "r191",
      "r349"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets": {
       "order": 6.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "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",
        "verboseLabel": "Property and equipment (primarily land and buildings, at cost, less accumulated depreciation of $50,431 in 2018 and $51,603 in 2017)"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentNet",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PublicUtilitiesMember": {
     "auth_ref": [
      "r206"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Government regulated service to public including, but not limited to, electricity, natural gas, water, sewage, telephone, and transportation.",
        "label": "Public Utilities [Member]",
        "terseLabel": "Public utilities"
       }
      }
     },
     "localname": "PublicUtilitiesMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PublicUtilityBondsMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "This item represents investments by the reporting entity in fixed maturity securities (bonds) issued by a public utility.",
        "label": "Public Utility, Bonds [Member]",
        "terseLabel": "Public utilities"
       }
      }
     },
     "localname": "PublicUtilityBondsMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RealEstateMember": {
     "auth_ref": [
      "r206"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Property consisting of land, land improvement and buildings.",
        "label": "Real Estate [Member]",
        "terseLabel": "Real estate"
       }
      }
     },
     "localname": "RealEstateMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsNetRealizedInvestmentGainsAndLossesAndProceedsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "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": "Net Realized Investment Gains and Losses"
       }
      }
     },
     "localname": "RealizedGainLossOnInvestmentsTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_RealizedInvestmentGainsLosses": {
     "auth_ref": [
      "r364"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 18.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations",
       "weight": -1.0
      },
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited": {
       "order": 3.0,
       "parentTag": "us-gaap_Revenues",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The net realized gains or losses on investments during the period, not including gains or losses on securities separately or otherwise categorized as trading, available-for-sale, or held-to-maturity.",
        "label": "Realized Investment Gains (Losses)",
        "negatedLabel": "Net realized investment gains",
        "terseLabel": "Net realized investment gains (includes reclassifications for net unrealized investment gains/(losses) on available-for-sale securities of ($496) and ($655) in 2018 and $419 and $5,799 in 2017; previously included in accumulated other comprehensive income)",
        "verboseLabel": "Net realized investment gains (losses)"
       }
      }
     },
     "localname": "RealizedInvestmentGainsLosses",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited",
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsNetRealizedInvestmentGainsAndLossesAndProceedsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax": {
     "auth_ref": [
      "r69",
      "r72"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited": {
       "order": 1.0,
       "parentTag": "us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount before tax of reclassification adjustments of other comprehensive income (loss).",
        "label": "Reclassification from Accumulated Other Comprehensive Income, Current Period, before Tax",
        "negatedTotalLabel": "Total reclassification adjustments, before tax"
       }
      }
     },
     "localname": "ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax": {
     "auth_ref": [
      "r69",
      "r72",
      "r78"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited": {
       "order": 2.0,
       "parentTag": "us-gaap_ComprehensiveIncomeNetOfTax",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount after tax of reclassification adjustments of other comprehensive income (loss).",
        "label": "Reclassification from Accumulated Other Comprehensive Income, Current Period, Net of Tax",
        "negatedTotalLabel": "Total reclassification adjustments, after tax"
       }
      }
     },
     "localname": "ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent": {
     "auth_ref": [
      "r69",
      "r78"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount after tax of reclassification adjustments of other comprehensive income (loss) attributable to parent.",
        "label": "Reclassification from AOCI, Current Period, Net of Tax, Attributable to Parent",
        "negatedTerseLabel": "Reclassification adjustments from accumulated other comprehensive income (loss)"
       }
      }
     },
     "localname": "ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/AccumulatedOtherComprehensiveIncomeLossDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ReclassificationFromAociCurrentPeriodTax": {
     "auth_ref": [
      "r67",
      "r71",
      "r267"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited": {
       "order": 2.0,
       "parentTag": "us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of tax expense (benefit) of reclassification adjustment from accumulated other comprehensive income (loss).",
        "label": "Reclassification from AOCI, Current Period, Tax",
        "negatedLabel": "Reclassifications adjustments - tax",
        "terseLabel": "Income tax effect"
       }
      }
     },
     "localname": "ReclassificationFromAociCurrentPeriodTax",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited",
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnauditedParentheticals"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RedeemablePreferredStockMember": {
     "auth_ref": [
      "r36",
      "r201"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Description of type or class of redeemable preferred stock. For instance, cumulative preferred stock, noncumulative preferred stock, convertible or series.",
        "label": "Redeemable Preferred Stock [Member]",
        "terseLabel": "Redeemable preferred stocks"
       }
      }
     },
     "localname": "RedeemablePreferredStockMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ReinsuranceRecoverables": {
     "auth_ref": [
      "r335",
      "r351",
      "r376"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets": {
       "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 including premium paid 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 Recoverables, Including Reinsurance Premium Paid",
        "terseLabel": "Reinsurance receivables and recoverables"
       }
      }
     },
     "localname": "ReinsuranceRecoverables",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RestrictedStockMember": {
     "auth_ref": [
      "r125"
     ],
     "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 [Member]",
        "terseLabel": "Restricted Stock Awards",
        "verboseLabel": "Restricted Stock Unit Awards"
       }
      }
     },
     "localname": "RestrictedStockMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/EarningsPerCommonShareDetails",
      "http://www.unitedfiregroup.com/role/StockBasedCompensationActivityInStockPlanDetails",
      "http://www.unitedfiregroup.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RetainedEarningsAccumulatedDeficit": {
     "auth_ref": [
      "r48",
      "r203",
      "r345"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets": {
       "order": 3.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",
        "verboseLabel": "Retained earnings"
       }
      }
     },
     "localname": "RetainedEarningsAccumulatedDeficit",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets",
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RetainedEarningsMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The cumulative amount of the reporting entity's undistributed earnings or deficit.",
        "label": "Retained Earnings [Member]",
        "terseLabel": "Retained earnings"
       }
      }
     },
     "localname": "RetainedEarningsMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementOfStockholdersEquityUnaudited"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RetirementPlanTypeAxis": {
     "auth_ref": [
      "r208",
      "r209",
      "r223",
      "r224",
      "r235"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by type of retirement benefit plan. Includes, but is not limited to, retirement benefit arrangement for defined benefit pension and other postretirement plans, retirement benefit arrangement for defined contribution pension and other postretirement plans, and special and contractual termination benefits payable upon retirement.",
        "label": "Retirement Plan Type [Axis]",
        "terseLabel": "Retirement Plan Type [Axis]"
       }
      }
     },
     "localname": "RetirementPlanTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/EmployeeBenefitsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_RetirementPlanTypeDomain": {
     "auth_ref": [
      "r208",
      "r209",
      "r223",
      "r224",
      "r235"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Type of plan designed to provide participants with retirement benefits. Includes, but is not limited to, retirement benefit arrangement for defined benefit pension and other postretirement plans, retirement benefit arrangement for defined contribution pension and other postretirement plans, and special and contractual termination benefits payable upon retirement.",
        "label": "Retirement Plan Type [Domain]",
        "terseLabel": "Retirement Plan Type [Domain]"
       }
      }
     },
     "localname": "RetirementPlanTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/EmployeeBenefitsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_Revenues": {
     "auth_ref": [
      "r84",
      "r144",
      "r145",
      "r152"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited": {
       "order": 1.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments",
       "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 revenues"
       }
      }
     },
     "localname": "Revenues",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RevenuesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Revenues [Abstract]",
        "terseLabel": "Revenues"
       }
      }
     },
     "localname": "RevenuesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited"
     ],
     "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 Facility [Member]",
        "terseLabel": "Revolving Credit Facility [Member]"
       }
      }
     },
     "localname": "RevolvingCreditFacilityMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/CreditFacilityDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ScheduleOfAccumulatedOtherComprehensiveIncomeLossTableTextBlock": {
     "auth_ref": [
      "r69"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of the components of accumulated other comprehensive income (loss).",
        "label": "Schedule of Accumulated Other Comprehensive Income (Loss) [Table Text Block]",
        "terseLabel": "Schedule of Accumulated Other Comprehensive Income (Loss)"
       }
      }
     },
     "localname": "ScheduleOfAccumulatedOtherComprehensiveIncomeLossTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/AccumulatedOtherComprehensiveIncomeLossTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable": {
     "auth_ref": [
      "r223",
      "r224",
      "r225",
      "r226",
      "r234"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosures about an individual defined benefit pension plan or an other postretirement defined benefit plan. It may be appropriate to group certain similar plans.  Also includes schedule for fair value of plan assets by major categories of plan assets by the level within the fair value hierarchy in which the fair value measurements in their entirety fall, segregating fair value measurements using quoted prices in active markets for identical assets or liabilities (Level 1), Significant other observable inputs (Level 2), and significant unobservable inputs (Level 3).",
        "label": "Schedule of Defined Benefit Plans Disclosures [Table]",
        "terseLabel": "Schedule of Defined Benefit Plans Disclosures [Table]"
       }
      }
     },
     "localname": "ScheduleOfDefinedBenefitPlansDisclosuresTable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/EmployeeBenefitsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfDisposalGroupsIncludingDiscontinuedOperationsIncomeStatementBalanceSheetAndAdditionalDisclosuresTextBlock": {
     "auth_ref": [
      "r2",
      "r14",
      "r15",
      "r16",
      "r17",
      "r20",
      "r21",
      "r26",
      "r29",
      "r30",
      "r31",
      "r194",
      "r195"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of information related to a disposal group. Includes, but is not limited to, a discontinued operation, disposal classified as held-for-sale or disposed of by means other than sale or disposal of an individually significant component.",
        "label": "Disposal Groups, Including Discontinued Operations [Table Text Block]",
        "terseLabel": "Disposal Groups, Including Discontinued Operations"
       }
      }
     },
     "localname": "ScheduleOfDisposalGroupsIncludingDiscontinuedOperationsIncomeStatementBalanceSheetAndAdditionalDisclosuresTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/DiscontinuedOperationsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock": {
     "auth_ref": [
      "r126"
     ],
     "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": "Components of Basic and Diluted Earnings Per Share"
       }
      }
     },
     "localname": "ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/EarningsPerCommonShareTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfEarningsPerShareDilutedByCommonClassTable": {
     "auth_ref": [
      "r86",
      "r118",
      "r120",
      "r121",
      "r124",
      "r128"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Complete disclosure pertaining to an entity's diluted earnings per share.",
        "label": "Schedule of Earnings Per Share, Diluted, by Common Class, Including Two Class Method [Table]",
        "terseLabel": "Schedule of Earnings Per Share, Diluted, by Common Class, Including Two Class Method [Table]"
       }
      }
     },
     "localname": "ScheduleOfEarningsPerShareDilutedByCommonClassTable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/EarningsPerCommonShareDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock": {
     "auth_ref": [
      "r280"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of assets and liabilities, including [financial] instruments measured at fair value that are classified in stockholders' equity, if any, that are measured at fair value on a recurring basis. The disclosures contemplated herein include the fair value measurements at the reporting date by the level within the fair value hierarchy in which the fair value measurements in their entirety fall, segregating fair value measurements using quoted prices in active markets for identical assets (Level 1), significant other observable inputs (Level 2), and significant unobservable inputs (Level 3).",
        "label": "Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis [Table Text Block]",
        "terseLabel": "Financial Instruments Measured at Fair Value on Recurring Basis"
       }
      }
     },
     "localname": "ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable": {
     "auth_ref": [
      "r157"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Schedule detailing credit quality information related to financing receivables by credit quality indicator and by class of financing receivable.",
        "label": "Schedule of Financing Receivable, Recorded Investment, Credit Quality Indicator [Table]",
        "terseLabel": "Schedule of Financing Receivable, Recorded Investment, Credit Quality Indicator [Table]"
       }
      }
     },
     "localname": "ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueOfCommercialMortgageLoansAndAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfGainLossOnInvestmentsIncludingMarketableSecuritiesAndInvestmentsHeldAtCostIncomeStatementReportedAmountsSummaryLineItems": {
     "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": "Gain (Loss) on Securities [Line Items]",
        "terseLabel": "Gain (Loss) on Securities [Line Items]"
       }
      }
     },
     "localname": "ScheduleOfGainLossOnInvestmentsIncludingMarketableSecuritiesAndInvestmentsHeldAtCostIncomeStatementReportedAmountsSummaryLineItems",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsNetRealizedInvestmentGainsAndLossesAndProceedsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfGainLossOnInvestmentsTable": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of information about realized and unrealized gain (loss) on investment in security.",
        "label": "Schedule of Gain (Loss) on Securities [Table]",
        "terseLabel": "Schedule of Gain (Loss) on Securities [Table]"
       }
      }
     },
     "localname": "ScheduleOfGainLossOnInvestmentsTable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsNetRealizedInvestmentGainsAndLossesAndProceedsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfInvestmentsLineItems": {
     "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": "Schedule of Investments [Line Items]",
        "terseLabel": "Schedule of Investments [Line Items]"
       }
      }
     },
     "localname": "ScheduleOfInvestmentsLineItems",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfInvestmentsTable": {
     "auth_ref": [
      "r393"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "A container table for all schedule of investment items. It ties in the \"Legal Entity [Axis]\" to all of its contained line items.",
        "label": "Schedule of Investments [Table]",
        "terseLabel": "Schedule of Investments [Table]"
       }
      }
     },
     "localname": "ScheduleOfInvestmentsTable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfLiabilityForUnpaidClaimsAndClaimsAdjustmentExpense": {
     "auth_ref": [
      "r383"
     ],
     "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 Liability for Unpaid Claims and Claims Adjustment Expense"
       }
      }
     },
     "localname": "ScheduleOfLiabilityForUnpaidClaimsAndClaimsAdjustmentExpense",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ReservesForLossesAndLossSettlementExpensesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfNetBenefitCostsTableTextBlock": {
     "auth_ref": [
      "r216"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of the components of net benefit costs for pension plans and/or other employee benefit plans including service cost, interest cost, expected return on plan assets, gain (loss), prior service cost or credit, transition asset or obligation, and gain (loss) recognized due to settlements or curtailments.",
        "label": "Schedule of Net Benefit Costs [Table Text Block]",
        "terseLabel": "Net Periodic Benefit Cost"
       }
      }
     },
     "localname": "ScheduleOfNetBenefitCostsTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/EmployeeBenefitsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfRealizedGainLossTableTextBlock": {
     "auth_ref": [
      "r186"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of the proceeds from sales of available-for-sale securities and the gross realized gains and gross realized losses that have been included in earnings as a result of those sales.",
        "label": "Schedule of Realized Gain (Loss) [Table Text Block]",
        "terseLabel": "Proceeds and Gross Realized Gains and Losses"
       }
      }
     },
     "localname": "ScheduleOfRealizedGainLossTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable": {
     "auth_ref": [
      "r143",
      "r149",
      "r150",
      "r151",
      "r189"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "A table disclosing the profit or loss and total assets for each reportable segment of the entity. An entity discloses certain information on each reportable segment if the amounts (a) are included in the measure of segment profit or loss reviewed by the chief operating decision maker or (b) are otherwise regularly provided to the chief operating decision maker, even if not included in that measure of segment profit or loss.",
        "label": "Schedule of Segment Reporting Information, by Segment [Table]",
        "terseLabel": "Schedule of Segment Reporting Information, by Segment [Table]"
       }
      }
     },
     "localname": "ScheduleOfSegmentReportingInformationBySegmentTable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationNarrativeDetails",
      "http://www.unitedfiregroup.com/role/SegmentInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable": {
     "auth_ref": [
      "r241",
      "r250"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Components of an equity-based arrangement under which compensation is awarded to employees, typically comprised of compensation expense; changes in the quantity and fair value of the shares (or other type of equity) granted, exercised, forfeited, and issued and outstanding pertaining to that plan; and cash flow effects resulting from the equity-based payment arrangement. Component disclosures are by type of award and plan name.",
        "label": "Schedule of Share-based Compensation Arrangements by Share-based Payment Award [Table]",
        "terseLabel": "Schedule of Share-based Compensation Arrangements by Share-based Payment Award [Table]"
       }
      }
     },
     "localname": "ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/StockBasedCompensationActivityInStockPlanDetails",
      "http://www.unitedfiregroup.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfUnrealizedLossOnInvestmentsTableTextBlock": {
     "auth_ref": [
      "r182"
     ],
     "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": "Investments in Unrealized Loss Position"
       }
      }
     },
     "localname": "ScheduleOfUnrealizedLossOnInvestmentsTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfUnrecognizedCompensationCostNonvestedAwardsTableTextBlock": {
     "auth_ref": [
      "r249"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of the total compensation cost related to nonvested awards not yet recognized and the weighted-average period over which it is expected to be recognized.",
        "label": "Schedule of Unrecognized Compensation Cost, Nonvested Awards [Table Text Block]",
        "terseLabel": "Remaining Stock-Based Compensation Expense"
       }
      }
     },
     "localname": "ScheduleOfUnrecognizedCompensationCostNonvestedAwardsTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/StockBasedCompensationTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SchedulesOfConcentrationOfRiskByRiskFactorTextBlock": {
     "auth_ref": [
      "r134",
      "r136",
      "r137",
      "r138",
      "r296",
      "r298"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of the nature of a concentration, a benchmark to which it is compared, and the percentage that the risk is to the benchmark.",
        "label": "Schedules of Concentration of Risk, by Risk Factor [Table Text Block]",
        "terseLabel": "Schedules of Concentration of Risk, by Risk Factor"
       }
      }
     },
     "localname": "SchedulesOfConcentrationOfRiskByRiskFactorTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SegmentDiscontinuedOperationsMember": {
     "auth_ref": [
      "r3",
      "r5",
      "r6",
      "r7"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Component or group of components disposed of or classified as held-for-sale and representing a strategic shift that has or will have a major effect on operations and financial results. Includes a business or nonprofit activity on acquisition classified as held-for-sale.",
        "label": "Discontinued Operations [Member]",
        "terseLabel": "Discontinued Operations"
       }
      }
     },
     "localname": "SegmentDiscontinuedOperationsMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueAndEstimatedFairValueDetails",
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails",
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationDeferredPolicyAcquisitionCostsDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsNetRealizedInvestmentGainsAndLossesAndProceedsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SegmentDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Components of an entity that engage in business activities from which they may earn revenue and incur expenses, including transactions with other components of the same entity.",
        "label": "Segments [Domain]",
        "terseLabel": "Segment [Domain]"
       }
      }
     },
     "localname": "SegmentDomain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationDeferredPolicyAcquisitionCostsDetails",
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationNarrativeDetails",
      "http://www.unitedfiregroup.com/role/SegmentInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SegmentOperatingActivitiesDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Operations of an entity including continuing and discontinued operations.",
        "label": "Operating Activities [Domain]",
        "terseLabel": "Operating Activities [Domain]"
       }
      }
     },
     "localname": "SegmentOperatingActivitiesDomain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueAndEstimatedFairValueDetails",
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails",
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationDeferredPolicyAcquisitionCostsDetails",
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationNarrativeDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsNetRealizedInvestmentGainsAndLossesAndProceedsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SegmentReportingAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Segment Reporting [Abstract]"
       }
      }
     },
     "localname": "SegmentReportingAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_SegmentReportingDisclosureTextBlock": {
     "auth_ref": [
      "r154"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for reporting segments including data and tables. Reportable segments include those that meet any of the following quantitative thresholds a) it's reported revenue, including sales to external customers and intersegment sales or transfers is 10 percent or more of the combined revenue, internal and external, of all operating segments b) the absolute amount of its reported profit or loss is 10 percent or more of the greater, in absolute amount of 1) the combined reported profit of all operating segments that did not report a loss or 2) the combined reported loss of all operating segments that did report a loss c) its assets are 10 percent or more of the combined assets of all operating segments.",
        "label": "Segment Reporting Disclosure [Text Block]",
        "terseLabel": "Segment Information"
       }
      }
     },
     "localname": "SegmentReportingDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SegmentInformation"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SegmentReportingInformationLineItems": {
     "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": "Segment Reporting Information [Line Items]",
        "terseLabel": "Segment Reporting Information [Line Items]"
       }
      }
     },
     "localname": "SegmentReportingInformationLineItems",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationNarrativeDetails",
      "http://www.unitedfiregroup.com/role/SegmentInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SegmentReportingPolicyPolicyTextBlock": {
     "auth_ref": [
      "r108"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of accounting policy for segment reporting.",
        "label": "Segment Reporting, Policy [Policy Text Block]",
        "terseLabel": "Segment Information"
       }
      }
     },
     "localname": "SegmentReportingPolicyPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ShareBasedCompensation": {
     "auth_ref": [
      "r101"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 3.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The aggregate amount of noncash, equity-based employee remuneration. This may include the value of stock or unit options, amortization of restricted stock or units, and adjustment for officers' compensation. As noncash, this element is an add back when calculating net cash generated by operating activities using the indirect method.",
        "label": "Share-based Compensation",
        "terseLabel": "Stock-based compensation expense"
       }
      }
     },
     "localname": "ShareBasedCompensation",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ShareBasedCompensationAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Share-based Compensation [Abstract]"
       }
      }
     },
     "localname": "ShareBasedCompensationAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1": {
     "auth_ref": [
      "r242"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Period which an employee's right to exercise an award is no longer contingent on satisfaction of either a service condition, market condition or a performance condition, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Award Vesting Period",
        "terseLabel": "Vesting period"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod": {
     "auth_ref": [
      "r246"
     ],
     "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",
        "terseLabel": "Number of restricted stock awards vested (in shares)"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/StockBasedCompensationActivityInStockPlanDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "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 Arrangement by Share-based Payment Award [Line Items]"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/StockBasedCompensationActivityInStockPlanDetails",
      "http://www.unitedfiregroup.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfAdditionalSharesAuthorized": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Number of additional shares authorized for issuance under an established share-based compensation plan.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Number of Additional Shares Authorized",
        "terseLabel": "Additional shares authorized (in shares)"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfAdditionalSharesAuthorized",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/StockBasedCompensationActivityInStockPlanDetails",
      "http://www.unitedfiregroup.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant": {
     "auth_ref": [
      "r250"
     ],
     "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",
        "periodEndLabel": "Ending balance (in shares)",
        "periodStartLabel": "Beginning balance (in shares)",
        "terseLabel": "Number of shares available for issuance (in shares)"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/StockBasedCompensationActivityInStockPlanDetails",
      "http://www.unitedfiregroup.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain": {
     "auth_ref": [
      "r238",
      "r244"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Equity-based compensation award.",
        "label": "Equity Award [Domain]",
        "terseLabel": "Equity Award [Domain]"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/EarningsPerCommonShareDetails",
      "http://www.unitedfiregroup.com/role/StockBasedCompensationActivityInStockPlanDetails",
      "http://www.unitedfiregroup.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ShareBasedCompensationAwardTrancheOneMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "First portion of share-based compensation award differentiated by a particular vesting feature, including, but not limited to, performance measure or service period.",
        "label": "Share-based Compensation Award, Tranche One [Member]",
        "terseLabel": "Share-based Compensation Award, Tranche One"
       }
      }
     },
     "localname": "ShareBasedCompensationAwardTrancheOneMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ShareBasedCompensationAwardTrancheTwoMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Second portion of share-based compensation award differentiated by a particular vesting feature, including, but not limited to, performance measure or service period.",
        "label": "Share-based Compensation Award, Tranche Two [Member]",
        "terseLabel": "Share-based Compensation Award, Tranche Two"
       }
      }
     },
     "localname": "ShareBasedCompensationAwardTrancheTwoMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod": {
     "auth_ref": [
      "r243"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Period from grant date that an equity-based award expires, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Expiration Period",
        "terseLabel": "Expiration period"
       }
      }
     },
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_StatementBusinessSegmentsAxis": {
     "auth_ref": [
      "r13",
      "r149",
      "r189",
      "r193",
      "r197",
      "r198",
      "r384"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by business segments.",
        "label": "Segments [Axis]",
        "terseLabel": "Business Segments [Axis]"
       }
      }
     },
     "localname": "StatementBusinessSegmentsAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationDeferredPolicyAcquisitionCostsDetails",
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationNarrativeDetails",
      "http://www.unitedfiregroup.com/role/SegmentInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementEquityComponentsAxis": {
     "auth_ref": [
      "r58",
      "r202"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by component of equity.",
        "label": "Equity Components [Axis]",
        "terseLabel": "Equity Components [Axis]"
       }
      }
     },
     "localname": "StatementEquityComponentsAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/AccumulatedOtherComprehensiveIncomeLossDetails",
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementOfStockholdersEquityUnaudited"
     ],
     "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 [Line Items]"
       }
      }
     },
     "localname": "StatementLineItems",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementOfStockholdersEquityUnaudited"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementOfCashFlowsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Statement of Cash Flows [Abstract]"
       }
      }
     },
     "localname": "StatementOfCashFlowsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementOfFinancialPositionAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Statement of Financial Position [Abstract]"
       }
      }
     },
     "localname": "StatementOfFinancialPositionAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementOfStockholdersEquityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Statement of Stockholders' Equity [Abstract]"
       }
      }
     },
     "localname": "StatementOfStockholdersEquityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementOperatingActivitiesSegmentAxis": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by continuing and discontinuing operations.",
        "label": "Operating Activities [Axis]",
        "terseLabel": "Operating Activities [Axis]"
       }
      }
     },
     "localname": "StatementOperatingActivitiesSegmentAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueAndEstimatedFairValueDetails",
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails",
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationDeferredPolicyAcquisitionCostsDetails",
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationNarrativeDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsNetRealizedInvestmentGainsAndLossesAndProceedsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementTable": {
     "auth_ref": [],
     "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]",
        "terseLabel": "Statement [Table]"
       }
      }
     },
     "localname": "StatementTable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementOfStockholdersEquityUnaudited"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensation": {
     "auth_ref": [
      "r44",
      "r45",
      "r202",
      "r203"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Number of shares (or other type of equity) issued during the period as a result of any equity-based compensation plan other than an employee stock ownership plan (ESOP), net of any shares forfeited. Shares issued could result from the issuance of restricted stock, the exercise of stock options, stock issued under employee stock purchase plans, and/or other employee benefit plans.",
        "label": "Stock Issued During Period, Shares, Share-based Compensation, Net of Forfeitures",
        "terseLabel": "Shares issued for stock-based awards (in shares)"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodSharesShareBasedCompensation",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementOfStockholdersEquityUnauditedParentheticals"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised": {
     "auth_ref": [
      "r44",
      "r45",
      "r202",
      "r203",
      "r245"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Number of share options (or share units) exercised during the current period.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Options, Exercises in Period",
        "terseLabel": "Number of option awards exercised (in shares)"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodSharesStockOptionsExercised",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/StockBasedCompensationActivityInStockPlanDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_StockIssuedDuringPeriodValueShareBasedCompensation": {
     "auth_ref": [
      "r44",
      "r45",
      "r203",
      "r240",
      "r247"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Value of stock (or other type of equity) issued during the period as a result of any equity-based compensation plan other than an employee stock ownership plan (ESOP), net of stock value of such awards forfeited. Stock issued could result from the issuance of restricted stock, the exercise of stock options, stock issued under employee stock purchase plans, and/or other employee benefit plans.",
        "label": "Stock Issued During Period, Value, Share-based Compensation, Net of Forfeitures",
        "terseLabel": "Shares issued for stock-based awards"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodValueShareBasedCompensation",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementOfStockholdersEquityUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockRepurchasedDuringPeriodShares": {
     "auth_ref": [
      "r44",
      "r45",
      "r202",
      "r203"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Number of shares that have been repurchased during the period and have not been retired and are not held in treasury. Some state laws may govern the circumstances under which an entity may acquire its own stock and prescribe the accounting treatment therefore. This element is used when state law does not recognize treasury stock.",
        "label": "Stock Repurchased During Period, Shares",
        "terseLabel": "Shares repurchased (in shares)"
       }
      }
     },
     "localname": "StockRepurchasedDuringPeriodShares",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementOfStockholdersEquityUnauditedParentheticals"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_StockRepurchasedDuringPeriodValue": {
     "auth_ref": [
      "r44",
      "r45",
      "r202",
      "r203"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Equity impact of the value of stock that has been repurchased during the period and has not been retired and is not held in treasury. Some state laws may mandate the circumstances under which an entity may acquire its own stock and prescribe the accounting treatment therefore. This element is used when state law does not recognize treasury stock.",
        "label": "Stock Repurchased During Period, Value",
        "negatedLabel": "Shares repurchased"
       }
      }
     },
     "localname": "StockRepurchasedDuringPeriodValue",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementOfStockholdersEquityUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockholdersEquity": {
     "auth_ref": [
      "r45",
      "r49",
      "r50",
      "r160"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets": {
       "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, end of period",
        "periodStartLabel": "Balance, beginning of year",
        "totalLabel": "TOTAL STOCKHOLDERS\u2019 EQUITY"
       }
      }
     },
     "localname": "StockholdersEquity",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/AccumulatedOtherComprehensiveIncomeLossDetails",
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets",
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementOfStockholdersEquityUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockholdersEquityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Stockholders' Equity Attributable to Parent [Abstract]",
        "terseLabel": "Stockholders\u2019 Equity"
       }
      }
     },
     "localname": "StockholdersEquityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SubsequentEventsPolicyPolicyTextBlock": {
     "auth_ref": [
      "r108"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of accounting policy for reporting subsequent events.",
        "label": "Subsequent Events, Policy [Policy Text Block]",
        "terseLabel": "Subsequent Events"
       }
      }
     },
     "localname": "SubsequentEventsPolicyPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersCurrentYearClaimsAndClaimsAdjustmentExpense": {
     "auth_ref": [
      "r380"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ReservesForLossesAndLossSettlementExpensesDetails": {
       "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": "Current Year Claims and Claims Adjustment Expense",
        "terseLabel": "Current year"
       }
      }
     },
     "localname": "SupplementalInformationForPropertyCasualtyInsuranceUnderwritersCurrentYearClaimsAndClaimsAdjustmentExpense",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ReservesForLossesAndLossSettlementExpensesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersPriorYearClaimsAndClaimsAdjustmentExpense": {
     "auth_ref": [
      "r380"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ReservesForLossesAndLossSettlementExpensesDetails": {
       "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": "Prior Year Claims and Claims Adjustment Expense",
        "terseLabel": "Prior years"
       }
      }
     },
     "localname": "SupplementalInformationForPropertyCasualtyInsuranceUnderwritersPriorYearClaimsAndClaimsAdjustmentExpense",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ReservesForLossesAndLossSettlementExpensesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TradingSecurities": {
     "auth_ref": [
      "r318"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_AssetsFairValueDisclosure",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of investment in debt security measured at fair value with change in fair value recognized in net income (trading) and investment in equity security measured at fair value with change in fair value recognized in net income (FV-NI).",
        "label": "Debt Securities, Trading, and Equity Securities, FV-NI",
        "verboseLabel": "Trading securities"
       }
      }
     },
     "localname": "TradingSecurities",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsCarryingValueAndEstimatedFairValueDetails",
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TradingSecuritiesDebt": {
     "auth_ref": [
      "r161",
      "r162"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets": {
       "order": 3.0,
       "parentTag": "us-gaap_Investments",
       "weight": 1.0
      },
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of investment in debt security measured at fair value with change in fair value recognized in net income (trading).",
        "label": "Debt Securities, Trading",
        "totalLabel": "Fair Value",
        "verboseLabel": "Trading securities, at fair value (amortized cost $12,047 in 2018 and $14,582 in 2017)"
       }
      }
     },
     "localname": "TradingSecuritiesDebt",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TradingSecuritiesDebtAmortizedCost": {
     "auth_ref": [],
     "calculation": {
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amortized cost of investments in debt securities classified as trading.",
        "label": "Debt Securities, Trading, Amortized Cost",
        "totalLabel": "Amortized Cost",
        "verboseLabel": "Fixed maturities, trading securities, amortized cost"
       }
      }
     },
     "localname": "TradingSecuritiesDebtAmortizedCost",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheetsParentheticals",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain": {
     "auth_ref": [
      "r309"
     ],
     "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]",
        "terseLabel": "Financial Instruments [Domain]"
       }
      }
     },
     "localname": "TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails",
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsLevel3SecuritiesDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsMaturitiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_TypeOfAdoptionMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Adoption and early adoption of sources of change to generally accepted accounting principles (GAAP) in the United States. The FASB released the FASB Accounting Standards Codification as the authoritative source of literature effective for interim and annual periods ending after September 15, 2009. As part of the Codification process, the FASB issues Accounting Standards Updates to amend the Codification but otherwise the Accounting Standards Updates are not authoritative in their own right. All previous accounting standards (such as FASB Statements of Financial Accounting Standards, FASB Interpretations, FASB Staff Positions, Emerging Issues Task Force Consensuses, other pronouncements of the FASB or other designated bodies, or other forms of GAAP are considered accounting pronouncements) were superseded upon the adoption of the Codification. For an interim period, references to the superseded standards are included to help users transition from the previous accounting hierarchy and will be removed from future versions of this taxonomy.",
        "label": "Type of Adoption [Domain]",
        "terseLabel": "Type of Adoption [Domain]"
       }
      }
     },
     "localname": "TypeOfAdoptionMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_USGovernmentAgenciesDebtSecuritiesMember": {
     "auth_ref": [
      "r213",
      "r315"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Debentures, notes, and other debt securities issued by US government agencies, for example, but not limited to, Government National Mortgage Association (GNMA or Ginnie Mae). Excludes US treasury securities and debt issued by government-sponsored Enterprises (GSEs), for example, but is not limited to, Federal Home Loan Mortgage Corporation (FHLMC or Freddie Mac), Federal National Mortgage Association (FNMA or Fannie Mae), and the Federal Home Loan Bank (FHLB).",
        "label": "US Government Agencies Debt Securities [Member]",
        "terseLabel": "U.S. government agency"
       }
      }
     },
     "localname": "USGovernmentAgenciesDebtSecuritiesMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_USStatesAndPoliticalSubdivisionsMember": {
     "auth_ref": [
      "r213"
     ],
     "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": "US States and Political Subdivisions Debt Securities [Member]",
        "terseLabel": "States, municipalities and political subdivisions"
       }
      }
     },
     "localname": "USStatesAndPoliticalSubdivisionsMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_USTreasurySecuritiesMember": {
     "auth_ref": [
      "r213",
      "r234",
      "r315"
     ],
     "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": "US Treasury Securities [Member]",
        "terseLabel": "U.S. Treasury"
       }
      }
     },
     "localname": "USTreasurySecuritiesMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/FairValueOfFinancialInstrumentsFinancialInstrumentsMeasuredAtFairValueDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsFairValueOfInvestmentsDetails",
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsInvestmentsInUnrealizedLossPositionDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_UnearnedPremiums": {
     "auth_ref": [
      "r344"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets": {
       "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 premiums"
       }
      }
     },
     "localname": "UnearnedPremiums",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_UnrealizedGainLossOnInvestmentsTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of unrealized gains and losses on investments.",
        "label": "Unrealized Gain (Loss) on Investments [Table Text Block]",
        "terseLabel": "Unrealized Investment Appreciation"
       }
      }
     },
     "localname": "UnrealizedGainLossOnInvestmentsTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/SummaryOfInvestmentsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_UnrecognizedTaxBenefits": {
     "auth_ref": [
      "r255",
      "r260"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of unrecognized tax benefits.",
        "label": "Unrecognized Tax Benefits",
        "terseLabel": "Liability for unrecognized tax benefits"
       }
      }
     },
     "localname": "UnrecognizedTaxBenefits",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_UseOfEstimates": {
     "auth_ref": [
      "r130",
      "r131",
      "r132",
      "r133",
      "r139",
      "r140",
      "r141"
     ],
     "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/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/NatureOfOperationsAndBasisOfPresentationPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_VestingAxis": {
     "auth_ref": [
      "r250"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by vesting schedule for share-based compensation.",
        "label": "Vesting [Axis]",
        "terseLabel": "Vesting [Axis]"
       }
      }
     },
     "localname": "VestingAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_VestingDomain": {
     "auth_ref": [
      "r250"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Vesting schedule for share-based compensation.",
        "label": "Vesting [Domain]",
        "terseLabel": "Vesting [Domain]"
       }
      }
     },
     "localname": "VestingDomain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding": {
     "auth_ref": [
      "r117",
      "r124"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/EarningsPerCommonShareDetails": {
       "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 weighted average common shares outstanding (in shares)",
        "totalLabel": "Weighted-average common shares for EPS calculation (in shares)"
       }
      }
     },
     "localname": "WeightedAverageNumberOfDilutedSharesOutstanding",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited",
      "http://www.unitedfiregroup.com/role/EarningsPerCommonShareDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_WeightedAverageNumberOfSharesOutstandingBasic": {
     "auth_ref": [
      "r116",
      "r124"
     ],
     "calculation": {
      "http://www.unitedfiregroup.com/role/EarningsPerCommonShareDetails": {
       "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",
        "verboseLabel": "Weighted-average common shares outstanding (in shares)"
       }
      }
     },
     "localname": "WeightedAverageNumberOfSharesOutstandingBasic",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.unitedfiregroup.com/role/EarningsPerCommonShareDetails"
     ],
     "xbrltype": "sharesItemType"
    }
   },
   "unitCount": 8
  }
 },
 "std_ref": {
  "r0": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=6359566&loc=d3e326-107755"
  },
  "r1": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222160&loc=d3e1107-107759"
  },
  "r10": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222160&loc=SL51721525-107759"
  },
  "r100": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=109223946&loc=d3e3536-108585"
  },
  "r101": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=109223946&loc=d3e3602-108585"
  },
  "r102": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=109223946&loc=d3e3602-108585"
  },
  "r103": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=109223946&loc=d3e3602-108585"
  },
  "r104": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=109223946&loc=d3e3044-108585"
  },
  "r105": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=109223946&loc=d3e3098-108585"
  },
  "r106": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=98513485&loc=d3e4273-108586"
  },
  "r107": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=98513485&loc=d3e4297-108586"
  },
  "r108": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=84158767&loc=d3e18780-107790"
  },
  "r109": {
   "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=26873400&loc=d3e23780-122690"
  },
  "r11": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222160&loc=d3e1012-107759"
  },
  "r110": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08.(e),(f))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=26873400&loc=d3e23780-122690"
  },
  "r111": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08.(h)(1)(i))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=26873400&loc=d3e23780-122690"
  },
  "r112": {
   "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=26873400&loc=d3e24072-122690"
  },
  "r113": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "235",
   "URI": "http://asc.fasb.org/topic&trid=2122369"
  },
  "r114": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22499-107794"
  },
  "r115": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22694-107794"
  },
  "r116": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=109260490&loc=d3e1448-109256"
  },
  "r117": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=109260490&loc=d3e1505-109256"
  },
  "r118": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=109260490&loc=d3e1252-109256"
  },
  "r119": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=109260490&loc=d3e1500-109256"
  },
  "r12": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222650&loc=d3e1361-107760"
  },
  "r120": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=109260490&loc=d3e1278-109256"
  },
  "r121": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=109260490&loc=d3e1311-109256"
  },
  "r122": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "60B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=109260490&loc=SL5780133-109256"
  },
  "r123": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=109260490&loc=d3e1337-109256"
  },
  "r124": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=6371337&loc=d3e3550-109257"
  },
  "r125": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=6371337&loc=d3e3550-109257"
  },
  "r126": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=6371337&loc=d3e3550-109257"
  },
  "r127": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=6371337&loc=d3e3630-109257"
  },
  "r128": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "52",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=109256448&loc=d3e4984-109258"
  },
  "r129": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "260",
   "URI": "http://asc.fasb.org/topic&trid=2144383"
  },
  "r13": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222650&loc=d3e1361-107760"
  },
  "r130": {
   "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"
  },
  "r131": {
   "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"
  },
  "r132": {
   "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"
  },
  "r133": {
   "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"
  },
  "r134": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "275",
   "URI": "http://asc.fasb.org/extlink&oid=99393423&loc=d3e6327-108592"
  },
  "r135": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "275",
   "URI": "http://asc.fasb.org/extlink&oid=99393423&loc=d3e6351-108592"
  },
  "r136": {
   "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"
  },
  "r137": {
   "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"
  },
  "r138": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "275",
   "URI": "http://asc.fasb.org/extlink&oid=99393423&loc=d3e6442-108592"
  },
  "r139": {
   "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"
  },
  "r14": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222650&loc=d3e1361-107760"
  },
  "r140": {
   "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"
  },
  "r141": {
   "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"
  },
  "r142": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "275",
   "URI": "http://asc.fasb.org/topic&trid=2134479"
  },
  "r143": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=115929826&loc=d3e8721-108599"
  },
  "r144": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=115929826&loc=d3e8736-108599"
  },
  "r145": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=115929826&loc=d3e8736-108599"
  },
  "r146": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=115929826&loc=d3e8736-108599"
  },
  "r147": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=115929826&loc=d3e8736-108599"
  },
  "r148": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=115929826&loc=d3e8736-108599"
  },
  "r149": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=115929826&loc=d3e8736-108599"
  },
  "r15": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222650&loc=d3e1474-107760"
  },
  "r150": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=115929826&loc=d3e8813-108599"
  },
  "r151": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=115929826&loc=d3e8906-108599"
  },
  "r152": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=115929826&loc=d3e8933-108599"
  },
  "r153": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "41",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=115929826&loc=d3e9038-108599"
  },
  "r154": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "280",
   "URI": "http://asc.fasb.org/topic&trid=2134510"
  },
  "r155": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "05",
   "SubTopic": "10",
   "Topic": "305",
   "URI": "http://asc.fasb.org/extlink&oid=6375392&loc=d3e26790-107797"
  },
  "r156": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=84173941&loc=SL6953423-111524"
  },
  "r157": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "29",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=84173941&loc=SL6953659-111524"
  },
  "r158": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=84173941&loc=d3e5074-111524"
  },
  "r159": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "19",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=82894031&loc=SL6953803-111525"
  },
  "r16": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222650&loc=SL51721659-107760"
  },
  "r160": {
   "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=27010918&loc=d3e74512-122707"
  },
  "r161": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=109979856&loc=d3e26610-111562"
  },
  "r162": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=109979856&loc=d3e26610-111562"
  },
  "r163": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=109979856&loc=d3e26853-111562"
  },
  "r164": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=82897076&loc=SL6283291-111563"
  },
  "r165": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=82897076&loc=d3e27161-111563"
  },
  "r166": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(aa)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=82897076&loc=d3e27161-111563"
  },
  "r167": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=82897076&loc=d3e27161-111563"
  },
  "r168": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=82897076&loc=d3e27161-111563"
  },
  "r169": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=82897076&loc=d3e27161-111563"
  },
  "r17": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222650&loc=SL51721663-107760"
  },
  "r170": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=82897076&loc=d3e27198-111563"
  },
  "r171": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=82897076&loc=d3e27198-111563"
  },
  "r172": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=82897076&loc=d3e27198-111563"
  },
  "r173": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=82897076&loc=d3e27198-111563"
  },
  "r174": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=82897076&loc=d3e27198-111563"
  },
  "r175": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=82897076&loc=d3e27232-111563"
  },
  "r176": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(aa)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=82897076&loc=d3e27232-111563"
  },
  "r177": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=82897076&loc=d3e27232-111563"
  },
  "r178": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=82897076&loc=d3e27232-111563"
  },
  "r179": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=82897076&loc=d3e27232-111563"
  },
  "r18": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222650&loc=SL51721665-107760"
  },
  "r180": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=82897076&loc=d3e27290-111563"
  },
  "r181": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(2)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=82897076&loc=d3e27290-111563"
  },
  "r182": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=82897076&loc=d3e27290-111563"
  },
  "r183": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=82897076&loc=d3e27337-111563"
  },
  "r184": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=82897076&loc=d3e27340-111563"
  },
  "r185": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=82897076&loc=SL6284393-111563"
  },
  "r186": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=82897076&loc=d3e27357-111563"
  },
  "r187": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=82897076&loc=d3e27357-111563"
  },
  "r188": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "320",
   "URI": "http://asc.fasb.org/topic&trid=2196928"
  },
  "r189": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "350",
   "URI": "http://asc.fasb.org/extlink&oid=108376223&loc=d3e13816-109267"
  },
  "r19": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(1)",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222650&loc=SL51721665-107760"
  },
  "r190": {
   "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"
  },
  "r191": {
   "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"
  },
  "r192": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "360",
   "URI": "http://asc.fasb.org/extlink&oid=109226691&loc=d3e2941-110230"
  },
  "r193": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "360",
   "URI": "http://asc.fasb.org/extlink&oid=109226691&loc=d3e2941-110230"
  },
  "r194": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "360",
   "URI": "http://asc.fasb.org/extlink&oid=109226691&loc=d3e2941-110230"
  },
  "r195": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "360",
   "URI": "http://asc.fasb.org/extlink&oid=109226691&loc=SL51724579-110230"
  },
  "r196": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "360",
   "URI": "http://asc.fasb.org/topic&trid=2155823"
  },
  "r197": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "420",
   "URI": "http://asc.fasb.org/extlink&oid=6394359&loc=d3e17939-110869"
  },
  "r198": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 5.P.4(d))",
   "Topic": "420",
   "URI": "http://asc.fasb.org/extlink&oid=115931487&loc=d3e140904-122747"
  },
  "r199": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "19",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=99376301&loc=d3e1398-112600"
  },
  "r2": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222160&loc=SL51721533-107759"
  },
  "r20": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222650&loc=SL51721665-107760"
  },
  "r200": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "470",
   "URI": "http://asc.fasb.org/topic&trid=2208564"
  },
  "r201": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Topic": "480",
   "URI": "http://asc.fasb.org/extlink&oid=65877616&loc=d3e177068-122764"
  },
  "r202": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=109259400&loc=d3e21463-112644"
  },
  "r203": {
   "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=27012166&loc=d3e187085-122770"
  },
  "r204": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "50",
   "Topic": "505",
   "URI": "http://asc.fasb.org/subtopic&trid=2208855"
  },
  "r205": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=109196051&loc=SL49130545-203045"
  },
  "r206": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "91",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=108792157&loc=SL49130690-203046-203046"
  },
  "r207": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "91",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=108792157&loc=SL49130690-203046-203046"
  },
  "r208": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "15",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "712",
   "URI": "http://asc.fasb.org/extlink&oid=6410066&loc=d3e79218-111664"
  },
  "r209": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "15",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "712",
   "URI": "http://asc.fasb.org/extlink&oid=6410066&loc=d3e79218-111664"
  },
  "r21": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222650&loc=SL51721671-107760"
  },
  "r210": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(1)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=108410482&loc=d3e1928-114920"
  },
  "r211": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(2)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=108410482&loc=d3e1928-114920"
  },
  "r212": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(3)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=108410482&loc=d3e1928-114920"
  },
  "r213": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(ii)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=108410482&loc=d3e1928-114920"
  },
  "r214": {
   "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=108410482&loc=d3e1928-114920"
  },
  "r215": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(g)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=108410482&loc=d3e1928-114920"
  },
  "r216": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=108410482&loc=d3e1928-114920"
  },
  "r217": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)(1)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=108410482&loc=d3e1928-114920"
  },
  "r218": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)(2)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=108410482&loc=d3e1928-114920"
  },
  "r219": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)(3)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=108410482&loc=d3e1928-114920"
  },
  "r22": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222650&loc=SL51721673-107760"
  },
  "r220": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)(4)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=108410482&loc=d3e1928-114920"
  },
  "r221": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)(5)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=108410482&loc=d3e1928-114920"
  },
  "r222": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(j)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=108410482&loc=d3e1928-114920"
  },
  "r223": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=108410482&loc=d3e1928-114920"
  },
  "r224": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=108410482&loc=d3e2410-114920"
  },
  "r225": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=108410482&loc=d3e2417-114920"
  },
  "r226": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=108410482&loc=d3e2439-114920"
  },
  "r227": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=108410482&loc=d3e2709-114920"
  },
  "r228": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(1)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=108410482&loc=d3e2709-114920"
  },
  "r229": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(2)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=108410482&loc=d3e2709-114920"
  },
  "r23": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222650&loc=SL51721673-107760"
  },
  "r230": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(3)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=108410482&loc=d3e2709-114920"
  },
  "r231": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(4)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=108410482&loc=d3e2709-114920"
  },
  "r232": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(5)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=108410482&loc=d3e2709-114920"
  },
  "r233": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=108410482&loc=d3e2709-114920"
  },
  "r234": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=112275985&loc=d3e4179-114921"
  },
  "r235": {
   "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"
  },
  "r236": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "715",
   "URI": "http://asc.fasb.org/topic&trid=2235017"
  },
  "r237": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "35",
   "SubTopic": "10",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=79507207&loc=d3e4534-113899"
  },
  "r238": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=109197908&loc=d3e5047-113901"
  },
  "r239": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=109197908&loc=d3e5047-113901"
  },
  "r24": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(1)",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222650&loc=SL51721673-107760"
  },
  "r240": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=109197908&loc=d3e5047-113901"
  },
  "r241": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=109197908&loc=d3e5047-113901"
  },
  "r242": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=109197908&loc=d3e5070-113901"
  },
  "r243": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(2)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=109197908&loc=d3e5070-113901"
  },
  "r244": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a),(g)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=109197908&loc=d3e5070-113901"
  },
  "r245": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iv)(2)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=109197908&loc=d3e5070-113901"
  },
  "r246": {
   "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=109197908&loc=d3e5070-113901"
  },
  "r247": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)(1)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=109197908&loc=d3e5070-113901"
  },
  "r248": {
   "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=109197908&loc=d3e5070-113901"
  },
  "r249": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(i)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=109197908&loc=d3e5070-113901"
  },
  "r25": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(e)",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222650&loc=SL51721673-107760"
  },
  "r250": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=109197908&loc=d3e5070-113901"
  },
  "r251": {
   "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=115993241&loc=d3e301413-122809"
  },
  "r252": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=109196918&loc=d3e11149-113907"
  },
  "r253": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=109196918&loc=d3e11178-113907"
  },
  "r254": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "718",
   "URI": "http://asc.fasb.org/topic&trid=2228938"
  },
  "r255": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=84176650&loc=SL37586934-109318"
  },
  "r256": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=84176650&loc=d3e32247-109318"
  },
  "r257": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=84176650&loc=d3e32280-109318"
  },
  "r258": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=84176650&loc=d3e31931-109318"
  },
  "r259": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=84230637&loc=d3e32672-109319"
  },
  "r26": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222650&loc=SL51721673-107760"
  },
  "r260": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=84230637&loc=SL6600010-109319"
  },
  "r261": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=84230637&loc=d3e32809-109319"
  },
  "r262": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "19",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=84230637&loc=d3e32840-109319"
  },
  "r263": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=84230637&loc=d3e32537-109319"
  },
  "r264": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=84230637&loc=d3e32847-109319"
  },
  "r265": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=84230637&loc=d3e32639-109319"
  },
  "r266": {
   "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=34349781&loc=d3e330036-122817"
  },
  "r267": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=109238882&loc=d3e39076-109324"
  },
  "r268": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=109238882&loc=d3e38679-109324"
  },
  "r269": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=109238882&loc=d3e38679-109324"
  },
  "r27": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(2)",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222650&loc=SL51721675-107760"
  },
  "r270": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "05",
   "SubTopic": "30",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=65884525&loc=d3e40913-109327"
  },
  "r271": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=108774443&loc=SL4613673-111683"
  },
  "r272": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "19",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=108774443&loc=SL4569616-111683"
  },
  "r273": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=108774443&loc=SL4569643-111683"
  },
  "r274": {
   "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"
  },
  "r275": {
   "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"
  },
  "r276": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "810",
   "URI": "http://asc.fasb.org/topic&trid=2197479"
  },
  "r277": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=109980867&loc=SL5618551-113959"
  },
  "r278": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=109980867&loc=SL5624163-113959"
  },
  "r279": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "182",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=109975725&loc=SL5629052-113961"
  },
  "r28": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(2)",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222650&loc=SL51721675-107760"
  },
  "r280": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=99377789&loc=d3e19190-110258"
  },
  "r281": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=99377789&loc=d3e19207-110258"
  },
  "r282": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=99377789&loc=d3e19207-110258"
  },
  "r283": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bb)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=99377789&loc=d3e19207-110258"
  },
  "r284": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=99377789&loc=d3e19207-110258"
  },
  "r285": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1a)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=99377789&loc=d3e19207-110258"
  },
  "r286": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=99377789&loc=d3e19207-110258"
  },
  "r287": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=99377789&loc=SL7498348-110258"
  },
  "r288": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=99377789&loc=d3e19279-110258"
  },
  "r289": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=99377789&loc=SL6742756-110258"
  },
  "r29": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222650&loc=SL51721675-107760"
  },
  "r290": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "820",
   "URI": "http://asc.fasb.org/topic&trid=2155941"
  },
  "r291": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=99377092&loc=SL75136599-209740"
  },
  "r292": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=75026489&loc=d3e13220-108610"
  },
  "r293": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=109250915&loc=d3e13433-108611"
  },
  "r294": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=109250915&loc=d3e13467-108611"
  },
  "r295": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=109250915&loc=d3e13476-108611"
  },
  "r296": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=109250915&loc=d3e13531-108611"
  },
  "r297": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=109250915&loc=d3e13537-108611"
  },
  "r298": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=109250915&loc=d3e13537-108611"
  },
  "r299": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=75032774&loc=SL75039408-165497"
  },
  "r3": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222160&loc=SL51721491-107759"
  },
  "r30": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222650&loc=SL51721677-107760"
  },
  "r300": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "230",
   "Topic": "830",
   "URI": "http://asc.fasb.org/extlink&oid=98513438&loc=d3e33268-110906"
  },
  "r301": {
   "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"
  },
  "r302": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "http://asc.fasb.org/extlink&oid=114775744&loc=d3e28555-108399"
  },
  "r303": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "40",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Subparagraph": "(Note 3)",
   "Topic": "840",
   "URI": "http://asc.fasb.org/extlink&oid=82846649&loc=d3e38371-112697"
  },
  "r304": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "840",
   "URI": "http://asc.fasb.org/extlink&oid=77902758&loc=d3e41502-112717"
  },
  "r305": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(bb)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=109247956&loc=d3e107207-111719"
  },
  "r306": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(bb)(1)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=109247956&loc=d3e107207-111719"
  },
  "r307": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(bb)(2)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=109247956&loc=d3e107207-111719"
  },
  "r308": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(bb)(3)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=109247956&loc=d3e107207-111719"
  },
  "r309": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=68078379&loc=d3e122625-111746"
  },
  "r31": {
   "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"
  },
  "r310": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "320",
   "Topic": "940",
   "URI": "http://asc.fasb.org/subtopic&trid=2176304"
  },
  "r311": {
   "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=6876686&loc=d3e534808-122878"
  },
  "r312": {
   "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=6876686&loc=d3e534808-122878"
  },
  "r313": {
   "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=6876686&loc=d3e534808-122878"
  },
  "r314": {
   "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=6876686&loc=d3e534808-122878"
  },
  "r315": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(6)(a)(1))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=6876686&loc=d3e534808-122878"
  },
  "r316": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(6))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=6876686&loc=d3e534808-122878"
  },
  "r317": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.13,16)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=6876686&loc=d3e534808-122878"
  },
  "r318": {
   "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=6876686&loc=d3e534808-122878"
  },
  "r319": {
   "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=6876686&loc=d3e534808-122878"
  },
  "r32": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=26872618&loc=d3e7436-122677"
  },
  "r320": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.7(a)(3))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=6876686&loc=d3e534808-122878"
  },
  "r321": {
   "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=114873765&loc=SL114874048-224260"
  },
  "r322": {
   "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=114873765&loc=SL114874048-224260"
  },
  "r323": {
   "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=114873765&loc=SL114874048-224260"
  },
  "r324": {
   "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=114873765&loc=SL114874048-224260"
  },
  "r325": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(23))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=114873765&loc=SL114874048-224260"
  },
  "r326": {
   "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=114873765&loc=SL114874048-224260"
  },
  "r327": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "320",
   "Subparagraph": "(a)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=75019621&loc=d3e62586-112803"
  },
  "r328": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "320",
   "Subparagraph": "(b)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=75019621&loc=d3e62586-112803"
  },
  "r329": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "320",
   "Subparagraph": "(c)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=75019621&loc=d3e62586-112803"
  },
  "r33": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "http://asc.fasb.org/subtopic&trid=2122178"
  },
  "r330": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "320",
   "Subparagraph": "(d)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=75019621&loc=d3e62586-112803"
  },
  "r331": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "320",
   "Topic": "942",
   "URI": "http://asc.fasb.org/subtopic&trid=2209399"
  },
  "r332": {
   "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"
  },
  "r333": {
   "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"
  },
  "r334": {
   "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"
  },
  "r335": {
   "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"
  },
  "r336": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "20",
   "Subparagraph": "(2)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=27015749&loc=d3e569990-122904"
  },
  "r337": {
   "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=6879938&loc=d3e572229-122910"
  },
  "r338": {
   "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=6879938&loc=d3e572229-122910"
  },
  "r339": {
   "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=6879938&loc=d3e572229-122910"
  },
  "r34": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "205",
   "URI": "http://asc.fasb.org/topic&trid=2122149"
  },
  "r340": {
   "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=6879938&loc=d3e572229-122910"
  },
  "r341": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(1)(b))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=6879938&loc=d3e572229-122910"
  },
  "r342": {
   "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=6879938&loc=d3e572229-122910"
  },
  "r343": {
   "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=6879938&loc=d3e572229-122910"
  },
  "r344": {
   "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=6879938&loc=d3e572229-122910"
  },
  "r345": {
   "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=6879938&loc=d3e572229-122910"
  },
  "r346": {
   "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=6879938&loc=d3e572229-122910"
  },
  "r347": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(4))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=6879938&loc=d3e572229-122910"
  },
  "r348": {
   "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=6879938&loc=d3e572229-122910"
  },
  "r349": {
   "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=6879938&loc=d3e572229-122910"
  },
  "r35": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=82887183&loc=d3e6676-107765"
  },
  "r350": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03.(a),5)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=6879938&loc=d3e572229-122910"
  },
  "r351": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03.(a),6)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=6879938&loc=d3e572229-122910"
  },
  "r352": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03.1(c))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=6879938&loc=d3e572229-122910"
  },
  "r353": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03.1(f))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=6879938&loc=d3e572229-122910"
  },
  "r354": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03.1(g))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=6879938&loc=d3e572229-122910"
  },
  "r355": {
   "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=6879938&loc=d3e572229-122910"
  },
  "r356": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03.7)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=6879938&loc=d3e572229-122910"
  },
  "r357": {
   "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=114873790&loc=SL114874131-224263"
  },
  "r358": {
   "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=114873790&loc=SL114874131-224263"
  },
  "r359": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(12))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=114873790&loc=SL114874131-224263"
  },
  "r36": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(27)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682"
  },
  "r360": {
   "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=114873790&loc=SL114874131-224263"
  },
  "r361": {
   "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=114873790&loc=SL114874131-224263"
  },
  "r362": {
   "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=114873790&loc=SL114874131-224263"
  },
  "r363": {
   "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=114873790&loc=SL114874131-224263"
  },
  "r364": {
   "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=114873790&loc=SL114874131-224263"
  },
  "r365": {
   "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=114873790&loc=SL114874131-224263"
  },
  "r366": {
   "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=114873790&loc=SL114874131-224263"
  },
  "r367": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04.7)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=114873790&loc=SL114874131-224263"
  },
  "r368": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "235",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=34713774&loc=d3e574960-122915"
  },
  "r369": {
   "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=34713774&loc=d3e574992-122915"
  },
  "r37": {
   "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=6877327&loc=d3e13212-122682"
  },
  "r370": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "235",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=34713774&loc=d3e574992-122915"
  },
  "r371": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=6481648&loc=d3e11198-158413"
  },
  "r372": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=35755530&loc=d3e11264-158415"
  },
  "r373": {
   "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"
  },
  "r374": {
   "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"
  },
  "r375": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "30",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=68057816&loc=d3e11446-158418"
  },
  "r376": {
   "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"
  },
  "r377": {
   "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"
  },
  "r378": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=99382578&loc=d3e14754-158437"
  },
  "r379": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Subparagraph": "(a)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=99382578&loc=d3e14764-158437"
  },
  "r38": {
   "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=6877327&loc=d3e13212-122682"
  },
  "r380": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Subparagraph": "(b)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=99382578&loc=d3e14764-158437"
  },
  "r381": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Subparagraph": "(c)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=99382578&loc=d3e14764-158437"
  },
  "r382": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Subparagraph": "(cc)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=99382578&loc=d3e14764-158437"
  },
  "r383": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=99382578&loc=d3e14764-158437"
  },
  "r384": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4H",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=99384497&loc=SL65671331-158438"
  },
  "r385": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9C",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "40",
   "Subparagraph": "(a)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=99385871&loc=SL65671395-207642"
  },
  "r386": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "40",
   "Topic": "944",
   "URI": "http://asc.fasb.org/subtopic&trid=2560295"
  },
  "r387": {
   "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"
  },
  "r388": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "25",
   "SubTopic": "720",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=35755714&loc=d3e28434-158551"
  },
  "r389": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=6484115&loc=d3e19393-158473"
  },
  "r39": {
   "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=6877327&loc=d3e13212-122682"
  },
  "r390": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "825",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=6487548&loc=d3e32546-158582"
  },
  "r391": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "825",
   "Subparagraph": "(b)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=99380617&loc=SL75241803-196195"
  },
  "r392": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "825",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=99380617&loc=SL75241803-196195"
  },
  "r393": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12)",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=50485924&loc=d3e611133-123010"
  },
  "r394": {
   "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=50485924&loc=d3e611379-123010"
  },
  "r395": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "320",
   "Topic": "946",
   "URI": "http://asc.fasb.org/subtopic&trid=2324412"
  },
  "r396": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "310",
   "Subparagraph": "(SX 210.12-29(Footnote 4))",
   "Topic": "948",
   "URI": "http://asc.fasb.org/extlink&oid=6589523&loc=d3e617274-123014"
  },
  "r397": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "740",
   "Topic": "954",
   "URI": "http://asc.fasb.org/extlink&oid=6491622&loc=d3e9504-115650"
  },
  "r398": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Footnote 2))",
   "Topic": "970",
   "URI": "http://asc.fasb.org/extlink&oid=6590653&loc=d3e638233-123024"
  },
  "r399": {
   "Name": "Regulation 12B",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "b-2"
  },
  "r4": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222160&loc=SL51721494-107759"
  },
  "r40": {
   "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=6877327&loc=d3e13212-122682"
  },
  "r41": {
   "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=6877327&loc=d3e13212-122682"
  },
  "r42": {
   "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=6877327&loc=d3e13212-122682"
  },
  "r43": {
   "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=6877327&loc=d3e13212-122682"
  },
  "r44": {
   "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=6877327&loc=d3e13212-122682"
  },
  "r45": {
   "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=6877327&loc=d3e13212-122682"
  },
  "r46": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(3))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682"
  },
  "r47": {
   "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=6877327&loc=d3e13212-122682"
  },
  "r48": {
   "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=6877327&loc=d3e13212-122682"
  },
  "r49": {
   "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=6877327&loc=d3e13212-122682"
  },
  "r5": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222160&loc=SL51721494-107759"
  },
  "r50": {
   "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=6877327&loc=d3e13212-122682"
  },
  "r51": {
   "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=6877327&loc=d3e13212-122682"
  },
  "r52": {
   "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=6877327&loc=d3e13212-122682"
  },
  "r53": {
   "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=6877327&loc=d3e13212-122682"
  },
  "r54": {
   "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=6877327&loc=d3e13212-122682"
  },
  "r55": {
   "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=6877327&loc=d3e13212-122682"
  },
  "r56": {
   "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=6877327&loc=d3e13212-122682"
  },
  "r57": {
   "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=6877327&loc=d3e13212-122682"
  },
  "r58": {
   "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=6877327&loc=d3e13212-122682"
  },
  "r59": {
   "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=6877327&loc=d3e13212-122682"
  },
  "r6": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1C",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222160&loc=SL51721501-107759"
  },
  "r60": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=114867106&loc=SL7669646-108580"
  },
  "r61": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=114867106&loc=SL7669646-108580"
  },
  "r62": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(h)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=114867106&loc=SL7669646-108580"
  },
  "r63": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(i),(j),(k)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=114867106&loc=SL7669646-108580"
  },
  "r64": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(i-k)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=114867106&loc=SL7669646-108580"
  },
  "r65": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=114867106&loc=SL7669646-108580"
  },
  "r66": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=114867106&loc=d3e637-108580"
  },
  "r67": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=114867106&loc=d3e640-108580"
  },
  "r68": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=114867106&loc=d3e681-108580"
  },
  "r69": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=114867106&loc=SL7669686-108580"
  },
  "r7": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1D",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222160&loc=SL51721503-107759"
  },
  "r70": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=114867106&loc=d3e689-108580"
  },
  "r71": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=114867106&loc=SL34724391-108580"
  },
  "r72": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=114867106&loc=SL34724394-108580"
  },
  "r73": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=114867106&loc=SL7669619-108580"
  },
  "r74": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=114867106&loc=SL7669619-108580"
  },
  "r75": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=114867106&loc=SL7669625-108580"
  },
  "r76": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=114867106&loc=SL7669625-108580"
  },
  "r77": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=114867106&loc=d3e557-108580"
  },
  "r78": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=109228884&loc=d3e1436-108581"
  },
  "r79": {
   "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=115205541&loc=SL114868656-224227"
  },
  "r8": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222160&loc=d3e957-107759"
  },
  "r80": {
   "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=115205541&loc=SL114868664-224227"
  },
  "r81": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(14))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=115205541&loc=SL114868664-224227"
  },
  "r82": {
   "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=115205541&loc=SL114868664-224227"
  },
  "r83": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(21))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=115205541&loc=SL114868664-224227"
  },
  "r84": {
   "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=115205541&loc=SL114868664-224227"
  },
  "r85": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.13)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=115205541&loc=SL114868664-224227"
  },
  "r86": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.21)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=115205541&loc=SL114868664-224227"
  },
  "r87": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "220",
   "URI": "http://asc.fasb.org/topic&trid=2134417"
  },
  "r88": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=109223946&loc=d3e3151-108585"
  },
  "r89": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=109223946&loc=d3e3179-108585"
  },
  "r9": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222160&loc=SL51721523-107759"
  },
  "r90": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a),(b)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=109223946&loc=d3e3179-108585"
  },
  "r91": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=109223946&loc=d3e3179-108585"
  },
  "r92": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=109223946&loc=d3e3179-108585"
  },
  "r93": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=109223946&loc=d3e3213-108585"
  },
  "r94": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a),(b)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=109223946&loc=d3e3213-108585"
  },
  "r95": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=109223946&loc=d3e3255-108585"
  },
  "r96": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=109223946&loc=d3e3291-108585"
  },
  "r97": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "24",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=109223946&loc=d3e3521-108585"
  },
  "r98": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=109223946&loc=d3e3536-108585"
  },
  "r99": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(g)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=109223946&loc=d3e3536-108585"
  }
 },
 "version": "2.0"
}
