<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.25.0.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>530</ContextCount>
  <ElementCount>643</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>106</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>8</UnitCount>
  <MyReports>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0000001 - Document - Cover Page</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/CoverPage</Role>
      <ShortName>Cover Page</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>0000002 - Document - Audit Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/AuditInformation</Role>
      <ShortName>Audit Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>9952151 - Statement - CONSOLIDATED BALANCE SHEETS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/CONSOLIDATEDBALANCESHEETS</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>9952152 - Statement - CONSOLIDATED BALANCE SHEETS (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/CONSOLIDATEDBALANCESHEETSParenthetical</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>9952153 - Statement - CONSOLIDATED STATEMENTS OF INCOME</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/CONSOLIDATEDSTATEMENTSOFINCOME</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF INCOME</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>9952154 - Statement - CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>9952155 - Statement - CONSOLIDATED STATEMENTS OF CHANGES IN STOCKHOLDERS' EQUITY</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/CONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CHANGES IN STOCKHOLDERS' EQUITY</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>9952156 - Statement - CONSOLIDATED STATEMENTS OF CASH FLOWS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CASH FLOWS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>9952157 - Statement - CONSOLIDATED STATEMENTS OF CHANGES IN STOCKHOLDERS' EQUITY (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/CONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITYParenthetical</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CHANGES IN STOCKHOLDERS' EQUITY (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>9952158 - Disclosure - Summary of Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/SummaryofSignificantAccountingPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>9952159 - Disclosure - Business Combination</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/BusinessCombination</Role>
      <ShortName>Business Combination</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>9952160 - Disclosure - Investment Securities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/InvestmentSecurities</Role>
      <ShortName>Investment Securities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>9952161 - Disclosure - Loans and Allowance for Credit Losses</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/LoansandAllowanceforCreditLosses</Role>
      <ShortName>Loans and Allowance for Credit Losses</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>9952162 - Disclosure - Goodwill and Other Intangible Assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/GoodwillandOtherIntangibleAssets</Role>
      <ShortName>Goodwill and Other Intangible Assets</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>9952163 - Disclosure - Leases</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/Leases</Role>
      <ShortName>Leases</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>9952164 - Disclosure - Premises and Equipment</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/PremisesandEquipment</Role>
      <ShortName>Premises and Equipment</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>9952165 - Disclosure - Deposits</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/Deposits</Role>
      <ShortName>Deposits</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>9952166 - Disclosure - Borrowings</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/Borrowings</Role>
      <ShortName>Borrowings</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>9952167 - Disclosure - Benefit Plans</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/BenefitPlans</Role>
      <ShortName>Benefit Plans</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>9952168 - Disclosure - Stock-Based Compensation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/StockBasedCompensation</Role>
      <ShortName>Stock-Based Compensation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>9952169 - Disclosure - Derivatives</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/Derivatives</Role>
      <ShortName>Derivatives</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>9952170 - Disclosure - Deferred Compensation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/DeferredCompensation</Role>
      <ShortName>Deferred Compensation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>9952171 - Disclosure - Accumulated Other Comprehensive Loss</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/AccumulatedOtherComprehensiveLoss</Role>
      <ShortName>Accumulated Other Comprehensive Loss</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>9952172 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/IncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>9952173 - Disclosure - Regulatory Capital Requirements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/RegulatoryCapitalRequirements</Role>
      <ShortName>Regulatory Capital Requirements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>9952174 - Disclosure - Fair Value Measurements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/FairValueMeasurements</Role>
      <ShortName>Fair Value Measurements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>9952175 - Disclosure - Fair Value of Financial Instruments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/FairValueofFinancialInstruments</Role>
      <ShortName>Fair Value of Financial Instruments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>9952176 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/CommitmentsandContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>9952177 - Disclosure - Related Party Transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/RelatedPartyTransactions</Role>
      <ShortName>Related Party Transactions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>29</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>9952178 - Disclosure - Earnings Per Common Share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/EarningsPerCommonShare</Role>
      <ShortName>Earnings Per Common Share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>30</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>9952179 - Disclosure - Revenue Recognition</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/RevenueRecognition</Role>
      <ShortName>Revenue Recognition</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>31</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>9952180 - Disclosure - Segment Reporting</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/SegmentReporting</Role>
      <ShortName>Segment Reporting</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>32</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>9952181 - Disclosure - Parent Company Financial Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/ParentCompanyFinancialInformation</Role>
      <ShortName>Parent Company Financial Information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>33</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.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>34</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.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>35</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>995447 - Disclosure - Insider Trading Policies and Procedures</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/InsiderTradingPoliciesProc</Role>
      <ShortName>Insider Trading Policies and Procedures</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>36</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>995550 - Disclosure - Cybersecurity Risk Management and Strategy Disclosure</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure</Role>
      <ShortName>Cybersecurity Risk Management and Strategy Disclosure</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>37</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>9955511 - Disclosure - Summary of Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/SummaryofSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.shbi.com/role/SummaryofSignificantAccountingPolicies</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>9955512 - Disclosure - Business Combination (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/BusinessCombinationTables</Role>
      <ShortName>Business Combination (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.shbi.com/role/BusinessCombination</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>9955513 - Disclosure - Investment Securities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/InvestmentSecuritiesTables</Role>
      <ShortName>Investment Securities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.shbi.com/role/InvestmentSecurities</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>9955514 - Disclosure - Loans and Allowance for Credit Losses (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/LoansandAllowanceforCreditLossesTables</Role>
      <ShortName>Loans and Allowance for Credit Losses (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.shbi.com/role/LoansandAllowanceforCreditLosses</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>9955515 - Disclosure - Goodwill and Other Intangible Assets (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/GoodwillandOtherIntangibleAssetsTables</Role>
      <ShortName>Goodwill and Other Intangible Assets (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.shbi.com/role/GoodwillandOtherIntangibleAssets</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>9955516 - Disclosure - Leases (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/LeasesTables</Role>
      <ShortName>Leases (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.shbi.com/role/Leases</ParentRole>
      <Position>43</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>9955517 - Disclosure - Premises and Equipment (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/PremisesandEquipmentTables</Role>
      <ShortName>Premises and Equipment (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.shbi.com/role/PremisesandEquipment</ParentRole>
      <Position>44</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>9955518 - Disclosure - Deposits (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/DepositsTables</Role>
      <ShortName>Deposits (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.shbi.com/role/Deposits</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>9955519 - Disclosure - Borrowings (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/BorrowingsTables</Role>
      <ShortName>Borrowings (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.shbi.com/role/Borrowings</ParentRole>
      <Position>46</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>9955520 - Disclosure - Stock-Based Compensation (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/StockBasedCompensationTables</Role>
      <ShortName>Stock-Based Compensation (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.shbi.com/role/StockBasedCompensation</ParentRole>
      <Position>47</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>9955521 - Disclosure - Derivatives (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/DerivativesTables</Role>
      <ShortName>Derivatives (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.shbi.com/role/Derivatives</ParentRole>
      <Position>48</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>9955522 - Disclosure - Deferred Compensation (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/DeferredCompensationTables</Role>
      <ShortName>Deferred Compensation (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.shbi.com/role/DeferredCompensation</ParentRole>
      <Position>49</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>9955523 - Disclosure - Accumulated Other Comprehensive Loss (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/AccumulatedOtherComprehensiveLossTables</Role>
      <ShortName>Accumulated Other Comprehensive Loss (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.shbi.com/role/AccumulatedOtherComprehensiveLoss</ParentRole>
      <Position>50</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>9955524 - Disclosure - Income Taxes (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/IncomeTaxesTables</Role>
      <ShortName>Income Taxes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.shbi.com/role/IncomeTaxes</ParentRole>
      <Position>51</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>9955525 - Disclosure - Regulatory Capital Requirements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/RegulatoryCapitalRequirementsTables</Role>
      <ShortName>Regulatory Capital Requirements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.shbi.com/role/RegulatoryCapitalRequirements</ParentRole>
      <Position>52</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>9955526 - Disclosure - Fair Value Measurements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/FairValueMeasurementsTables</Role>
      <ShortName>Fair Value Measurements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.shbi.com/role/FairValueMeasurements</ParentRole>
      <Position>53</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>9955527 - Disclosure - Fair Value of Financial Instruments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/FairValueofFinancialInstrumentsTables</Role>
      <ShortName>Fair Value of Financial Instruments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.shbi.com/role/FairValueofFinancialInstruments</ParentRole>
      <Position>54</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>9955528 - Disclosure - Commitments and Contingencies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/CommitmentsandContingenciesTables</Role>
      <ShortName>Commitments and Contingencies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.shbi.com/role/CommitmentsandContingencies</ParentRole>
      <Position>55</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>9955529 - Disclosure - Earnings Per Common Share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/EarningsPerCommonShareTables</Role>
      <ShortName>Earnings Per Common Share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.shbi.com/role/EarningsPerCommonShare</ParentRole>
      <Position>56</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>9955530 - Disclosure - Revenue Recognition (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/RevenueRecognitionTables</Role>
      <ShortName>Revenue Recognition (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.shbi.com/role/RevenueRecognition</ParentRole>
      <Position>57</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>9955531 - Disclosure - Parent Company Financial Information (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/ParentCompanyFinancialInformationTables</Role>
      <ShortName>Parent Company Financial Information (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.shbi.com/role/ParentCompanyFinancialInformation</ParentRole>
      <Position>58</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>9955532 - Disclosure - Summary of Significant Accounting Policies (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/SummaryofSignificantAccountingPoliciesNarrativeDetails</Role>
      <ShortName>Summary of Significant Accounting Policies (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/SummaryofSignificantAccountingPoliciesPolicies</ParentRole>
      <Position>59</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>9955533 - Disclosure - Business Combination (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/BusinessCombinationNarrativeDetails</Role>
      <ShortName>Business Combination (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/BusinessCombinationTables</ParentRole>
      <Position>60</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>9955534 - Disclosure - Business Combination (Schedule of Business Acquisitions) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/BusinessCombinationScheduleofBusinessAcquisitionsDetails</Role>
      <ShortName>Business Combination (Schedule of Business Acquisitions) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/BusinessCombinationTables</ParentRole>
      <Position>61</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>9955535 - Disclosure - Investment Securities (Amortized Cost and Estimated Fair Values of Investment Securities) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/InvestmentSecuritiesAmortizedCostandEstimatedFairValuesofInvestmentSecuritiesDetails</Role>
      <ShortName>Investment Securities (Amortized Cost and Estimated Fair Values of Investment Securities) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/InvestmentSecuritiesTables</ParentRole>
      <Position>62</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>9955536 - Disclosure - Investment Securities (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/InvestmentSecuritiesNarrativeDetails</Role>
      <ShortName>Investment Securities (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/InvestmentSecuritiesTables</ParentRole>
      <Position>63</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>9955537 - Disclosure - Investment Securities (Activity in the ACL on held-to maturity securities) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/InvestmentSecuritiesActivityintheACLonheldtomaturitysecuritiesDetails</Role>
      <ShortName>Investment Securities (Activity in the ACL on held-to maturity securities) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/InvestmentSecuritiesTables</ParentRole>
      <Position>64</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>9955538 - Disclosure - Investment Securities (Gross Unrealized Losses and Fair Value by Length of Continuous Unrealized Loss Position) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/InvestmentSecuritiesGrossUnrealizedLossesandFairValuebyLengthofContinuousUnrealizedLossPositionDetails</Role>
      <ShortName>Investment Securities (Gross Unrealized Losses and Fair Value by Length of Continuous Unrealized Loss Position) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/InvestmentSecuritiesTables</ParentRole>
      <Position>65</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>9955539 - Disclosure - Investment Securities (Schedule of Securities Debt Maturities) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/InvestmentSecuritiesScheduleofSecuritiesDebtMaturitiesDetails</Role>
      <ShortName>Investment Securities (Schedule of Securities Debt Maturities) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/InvestmentSecuritiesTables</ParentRole>
      <Position>66</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>9955540 - Disclosure - Investment Securities (Amortized Cost and Estimated Fair Values of Securities) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/InvestmentSecuritiesAmortizedCostandEstimatedFairValuesofSecuritiesDetails</Role>
      <ShortName>Investment Securities (Amortized Cost and Estimated Fair Values of Securities) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/InvestmentSecuritiesTables</ParentRole>
      <Position>67</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>9955541 - Disclosure - Loans and Allowance for Credit Losses (Loans by Class of Loan Portfolio) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/LoansandAllowanceforCreditLossesLoansbyClassofLoanPortfolioDetails</Role>
      <ShortName>Loans and Allowance for Credit Losses (Loans by Class of Loan Portfolio) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/LoansandAllowanceforCreditLossesTables</ParentRole>
      <Position>68</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>9955542 - Disclosure - Loans and Allowance for Credit Losses (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/LoansandAllowanceforCreditLossesNarrativeDetails</Role>
      <ShortName>Loans and Allowance for Credit Losses (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/LoansandAllowanceforCreditLossesTables</ParentRole>
      <Position>69</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>9955543 - Disclosure - Loans and Allowance for Credit Losses (Nonaccrual Loans by Loan Class) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/LoansandAllowanceforCreditLossesNonaccrualLoansbyLoanClassDetails</Role>
      <ShortName>Loans and Allowance for Credit Losses (Nonaccrual Loans by Loan Class) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/LoansandAllowanceforCreditLossesTables</ParentRole>
      <Position>70</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>9955544 - Disclosure - Loans and Allowance for Credit Losses (Loan Risk Ratings) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/LoansandAllowanceforCreditLossesLoanRiskRatingsDetails</Role>
      <ShortName>Loans and Allowance for Credit Losses (Loan Risk Ratings) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/LoansandAllowanceforCreditLossesTables</ParentRole>
      <Position>71</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>9955545 - Disclosure - Loans and Allowance for Credit Losses (Aging of Past Due Financing Receivables) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/LoansandAllowanceforCreditLossesAgingofPastDueFinancingReceivablesDetails</Role>
      <ShortName>Loans and Allowance for Credit Losses (Aging of Past Due Financing Receivables) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/LoansandAllowanceforCreditLossesTables</ParentRole>
      <Position>72</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>9955546 - Disclosure - Loans and Allowance for Credit Losses (Allowance for Credit Losses on Financing Receivables) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/LoansandAllowanceforCreditLossesAllowanceforCreditLossesonFinancingReceivablesDetails</Role>
      <ShortName>Loans and Allowance for Credit Losses (Allowance for Credit Losses on Financing Receivables) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/LoansandAllowanceforCreditLossesTables</ParentRole>
      <Position>73</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>9955547 - Disclosure - Loans and Allowance for Credit Losses (Schedule of collateral-dependent loans) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/LoansandAllowanceforCreditLossesScheduleofcollateraldependentloansDetails</Role>
      <ShortName>Loans and Allowance for Credit Losses (Schedule of collateral-dependent loans) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/LoansandAllowanceforCreditLossesTables</ParentRole>
      <Position>74</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>9955548 - Disclosure - Loans and Allowance for Credit Losses (Schedule of mortgage servicing rights) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/LoansandAllowanceforCreditLossesScheduleofmortgageservicingrightsDetails</Role>
      <ShortName>Loans and Allowance for Credit Losses (Schedule of mortgage servicing rights) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/LoansandAllowanceforCreditLossesTables</ParentRole>
      <Position>75</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>9955549 - Disclosure - Goodwill and Other Intangible Assets (Schedule of Components of Goodwill and Other Acquired Intangible Assets) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/GoodwillandOtherIntangibleAssetsScheduleofComponentsofGoodwillandOtherAcquiredIntangibleAssetsDetails</Role>
      <ShortName>Goodwill and Other Intangible Assets (Schedule of Components of Goodwill and Other Acquired Intangible Assets) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/GoodwillandOtherIntangibleAssetsTables</ParentRole>
      <Position>76</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>9955550 - Disclosure - Goodwill and Other Intangible Assets (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/GoodwillandOtherIntangibleAssetsNarrativeDetails</Role>
      <ShortName>Goodwill and Other Intangible Assets (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/GoodwillandOtherIntangibleAssetsTables</ParentRole>
      <Position>77</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>9955551 - Disclosure - Goodwill and Other Intangible Assets (Future Amortization Expense for Amortizable Other Intangible Assets) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/GoodwillandOtherIntangibleAssetsFutureAmortizationExpenseforAmortizableOtherIntangibleAssetsDetails</Role>
      <ShortName>Goodwill and Other Intangible Assets (Future Amortization Expense for Amortizable Other Intangible Assets) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/GoodwillandOtherIntangibleAssetsTables</ParentRole>
      <Position>78</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>9955552 - Disclosure - Leases (Lease Information) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/LeasesLeaseInformationDetails</Role>
      <ShortName>Leases (Lease Information) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/LeasesTables</ParentRole>
      <Position>79</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>9955553 - Disclosure - Leases (Lease cost) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/LeasesLeasecostDetails</Role>
      <ShortName>Leases (Lease cost) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/LeasesTables</ParentRole>
      <Position>80</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>9955554 - Disclosure - Leases (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/LeasesNarrativeDetails</Role>
      <ShortName>Leases (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/LeasesTables</ParentRole>
      <Position>81</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>9955555 - Disclosure - Leases (Lease Payments Due) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/LeasesLeasePaymentsDueDetails</Role>
      <ShortName>Leases (Lease Payments Due) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/LeasesTables</ParentRole>
      <Position>82</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>9955556 - Disclosure - Premises and Equipment (Schedule of Property Plant and Equipment) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/PremisesandEquipmentScheduleofPropertyPlantandEquipmentDetails</Role>
      <ShortName>Premises and Equipment (Schedule of Property Plant and Equipment) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/PremisesandEquipmentTables</ParentRole>
      <Position>83</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>9955557 - Disclosure - Premises and Equipment (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/PremisesandEquipmentNarrativeDetails</Role>
      <ShortName>Premises and Equipment (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/PremisesandEquipmentTables</ParentRole>
      <Position>84</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R85.htm</HtmlFileName>
      <LongName>9955558 - Disclosure - Deposits (Summary of Deposits) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/DepositsSummaryofDepositsDetails</Role>
      <ShortName>Deposits (Summary of Deposits) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/DepositsTables</ParentRole>
      <Position>85</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R86.htm</HtmlFileName>
      <LongName>9955559 - Disclosure - Deposits (Schedule of Contractual Maturities of Time Deposits) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/DepositsScheduleofContractualMaturitiesofTimeDepositsDetails</Role>
      <ShortName>Deposits (Schedule of Contractual Maturities of Time Deposits) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/DepositsTables</ParentRole>
      <Position>86</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R87.htm</HtmlFileName>
      <LongName>9955560 - Disclosure - Deposits (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/DepositsNarrativeDetails</Role>
      <ShortName>Deposits (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/DepositsTables</ParentRole>
      <Position>87</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R88.htm</HtmlFileName>
      <LongName>9955561 - Disclosure - Borrowings (Schedule of Short-term Borrowings) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/BorrowingsScheduleofShorttermBorrowingsDetails</Role>
      <ShortName>Borrowings (Schedule of Short-term Borrowings) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/BorrowingsTables</ParentRole>
      <Position>88</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R89.htm</HtmlFileName>
      <LongName>9955562 - Disclosure - Borrowings (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/BorrowingsNarrativeDetails</Role>
      <ShortName>Borrowings (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/BorrowingsTables</ParentRole>
      <Position>89</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R90.htm</HtmlFileName>
      <LongName>9955563 - Disclosure - Borrowings (Schedule of Long-Term Debt) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/BorrowingsScheduleofLongTermDebtDetails</Role>
      <ShortName>Borrowings (Schedule of Long-Term Debt) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/BorrowingsTables</ParentRole>
      <Position>90</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R91.htm</HtmlFileName>
      <LongName>9955564 - Disclosure - Benefit Plans (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/BenefitPlansNarrativeDetails</Role>
      <ShortName>Benefit Plans (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/BenefitPlans</ParentRole>
      <Position>91</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R92.htm</HtmlFileName>
      <LongName>9955565 - Disclosure - Stock-Based Compensation (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/StockBasedCompensationNarrativeDetails</Role>
      <ShortName>Stock-Based Compensation (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/StockBasedCompensationTables</ParentRole>
      <Position>92</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R93.htm</HtmlFileName>
      <LongName>9955566 - Disclosure - Stock-Based Compensation (Schedule of Stock-Based Compensation) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/StockBasedCompensationScheduleofStockBasedCompensationDetails</Role>
      <ShortName>Stock-Based Compensation (Schedule of Stock-Based Compensation) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/StockBasedCompensationTables</ParentRole>
      <Position>93</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R94.htm</HtmlFileName>
      <LongName>9955567 - Disclosure - Stock-Based Compensation (Schedule of Stock-Based Compensation, RS and RSU Award Activity) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/StockBasedCompensationScheduleofStockBasedCompensationRSandRSUAwardActivityDetails</Role>
      <ShortName>Stock-Based Compensation (Schedule of Stock-Based Compensation, RS and RSU Award Activity) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/StockBasedCompensationTables</ParentRole>
      <Position>94</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R95.htm</HtmlFileName>
      <LongName>9955568 - Disclosure - Derivatives (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/DerivativesNarrativeDetails</Role>
      <ShortName>Derivatives (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/DerivativesTables</ParentRole>
      <Position>95</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R96.htm</HtmlFileName>
      <LongName>9955569 - Disclosure - Derivatives (Carrying Amounts of Derivative Financial Instruments ) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/DerivativesCarryingAmountsofDerivativeFinancialInstrumentsDetails</Role>
      <ShortName>Derivatives (Carrying Amounts of Derivative Financial Instruments ) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/DerivativesTables</ParentRole>
      <Position>96</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R97.htm</HtmlFileName>
      <LongName>9955570 - Disclosure - Deferred Compensation (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/DeferredCompensationNarrativeDetails</Role>
      <ShortName>Deferred Compensation (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/DeferredCompensationTables</ParentRole>
      <Position>97</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R98.htm</HtmlFileName>
      <LongName>9955571 - Disclosure - Deferred Compensation (Schedule of Deferred Compensation Arrangement) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/DeferredCompensationScheduleofDeferredCompensationArrangementDetails</Role>
      <ShortName>Deferred Compensation (Schedule of Deferred Compensation Arrangement) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/DeferredCompensationTables</ParentRole>
      <Position>98</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R99.htm</HtmlFileName>
      <LongName>9955572 - Disclosure - Deferred Compensation (Schedule of Deferred Compensation Arrangement in Other Assets and Other Liabilities) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/DeferredCompensationScheduleofDeferredCompensationArrangementinOtherAssetsandOtherLiabilitiesDetails</Role>
      <ShortName>Deferred Compensation (Schedule of Deferred Compensation Arrangement in Other Assets and Other Liabilities) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/DeferredCompensationTables</ParentRole>
      <Position>99</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R100.htm</HtmlFileName>
      <LongName>9955573 - Disclosure - Accumulated Other Comprehensive Loss (Schedule of Accumulated Other Comprehensive Income (Loss) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/AccumulatedOtherComprehensiveLossScheduleofAccumulatedOtherComprehensiveIncomeLossDetails</Role>
      <ShortName>Accumulated Other Comprehensive Loss (Schedule of Accumulated Other Comprehensive Income (Loss) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/AccumulatedOtherComprehensiveLossTables</ParentRole>
      <Position>100</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R101.htm</HtmlFileName>
      <LongName>9955574 - Disclosure - Income Taxes (Schedule of Components of Income Tax Expense (Benefit) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/IncomeTaxesScheduleofComponentsofIncomeTaxExpenseBenefitDetails</Role>
      <ShortName>Income Taxes (Schedule of Components of Income Tax Expense (Benefit) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/IncomeTaxesTables</ParentRole>
      <Position>101</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R102.htm</HtmlFileName>
      <LongName>9955575 - Disclosure - Income Taxes (Schedule of Effective Income Tax Rate Reconciliation) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/IncomeTaxesScheduleofEffectiveIncomeTaxRateReconciliationDetails</Role>
      <ShortName>Income Taxes (Schedule of Effective Income Tax Rate Reconciliation) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/IncomeTaxesTables</ParentRole>
      <Position>102</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R103.htm</HtmlFileName>
      <LongName>9955576 - Disclosure - Income Taxes (Schedule of Deferred Tax Assets and Liabilities) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/IncomeTaxesScheduleofDeferredTaxAssetsandLiabilitiesDetails</Role>
      <ShortName>Income Taxes (Schedule of Deferred Tax Assets and Liabilities) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/IncomeTaxesTables</ParentRole>
      <Position>103</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R104.htm</HtmlFileName>
      <LongName>9955577 - Disclosure - Income Taxes - (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/IncomeTaxesNarrativeDetails</Role>
      <ShortName>Income Taxes - (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/IncomeTaxesTables</ParentRole>
      <Position>104</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R105.htm</HtmlFileName>
      <LongName>9955578 - Disclosure - Regulatory Capital - Schedule of Actual and Required Capital Ratios (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/RegulatoryCapitalScheduleofActualandRequiredCapitalRatiosDetails</Role>
      <ShortName>Regulatory Capital - Schedule of Actual and Required Capital Ratios (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>105</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R106.htm</HtmlFileName>
      <LongName>9955579 - Disclosure - Regulatory Capital - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/RegulatoryCapitalNarrativeDetails</Role>
      <ShortName>Regulatory Capital - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>106</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R107.htm</HtmlFileName>
      <LongName>9955580 - Disclosure - Fair Value Measurements (Estimated Fair Value and Range) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/FairValueMeasurementsEstimatedFairValueandRangeDetails</Role>
      <ShortName>Fair Value Measurements (Estimated Fair Value and Range) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/FairValueMeasurementsTables</ParentRole>
      <Position>107</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R108.htm</HtmlFileName>
      <LongName>9955581 - Disclosure - Fair Value Measurements (Activity in IRLCs) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/FairValueMeasurementsActivityinIRLCsDetails</Role>
      <ShortName>Fair Value Measurements (Activity in IRLCs) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/FairValueMeasurementsTables</ParentRole>
      <Position>108</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R109.htm</HtmlFileName>
      <LongName>9955582 - Disclosure - Fair Value Measurements (Assets and Liabilities Measured on Recurring Basis) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/FairValueMeasurementsAssetsandLiabilitiesMeasuredonRecurringBasisDetails</Role>
      <ShortName>Fair Value Measurements (Assets and Liabilities Measured on Recurring Basis) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/FairValueMeasurementsTables</ParentRole>
      <Position>109</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R110.htm</HtmlFileName>
      <LongName>9955583 - Disclosure - Fair Value Measurements (Fair Value of Assets Measured on Nonrecurring Basis) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/FairValueMeasurementsFairValueofAssetsMeasuredonNonrecurringBasisDetails</Role>
      <ShortName>Fair Value Measurements (Fair Value of Assets Measured on Nonrecurring Basis) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/FairValueMeasurementsTables</ParentRole>
      <Position>110</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R111.htm</HtmlFileName>
      <LongName>9955584 - Disclosure - Fair Value of Financial Instruments (Summary of Carrying Amounts and Estimated Fair Values of Financial Instruments) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/FairValueofFinancialInstrumentsSummaryofCarryingAmountsandEstimatedFairValuesofFinancialInstrumentsDetails</Role>
      <ShortName>Fair Value of Financial Instruments (Summary of Carrying Amounts and Estimated Fair Values of Financial Instruments) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/FairValueofFinancialInstrumentsTables</ParentRole>
      <Position>111</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R112.htm</HtmlFileName>
      <LongName>9955585 - Disclosure - Commitments and Contingencies (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/CommitmentsandContingenciesNarrativeDetails</Role>
      <ShortName>Commitments and Contingencies (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/CommitmentsandContingenciesTables</ParentRole>
      <Position>112</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R113.htm</HtmlFileName>
      <LongName>9955586 - Disclosure - Commitments and Contingencies (Schedule of Commitments Outstanding) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/CommitmentsandContingenciesScheduleofCommitmentsOutstandingDetails</Role>
      <ShortName>Commitments and Contingencies (Schedule of Commitments Outstanding) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/CommitmentsandContingenciesTables</ParentRole>
      <Position>113</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R114.htm</HtmlFileName>
      <LongName>9955587 - Disclosure - Related Party Transactions (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/RelatedPartyTransactionsNarrativeDetails</Role>
      <ShortName>Related Party Transactions (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/RelatedPartyTransactions</ParentRole>
      <Position>114</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R115.htm</HtmlFileName>
      <LongName>9955588 - Disclosure - Earnings Per Common Share (Calculation of Earnings Per Common Share) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/EarningsPerCommonShareCalculationofEarningsPerCommonShareDetails</Role>
      <ShortName>Earnings Per Common Share (Calculation of Earnings Per Common Share) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/EarningsPerCommonShareTables</ParentRole>
      <Position>115</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R116.htm</HtmlFileName>
      <LongName>9955589 - Disclosure - Revenue Recognition (Noninterest Income) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/RevenueRecognitionNoninterestIncomeDetails</Role>
      <ShortName>Revenue Recognition (Noninterest Income) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/RevenueRecognitionTables</ParentRole>
      <Position>116</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R117.htm</HtmlFileName>
      <LongName>9955590 - Disclosure - Segment Reporting (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/SegmentReportingDetails</Role>
      <ShortName>Segment Reporting (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/SegmentReporting</ParentRole>
      <Position>117</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R118.htm</HtmlFileName>
      <LongName>9955591 - Disclosure - Parent Company Financial Information (Condensed Balance Sheets, Parent Only) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/ParentCompanyFinancialInformationCondensedBalanceSheetsParentOnlyDetails</Role>
      <ShortName>Parent Company Financial Information (Condensed Balance Sheets, Parent Only) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/ParentCompanyFinancialInformationTables</ParentRole>
      <Position>118</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R119.htm</HtmlFileName>
      <LongName>9955592 - Disclosure - Parent Company Financial Information (Condensed Statements of Income, Parent Only) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/ParentCompanyFinancialInformationCondensedStatementsofIncomeParentOnlyDetails</Role>
      <ShortName>Parent Company Financial Information (Condensed Statements of Income, Parent Only) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/ParentCompanyFinancialInformationTables</ParentRole>
      <Position>119</Position>
    </Report>
    <Report instance="shbi-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R120.htm</HtmlFileName>
      <LongName>9955593 - Disclosure - Parent Company Financial Information (Condensed Statements of Cash Flows, Parent Only) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.shbi.com/role/ParentCompanyFinancialInformationCondensedStatementsofCashFlowsParentOnlyDetails</Role>
      <ShortName>Parent Company Financial Information (Condensed Statements of Cash Flows, Parent Only) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.shbi.com/role/ParentCompanyFinancialInformationTables</ParentRole>
      <Position>120</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-K" isDefinitelyFs="true" isUsgaap="true" original="shbi-20241231.htm">shbi-20241231.htm</File>
    <File>shbi-20241231.xsd</File>
    <File>shbi-20241231_cal.xml</File>
    <File>shbi-20241231_def.xml</File>
    <File>shbi-20241231_lab.xml</File>
    <File>shbi-20241231_pre.xml</File>
  </InputFiles>
  <SupplementalFiles>
    <File>shbi-20241231_g1.jpg</File>
    <File>shbi-20241231_g2.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="3">http://fasb.org/srt/2024</BaseTaxonomy>
    <BaseTaxonomy items="2408">http://fasb.org/us-gaap/2024</BaseTaxonomy>
    <BaseTaxonomy items="15">http://xbrl.sec.gov/cyd/2024</BaseTaxonomy>
    <BaseTaxonomy items="39">http://xbrl.sec.gov/dei/2024</BaseTaxonomy>
    <BaseTaxonomy items="5">http://xbrl.sec.gov/ecd/2024</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
