XML 114 R98.htm IDEA: XBRL DOCUMENT
v3.6.0.2

Mortgage Servicing Rights - Additional Information (Details) - USD ($) $ in Thousands | 12 Months Ended
--- | ---
Dec. 31, 2016 | Dec. 31, 2015 | Dec. 31, 2014
Mortgage Loan Activity [Line Items] |  |  |
Sale of 1-4 family mortgage loans | $ 108,209 | $ 99,458 | $ 42,361
Total servicing portfolio | 407,300 | 361,200 | 325,800
Fannie Mae |  |  |
Mortgage Loan Activity [Line Items] |  |  |
Sale of 1-4 family mortgage loans | $ 93,900 | $ 76,800 | $ 40,100

X
- Definition Mortgage Loan Activity [Line Items] + References No definition available. + Details
Name: | stba_MortgageLoanActivityLineItems
Namespace Prefix: | stba_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Portfolio loans fair value disclosure. + References No definition available. + Details
Name: | stba_PortfolioLoansFairValueDisclosure
Namespace Prefix: | stba_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The cash inflow from sales of loans that are secured with real estate mortgages and are held with the intention to resell in the near future. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 25 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=66902209&loc=d3e3536-108585 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 21 -URI http://asc.fasb.org/extlink&oid=66902209&loc=d3e3461-108585 + Details
Name: | us-gaap_ProceedsFromSaleOfMortgageLoansHeldForSale
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Details
Name: | us-gaap_InvestmentTypeAxis=us-gaap_FederalNationalMortgageAssociationCertificatesAndObligationsFNMAMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |