<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.23.3</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>409</ContextCount>
  <ElementCount>393</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>68</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>6</UnitCount>
  <MyReports>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0000001 - Document - Cover</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/Cover</Role>
      <ShortName>Cover</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>0000002 - Statement - CONSOLIDATED BALANCE SHEETS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/CONSOLIDATEDBALANCESHEETS</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>0000003 - Statement - CONSOLIDATED BALANCE SHEETS (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/CONSOLIDATEDBALANCESHEETSParenthetical</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>0000004 - Statement - CONSOLIDATED STATEMENTS OF INCOME</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/CONSOLIDATEDSTATEMENTSOFINCOME</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF INCOME</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>0000005 - Statement - CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME (LOSS)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME (LOSS)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>0000006 - Statement - CONSOLIDATED STATEMENTS OF CHANGES IN SHAREHOLDERS' EQUITY</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/CONSOLIDATEDSTATEMENTSOFCHANGESINSHAREHOLDERSEQUITY</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CHANGES IN SHAREHOLDERS' EQUITY</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>0000007 - Statement - CONSOLIDATED STATEMENTS OF CHANGES IN SHAREHOLDERS' EQUITY (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/CONSOLIDATEDSTATEMENTSOFCHANGESINSHAREHOLDERSEQUITYParenthetical</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CHANGES IN SHAREHOLDERS' EQUITY (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>0000008 - Statement - CONSOLIDATED STATEMENTS OF CASH FLOWS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CASH FLOWS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>0000009 - Disclosure - BASIS OF PRESENTATION</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/BASISOFPRESENTATION</Role>
      <ShortName>BASIS OF PRESENTATION</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>0000010 - Disclosure - SUMMARY OF ORGANIZATION</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/SUMMARYOFORGANIZATION</Role>
      <ShortName>SUMMARY OF ORGANIZATION</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>0000011 - Disclosure - ACCOUNTING STANDARDS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/ACCOUNTINGSTANDARDS</Role>
      <ShortName>ACCOUNTING STANDARDS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>0000012 - Disclosure - BUSINESS COMBINATIONS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/BUSINESSCOMBINATIONS</Role>
      <ShortName>BUSINESS COMBINATIONS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>0000013 - Disclosure - EARNINGS APPLICABLE TO COMMON SHAREHOLDERS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/EARNINGSAPPLICABLETOCOMMONSHAREHOLDERS</Role>
      <ShortName>EARNINGS APPLICABLE TO COMMON SHAREHOLDERS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>0000014 - Disclosure - COMPREHENSIVE INCOME</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/COMPREHENSIVEINCOME</Role>
      <ShortName>COMPREHENSIVE INCOME</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>0000015 - Disclosure - FINANCIAL INSTRUMENTS WITH OFF-BALANCE SHEET RISK</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/FINANCIALINSTRUMENTSWITHOFFBALANCESHEETRISK</Role>
      <ShortName>FINANCIAL INSTRUMENTS WITH OFF-BALANCE SHEET RISK</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>0000016 - Disclosure - FAIR VALUE DISCLOSURES AND REPORTING, THE FAIR VALUE OPTION AND FAIR VALUE MEASUREMENTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/FAIRVALUEDISCLOSURESANDREPORTINGTHEFAIRVALUEOPTIONANDFAIRVALUEMEASUREMENTS</Role>
      <ShortName>FAIR VALUE DISCLOSURES AND REPORTING, THE FAIR VALUE OPTION AND FAIR VALUE MEASUREMENTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>0000017 - Disclosure - SECURITIES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/SECURITIES</Role>
      <ShortName>SECURITIES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>0000018 - Disclosure - LOANS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/LOANS</Role>
      <ShortName>LOANS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>0000019 - Disclosure - DERIVATIVE FINANCIAL INSTRUMENTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/DERIVATIVEFINANCIALINSTRUMENTS</Role>
      <ShortName>DERIVATIVE FINANCIAL INSTRUMENTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>0000020 - Disclosure - RECLASSIFICATION</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/RECLASSIFICATION</Role>
      <ShortName>RECLASSIFICATION</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>995410 - Disclosure - Pay vs Performance Disclosure</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/PvpDisclosure</Role>
      <ShortName>Pay vs Performance Disclosure</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>995445 - Disclosure - Insider Trading Arrangements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements</Role>
      <ShortName>Insider Trading Arrangements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>9954471 - Disclosure - ACCOUNTING STANDARDS (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/ACCOUNTINGSTANDARDSPolicies</Role>
      <ShortName>ACCOUNTING STANDARDS (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>9954472 - Disclosure - BUSINESS COMBINATIONS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/BUSINESSCOMBINATIONSTables</Role>
      <ShortName>BUSINESS COMBINATIONS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.thefirstbank.com/role/BUSINESSCOMBINATIONS</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>9954473 - Disclosure - EARNINGS APPLICABLE TO COMMON SHAREHOLDERS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/EARNINGSAPPLICABLETOCOMMONSHAREHOLDERSTables</Role>
      <ShortName>EARNINGS APPLICABLE TO COMMON SHAREHOLDERS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.thefirstbank.com/role/EARNINGSAPPLICABLETOCOMMONSHAREHOLDERS</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>9954474 - Disclosure - FINANCIAL INSTRUMENTS WITH OFF-BALANCE SHEET RISK (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/FINANCIALINSTRUMENTSWITHOFFBALANCESHEETRISKTables</Role>
      <ShortName>FINANCIAL INSTRUMENTS WITH OFF-BALANCE SHEET RISK (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.thefirstbank.com/role/FINANCIALINSTRUMENTSWITHOFFBALANCESHEETRISK</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>9954475 - Disclosure - FAIR VALUE DISCLOSURES AND REPORTING, THE FAIR VALUE OPTION AND FAIR VALUE MEASUREMENTS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/FAIRVALUEDISCLOSURESANDREPORTINGTHEFAIRVALUEOPTIONANDFAIRVALUEMEASUREMENTSTables</Role>
      <ShortName>FAIR VALUE DISCLOSURES AND REPORTING, THE FAIR VALUE OPTION AND FAIR VALUE MEASUREMENTS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.thefirstbank.com/role/FAIRVALUEDISCLOSURESANDREPORTINGTHEFAIRVALUEOPTIONANDFAIRVALUEMEASUREMENTS</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>9954476 - Disclosure - SECURITIES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/SECURITIESTables</Role>
      <ShortName>SECURITIES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.thefirstbank.com/role/SECURITIES</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>9954477 - Disclosure - LOANS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/LOANSTables</Role>
      <ShortName>LOANS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.thefirstbank.com/role/LOANS</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>9954478 - Disclosure - DERIVATIVE FINANCIAL INSTRUMENTS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/DERIVATIVEFINANCIALINSTRUMENTSTables</Role>
      <ShortName>DERIVATIVE FINANCIAL INSTRUMENTS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.thefirstbank.com/role/DERIVATIVEFINANCIALINSTRUMENTS</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>9954479 - Disclosure - SUMMARY OF ORGANIZATION - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/SUMMARYOFORGANIZATIONAdditionalInformationDetails</Role>
      <ShortName>SUMMARY OF ORGANIZATION - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>31</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>9954480 - Disclosure - BUSINESS COMBINATIONS - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/BUSINESSCOMBINATIONSNarrativeDetails</Role>
      <ShortName>BUSINESS COMBINATIONS - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>32</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>9954481 - Disclosure - BUSINESS COMBINATIONS - Schedule of Identifiable Assets Acquired and Liabilities Assumed (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/BUSINESSCOMBINATIONSScheduleofIdentifiableAssetsAcquiredandLiabilitiesAssumedDetails</Role>
      <ShortName>BUSINESS COMBINATIONS - Schedule of Identifiable Assets Acquired and Liabilities Assumed (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>33</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>9954482 - Disclosure - BUSINESS COMBINATIONS - Business Acquisition, Pro Forma Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/BUSINESSCOMBINATIONSBusinessAcquisitionProFormaInformationDetails</Role>
      <ShortName>BUSINESS COMBINATIONS - Business Acquisition, Pro Forma Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>34</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>9954483 - Disclosure - EARNINGS APPLICABLE TO COMMON SHAREHOLDERS - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/EARNINGSAPPLICABLETOCOMMONSHAREHOLDERSNarrativeDetails</Role>
      <ShortName>EARNINGS APPLICABLE TO COMMON SHAREHOLDERS - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>35</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>9954484 - Disclosure - EARNINGS APPLICABLE TO COMMON SHAREHOLDERS - Earnings Available to Common Stockholders (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/EARNINGSAPPLICABLETOCOMMONSHAREHOLDERSEarningsAvailabletoCommonStockholdersDetails</Role>
      <ShortName>EARNINGS APPLICABLE TO COMMON SHAREHOLDERS - Earnings Available to Common Stockholders (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>36</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>9954485 - Disclosure - FINANCIAL INSTRUMENTS WITH OFF-BALANCE SHEET RISK - Schedule of Financial Instruments with Off-Balance Sheet Risk (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/FINANCIALINSTRUMENTSWITHOFFBALANCESHEETRISKScheduleofFinancialInstrumentswithOffBalanceSheetRiskDetails</Role>
      <ShortName>FINANCIAL INSTRUMENTS WITH OFF-BALANCE SHEET RISK - Schedule of Financial Instruments with Off-Balance Sheet Risk (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>37</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>9954486 - Disclosure - FINANCIAL INSTRUMENTS WITH OFF-BALANCE SHEET RISK - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/FINANCIALINSTRUMENTSWITHOFFBALANCESHEETRISKAdditionalInformationDetails</Role>
      <ShortName>FINANCIAL INSTRUMENTS WITH OFF-BALANCE SHEET RISK - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>9954487 - Disclosure - FINANCIAL INSTRUMENTS WITH OFF-BALANCE SHEET RISK - Changes in the ACL on OBSC Exposures (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/FINANCIALINSTRUMENTSWITHOFFBALANCESHEETRISKChangesintheACLonOBSCExposuresDetails</Role>
      <ShortName>FINANCIAL INSTRUMENTS WITH OFF-BALANCE SHEET RISK - Changes in the ACL on OBSC Exposures (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>9954488 - Disclosure - FAIR VALUE DISCLOSURES AND REPORTING, THE FAIR VALUE OPTION AND FAIR VALUE MEASUREMENTS - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/FAIRVALUEDISCLOSURESANDREPORTINGTHEFAIRVALUEOPTIONANDFAIRVALUEMEASUREMENTSNarrativeDetails</Role>
      <ShortName>FAIR VALUE DISCLOSURES AND REPORTING, THE FAIR VALUE OPTION AND FAIR VALUE MEASUREMENTS - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.thefirstbank.com/role/FAIRVALUEDISCLOSURESANDREPORTINGTHEFAIRVALUEOPTIONANDFAIRVALUEMEASUREMENTSTables</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>9954489 - Disclosure - FAIR VALUE DISCLOSURES AND REPORTING, THE FAIR VALUE OPTION AND FAIR VALUE MEASUREMENTS - Fair Values of Off-Balance Sheet Financial Instruments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/FAIRVALUEDISCLOSURESANDREPORTINGTHEFAIRVALUEOPTIONANDFAIRVALUEMEASUREMENTSFairValuesofOffBalanceSheetFinancialInstrumentsDetails</Role>
      <ShortName>FAIR VALUE DISCLOSURES AND REPORTING, THE FAIR VALUE OPTION AND FAIR VALUE MEASUREMENTS - Fair Values of Off-Balance Sheet Financial Instruments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>9954490 - Disclosure - FAIR VALUE DISCLOSURES AND REPORTING, THE FAIR VALUE OPTION AND FAIR VALUE MEASUREMENTS - Fair Value of Assets Measured on Recurring Basis (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/FAIRVALUEDISCLOSURESANDREPORTINGTHEFAIRVALUEOPTIONANDFAIRVALUEMEASUREMENTSFairValueofAssetsMeasuredonRecurringBasisDetails</Role>
      <ShortName>FAIR VALUE DISCLOSURES AND REPORTING, THE FAIR VALUE OPTION AND FAIR VALUE MEASUREMENTS - Fair Value of Assets Measured on Recurring Basis (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>9954491 - Disclosure - FAIR VALUE DISCLOSURES AND REPORTING, THE FAIR VALUE OPTION AND FAIR VALUE MEASUREMENTS - Reconciliation of Activity for Assets Measured at Fair Value based on Significant Unobservable (Non-market) Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/FAIRVALUEDISCLOSURESANDREPORTINGTHEFAIRVALUEOPTIONANDFAIRVALUEMEASUREMENTSReconciliationofActivityforAssetsMeasuredatFairValuebasedonSignificantUnobservableNonmarketInformationDetails</Role>
      <ShortName>FAIR VALUE DISCLOSURES AND REPORTING, THE FAIR VALUE OPTION AND FAIR VALUE MEASUREMENTS - Reconciliation of Activity for Assets Measured at Fair Value based on Significant Unobservable (Non-market) Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>9954492 - Disclosure - FAIR VALUE DISCLOSURES AND REPORTING, THE FAIR VALUE OPTION AND FAIR VALUE MEASUREMENTS - Quantitative Information About Recurring Level 3 Fair Value Measurements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/FAIRVALUEDISCLOSURESANDREPORTINGTHEFAIRVALUEOPTIONANDFAIRVALUEMEASUREMENTSQuantitativeInformationAboutRecurringLevel3FairValueMeasurementsDetails</Role>
      <ShortName>FAIR VALUE DISCLOSURES AND REPORTING, THE FAIR VALUE OPTION AND FAIR VALUE MEASUREMENTS - Quantitative Information About Recurring Level 3 Fair Value Measurements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>9954493 - Disclosure - FAIR VALUE DISCLOSURES AND REPORTING, THE FAIR VALUE OPTION AND FAIR VALUE MEASUREMENTS - Fair Value of Assets Measured on Nonrecurring Basis (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/FAIRVALUEDISCLOSURESANDREPORTINGTHEFAIRVALUEOPTIONANDFAIRVALUEMEASUREMENTSFairValueofAssetsMeasuredonNonrecurringBasisDetails</Role>
      <ShortName>FAIR VALUE DISCLOSURES AND REPORTING, THE FAIR VALUE OPTION AND FAIR VALUE MEASUREMENTS - Fair Value of Assets Measured on Nonrecurring Basis (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>9954494 - Disclosure - SECURITIES - Summary of Amortized Cost and Fair Value of Available-For-Sale Securities and Held-To-Maturity Securities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/SECURITIESSummaryofAmortizedCostandFairValueofAvailableForSaleSecuritiesandHeldToMaturitySecuritiesDetails</Role>
      <ShortName>SECURITIES - Summary of Amortized Cost and Fair Value of Available-For-Sale Securities and Held-To-Maturity Securities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>9954495 - Disclosure - SECURITIES - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/SECURITIESNarrativeDetails</Role>
      <ShortName>SECURITIES - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>9954496 - Disclosure - SECURITIES - Credit Quality Indicators (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/SECURITIESCreditQualityIndicatorsDetails</Role>
      <ShortName>SECURITIES - Credit Quality Indicators (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>9954497 - Disclosure - SECURITIES - Amortized Cost and Fair Value of Debt Securities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/SECURITIESAmortizedCostandFairValueofDebtSecuritiesDetails</Role>
      <ShortName>SECURITIES - Amortized Cost and Fair Value of Debt Securities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>9954498 - Disclosure - SECURITIES - Summary of Available-For-Sale Securities With Unrealized and Unrecognized Losses (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/SECURITIESSummaryofAvailableForSaleSecuritiesWithUnrealizedandUnrecognizedLossesDetails</Role>
      <ShortName>SECURITIES - Summary of Available-For-Sale Securities With Unrealized and Unrecognized Losses (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>9954499 - Disclosure - LOANS - Composition of Loan Portfolio (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/LOANSCompositionofLoanPortfolioDetails</Role>
      <ShortName>LOANS - Composition of Loan Portfolio (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>9954500 - Disclosure - LOANS - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/LOANSNarrativeDetails</Role>
      <ShortName>LOANS - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>9954501 - Disclosure - LOANS - Summary of Loans Classified as Past Due in Excess of Thirty Days or More and Loans Classified as Non-Accrual (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/LOANSSummaryofLoansClassifiedasPastDueinExcessofThirtyDaysorMoreandLoansClassifiedasNonAccrualDetails</Role>
      <ShortName>LOANS - Summary of Loans Classified as Past Due in Excess of Thirty Days or More and Loans Classified as Non-Accrual (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>9954502 - Disclosure - LOANS - Summary of Carrying Amount of Loans Acquired in Business Combination with more than Insignificant Deterioration of Credit Quality since Origination (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/LOANSSummaryofCarryingAmountofLoansAcquiredinBusinessCombinationwithmorethanInsignificantDeteriorationofCreditQualitysinceOriginationDetails</Role>
      <ShortName>LOANS - Summary of Carrying Amount of Loans Acquired in Business Combination with more than Insignificant Deterioration of Credit Quality since Origination (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>9954503 - Disclosure - LOANS - Amortized Cost Basis of Loans that were Modified to Borrowers by Class of Financing Receivable (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/LOANSAmortizedCostBasisofLoansthatwereModifiedtoBorrowersbyClassofFinancingReceivableDetails</Role>
      <ShortName>LOANS - Amortized Cost Basis of Loans that were Modified to Borrowers by Class of Financing Receivable (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>9954504 - Disclosure - LOANS - Troubled Debt Restructurings (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/LOANSTroubledDebtRestructuringsDetails</Role>
      <ShortName>LOANS - Troubled Debt Restructurings (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>9954505 - Disclosure - LOANS - Collateral Dependent Loans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/LOANSCollateralDependentLoansDetails</Role>
      <ShortName>LOANS - Collateral Dependent Loans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>9954506 - Disclosure - LOANS - Amortized Cost Basis of Loans by Credit Quality Indicator and Class of Loans Based on the Most Recent Analysis Performed (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/LOANSAmortizedCostBasisofLoansbyCreditQualityIndicatorandClassofLoansBasedontheMostRecentAnalysisPerformedDetails</Role>
      <ShortName>LOANS - Amortized Cost Basis of Loans by Credit Quality Indicator and Class of Loans Based on the Most Recent Analysis Performed (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>9954507 - Disclosure - LOANS - Activity in Allowance for Credit Losses (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/LOANSActivityinAllowanceforCreditLossesDetails</Role>
      <ShortName>LOANS - Activity in Allowance for Credit Losses (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>9954508 - Disclosure - LOANS - Loans and Allowance for Loan Losses, Broken Down by Portfolio Segment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/LOANSLoansandAllowanceforLoanLossesBrokenDownbyPortfolioSegmentDetails</Role>
      <ShortName>LOANS - Loans and Allowance for Loan Losses, Broken Down by Portfolio Segment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>9954509 - Disclosure - DERIVATIVE FINANCIAL INSTRUMENTS - Schedule of Derivative Instruments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/DERIVATIVEFINANCIALINSTRUMENTSScheduleofDerivativeInstrumentsDetails</Role>
      <ShortName>DERIVATIVE FINANCIAL INSTRUMENTS - Schedule of Derivative Instruments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>9954510 - Disclosure - DERIVATIVE FINANCIAL INSTRUMENTS - Schedule of Derivative Liabilities/Assets at Fair Value (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/DERIVATIVEFINANCIALINSTRUMENTSScheduleofDerivativeLiabilitiesAssetsatFairValueDetails</Role>
      <ShortName>DERIVATIVE FINANCIAL INSTRUMENTS - Schedule of Derivative Liabilities/Assets at Fair Value (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="fbms-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>9954511 - Disclosure - DERIVATIVE FINANCIAL INSTRUMENTS - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.thefirstbank.com/role/DERIVATIVEFINANCIALINSTRUMENTSNarrativeDetails</Role>
      <ShortName>DERIVATIVE FINANCIAL INSTRUMENTS - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="10-Q" isDefinitelyFs="true" isUsgaap="true" original="fbms-20230930.htm">fbms-20230930.htm</File>
    <File>fbms-20230930.xsd</File>
    <File>fbms-20230930_cal.xml</File>
    <File>fbms-20230930_def.xml</File>
    <File>fbms-20230930_lab.xml</File>
    <File>fbms-20230930_pre.xml</File>
  </InputFiles>
  <SupplementalFiles>
    <File>fbms-20230930_g1.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="1905">http://fasb.org/us-gaap/2023</BaseTaxonomy>
    <BaseTaxonomy items="29">http://xbrl.sec.gov/dei/2023</BaseTaxonomy>
    <BaseTaxonomy items="4">http://xbrl.sec.gov/ecd/2023</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
