Basis of Presentation and Significant Accounting Policies | Basis of Presentation and Significant Accounting Policies Basis of Presentation: The accompanying consolidated financial statements include the accounts of Stonegate and its subsidiaries and have been prepared in conformity with U.S. generally accepted accounting principles (“GAAP”) and in accordance with the instructions to Form 10-K as promulgated by the Securities and Exchange Commission. All intercompany accounts and transactions have been eliminated in consolidation. Prior Period Reclassifications: During 2015, the Company decided to dispose of certain retail branches, or components of its Originations segment, and the assets associated with them, either through sale or disposal other than by sale. The Company has determined that the disposal of these retail branches met the criteria for presentation and disclosure as discontinued operations. Additional lines of detail in the Consolidated Statements of Operations and Consolidated Statements of Cash Flows have been presented to reflect the remaining operations of the Company. In addition, certain prior period amounts have been reclassified to conform to the current period presentation on the Consolidated Statements of Operations, Consolidated Statements of Cash Flows and within the Notes to Consolidated Financial Statements. Immaterial Error Corrections: During the current period, the Company identified immaterial errors in its previously issued Consolidated Statements of Cash Flows for the years ended December 31, 2014 and 2013 . These immaterial errors impacted the line items “Proceeds from borrowings under mortgage funding arrangements - mortgage loans and operating lines of credit” and “Repayments of borrowings under mortgage funding arrangements - mortgage loans and operating lines of credit” in an exact offsetting manner, such that the subtotal “Net cash provided by financing activities” was not misstated. For the years ended December 31, 2014 and 2013 , the offsetting misstatements were 20,919,704 and 9,025,674 , respectively. Use of Estimates: The preparation of financial statements in conformity with GAAP requires us to make estimates and assumptions that affect the amounts reported in the Company’s consolidated financial statements and accompanying notes. Actual results could differ from those estimates. Material estimates that are particularly significant relate to the Company’s fair value measurements of mortgage loans held for sale, mortgage servicing rights (“MSRs”), loans eligible for repurchase from GNMA and the related liability, derivative assets and liabilities, goodwill and other intangible assets, as well as its estimates for the reserve for mortgage repurchases and indemnifications and income tax estimates for deferred tax assets valuation allowance considerations. Risks and Uncertainties: In the normal course of business, companies in the mortgage banking industry encounter certain economic and regulatory risks. Economic risks include interest rate risk and credit risk. In an interest rate cycle in which rates decline over an extended period of time, the Company's mortgage origination activities’ results of operations could be positively impacted by higher loan origination volumes and gain on sale margins. In contrast, the Company's results of operations of its mortgage servicing activities could decline due to higher actual and projected loan prepayments related to its loan servicing portfolio. In an interest rate cycle in which rates rise over an extended period of time, the Company's mortgage origination activities' results of operations could be negatively impacted and its mortgage servicing activities’ results of operations could be positively impacted. Credit risk is the risk of default that may result from the borrowers’ inability or unwillingness to make contractually required payments during the period in which loans are being held for sale. The Company manages these various risks through a variety of policies and procedures, such as the hedging of the loans held for sale and interest rate lock commitments using forward sales of MBS, such as To Be Announced (“TBA”) securities, designed to quantify and mitigate the operational and financial risk to the Company to the extent possible. Specifically, the Company engages in hedging of interest rate risk of its mortgage loans held for sale and interest rate lock commitments with the use of TBA mortgage securities. The Company sells loans to investors without recourse. As such, the investors have assumed the risk of loss or default by the borrower. However, the Company is usually required by these investors to make certain standard representations and warranties relating to credit information, loan documentation, collateral and regulatory compliance. To the extent that the Company does not comply with such representations, the Company may be required to repurchase the loans or indemnify these investors for any losses from borrower defaults. The Company performs due diligence prior to funding mortgage loans as part of its loan underwriting process, whereby the Company analyzes credit, collateral and compliance risk of all loans in an effort to ensure the mortgage loans meet the investors’ standards. However, if a loan is repurchased, the Company could incur a loss as part of recording such loan at fair value, which may be less than the amount paid to purchase the loan. In addition, if loans pay off within a specified time frame, the Company may be required to refund a portion of the sales proceeds to the investors. The Company’s business requires substantial cash to support its operating activities. As a result, the Company is dependent on its lines of credit and other financing facilities in order to fund its continued operations. If the Company’s principal lenders decided to terminate or not to renew any of these credit facilities with the Company, the loss of borrowing capacity would have a material adverse impact on the Company’s financial statements unless the Company found a suitable alternative source of financing. Consolidation: The Company sells loans to FNMA and FHLMC, as well as in GNMA guaranteed mortgage-backed securities (“MBS”) by pooling eligible loans through a pool custodian and assigning rights to the loans to GNMA. FNMA, FHLMC and GNMA provide credit enhancement of the loans through certain guarantee provisions. These securitizations involve variable interest entities (“VIEs”) as the trusts or similar vehicles, by design, that either (1) lack sufficient equity to permit the entity to finance its activities without additional subordinated financial support from other parties, or (2) have equity investors that do not have the ability to make significant decisions relating to the entity’s operations through voting rights, or do not have the obligation to absorb the expected losses, or do not have the right to receive the residual returns of the entity. The primary beneficiary of a VIE (i.e., the party that has a controlling financial interest) is required to consolidate the assets and liabilities of the VIE. The primary beneficiary is the party that has both (1) the power to direct the activities of an entity that most significantly impact the VIE’s economic performance; and (2) through its interests in the VIE, the obligation to absorb losses or the right to receive benefits from the VIE that could potentially be significant to the VIE. The Company typically retains the right to service the loans. Because of the power of FNMA, FHLMC and GNMA over the VIEs that hold the assets from these residential mortgage loan securitizations, principally through its rights and responsibilities as master servicer for FNMA and FHLMC, and as approver of issuers for GNMA, and the guarantee provisions provided by FNMA, FHLMC and GNMA, the Company is not the primary beneficiary of the VIEs and therefore the VIEs are not consolidated by the Company. The Company has concluded that on a consolidated basis it has a variable interest in NattyMac Funding ("NMF") resulting from any potential interest it may earn from the 49% NMF earnings participation, as described in Note 14, "Debt". The Company has further concluded that it is not considered the primary beneficiary of its variable interest in NMF based on the fact that it does not have the power to direct the activities of NMF that most significantly impact NMF’s economic performance. NMF has the final authority over its operating policies. If at any time in the future the Company claims the right to the common capital stock of NMF in a default scenario as described in Note 14, "Debt", the primary beneficiary conclusion may change. The Company believes that its maximum exposure to loss as a result of this arrangement is the $30,000 in subordinated loan receivable as of December 31, 2015 . The Company performs on-going reassessments of: (1) whether entities previously evaluated under the majority voting-interest framework have become VIEs, based on certain events, and therefore become subject to the VIE consolidation framework; and (2) whether changes in the facts and circumstances regarding the Company’s involvement with a VIE cause the Company’s consolidation determination to change. Revenue Recognition: Mortgage Loans Held for Sale: Loan originations that are intended to be sold in the foreseeable future, including residential mortgages, are reported as mortgage loans held for sale. Mortgage loans held for sale are carried at fair value under the fair value option with changes in fair value recognized in current period earnings. At the date of funding of the mortgage loan held for sale, the funded amount of the loan, the related derivative asset or liability of the associated interest rate lock commitment, less direct loan costs (including but not limited to correspondent fees, broker premiums and underwriting expenses) becomes the initial recorded investment in the mortgage loan held for sale. Such amount approximates the fair value of the loan. Mortgage loans held for sale are considered de-recognized, or sold, when the Company surrenders control over the financial assets. Control is considered to have been surrendered when the transferred assets have been isolated from the Company, beyond the reach of the Company and its creditors; the purchaser obtains the right (free of conditions that constrain it from taking advantage of that right) to pledge or exchange the transferred assets; and the Company does not maintain effective control over the transferred assets through an agreement that both entitles and obligates the Company to repurchase or redeem the transferred assets before their maturity or the ability to unilaterally cause the holder to return specific assets. Such transfers may involve securitizations, participation agreements or repurchase agreements. If the criteria above are not met, such transfers are accounted for as secured borrowings, in which the assets remain on the balance sheet, the proceeds from the transaction are recognized as a liability and no MSRs are recorded for those transferred loans. Gains and losses from the sale of mortgages are recognized based upon the difference between the sales proceeds and carrying value of the related loans upon sale and is recorded in gains on mortgage loans held for sale in the statement of operations. The sales proceeds reflect the cash received and the initial fair value of the separately recognized mortgage servicing rights less the fair value of the liability for mortgage repurchases and indemnifications. Gain on mortgage loans held for sale also includes the unrealized gains and losses associated with the mortgage loans held for sale and the realized and unrealized gains and losses from derivatives. Mortgage Servicing Rights and Change in Mortgage Servicing Rights Valuation: The Company capitalizes MSRs at fair value when purchased or at the time the underlying loans are de-recognized, or sold, and when the Company retains the right to service such loans. To determine the fair value of the MSRs, the Company uses a valuation model that calculates the present value of future cash flows generated by the rights to service. The valuation model incorporates assumptions that market participants would use in estimating future net servicing income, including estimates of the cost of servicing, the discount rate, float value, the inflation rate, estimated prepayment speeds, and default rates. MSRs currently are not actively traded in the markets, accordingly, considerable judgment is required to estimate their fair value and the exercise of that judgment can materially impact current period earnings. The Company may sell from time to time a certain portion of its MSRs. At the time of the sale, based on the structure of the arrangement, the Company typically records a gain or loss on such sale based on the selling price of the MSRs less the carrying value and transaction costs. The MSRs are sold in separate transactions from the sale of the underlying loans. The MSRs sales are assessed to determine if they qualify as a sale transaction. A transfer of servicing rights related to loans previously sold qualifies as a sale at the date on which title passes, if substantially all risks and rewards of ownership have irrevocably passed to the transferee, and any protection provisions retained by the transferor are minor and can be reasonably estimated. In addition, if a sale is recognized and only minor protection provisions exist, a liability should be accrued for the estimated obligation associated with those provisions. As MSRs are not considered financial assets for accounting purposes, the accounting model used to determine if the transfer of an MSRs asset qualifies as a sale is based on a risks and rewards approach. Upon completion of a sale, the Company would account for the transaction as a sale and derecognize the mortgage servicing rights from the Consolidated Balance Sheets. Loan Origination and Other Loan Fees: Loan origination and other loan fee income represents revenue earned from originating mortgage loans. Loan origination and other loan fees generally represent flat, per-loan fee amounts and are recognized as revenue, net of loan origination costs (excluding those direct loan origination costs that are recorded as a component of the recorded investment in mortgage loans held for sale), at the time the loans are funded. Loan Servicing Fees: Loan servicing fee income represents revenue earned for servicing mortgage loans. The servicing fees are based on a contractual percentage of the outstanding principal balance and recognized as revenue as earned, which is generally upon collection of the payments from the borrower. Corresponding loan servicing costs are charged to expense as incurred. Interest Income: Interest income on mortgage loans is accrued to income based upon the principal amount outstanding and contractual interest rates. Income recognition is discontinued when loans become 90 days delinquent or when in management’s opinion, the collectability of principal and income becomes doubtful. Warehouse Lending Receivables: During the year ended December 31, 2013 , the Company introduced its warehouse lending products to its correspondent customers through warehouse line of credit agreements. Under the warehouse line of credit agreements, the Company lends funds to its correspondent customers to finance those correspondents' mortgage loan originations. The correspondent customers pledge, as security to the Company, the underlying mortgage loans, and pay interest on the related outstanding borrowings at a specified interest rate plus a margin, as defined in the underlying line of credit agreements with each correspondent customer. As of December 31, 2015 , the Company had outstanding warehouse lending receivables from its correspondent customers of $199,215 and recognized interest income from its warehouse lending activities of $5,325 during the year ended December 31, 2015 . As of December 31, 2014 , the Company had outstanding warehouse lending receivables from its correspondent customers of $85,431 and recognized interest income from its warehouse lending activities of $2,812 during the year ended December 31, 2014 . The Company periodically reviews the warehouse lending receivables for collectability based on a review of the counterparty, historical collection trends and management judgment regarding the ability to collect specific accounts. The Company has determined that no allowance for doubtful accounts was necessary as of December 31, 2015 or December 31, 2014 . Derivative Financial Instruments: All derivative financial instruments are recognized as either assets or liabilities and measured at fair value. The Company accounts for all of its derivatives as free-standing derivatives and does not designate any of these instruments for hedge accounting. Therefore, the gain or loss resulting from the change in the fair value of the derivative is recognized in the Company’s results of operations during the period of change. The Company enters into commitments to originate residential mortgage loans held for sale, at specified interest rates and within a specified period of time, with customers who have applied for a loan and meet certain credit and underwriting criteria (interest rate lock commitments). These interest rate lock commitments (“IRLCs”) meet the definition of a derivative financial instrument and are reflected in the balance sheet at fair value with changes in fair value recognized in current period earnings. Unrealized gains and losses on the IRLCs are recorded as derivative assets and derivative liabilities, respectively, and are measured based on the value of the underlying mortgage loan, quoted MBS prices, estimates of the fair value of the mortgage servicing rights and an estimate of the probability that the mortgage loan will fund within the terms of the interest rate lock commitment, net of estimated commission expenses. The Company manages the interest rate and price risk associated with its outstanding IRLCs and loans held for sale by entering into derivative instruments such as forward loan sales commitments and mandatory delivery commitments, including TBA mortgage securities. Management expects these derivatives will experience changes in fair value opposite to changes in fair value of the IRLCs and loans held for sale, thereby reducing earnings volatility. The Company takes into account various factors and strategies in determining the portion of the mortgage pipeline (IRLCs and loans held for sale) it wants to economically hedge. Reserve for Loan Repurchases and Indemnifications: Loans sold to investors by the Company, and which were believed to have met investor and agency underwriting guidelines at the time of sale, may be subject to repurchase or indemnification in the event of specific default by the borrower or subsequent discovery that underwriting standards were not met. The Company may, upon mutual agreement, agree to repurchase the loans or indemnify the investor against future losses on such loans. In such cases, the Company bears any subsequent credit loss on the loans. The Company has established an initial reserve liability for expected losses related to these representations and warranties at the date the loans are de-recognized from the balance sheet based on the fair value of such reserve liability. Subsequently, based on changing facts and circumstances or changes in certain estimates and assumptions, the reserve liability may be adjusted if there is a reasonable possibility that future losses may be in excess of the initial reserve liability, with a corresponding amount recorded to provision for reserve for mortgage repurchases and indemnifications. In assessing the adequacy of the reserve, management evaluates various factors including actual losses on repurchases and indemnifications during the period, historical loss experience, known delinquent and other problem loans, delinquency trends in the portfolio of sold loans and economic trends and conditions in the industry. Actual losses incurred are reflected as charge-offs against the reserve liability. Loans Eligible for Repurchase from GNMA: As discussed above, the Company routinely sells loans in GNMA guaranteed MBS by pooling eligible loans through a pool custodian and assigning rights to the loans to GNMA. When these GNMA loans are initially pooled and securitized, the Company meets the criteria for sale treatment and de-recognizes the loans. Subsequently, when the Company has the unconditional right, as servicer, to repurchase GNMA pool loans it has previously sold (generally loans that are more than 90 days past due), the Company then puts back the loans on its balance sheet, initially reflected at fair value. An offsetting liability is also recorded. Servicing Advances, net: Servicing advances, net represent principal, interest, escrow and corporate advances paid by the Company on behalf of customers to cover delinquent balances for principal, interest, property taxes, insurance premiums and other out-of-pocket costs. Advances are made in accordance with the servicing agreements and are recoverable upon collection of future borrower payments or foreclosure of the underlying loans. The Company is exposed to losses only to the extent that the respective servicing guidelines are not followed or in the event there is a shortfall in liquidation proceeds and records a reserve against the advances when it is probable that the servicing advance will be uncollectible. In certain circumstances, the Company may be required to remit funds on a non-recoverable basis, which are expensed as incurred. As of December 31, 2015 , the recorded reserve for uncollectible servicing advances was $1,424 . Property and Equipment: Property and equipment is recorded at cost, net of accumulated depreciation. Depreciation is computed using the straight-line method over estimated useful lives of one to three years for internally developed computer software, three to ten years for furniture and equipment and three to five years for purchased computer software and equipment. Leasehold improvements are amortized using the straight-line method over the shorter of the related lease term or their estimated economic useful lives. The Company periodically assesses property and equipment for recoverability whenever events or changes in circumstances indicate that their carrying amounts may not be recoverable. If management identifies an impairment indicator, it assesses recoverability by comparing the carrying amount of the asset to the undiscounted cash flows expected to result from the use and eventual disposition of the asset. An impairment loss is recognized in earnings whenever the carrying amount is not recoverable. During the year ended December 31, 2015 , the Company recognized impairment of $1,726 , primarily associated with the assets related to the discontinued operations discussed above. No such impairments were recognized during the years ended December 31, 2014 and 2013 . Goodwill and Other Intangible Assets: Business combinations are accounted for using the acquisition method of accounting. Acquired intangible assets are recognized and reported separately from goodwill. Goodwill represents the excess cost of acquisition over the fair value of net assets acquired. Finite-lived purchased intangible assets consist of customer relationships, non-compete agreement and an active agent list, which have useful lives of eight years, three years and five years, respectively. Intangible assets with finite lives are amortized over their estimated lives using an amortization method that reflects the pattern in which the economic benefits of the asset are consumed. The Company evaluates the estimated remaining useful lives on intangible assets to determine whether events or changes in circumstances warrant a revision to the remaining periods of amortization. If an intangible asset’s estimated useful life is changed, the remaining net carrying amount of the intangible asset is amortized prospectively over that revised remaining useful life. Additionally, an intangible asset that initially is deemed to have a finite useful life would cease being amortized if it is subsequently determined to have an indefinite useful life. Such intangible assets are then tested for impairment. The Company reviews such intangibles for impairment whenever events or changes in circumstances indicate their carrying amounts may not be recoverable, in which case any impairment charge would be recorded to earnings. Indefinite-lived purchased intangible assets consist of the NattyMac trade name. Goodwill and other intangible assets with an indefinite useful life are not subject to amortization but are reviewed for impairment annually or more frequently whenever events or changes in circumstances indicate that the carrying amount of an intangible asset may not be recoverable. For indefinite-lived intangible assets other than goodwill, the Company first assesses qualitative factors to determine whether the existence of events or circumstances leads to a determination that is more likely than not the assets are impaired. If the Company determines that it is more likely than not that the intangible assets are impaired, a quantitative impairment test is performed. For the quantitative impairment test, the Company estimates and compares the fair value of the indefinite-lived intangible asset with its carrying amount. If the carrying amount of the indefinite-lived intangible asset exceeds its fair value, the amount of the impairment is measured as the difference between the carrying amount of the asset and its fair value. Impairment is permanently recognized by writing down the asset to the extent that the carrying value exceeds the estimated fair value. The Company's goodwill relates to the Retail reporting unit of its Originations segment. For goodwill, GAAP allows a qualitative assessment prior to requiring a quantitative impairment test. For the quantitative impairment test, at the reporting unit level, the Company estimates and compares the fair value to the book value. If the reporting unit's book value exceeds its fair value, the Company then performs a hypothetical purchase price allocation for the reporting unit. This is done by marking all assets and liabilities to fair value and calculating an implied goodwill value. If the implied goodwill value is less than the carrying value of the goodwill, the amount of impairment is measured as the difference and is permanently recognized by writing down the goodwill to the extent the carrying value exceeds the implied value. Stock Split: On May 14, 2013, the Company granted a stock dividend of 12.861519 shares of common stock for each share of common stock held as of that date, which was determined to be in substance a stock split for accounting and financial reporting purposes. All actual share, weighted-average share and per share amounts and all references to stock compensation data and prices of the Company’s common stock have been adjusted to reflect this stock split for all periods presented. Stock-Based Compensation: The Company grants stock options and restricted stock units to certain executive officers, key employees and independent directors. Stock options have been granted for a fixed number of shares with an exercise price at least equal to the fair value of the shares at the date of grant. Restricted stock units have been granted for a fixed number of shares with a fair value equal to the fair value of the Company's common stock on the grant date. The stock options and restricted stock units granted are recognized as compensation expense in the statement of operations based on their grant-date fair values. Advertising and Marketing: The Company uses primarily print, broadcast and web-based advertising and marketing to promote its products. These expenses also include purchased leads of mortgage loans related to our retail channel and are expensed as incurred. Advertising and marketing expenses related to continuing operations totaled $2,067 , $2,347 and $2,317 for the years ended December 31, 2015 , 2014 and 2013 . Advertising and marketing expenses related to discontinued operations totaled $1,148 , $869 and $0 for the years ended December 31, 2015 , 2014 and 2013 . Income Taxes: Income taxes are accounted for under the asset and liability method. Deferred tax assets and liabilities are recognized for the future tax consequences attributable to differences between the financial statement carrying amounts of existing assets and liabilities and their respective tax bases and operating loss and tax credit carryforwards. Deferred tax assets and liabilities are measured using enacted tax rates expected to apply to taxable income in the years in which those temporary differences are expected to be recovered or settled. The effect on deferred tax assets and liabilities of a change in tax rates is recognized in earnings in the period that includes the enactment date. A valuation allowance is provided when it is more likely than not that some portion or all of a deferred tax asset will not be realized. The Company recorded a valuation allowance in the amount of $1,554 as of December 31, 2015 related to its continuing operations. No valuation allowance was recorded as of December 31, 2014 . The Company recognizes the effect of income tax positions only if those positions are more likely than not of being sustained. Recognized income tax positions are measured at the largest amount that is greater than 50% likely of being realized. Changes in recognition or measurement are reflected in the period in which the change in judgment occurs. The Company’s income tax expense includes assessments related to uncertain tax positions taken or expected to be taken by the Company. ASC 740-10, Income Taxes , requires financial statement recognition of the impact of a tax position if a position is more likely than not of being sustained on audit, based on the technical merits of the position. Management assesses this as facts and circumstances related to the Company's business and operations change in a period. If applicable, the Company will recognize interest and penalties related to unrecognized tax benefits as a component of income tax expense. The open tax years subject to examination by taxing authorities include the years ended December 31, 2014 , 2013 , and 2012 . The Company had no federal or state tax examinations in process as of December 31, 2015 . Cash and Cash Equivalents: The Company classifies cash and temporary investments with original maturities of three months or less as cash and cash equivalents. The Company typically maintains cash in financial institutions in excess of FDIC limits. The Company evaluates the creditworthiness of these financial institutions in determining the risk associated with these cash balances. Restricted Cash: The Company maintains certain cash balances that are restricted under broker margin account agreements associated with its derivative activities. Additionally, certain funding received for the repurchase of eligible loans from GNMA, as discussed above, is reflected as restricted cash on the consolidated balance sheets until such repurchases are made. Recent Accounting Developments: ASU No. 2014-08, "Reporting Discontinued Operations and Disclosures of Disposals of Components of an Entity" was issued in April 2014. Under the new guidance, only disposals of a component of an entity that represent a major strategic shift on an entity's operations and financial results shall be reported in discontinued operations. The guidance also requires the presentation as discontinued operations for an entity that, on acquisition, meets the criteria to be classified as held for sale. In addition, the update expands disclosures for discontinued operations, requires new disclosures regarding disposals of an individually significant component of an entity that does not qualify for discontinued operations presentation and expands disclosures about an entity's significant continuing involvement with a discontinued operations. The updated requires the Company to apply the amendments prospectively to all components of an entity that are disposed of or classified as held for sale and to all businesses that, on acquisitions, are classified as held for sale within interim and annual periods beginning on or after December 15, 2014. The adoption of this new guidance is reflected within the Company's operations and financial results as described in the "Prior period classifications" discussion above |