<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.23.2</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>628</ContextCount>
  <ElementCount>395</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>108</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>8</UnitCount>
  <MyReports>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>00090 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DocumentDocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>00100 - Statement - Consolidated Statements of Financial Condition</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/StatementConsolidatedStatementsOfFinancialCondition</Role>
      <ShortName>Consolidated Statements of Financial Condition</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>00105 - Statement - Consolidated Statements of Financial Condition (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/StatementConsolidatedStatementsOfFinancialConditionParenthetical</Role>
      <ShortName>Consolidated Statements of Financial Condition (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>00200 - Statement - Consolidated Statements of Operations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/StatementConsolidatedStatementsOfOperations</Role>
      <ShortName>Consolidated Statements of Operations</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>00300 - Statement - Consolidated Statements of Comprehensive Income/(Loss)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/StatementConsolidatedStatementsOfComprehensiveIncomeLoss</Role>
      <ShortName>Consolidated Statements of Comprehensive Income/(Loss)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>00400 - Statement - Consolidated Statements of Changes in Shareholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/StatementConsolidatedStatementsOfChangesInShareholdersEquity</Role>
      <ShortName>Consolidated Statements of Changes in Shareholders' Equity</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>00405 - Statement - Consolidated Statements of Changes in Shareholders' Equity (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/StatementConsolidatedStatementsOfChangesInShareholdersEquityParenthetical</Role>
      <ShortName>Consolidated Statements of Changes in Shareholders' Equity (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>00500 - Statement - Consolidated Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/StatementConsolidatedStatementsOfCashFlows</Role>
      <ShortName>Consolidated Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>10101 - Disclosure - Basis of Presentation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureBasisOfPresentation</Role>
      <ShortName>Basis of Presentation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>10201 - Disclosure - Accounting Statements Issued but Not Yet Adopted</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureAccountingStatementsIssuedButNotYetAdopted</Role>
      <ShortName>Accounting Statements Issued but Not Yet Adopted</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>10301 - Disclosure - Earnings Per Common Share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureEarningsPerCommonShare</Role>
      <ShortName>Earnings Per Common Share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>10401 - Disclosure - Investments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureInvestments</Role>
      <ShortName>Investments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>10501 - Disclosure - Loans and Related Allowance for Credit Losses</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureLoansAndRelatedAllowanceForCreditLosses</Role>
      <ShortName>Loans and Related Allowance for Credit Losses</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>10601 - Disclosure - Fair Value of Financial Instruments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureFairValueOfFinancialInstruments</Role>
      <ShortName>Fair Value of Financial Instruments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>10701 - Disclosure - Accumulated Other Comprehensive Loss</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureAccumulatedOtherComprehensiveLoss</Role>
      <ShortName>Accumulated Other Comprehensive Loss</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>10801 - Disclosure - Equity Compensation Plan Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureEquityCompensationPlanInformation</Role>
      <ShortName>Equity Compensation Plan Information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>10901 - Disclosure - Derivative Financial Instruments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureDerivativeFinancialInstruments</Role>
      <ShortName>Derivative Financial Instruments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>11001 - Disclosure - Regulatory Capital Requirements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureRegulatoryCapitalRequirements</Role>
      <ShortName>Regulatory Capital Requirements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>11101 - Disclosure - Deposits</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureDeposits</Role>
      <ShortName>Deposits</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>11201 - Disclosure - Borrowed Funds</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureBorrowedFunds</Role>
      <ShortName>Borrowed Funds</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>11301 - Disclosure - Segment Reporting</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureSegmentReporting</Role>
      <ShortName>Segment Reporting</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>11401 - Disclosure - Goodwill</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureGoodwill</Role>
      <ShortName>Goodwill</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>20302 - Disclosure - Earnings Per Common Share (Policy)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureEarningsPerCommonSharePolicy</Role>
      <ShortName>Earnings Per Common Share (Policy)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureAccountingStatementsIssuedButNotYetAdopted</ParentRole>
      <Position>23</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>30103 - Disclosure - Basis of Presentation (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureBasisOfPresentationTables</Role>
      <ShortName>Basis of Presentation (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureBasisOfPresentation</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>30303 - Disclosure - Earnings Per Common Share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureEarningsPerCommonShareTables</Role>
      <ShortName>Earnings Per Common Share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureEarningsPerCommonShare</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>30403 - Disclosure - Investments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureInvestmentsTables</Role>
      <ShortName>Investments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureInvestments</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>30503 - Disclosure - Loans and Related Allowance for Credit Losses (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureLoansAndRelatedAllowanceForCreditLossesTables</Role>
      <ShortName>Loans and Related Allowance for Credit Losses (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureLoansAndRelatedAllowanceForCreditLosses</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>30603 - Disclosure - Fair Value of Financial Instruments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureFairValueOfFinancialInstrumentsTables</Role>
      <ShortName>Fair Value of Financial Instruments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureFairValueOfFinancialInstruments</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>30703 - Disclosure - Accumulated Other Comprehensive Loss (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureAccumulatedOtherComprehensiveLossTables</Role>
      <ShortName>Accumulated Other Comprehensive Loss (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureAccumulatedOtherComprehensiveLoss</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>30903 - Disclosure - Derivative Financial Instruments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureDerivativeFinancialInstrumentsTables</Role>
      <ShortName>Derivative Financial Instruments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureDerivativeFinancialInstruments</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>31003 - Disclosure - Regulatory Capital Requirements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureRegulatoryCapitalRequirementsTables</Role>
      <ShortName>Regulatory Capital Requirements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureRegulatoryCapitalRequirements</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>31103 - Disclosure - Deposits (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureDepositsTables</Role>
      <ShortName>Deposits (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureDeposits</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>31203 - Disclosure - Borrowed Funds (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureBorrowedFundsTables</Role>
      <ShortName>Borrowed Funds (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureBorrowedFunds</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>31303 - Disclosure - Segment Reporting (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureSegmentReportingTables</Role>
      <ShortName>Segment Reporting (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureSegmentReporting</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>40101 - Disclosure - Basis of Presentation (Impact of adopting Topic 326) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureBasisOfPresentationImpactOfAdoptingTopic326Details</Role>
      <ShortName>Basis of Presentation (Impact of adopting Topic 326) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureBasisOfPresentationTables</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>40301 - Disclosure - Earnings Per Common Share (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureEarningsPerCommonShareNarrativeDetails</Role>
      <ShortName>Earnings Per Common Share (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureEarningsPerCommonShareTables</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>40302 - Disclosure - Earnings Per Common Share (Basic and Diluted Earnings Per Share) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureEarningsPerCommonShareBasicAndDilutedEarningsPerShareDetails</Role>
      <ShortName>Earnings Per Common Share (Basic and Diluted Earnings Per Share) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureEarningsPerCommonShareTables</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>40401 - Disclosure - Investments (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureInvestmentsNarrativeDetails</Role>
      <ShortName>Investments (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureInvestmentsTables</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>40402 - Disclosure - Investment (Unrealized Gain (Loss) on Investments) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureInvestmentUnrealizedGainLossOnInvestmentsDetails</Role>
      <ShortName>Investment (Unrealized Gain (Loss) on Investments) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureInvestmentsTables</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>40403 - Disclosure - Investment (Proceeds from Sales and Realized Gains and Losses) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureInvestmentProceedsFromSalesAndRealizedGainsAndLossesDetails</Role>
      <ShortName>Investment (Proceeds from Sales and Realized Gains and Losses) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureInvestmentsTables</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>40404 - Disclosure - Investment (Gross Unrealized Losses and Fair Values of Securities) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureInvestmentGrossUnrealizedLossesAndFairValuesOfSecuritiesDetails</Role>
      <ShortName>Investment (Gross Unrealized Losses and Fair Values of Securities) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureInvestmentsTables</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>40405 - Disclosure - Investment (Non-Cash OTTI Credit Losses Recognized in Earnings) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureInvestmentNonCashOttiCreditLossesRecognizedInEarningsDetails</Role>
      <ShortName>Investment (Non-Cash OTTI Credit Losses Recognized in Earnings) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureInvestmentsTables</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>40406 - Disclosure - Investment (Amortized Cost and Fair Values Classified by Contractual Maturity Date) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureInvestmentAmortizedCostAndFairValuesClassifiedByContractualMaturityDateDetails</Role>
      <ShortName>Investment (Amortized Cost and Fair Values Classified by Contractual Maturity Date) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureInvestmentsTables</ParentRole>
      <Position>43</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>40501 - Disclosure - Loans And Related Allowances For Credit Losses (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureLoansAndRelatedAllowancesForCreditLossesNarrativeDetails</Role>
      <ShortName>Loans And Related Allowances For Credit Losses (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>40502 - Disclosure - Loans and Related Allowance for Credit Losses (Loan Portfolio Segments) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureLoansAndRelatedAllowanceForCreditLossesLoanPortfolioSegmentsDetails</Role>
      <ShortName>Loans and Related Allowance for Credit Losses (Loan Portfolio Segments) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureLoansAndRelatedAllowanceForCreditLossesTables</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>40503 - Disclosure - Loans and Related Allowance for Credit Losses (Loan Portfolio Summarized by the Past Due Status) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureLoansAndRelatedAllowanceForCreditLossesLoanPortfolioSummarizedByPastDueStatusDetails</Role>
      <ShortName>Loans and Related Allowance for Credit Losses (Loan Portfolio Summarized by the Past Due Status) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureLoansAndRelatedAllowanceForCreditLossesTables</ParentRole>
      <Position>46</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>40504 - Disclosure - Loans and Related Allowance for Credit Losses (Primary Segments of the Allowance for Loan Loss) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureLoansAndRelatedAllowanceForCreditLossesPrimarySegmentsOfAllowanceForLoanLossDetails</Role>
      <ShortName>Loans and Related Allowance for Credit Losses (Primary Segments of the Allowance for Loan Loss) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureLoansAndRelatedAllowanceForCreditLossesTables</ParentRole>
      <Position>47</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>40505 - Disclosure - Loans and Related Allowance for Credit Losses (Collateral-dependent individually evaluated loans) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureLoansAndRelatedAllowanceForCreditLossesCollateralDependentIndividuallyEvaluatedLoansDetails</Role>
      <ShortName>Loans and Related Allowance for Credit Losses (Collateral-dependent individually evaluated loans) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureLoansAndRelatedAllowanceForCreditLossesTables</ParentRole>
      <Position>48</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>40506 - Disclosure - Loans and Related Allowance for Credit Losses (Impaired Loans and Related Interest Income by Loan Portfolio Class) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureLoansAndRelatedAllowanceForCreditLossesImpairedLoansAndRelatedInterestIncomeByLoanPortfolioClassDetails</Role>
      <ShortName>Loans and Related Allowance for Credit Losses (Impaired Loans and Related Interest Income by Loan Portfolio Class) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureLoansAndRelatedAllowanceForCreditLossesTables</ParentRole>
      <Position>49</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>40507 - Disclosure - Loans and Related Allowance for Credit Losses (Allowance for Loan Losses Summarized by Loan Portfolio Segments) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureLoansAndRelatedAllowanceForCreditLossesAllowanceForLoanLossesSummarizedByLoanPortfolioSegmentsDetails</Role>
      <ShortName>Loans and Related Allowance for Credit Losses (Allowance for Loan Losses Summarized by Loan Portfolio Segments) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureLoansAndRelatedAllowanceForCreditLossesTables</ParentRole>
      <Position>50</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>40508 - Disclosure - Loans and Related Allowance for Credit Losses (Classes of the Loan Portfolio Summarized by the Aggregate Risk Rating) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureLoansAndRelatedAllowanceForCreditLossesClassesOfLoanPortfolioSummarizedByAggregateRiskRatingDetails</Role>
      <ShortName>Loans and Related Allowance for Credit Losses (Classes of the Loan Portfolio Summarized by the Aggregate Risk Rating) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureLoansAndRelatedAllowanceForCreditLossesTables</ParentRole>
      <Position>51</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>40601 - Disclosure - Fair Value of Financial Instruments (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureFairValueOfFinancialInstrumentsNarrativeDetails</Role>
      <ShortName>Fair Value of Financial Instruments (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureFairValueOfFinancialInstrumentsTables</ParentRole>
      <Position>52</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>40602 - Disclosure - Fair Value of Financial Instruments (Assets And Liabilities Measured At Fair Value On A Recurring And Nonrecurring Basis) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureFairValueOfFinancialInstrumentsAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringAndNonrecurringBasisDetails</Role>
      <ShortName>Fair Value of Financial Instruments (Assets And Liabilities Measured At Fair Value On A Recurring And Nonrecurring Basis) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureFairValueOfFinancialInstrumentsTables</ParentRole>
      <Position>53</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>40603 - Disclosure - Fair Value of Financial Instruments (Fair Value Measurements, Recurring and Nonrecurring, Valuation Techniques) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureFairValueOfFinancialInstrumentsFairValueMeasurementsRecurringAndNonrecurringValuationTechniquesDetails</Role>
      <ShortName>Fair Value of Financial Instruments (Fair Value Measurements, Recurring and Nonrecurring, Valuation Techniques) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureFairValueOfFinancialInstrumentsTables</ParentRole>
      <Position>54</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>40604 - Disclosure - Fair Value of Financial Instruments (Reconciliation Of Fair Valued Assets Measured On A Recurring Basis) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureFairValueOfFinancialInstrumentsReconciliationOfFairValuedAssetsMeasuredOnRecurringBasisDetails</Role>
      <ShortName>Fair Value of Financial Instruments (Reconciliation Of Fair Valued Assets Measured On A Recurring Basis) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureFairValueOfFinancialInstrumentsTables</ParentRole>
      <Position>55</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>40605 - Disclosure - Fair Value of Financial Instruments (Fair Value By Balance Sheet Grouping) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureFairValueOfFinancialInstrumentsFairValueByBalanceSheetGroupingDetails</Role>
      <ShortName>Fair Value of Financial Instruments (Fair Value By Balance Sheet Grouping) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureFairValueOfFinancialInstrumentsTables</ParentRole>
      <Position>56</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>40701 - Disclosure - Accumulated Other Comprehensive Loss (Schedule of Accumulated Other Comprehensive Loss) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureAccumulatedOtherComprehensiveLossScheduleOfAccumulatedOtherComprehensiveLossDetails</Role>
      <ShortName>Accumulated Other Comprehensive Loss (Schedule of Accumulated Other Comprehensive Loss) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureAccumulatedOtherComprehensiveLossTables</ParentRole>
      <Position>57</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>40702 - Disclosure - Accumulated Other Comprehensive Loss (Components of Comprehensive Income) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureAccumulatedOtherComprehensiveLossComponentsOfComprehensiveIncomeDetails</Role>
      <ShortName>Accumulated Other Comprehensive Loss (Components of Comprehensive Income) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureAccumulatedOtherComprehensiveLossTables</ParentRole>
      <Position>58</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>40703 - Disclosure - Accumulated Other Comprehensive Loss (Reclassification out of Accumulated Other Comprehensive Income) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureAccumulatedOtherComprehensiveLossReclassificationOutOfAccumulatedOtherComprehensiveIncomeDetails</Role>
      <ShortName>Accumulated Other Comprehensive Loss (Reclassification out of Accumulated Other Comprehensive Income) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureAccumulatedOtherComprehensiveLossTables</ParentRole>
      <Position>59</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>40801 - Disclosure - Equity Compensation Plan Information (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureEquityCompensationPlanInformationNarrativeDetails</Role>
      <ShortName>Equity Compensation Plan Information (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureEquityCompensationPlanInformation</ParentRole>
      <Position>60</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>40901 - Disclosure - Derivative Financial Instruments (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureDerivativeFinancialInstrumentsNarrativeDetails</Role>
      <ShortName>Derivative Financial Instruments (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureDerivativeFinancialInstrumentsTables</ParentRole>
      <Position>61</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>40902 - Disclosure - Derivative Financial Instruments (Impact Of Derivative Financial Instruments) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureDerivativeFinancialInstrumentsImpactOfDerivativeFinancialInstrumentsDetails</Role>
      <ShortName>Derivative Financial Instruments (Impact Of Derivative Financial Instruments) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureDerivativeFinancialInstrumentsTables</ParentRole>
      <Position>62</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>41002 - Disclosure - Regulatory Capital Requirements (Schedule of Compliance with Regulatory Capital Requirements under Banking Regulations) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureRegulatoryCapitalRequirementsScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsDetails</Role>
      <ShortName>Regulatory Capital Requirements (Schedule of Compliance with Regulatory Capital Requirements under Banking Regulations) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureRegulatoryCapitalRequirementsTables</ParentRole>
      <Position>63</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>41101 - Disclosure - Deposit (Schedule of deposit liabilities) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureDepositScheduleOfDepositLiabilitiesDetails</Role>
      <ShortName>Deposit (Schedule of deposit liabilities) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureDepositsTables</ParentRole>
      <Position>64</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>41102 - Disclosure - Deposits (Insured or collateralized to uninsured deposits) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureDepositsInsuredOrCollateralizedToUninsuredDepositsDetails</Role>
      <ShortName>Deposits (Insured or collateralized to uninsured deposits) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureDepositsTables</ParentRole>
      <Position>65</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>41103 - Disclosure - Deposits (Retail versus business deposits) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureDepositsRetailVersusBusinessDepositsDetails</Role>
      <ShortName>Deposits (Retail versus business deposits) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureDepositsTables</ParentRole>
      <Position>66</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>41201 - Disclosure - Borrowed Funds (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureBorrowedFundsNarrativeDetails</Role>
      <ShortName>Borrowed Funds (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureBorrowedFundsTables</ParentRole>
      <Position>67</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>41202 - Disclosure - Borrowed Funds (Schedule of borrowings) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureBorrowedFundsScheduleOfBorrowingsDetails</Role>
      <ShortName>Borrowed Funds (Schedule of borrowings) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureBorrowedFundsTables</ParentRole>
      <Position>68</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>41301 - Disclosure - Segment Reporting (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureSegmentReportingNarrativeDetails</Role>
      <ShortName>Segment Reporting (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureSegmentReportingTables</ParentRole>
      <Position>69</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>41302 - Disclosure - Segment Reporting (Schedule of Segments) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureSegmentReportingScheduleOfSegmentsDetails</Role>
      <ShortName>Segment Reporting (Schedule of Segments) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureSegmentReportingTables</ParentRole>
      <Position>70</Position>
    </Report>
    <Report instance="func-20230630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>41401 - Disclosure - Goodwill (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureGoodwillNarrativeDetails</Role>
      <ShortName>Goodwill (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureGoodwill</ParentRole>
      <Position>71</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <Logs>
    <Log type="Warning">[ix-0514-Hidden-Fact-Eligible-For-Transform] WARN: 3 fact(s) appearing in ix:hidden were eligible for transformation: func:SharebasedCompensationArrangementByShareBasedPaymentAwardVestingPeriod, us-gaap:CommonStockSharesIssued, us-gaap:CommonStockSharesOutstanding -  func-20230630x10q.htm 9</Log>
  </Logs>
  <InputFiles>
    <File doctype="10-Q" original="func-20230630x10q.htm">func-20230630x10q.htm</File>
    <File>func-20230630.xsd</File>
    <File>func-20230630_cal.xml</File>
    <File>func-20230630_def.xml</File>
    <File>func-20230630_lab.xml</File>
    <File>func-20230630_pre.xml</File>
    <File>func-20230630xex31d1.htm</File>
    <File>func-20230630xex31d2.htm</File>
    <File>func-20230630xex32.htm</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy items="2479">http://fasb.org/us-gaap/2023</BaseTaxonomy>
    <BaseTaxonomy items="29">http://xbrl.sec.gov/dei/2023</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
