Summary of Significant Accounting Policies | Summary of Significant Accounting Policies Basis of presentation and principles of consolidation — The consolidated financial statements include the accounts of Sparton Corporation and subsidiaries and have been prepared in accordance with accounting principles generally accepted in the United States of America (“GAAP”). All significant intercompany accounts and transactions have been eliminated in consolidation. Certain reclassifications of prior year amounts have been made to conform to the current year presentation. Use of estimates — Management of the Company has made a number of estimates, judgments and assumptions relating to the reporting of assets and liabilities and the disclosure of contingent liabilities at the dates of the consolidated balance sheets and revenue and expense during the reporting periods to prepare these consolidated financial statements in conformity with GAAP. Actual results could differ from those estimates. Cash and cash equivalents — Cash and cash equivalents include cash on hand, demand deposits and money market funds with original maturities of three months or less. Cash equivalents are stated at cost which approximates fair value. Accounts receivable, credit practices and allowances for doubtful accounts — Accounts receivable are customer obligations generally due under normal trade terms for the industry. Credit terms are granted and periodically revised based on evaluations of the customers’ financial condition. The Company performs ongoing credit evaluations of its customers and although the Company does not generally require collateral, letters of credit or cash advances may be required from customers in order to support accounts receivable in certain circumstances. The Company maintains an allowance for doubtful accounts on receivables for estimated losses resulting from the inability of its customers to make required payments. The allowance is estimated primarily based on information known about specific customers with respect to their ability to make payments and future expectations of conditions that might impact the collectability of accounts. When management determines that it is probable that an account will not be collected, all or a portion of the amount is charged against the allowance for doubtful accounts. Inventories and costs of contracts in progress — Inventories are valued at the lower of cost (first-in, first-out basis) or market and include costs related to long-term contracts as disclosed below. Inventories, other than contract costs, are principally raw materials and supplies. Certain United States government contracts allow Sparton to submit performance based billings, which are then applied against inventories purchased and manufacturing costs incurred by the Company throughout its performance under these contracts. Inventories were reduced by performance based payments from the U.S. government for costs incurred related to long-term contracts, thereby establishing inventory to which the U.S. government then has title, of $8,541 and $8,963 respectively, at July 2, 2017 and July 3, 2016 . At July 2, 2017 and July 3, 2016 , current liabilities include performance based payments of $1,749 and $0 , respectively, on government contracts. As these payments were in excess of cost, there is no inventory to which the government would claim title and, therefore, no offset to inventory has been made. Customer orders are based upon forecasted quantities of product manufactured for shipment over defined periods. Raw material inventories are purchased to fulfill these customer requirements. Within these arrangements, customer demands for products frequently change, sometimes creating excess and obsolete inventories. The Company regularly reviews raw material inventories by customer for both excess and obsolete quantities. Wherever possible, the Company attempts to recover its full cost of excess and obsolete inventories from customers or, in some cases, through other markets. When it is determined that the Company’s carrying cost of such excess and obsolete inventories cannot be recovered in full, a charge is taken against income for the difference between the carrying cost and the estimated realizable amount. These cost adjustments for excess and obsolete inventory create a new cost basis for the inventory. The Company recorded inventory write-downs totaling $544 , $1,653 and $927 for fiscal years 2017 , 2016 and 2015 , respectively. These charges are included in cost of goods sold for the periods presented. If inventory that has previously been impaired is subsequently sold, the amount of reduced cost basis is reflected as cost of goods sold. The Company experienced minimal subsequent sales of excess and obsolete inventory during fiscal years 2017 , 2016 and 2015 that resulted in higher gross margins due to previous write-downs. Such sales and the impact of those sales on gross margin were not material to the years presented. Property, plant and equipment, net — Property, plant and equipment are stated at cost less accumulated depreciation. Major improvements and upgrades are capitalized while ordinary repair and maintenance costs are expensed as incurred. Depreciation is provided over estimated useful lives on both straight-line and accelerated methods. Estimated useful lives generally range from twelve to thirty-nine years for buildings and improvements, twelve years for machinery and equipment and five years for test equipment. Goodwill — Goodwill resulting from business combinations represents the excess of purchase price over the fair value of the net assets of the businesses acquired. Goodwill is not amortized, but rather tested for impairment annually, as well as whenever there are events or changes in circumstances (triggering events) which suggest that the carrying value of goodwill may not be recoverable. The Company performs its annual goodwill impairment testing in the fourth quarter based on its historical financial results through the third quarter end. The goodwill impairment test is performed at the reporting unit level, which is the lowest level at which goodwill is evaluated for management purposes. The Company has identified reporting units to be its two reportable business segments - MDS and ECP for fiscal years 2017 , 2016 and 2015 . The Company may elect to perform a qualitative assessment for its annual goodwill impairment test. If the qualitative assessment indicates that it is more likely than not that the fair value of a reporting unit is less than its carrying amount, or if Sparton elects to not perform a qualitative assessment, then the Company would be required to perform a quantitative impairment test for goodwill. The quantitative impairment analysis is a two-step process. First, the Company determines the fair value of the reporting unit and compares it to its carrying value. The fair value of reporting units is determined based on a weighting of both projected discounted future results and comparative market multiples. The projected discounted future results (discounted cash flow approach) is based on assumptions that are consistent with the Company’s estimates of future growth and the strategic plan used to manage the underlying business. Factors requiring significant judgment include assumptions related to future revenue growth rates, operating margins, terminal growth rates and discount factors, amongst other considerations. If the carrying value of the reporting unit exceeds the fair value in the first step, a second step is performed to measure the amount of an impairment loss. In the second step, an impairment loss is recognized for any excess of the carrying value of the reporting unit’s goodwill over its implied fair value. The implied fair value of goodwill is determined by allocating the fair value of the reporting unit using a residual fair value allocation. The residual fair value allocated to goodwill is the implied fair value of the reporting unit's goodwill. The Company’s fair value estimates related to its goodwill impairment analyses are based on Level 3 inputs within the fair value hierarchy as described below in this note under “Fair value measurements.” Determining the fair value of any reporting unit and intangible asset is judgmental in nature and involves the use of significant estimates and assumptions. The Company bases its fair value estimates on assumptions believed to be reasonable, but which are unpredictable and inherently uncertain. Actual future results may differ from those estimates. Circumstances that may lead to future impairment of goodwill include, but are not limited to, unforeseen decreases in future performance or industry demand, a further loss of a significant customer, or the inability to achieve sufficient organic revenue growth to offset fluctuations in customer demand. In fiscal years 2017 and 2015, the Company elected to perform the optional qualitative assessment of goodwill and concluded that it was more likely than not that the fair value of goodwill in its reporting units was in excess of its respective carrying amount and therefore, no further testing was required. In fiscal 2016, the Step 1 impairment testing of goodwill was performed and resulted in the carrying values of its MDS reporting unit in excess of its fair value indicating potential impairment. The decline in value in the MDS reporting unit was a result of the underperformance of the Company’s most recent acquisition (Hunter Technology Corporation), and the inability to achieve sufficient organic revenue growth to offset the loss of a large customer due to insourcing, as well as revenue declines due to fluctuations in customer demand across the MDS reporting unit. The Company performed the Step 2 analysis of goodwill impairment for this reporting unit and based on the valuation of the reporting unit as well as the fair value of the reporting unit's individual tangible and intangible assets, it was determined that goodwill within this reporting unit was fully impaired. As such, the Company recorded an impairment of goodwill charge of $64,174 . Prior to the fourth quarter of fiscal 2016, no triggering events or other facts and circumstances were identified that indicated that it was more likely than not that the fair value of the MDS segment was less than its carrying value. The impairment recognized in the fourth quarter of fiscal 2016 was a result of the continued underperformance of the acquired Hunter Technology Corporation operations and the inability of the Company to achieve sufficient organic revenue growth to offset fluctuations in customer demands. The fair value of the Company’s ECP reporting unit was in excess of its carrying value and, as such, indicated no impairment of goodwill. Other Intangible Assets — The Company’s intangible assets other than goodwill represent the values assigned to acquired customer relationships, acquired non-compete agreements, acquired trademarks/trade names, acquired unpatented technology and patents. At July 2, 2017 , customer relationships and non-compete agreements totaling $21,416 and $1,222 , respectively, are included in the MDS segment, while customer relationships, non-compete agreements, trademarks/trade names, unpatented technology and patents totaling $3,961 , $123 , $1,221 , $494 and $8 respectively, are included in the ECP segment. The impairment test for these intangible assets is conducted when impairment indicators are present. The Company continually evaluates whether events or circumstances have occurred that would indicate the remaining estimated useful lives of its intangible assets warrant revision or that the remaining balance of such assets may not be recoverable. The Company uses an estimate of the related undiscounted cash flows over the remaining life of the asset in measuring whether the asset is recoverable. If the carrying amount of an asset exceeds its estimated undiscounted future cash flows, an impairment charge would be recognized for the amount that the carrying amount of the asset exceeds the fair value of the asset. The Company’s fair value estimates related to its intangible assets impairment analyses are based on Level 3 inputs within the fair value hierarchy as described below in this note under “Fair value measurements.” The Company had a third party evaluation performed in the fourth quarter of fiscal year 2016 and performed an internal evaluation in the fourth quarter of fiscal 2017. It was determined for both periods that the assets were fully recoverable and no write-down of such assets was necessary. Acquired customer relationships are being amortized using an accelerated methodology over periods of seven to fifteen years. Acquired non-compete agreements are being amortized on a straight-line basis over periods of two to five years as the ratable decline in value over time is most consistent with the contractual nature of these assets. Acquired trademarks/trade names are being amortized on a straight-line basis over periods of one to ten years and acquired unpatented technology is being amortized using an accelerated methodology over seven years. Patents are being amortized using an accelerated methodology over three years. Other long-lived assets - The Company reviews other long-lived assets, including property, plant and equipment, that are not held for sale, for impairment whenever events or changes in circumstances indicate that the carrying amount of an asset may not be recoverable. Impairment is determined by comparing the carrying value of the assets to their estimated future undiscounted cash flows. If such assets are considered to be impaired, the impairment to be recognized is measured by the amount by which the carrying amount of the asset group exceeds the fair value of the asset group. Assets to be disposed of are reported at the lower of the carrying amount or fair value less costs to sell. Stock-based compensation — The Company measures the cost of employee and director services received in exchange for an award of equity-based securities using the fair value of the award on the date of the grant. The Company recognizes that cost on a straight-line basis over the period that the award recipient is required to provide service to the Company in exchange for the award and, for certain awards, subject to the probability that related performance targets will be met. Net earnings (loss) per share — Basic earnings (loss) per share is based on the weighted average number of common shares and participating securities outstanding during the period. Diluted earnings or loss per share include the dilutive effect of additional potential common shares issuable under our stock-based compensation plans and are determined using the treasury stock method. Unvested restricted stock awards, which contain non-forfeitable rights to dividends whether paid or unpaid, are included in the number of shares outstanding for both basic and diluted earnings or loss per share calculations. Unvested contingently issuable participating restricted shares are excluded from basic earnings (loss) per share. In the event of a net loss, unvested restricted stock awards are excluded from the calculation of both basic and diluted loss per share. 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 amounts of 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 future 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 rate is recognized in income in the period that includes the enactment date. Deferred tax assets are reduced through the establishment of a valuation allowance at the time, based upon available evidence, it becomes more likely than not that the deferred tax assets will not be realized. The Company recognizes the tax benefit from an uncertain tax position only if it is more likely than not that the tax position will be sustained on examination by the taxing authorities, based on the technical merits of the position. The tax benefits recognized in the consolidated financial statements from such a position are measured based on the largest benefit that has a greater than 50% likelihood of being realized upon ultimate resolution. Management also assesses whether uncertain tax positions, as filed, could result in the recognition of a liability for possible interest and penalties. The Company's policy is to include interest and penalties related to unrecognized tax benefits as a component of income tax expense. ERAPSCO Agreement — Sparton is a 50 / 50 joint venture (“JV”) partner with UnderSea Sensor Systems, Inc. (“USSI”), the only other major producer of U.S. derivative sonobuoys. USSI’s parent company is Ultra Electronics Holdings plc, based in the United Kingdom. The JV operates under the name ERAPSCO and allows Sparton and USSI to combine their own unique and complementary backgrounds to jointly develop and produce U.S. derivative sonobuoy designs for the U.S. Navy as well as foreign governments that meet Department of State licensing requirements. ERAPSCO maintains the DBA Sonobuoy TechSystems through which it conducts business directly with foreign governments. In concept, and in practice, ERAPSCO serves as a pass-through entity maintaining no funds or assets. While the JV provides the opportunity to maximize efficiencies in the design and development of the related sonobuoys, both of the joint venture partners function independently as subcontractors; therefore, there is no separate entity to be accounted for or consolidated. The Board of Directors of ERAPSCO has the responsibility for the overall management and operation of the JV. The six member board consists of equal representation (full time employees) from both JV partners for three year terms. Personnel necessary for the operation of ERAPSCO, specifically a president, vice president, general manager, contract administrator and financial manager, are similarly assigned by the JV partners for rotating three year terms and the costs of these assigned individuals are borne by the party assigning the personnel. In response to a customer request for proposal (“RFP”) that ERAPSCO will bid on, the Board of Directors of ERAPSCO approves both the composition of a response to the RFP and the composite bid to be submitted to the customer. The Board of Directors strives to divide the aggregate contract awards at a 50 / 50 share ratio. Each JV partner bears the costs it incurs associated with the preparation and submission of proposals. Each JV partner submits to ERAPSCO a proposal for the estimated price of performing that portion of the RFP applicable to it. Upon award of a contract to the JV, separate subcontracts are generated between ERAPSCO and each of the JV partners defining the responsibilities and compensation. These subcontracts contain terms and conditions consistent with the prime contract. Each JV partner is responsible to ERAPSCO for the successful execution of its respective scope of work under its subcontract and each JV partner is individually accountable for the profit or losses sustained in the execution of the subcontract against its respective bid. In some instances, either Sparton or USSI handles the complete production and delivery of sonobuoys to ERAPSCO's customer. In other instances, either Sparton or USSI starts the production and ship completed subassemblies to the other party for additional processing before being delivered to the customers. Under ERAPSCO, individual contract risk exposures are reduced, while the likelihood of achieving U.S. Navy and other ASW objectives is enhanced. ERAPSCO has been in existence since 1987 and historically, the agreed upon products included under the JV were generally developmental sonobuoys. In 2007 , the JV expanded to include all future sonobuoy development and substantially all U.S. derivative sonobuoy products for customers outside of the United States. The JV was further expanded three years later to include all sonobuoy products for the U.S. Navy beginning with U.S. Navy's 2010 fiscal year contracts. Revenue recognition — The Company’s net sales are comprised primarily of product sales, with supplementary revenues earned from engineering and design services. Standard contract terms are FOB shipping point. Revenue from product sales is generally recognized upon shipment of the goods; service revenue is recognized as the service is performed or under the percentage of completion method, depending on the nature of the arrangement. Long-term contracts related to ECP sonobuoy sales to the U.S. Navy and foreign government customers that require lot acceptance testing recognize revenue under the units-of-production percentage of completion method. The Company additionally has certain other long-term contracts that are accounted for under the units shipped percentage-of-completion method. Certain upfront engineering costs in relation to certain of these long-term contracts are capitalized and recognized over the life of the contract. At July 2, 2017 and July 3, 2016 , current liabilities include payments in excess of costs of $1,749 and $0 , respectively, on government contracts. As noted above, sales related to these billings are recognized based upon units completed and are not recognized at the time of billings. A provision for the entire amount of a loss on a contract is charged to operations as soon as the loss is identified and the amount is reasonably determinable. Shipping and handling costs are included in cost of goods sold. Advertising Costs — The Company expenses advertising costs as they are incurred. Advertising expense was $25 , $106 and $160 for fiscal years 2017 , 2016 and 2015 , respectively. Research and development expenditures — Internal research and development expenses reflect costs incurred for the internal development of technologies for use in undersea warfare, navigation, handheld targeting applications as wells as rugged computer and display devices. These costs include salaries and related expenses, contract labor and consulting costs, materials and the cost of certain research and development specific equipment. The Company incurred $1,670 , $2,344 and $1,502 of internally funded research and development expenses during fiscal years 2017 , 2016 and 2015 , respectively. Customer funded research and development costs, which are usually part of a larger production agreement, totaled $5,610 , $16,736 and $9,944 for the fiscal years 2017 , 2016 and 2015 , respectively. Fair value measurements — Fair value estimates and assumptions and methods used to estimate the fair value of the Company’s assets and liabilities are made in accordance with the requirements of the Financial Accounting Standards Board (the “FASB”), Accounting Standards Codification (“ASC”) Topic 820, “Fair Value Measurements and Disclosures” (“ASC 820”). ASC 820 clarifies that fair value is an exit price, representing the amount that would be received to sell an asset or paid to transfer a liability in an orderly transaction between market participants. As such, fair value is a market-based measurement that should be determined based on assumptions that market participants would use in pricing an asset or liability. As a basis for considering such assumptions, ASC 820 establishes a three-tier value hierarchy, which prioritizes the inputs used in measuring fair value as follows: Level 1 are observable inputs such as quoted prices in active markets; Level 2 are inputs other than the quoted prices in active markets that are observable either directly or indirectly; and Level 3 are unobservable inputs in which there is little or no market data, which require the Company to develop its own assumptions. This hierarchy requires the Company to use observable market data when available and to minimize the use of unobservable inputs when determining fair value. As of July 2, 2017 and July 3, 2016 , the Company had no assets or liabilities which it measures and carries on its balance sheet at fair value on a recurring basis. The fair value of the Company's Credit Facility (as defined below) debt at July 2, 2017 approximated its carrying value of $74,500 , as the rates on these borrowings are variable in nature. In the event of an acquisition, the Company estimates the fair value of the assets acquired and liabilities assumed at acquisition date. See Note 3, Acquisitions, of the "Notes to Consolidated Financial Statements" in this form 10-K for a further discussion of these estimated fair values. At June 30, 2015 , the Company established liabilities for accrued contingent consideration related to the acquisition of RTE ( $350 ) and Hunter ( $1,180 ). In fiscal year 2016, these liabilities were reversed to income as the contingent consideration was not achieved. Market risk exposure — The Company manufactures its products in the United States, Canada and Vietnam. Sales of the Company’s products are in the U.S. and foreign markets. The Company is subject to foreign currency exchange rate risk relating to intercompany activity and balances and to receipts from customers and payments to suppliers in foreign currencies. Adjustments related to the remeasurement of the Company's Canadian and Vietnamese financial statements into U.S. dollars are included in current earnings. As a result, the Company's financial results could be affected by factors such as changes in foreign currency exchange rates or economic conditions in the domestic and foreign markets in which the Company operates. However, minimal third party receivables and payables are denominated in foreign currency and the related market risk exposure is considered to be immaterial. The Company's revolving credit line, when drawn upon, is subject to future interest rate fluctuations which could potentially have a negative impact on cash flows of the Company. The Company had $74,500 outstanding under its credit facility at July 2, 2017 . A prospective increase of 100 basis points in the interest rate applicable to the Company's outstanding borrowings under its Credit Facility would result in an increase of $745 in its annual interest expense. The Company is not party to any currency exchange or interest rate protection agreements as of July 2, 2017 . See Note 8, Debt, of the "Notes to Consolidated Financial Statements" in this form 10-K for a further description on Sparton’s debt. New accounting standards — In May 2014, the FASB issued Accounting Standards Update No. 2014-09 ("ASU 2014-09"), Revenue from Contracts with Customers , which amends guidance for revenue recognition. Under the new standard, revenue will be recognized when control of the promised goods or services is transferred to customers in an amount that reflects the consideration to which the Company expects to be entitled in exchange for those goods and services. The standard creates a five-step model that will generally require companies to use more judgment and make more estimates than under current guidance when considering the terms of contracts along with all relevant facts and circumstances. These include the identification of customer contracts and separating performance obligations, the determination of transaction price that potentially includes an estimate of variable consideration, allocating the transaction price to each separate performance obligation, and recognizing revenue in line with the pattern of transfer. In August 2015, the FASB issued an amendment to defer the effective date for all entities by one year. The new standard will become effective for annual reporting periods beginning after December 15, 2017, including interim periods within that reporting period. Early adoption is permitted as of annual reporting periods beginning after December 15, 2016. Companies have the option of using either a full or modified retrospective approach in applying this standard. During fiscal 2016, the FASB issued three additional updates which further clarify the guidance provided in ASU 2014-09. The Company has identified key personnel to evaluate the guidance and approve a transition method, while also formulating a time line to review the potential impact of the new standard on its existing revenue recognition policies and procedures. In July 2015, the FASB issued Accounting Standards Update No. 2015-11 ("ASU 2015-11"), Simplifying the Measurement of Inventory. ASU 2015-11 clarifies that inventory should be held at the lower of cost or net realizable value. Net realizable value is defined as the estimated selling price, less the estimated costs to complete, dispose and transport such inventory. ASU 2015-11 will be effective for fiscal years and interim periods beginning after December 15, 2016. ASU 2015-11 is required to be applied prospectively and early adoption is permitted. The Company does not expect ASU 2015-11 to have a material impact on its consolidated financial statements when it is adopted in the first quarter of fiscal year 2018. In February 2016, the FASB issued Accounting Standards Update No. 2016-02 (“ASU 2016-02”), Leases (Topic 842) . ASU 2016-02 establishes a right-of-use (ROU) model that requires a lessee to record a ROU asset and a lease liability on the balance sheet for all leases with terms longer than 12 months. Leases will be classified as either finance or operating, with classification affecting the pattern of expense recognition in the income statement. ASU 2016-02 is effective for fiscal years beginning after December 15, 2018, including interim periods within those fiscal years. A modified retrospective transition approach is required for capital leases and operating leases existing at, or entered into after, the beginning of the earliest comparative period presented in the financial statements, with certain practical expedients available. The Company is currently in the process of evaluating the impact of adoption on its consolidated financial statements. In March 2016, the FASB issued Accounting Standards Update No. 2016-09 ("ASU 2016-09"), Compensation - Stock Compensation (Topic 718): Improvements to Employee Share-Based Payment Accounting. ASU 2016-09 will directly impact the tax administration of equity plans. ASU 2016-09 is effective for fiscal years beginning after December 15, 2016, including interim periods within those fiscal years. Early adoption is permitted and any adjustments should be reflected as of the beginning of the fiscal year that includes that interim period. The Company elected to early adopt ASU 2016-09 as of July 4, 2016 on a prospective basis. There was no significant impact on the Company's financial statements as a result of the adoption in fiscal year 2017. In June 2016, the FASB issued Accounting Standards Update No. 2016-13 ("ASU 2016-13"), Financial Instruments—Credit Losses (Topic 326) . ASU 2016-13 requires the measurement of all expected credit losses for financial assets held at the reporting date based on historical experience, current conditions, and reasonable and supportable forecasts. ASU 2016-13 is effective for fiscal years beginning after December 15, 2019 and early adoption is permitted. The Company is currently in the process of evaluating the impact of adoption on its consolidated financial statements. In August 2016, the FASB issued Accounting Standards Update No. 2016-15 ("ASU 2016-15"), Statement of Cash Flows (Topic 230): Classification of Certain Cash Receipts and Cash Payments . ASU 2016-15 will make eight targeted changes to how cash receipts and cash payments are presented and classified in the statement of cash flows. ASU 2016-15 is effective for fiscal years beginning after December 15, 2017. The new standard will require adoption on a retrospective basis unless it is impracticable to apply, in which case it would be required to apply the amendments prospectively as of the earliest date practicable. The Company is currently in the process of evaluating the impact of adoption on its consolidated financial statements. In October 2016, the FASB issued ASU 2016-16 ("ASU 2016-16"), Income Taxes - Intra-Entity Transfers of Assets Other Than Inventory , which requires entities to recognize the income tax consequences of an intra-entity transfer of an asset other than inventory when the transfer occurs. ASU 2016-16 is effective for fiscal year |