<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.22.2.2</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>337</ContextCount>
  <ElementCount>250</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>48</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>5</UnitCount>
  <MyReports>
    <Report instance="sfdl-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0001001 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.securityfederalbank.com/role/DocumentandEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="sfdl-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>1001002 - Statement - Consolidated Balance Sheets (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.securityfederalbank.com/role/ConsolidatedBalanceSheetsUnaudited</Role>
      <ShortName>Consolidated Balance Sheets (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="sfdl-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>1002003 - Statement - Consolidated Balance Sheets (Unaudited) (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.securityfederalbank.com/role/ConsolidatedBalanceSheetsUnauditedParenthetical</Role>
      <ShortName>Consolidated Balance Sheets (Unaudited) (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="sfdl-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>1003004 - Statement - Consolidated Statements of Income (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.securityfederalbank.com/role/ConsolidatedStatementsofIncomeUnaudited</Role>
      <ShortName>Consolidated Statements of Income (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="sfdl-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>1004005 - Statement - Consolidated Statements of Comprehensive Income (Loss) (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.securityfederalbank.com/role/ConsolidatedStatementsofComprehensiveIncomeLossUnaudited</Role>
      <ShortName>Consolidated Statements of Comprehensive Income (Loss) (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="sfdl-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>1005006 - Statement - Consolidated Statements of Comprehensive Income (Loss) (Unaudited) (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.securityfederalbank.com/role/ConsolidatedStatementsofComprehensiveIncomeLossUnauditedParenthetical</Role>
      <ShortName>Consolidated Statements of Comprehensive Income (Loss) (Unaudited) (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="sfdl-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>1006007 - Statement - Consolidated Statements of Changes in Shareholders' Equity (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.securityfederalbank.com/role/ConsolidatedStatementsofChangesinShareholdersEquityUnaudited</Role>
      <ShortName>Consolidated Statements of Changes in Shareholders' Equity (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="sfdl-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>1007008 - Statement - Consolidated Statements of Cash Flows (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.securityfederalbank.com/role/ConsolidatedStatementsofCashFlowsUnaudited</Role>
      <ShortName>Consolidated Statements of Cash Flows (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="sfdl-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>2101101 - Disclosure - Basis of Presentation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.securityfederalbank.com/role/BasisofPresentation</Role>
      <ShortName>Basis of Presentation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="sfdl-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>2103103 - Disclosure - Critical Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.securityfederalbank.com/role/CriticalAccountingPolicies</Role>
      <ShortName>Critical Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="sfdl-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>2105104 - Disclosure - Earnings Per Common Share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.securityfederalbank.com/role/EarningsPerCommonShare</Role>
      <ShortName>Earnings Per Common Share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="sfdl-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>2110105 - Disclosure - Stock-Based Compensation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.securityfederalbank.com/role/StockBasedCompensation</Role>
      <ShortName>Stock-Based Compensation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="sfdl-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>2114106 - Disclosure - Investment and Mortgage-Backed Securities, Available for Sale</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.securityfederalbank.com/role/InvestmentandMortgageBackedSecuritiesAvailableforSale</Role>
      <ShortName>Investment and Mortgage-Backed Securities, Available for Sale</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="sfdl-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>2120107 - Disclosure - Investment and Mortgage-Backed Securities, Held to Maturity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.securityfederalbank.com/role/InvestmentandMortgageBackedSecuritiesHeldtoMaturity</Role>
      <ShortName>Investment and Mortgage-Backed Securities, Held to Maturity</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="sfdl-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>2125108 - Disclosure - Loans Receivable, Net</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.securityfederalbank.com/role/LoansReceivableNet</Role>
      <ShortName>Loans Receivable, Net</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="sfdl-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>2137109 - Disclosure - Regulatory Matters</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.securityfederalbank.com/role/RegulatoryMatters</Role>
      <ShortName>Regulatory Matters</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="sfdl-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>2140110 - Disclosure - Carrying Amounts and Fair Value of Financial Instruments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.securityfederalbank.com/role/CarryingAmountsandFairValueofFinancialInstruments</Role>
      <ShortName>Carrying Amounts and Fair Value of Financial Instruments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="sfdl-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>2148112 - Disclosure - Non-interest Income (Notes)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.securityfederalbank.com/role/NoninterestIncomeNotes</Role>
      <ShortName>Non-interest Income (Notes)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="sfdl-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>2151113 - Disclosure - Subsequent Events</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.securityfederalbank.com/role/SubsequentEvents</Role>
      <ShortName>Subsequent Events</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="sfdl-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>2204201 - Disclosure - Critical Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.securityfederalbank.com/role/CriticalAccountingPoliciesPolicies</Role>
      <ShortName>Critical Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.securityfederalbank.com/role/CriticalAccountingPolicies</ParentRole>
      <Position>20</Position>
    </Report>
    <Report instance="sfdl-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>2315303 - Disclosure - Investment and Mortgage-Backed Securities, Available for Sale (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.securityfederalbank.com/role/InvestmentandMortgageBackedSecuritiesAvailableforSaleTables</Role>
      <ShortName>Investment and Mortgage-Backed Securities, Available for Sale (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.securityfederalbank.com/role/InvestmentandMortgageBackedSecuritiesAvailableforSale</ParentRole>
      <Position>21</Position>
    </Report>
    <Report instance="sfdl-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>2326305 - Disclosure - Loans Receivable, Net (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.securityfederalbank.com/role/LoansReceivableNetTables</Role>
      <ShortName>Loans Receivable, Net (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.securityfederalbank.com/role/LoansReceivableNet</ParentRole>
      <Position>22</Position>
    </Report>
    <Report instance="sfdl-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>2338306 - Disclosure - Regulatory Matters (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.securityfederalbank.com/role/RegulatoryMattersTables</Role>
      <ShortName>Regulatory Matters (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.securityfederalbank.com/role/RegulatoryMatters</ParentRole>
      <Position>23</Position>
    </Report>
    <Report instance="sfdl-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>2341307 - Disclosure - Carrying Amounts and Fair Value of Financial Instruments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.securityfederalbank.com/role/CarryingAmountsandFairValueofFinancialInstrumentsTables</Role>
      <ShortName>Carrying Amounts and Fair Value of Financial Instruments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.securityfederalbank.com/role/CarryingAmountsandFairValueofFinancialInstruments</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="sfdl-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>2349308 - Disclosure - Non-interest Income (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.securityfederalbank.com/role/NoninterestIncomeTables</Role>
      <ShortName>Non-interest Income (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.securityfederalbank.com/role/NoninterestIncomeNotes</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="sfdl-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>2407401 - Disclosure - Earnings Per Common Share (Reconciliation of Net Income to Net Income Available to Common Shareholders) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.securityfederalbank.com/role/EarningsPerCommonShareReconciliationofNetIncometoNetIncomeAvailabletoCommonShareholdersDetails</Role>
      <ShortName>Earnings Per Common Share (Reconciliation of Net Income to Net Income Available to Common Shareholders) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.securityfederalbank.com/role/EarningsPerCommonShare</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="sfdl-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>2409403 - Disclosure - Earnings Per Common Share Diluted EPS (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.securityfederalbank.com/role/EarningsPerCommonShareDilutedEPSDetails</Role>
      <ShortName>Earnings Per Common Share Diluted EPS (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="sfdl-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>2416406 - Disclosure - Investment and Mortgage-Backed Securities, Available for Sale (Schedule of Available for Sale Securities) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.securityfederalbank.com/role/InvestmentandMortgageBackedSecuritiesAvailableforSaleScheduleofAvailableforSaleSecuritiesDetails</Role>
      <ShortName>Investment and Mortgage-Backed Securities, Available for Sale (Schedule of Available for Sale Securities) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.securityfederalbank.com/role/InvestmentandMortgageBackedSecuritiesAvailableforSaleTables</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="sfdl-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>2417407 - Disclosure - Investment and Mortgage-Backed Securities, Available for Sale (Schedule of Held to Maturity Securities, Contractual Maturities) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.securityfederalbank.com/role/InvestmentandMortgageBackedSecuritiesAvailableforSaleScheduleofHeldtoMaturitySecuritiesContractualMaturitiesDetails</Role>
      <ShortName>Investment and Mortgage-Backed Securities, Available for Sale (Schedule of Held to Maturity Securities, Contractual Maturities) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.securityfederalbank.com/role/InvestmentandMortgageBackedSecuritiesAvailableforSaleTables</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="sfdl-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>2418408 - Disclosure - Investment and Mortgage-Backed Securities, Available for Sale (Schedule of Temporarily Impaired Securities, Fair Value and Unrealized losses) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.securityfederalbank.com/role/InvestmentandMortgageBackedSecuritiesAvailableforSaleScheduleofTemporarilyImpairedSecuritiesFairValueandUnrealizedlossesDetails</Role>
      <ShortName>Investment and Mortgage-Backed Securities, Available for Sale (Schedule of Temporarily Impaired Securities, Fair Value and Unrealized losses) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.securityfederalbank.com/role/InvestmentandMortgageBackedSecuritiesAvailableforSaleTables</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="sfdl-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>2419409 - Disclosure - Investment and Mortgage-Backed Securities, Available for Sale (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.securityfederalbank.com/role/InvestmentandMortgageBackedSecuritiesAvailableforSaleNarrativeDetails</Role>
      <ShortName>Investment and Mortgage-Backed Securities, Available for Sale (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.securityfederalbank.com/role/InvestmentandMortgageBackedSecuritiesAvailableforSaleTables</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="sfdl-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>2422410 - Disclosure - Investment and Mortgage-Backed Securities, Held to Maturity (Schedule of investment and mortgage-backed securities held to maturity) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.securityfederalbank.com/role/InvestmentandMortgageBackedSecuritiesHeldtoMaturityScheduleofinvestmentandmortgagebackedsecuritiesheldtomaturityDetails</Role>
      <ShortName>Investment and Mortgage-Backed Securities, Held to Maturity (Schedule of investment and mortgage-backed securities held to maturity) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.securityfederalbank.com/role/InvestmentandMortgageBackedSecuritiesHeldtoMaturity</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="sfdl-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>2423411 - Disclosure - Investment and Mortgage-Backed Securities, Held to Maturity (Schedule of Held-to-maturity Securities) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.securityfederalbank.com/role/InvestmentandMortgageBackedSecuritiesHeldtoMaturityScheduleofHeldtomaturitySecuritiesDetails</Role>
      <ShortName>Investment and Mortgage-Backed Securities, Held to Maturity (Schedule of Held-to-maturity Securities) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.securityfederalbank.com/role/InvestmentandMortgageBackedSecuritiesHeldtoMaturity</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="sfdl-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>2424412 - Disclosure - Investment and Mortgage-Backed Securities, Held to Maturity (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.securityfederalbank.com/role/InvestmentandMortgageBackedSecuritiesHeldtoMaturityNarrativeDetails</Role>
      <ShortName>Investment and Mortgage-Backed Securities, Held to Maturity (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.securityfederalbank.com/role/InvestmentandMortgageBackedSecuritiesHeldtoMaturity</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="sfdl-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>2427413 - Disclosure - Loans Receivable, Net (Schedule of Accounts, Notes, Loans and Financing Receivable) (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.securityfederalbank.com/role/LoansReceivableNetScheduleofAccountsNotesLoansandFinancingReceivableDetails</Role>
      <ShortName>Loans Receivable, Net (Schedule of Accounts, Notes, Loans and Financing Receivable) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.securityfederalbank.com/role/LoansReceivableNetTables</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="sfdl-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>2428414 - Disclosure - Loans Receivable, Net (Schedule of Allowance for Loan Losses) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.securityfederalbank.com/role/LoansReceivableNetScheduleofAllowanceforLoanLossesDetails</Role>
      <ShortName>Loans Receivable, Net (Schedule of Allowance for Loan Losses) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.securityfederalbank.com/role/LoansReceivableNetTables</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="sfdl-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>2429415 - Disclosure - Loans Receivable, Net (Financing Receivable Credit Quality Indicators) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.securityfederalbank.com/role/LoansReceivableNetFinancingReceivableCreditQualityIndicatorsDetails</Role>
      <ShortName>Loans Receivable, Net (Financing Receivable Credit Quality Indicators) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.securityfederalbank.com/role/LoansReceivableNetTables</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="sfdl-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>2430416 - Disclosure - Loans Receivable, Net (Past Due Financing Receivables) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.securityfederalbank.com/role/LoansReceivableNetPastDueFinancingReceivablesDetails</Role>
      <ShortName>Loans Receivable, Net (Past Due Financing Receivables) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.securityfederalbank.com/role/LoansReceivableNetTables</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="sfdl-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>2431417 - Disclosure - Loans Receivable, Net (Schedule of non-accrual loans by category) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.securityfederalbank.com/role/LoansReceivableNetScheduleofnonaccrualloansbycategoryDetails</Role>
      <ShortName>Loans Receivable, Net (Schedule of non-accrual loans by category) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.securityfederalbank.com/role/LoansReceivableNetTables</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="sfdl-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>2432418 - Disclosure - Loans Receivable, Net (Schedule of loans evaluated individually for impairment and collectively evaluated for impairment in the allowance for loan losses) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.securityfederalbank.com/role/LoansReceivableNetScheduleofloansevaluatedindividuallyforimpairmentandcollectivelyevaluatedforimpairmentintheallowanceforloanlossesDetails</Role>
      <ShortName>Loans Receivable, Net (Schedule of loans evaluated individually for impairment and collectively evaluated for impairment in the allowance for loan losses) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.securityfederalbank.com/role/LoansReceivableNetTables</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="sfdl-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>2433419 - Disclosure - Loans Receivable, Net (Schedule of loans evaluated individually for impairment and collectively evaluated for impairment in loans receivable) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.securityfederalbank.com/role/LoansReceivableNetScheduleofloansevaluatedindividuallyforimpairmentandcollectivelyevaluatedforimpairmentinloansreceivableDetails</Role>
      <ShortName>Loans Receivable, Net (Schedule of loans evaluated individually for impairment and collectively evaluated for impairment in loans receivable) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.securityfederalbank.com/role/LoansReceivableNetTables</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="sfdl-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>2434420 - Disclosure - Loans Receivable, Net (Impaired Financing Receivables) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.securityfederalbank.com/role/LoansReceivableNetImpairedFinancingReceivablesDetails</Role>
      <ShortName>Loans Receivable, Net (Impaired Financing Receivables) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.securityfederalbank.com/role/LoansReceivableNetTables</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="sfdl-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>2436422 - Disclosure - Loans Receivable, Net (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.securityfederalbank.com/role/LoansReceivableNetNarrativeDetails</Role>
      <ShortName>Loans Receivable, Net (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.securityfederalbank.com/role/LoansReceivableNetTables</ParentRole>
      <Position>43</Position>
    </Report>
    <Report instance="sfdl-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>2439423 - Disclosure - Regulatory Matters (Regulatory capital amounts and ratios) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.securityfederalbank.com/role/RegulatoryMattersRegulatorycapitalamountsandratiosDetails</Role>
      <ShortName>Regulatory Matters (Regulatory capital amounts and ratios) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.securityfederalbank.com/role/RegulatoryMattersTables</ParentRole>
      <Position>44</Position>
    </Report>
    <Report instance="sfdl-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>2442424 - Disclosure - Carrying Amounts and Fair Value of Financial Instruments (Fair value measurements, recurring basis) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.securityfederalbank.com/role/CarryingAmountsandFairValueofFinancialInstrumentsFairvaluemeasurementsrecurringbasisDetails</Role>
      <ShortName>Carrying Amounts and Fair Value of Financial Instruments (Fair value measurements, recurring basis) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.securityfederalbank.com/role/CarryingAmountsandFairValueofFinancialInstrumentsTables</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="sfdl-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>2443425 - Disclosure - Carrying Amounts and Fair Value of Financial Instruments (Fair value measurements, nonrecurring basis) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.securityfederalbank.com/role/CarryingAmountsandFairValueofFinancialInstrumentsFairvaluemeasurementsnonrecurringbasisDetails</Role>
      <ShortName>Carrying Amounts and Fair Value of Financial Instruments (Fair value measurements, nonrecurring basis) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.securityfederalbank.com/role/CarryingAmountsandFairValueofFinancialInstrumentsTables</ParentRole>
      <Position>46</Position>
    </Report>
    <Report instance="sfdl-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>2444426 - Disclosure - Carrying Amounts and Fair Value of Financial Instruments (Significant unobservable inputs used in the fair value measurements) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.securityfederalbank.com/role/CarryingAmountsandFairValueofFinancialInstrumentsSignificantunobservableinputsusedinthefairvaluemeasurementsDetails</Role>
      <ShortName>Carrying Amounts and Fair Value of Financial Instruments (Significant unobservable inputs used in the fair value measurements) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.securityfederalbank.com/role/CarryingAmountsandFairValueofFinancialInstrumentsTables</ParentRole>
      <Position>47</Position>
    </Report>
    <Report instance="sfdl-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>2445427 - Disclosure - Carrying Amounts and Fair Value of Financial Instruments (Summary of the carrying value and estimated fair value of financial instruments) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.securityfederalbank.com/role/CarryingAmountsandFairValueofFinancialInstrumentsSummaryofthecarryingvalueandestimatedfairvalueoffinancialinstrumentsDetails</Role>
      <ShortName>Carrying Amounts and Fair Value of Financial Instruments (Summary of the carrying value and estimated fair value of financial instruments) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.securityfederalbank.com/role/CarryingAmountsandFairValueofFinancialInstrumentsTables</ParentRole>
      <Position>48</Position>
    </Report>
    <Report instance="sfdl-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>2446428 - Disclosure - Carrying Amounts and Fair Value of Financial Instruments (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.securityfederalbank.com/role/CarryingAmountsandFairValueofFinancialInstrumentsNarrativeDetails</Role>
      <ShortName>Carrying Amounts and Fair Value of Financial Instruments (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.securityfederalbank.com/role/CarryingAmountsandFairValueofFinancialInstrumentsTables</ParentRole>
      <Position>49</Position>
    </Report>
    <Report instance="sfdl-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>2450429 - Disclosure - Non-interest Income (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.securityfederalbank.com/role/NoninterestIncomeDetails</Role>
      <ShortName>Non-interest Income (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.securityfederalbank.com/role/NoninterestIncomeTables</ParentRole>
      <Position>50</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <Logs>
    <Log type="Warning">[dq-0542-Deprecated-Concept] Concept CashAndCashEquivalentsPeriodIncreaseDecrease in us-gaap/2021 used in 2 facts was deprecated in us-gaap/2022 as of 2022 and should not be used. sfdl-20220630.htm 4</Log>
    <Log type="Warning">[ix-0514-Hidden-Fact-Eligible-For-Transform] WARN: 2 fact(s) appearing in ix:hidden were eligible for transformation: dei:DocumentQuarterlyReport, dei:DocumentTransitionReport -  sfdl-20220630.htm 4</Log>
    <Log type="Warning">[dqc-0001-Axis-With-Inappropriate-Members] The fact us-gaap:StockholdersEquity with a value of 0 is dimensionally qualified with the us-gaap:StatementEquityComponentsAxis and the unallowable member us-gaap:RedeemablePreferredStockMember. Base taxonomy member is not allowed by rule.  The properties of this us-gaap:StockholdersEquity fact are Context: i33a8e28a217743e38b895a2fd5f7ed92_I20210630, Unit: usd, Rule Element Id: 75. sfdl-20220630.htm 4</Log>
    <Log type="Warning">[dqc-0001-Axis-With-Inappropriate-Members] The fact us-gaap:StockholdersEquity with a value of 0 is dimensionally qualified with the us-gaap:StatementEquityComponentsAxis and the unallowable member us-gaap:RedeemablePreferredStockMember. Base taxonomy member is not allowed by rule.  The properties of this us-gaap:StockholdersEquity fact are Context: i269828bf66264f90a0608a95600cc8e9_I20201231, Unit: usd, Rule Element Id: 75. sfdl-20220630.htm 4</Log>
    <Log type="Warning">[dqc-0001-Axis-With-Inappropriate-Members] The fact us-gaap:StockholdersEquity with a value of 0 is dimensionally qualified with the us-gaap:StatementEquityComponentsAxis and the unallowable member us-gaap:RedeemablePreferredStockMember. Base taxonomy member is not allowed by rule.  The properties of this us-gaap:StockholdersEquity fact are Context: ieec68201412845f9a012fb8de17c32f5_I20211231, Unit: usd, Rule Element Id: 75. sfdl-20220630.htm 4</Log>
    <Log type="Warning">[dqc-0001-Axis-With-Inappropriate-Members] The fact us-gaap:StockholdersEquity with a value of 0 is dimensionally qualified with the us-gaap:StatementEquityComponentsAxis and the unallowable member us-gaap:RedeemablePreferredStockMember. Base taxonomy member is not allowed by rule.  The properties of this us-gaap:StockholdersEquity fact are Context: iefcb15130b8b4ebe993fc0d21de302a9_I20220331, Unit: usd, Rule Element Id: 75. sfdl-20220630.htm 4</Log>
    <Log type="Warning">[dqc-0001-Axis-With-Inappropriate-Members] The fact us-gaap:StockholdersEquity with a value of 0 is dimensionally qualified with the us-gaap:StatementEquityComponentsAxis and the unallowable member us-gaap:RedeemablePreferredStockMember. Base taxonomy member is not allowed by rule.  The properties of this us-gaap:StockholdersEquity fact are Context: i6c1f610f525e443097b18bcf11a95bb1_I20210331, Unit: usd, Rule Element Id: 75. sfdl-20220630.htm 4</Log>
    <Log type="Warning">[dqc-0001-Axis-With-Inappropriate-Members] The fact us-gaap:StockholdersEquity with a value of 82949000 is dimensionally qualified with the us-gaap:StatementEquityComponentsAxis and the unallowable member us-gaap:RedeemablePreferredStockMember. Base taxonomy member is not allowed by rule.  The properties of this us-gaap:StockholdersEquity fact are Context: i032df186731442fbaa6e1c524ab8665b_I20220630, Unit: usd, Rule Element Id: 75. sfdl-20220630.htm 4</Log>
    <Log type="Warning">[dqc-0001-Axis-With-Inappropriate-Members] The fact us-gaap:ProceedsFromIssuanceOfPreferredStockAndPreferenceStock with a value of 82949000 is dimensionally qualified with the us-gaap:StatementEquityComponentsAxis and the unallowable member us-gaap:RedeemablePreferredStockMember. Base taxonomy member is not allowed by rule.  The properties of this us-gaap:ProceedsFromIssuanceOfPreferredStockAndPreferenceStock fact are Context: i2e47f3cd14494b16b3bfddfbe97e36df_D20220401-20220630, Unit: usd, Rule Element Id: 75. sfdl-20220630.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:PaymentsToAcquireHeldToMaturitySecurities has a value of -84220113 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:PaymentsToAcquireHeldToMaturitySecurities fact are: Context: i2477568c215e4502a72782a106308f36_D20220101-20220630, Unit: usd, Rule Element Id: 3188. sfdl-20220630.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:PaymentsToAcquireHeldToMaturitySecurities has a value of -1941482 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:PaymentsToAcquireHeldToMaturitySecurities fact are: Context: i5f7f5219e06746a4ab514c97822ca1ee_D20210101-20210630, Unit: usd, Rule Element Id: 3188. sfdl-20220630.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:RepaymentsOfShortTermDebt has a value of -145665000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:RepaymentsOfShortTermDebt fact are: Context: i2477568c215e4502a72782a106308f36_D20220101-20220630, Unit: usd, Rule Element Id: 2844. sfdl-20220630.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:RepaymentsOfShortTermDebt has a value of -209565000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:RepaymentsOfShortTermDebt fact are: Context: i5f7f5219e06746a4ab514c97822ca1ee_D20210101-20210630, Unit: usd, Rule Element Id: 2844. sfdl-20220630.htm 4</Log>
    <Log type="Warning">[dqc-0043-Incorrect-Calculation-Weights-In-Operating-Cash-Flows] The concept IncreaseDecreaseInAccruedInterestReceivableNet is included in the calculation of NetCashProvidedByUsedInOperatingActivities.IncreaseDecreaseInAccruedInterestReceivableNet is a credit balance type concept representing a natural cash outflow in the reconciliation of net income (loss) to NetCashProvidedByUsedInOperatingActivities. A credit balance type concept should always be assigned a negative one (-1) calculation weight as it is a deduction from net income (loss) to reconcile to NetCashProvidedByUsedInOperatingActivities.IncreaseDecreaseInAccruedInterestReceivableNet has been incorrectly provided a positive one (+1) calculation weight in the extension taxonomy. Correct the calculation weight to negative one (-1) and input the value as a positive amount if it is a deduction of a non-cash income or gain, an increase in an asset, or a decrease in a liability. If the value is an add-back of a non-cash expense or loss, decrease in an asset, or an increase in a liability and IncreaseDecreaseInAccruedInterestReceivableNet is the correct concept, input a negative value. Rule Element Id: 7488. https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd 8778, 11614</Log>
    <Log type="Warning">[dqc-0048-Required-Calculation-Parent-Element-In-The-Cash-Flow-Statement] The filing should include in the cash flow statement calculation linkbase(s) http://www.securityfederalbank.com/role/SubsequentEvents - 2151113 - Disclosure - Subsequent Events one of the following elements as the root(first element) of the calculation tree to represent the aggregate change in cash for the period: CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect, CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect, NetCashProvidedByUsedInContinuingOperations (As long as the element NetCashProvidedByUsedInDiscontinuedOperations is also included the reconciliation between opening and closing cash). The calculation linkbase in the filing has the following root elements defined: CashAndCashEquivalentsPeriodIncreaseDecrease. Rule Element Id: 7482. sfdl-20220630.htm </Log>
  </Logs>
  <InputFiles>
    <File doctype="10-Q" original="sfdl-20220630.htm">sfdl-20220630.htm</File>
    <File>sfdl-20220630.xsd</File>
    <File>sfdl-20220630_cal.xml</File>
    <File>sfdl-20220630_def.xml</File>
    <File>sfdl-20220630_lab.xml</File>
    <File>sfdl-20220630_pre.xml</File>
    <File>sfdl-20220630xex311.htm</File>
    <File>sfdl-20220630xex312.htm</File>
    <File>sfdl-20220630xex32.htm</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy items="1042">http://fasb.org/us-gaap/2021-01-31</BaseTaxonomy>
    <BaseTaxonomy items="29">http://xbrl.sec.gov/dei/2021q4</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
