XML 63 R52.htm IDEA: XBRL DOCUMENT
v3.23.1

Restatement of Consolidated Financial Statements (CONSOLIDATED STATEMENTS OF CASH FLOWS) (Details) - USD ($) $ in Thousands | 3 Months Ended | 6 Months Ended | 9 Months Ended | 12 Months Ended
--- | --- | --- | --- | ---
Jan. 01, 2022 | Jul. 03, 2021 | Jan. 02, 2021 | Apr. 02, 2022 | Apr. 03, 2021 | Jul. 02, 2022 | Jul. 03, 2021 | Oct. 01, 2022 | Oct. 02, 2021 | Oct. 03, 2020
CASH FLOWS PROVIDED BY (USED IN) OPERATING ACTIVITIES: |  |  |  |  |  |  |  |  |  |
Net income |  |  |  |  |  |  |  |  |  | $ 133,169
Adjustments to reconcile net income to cash provided by operating activities: |  |  |  |  |  |  |  |  |  |
Depreciation and amortization | $ 27,465 |  | $ 27,635 | $ 55,032 | $ 54,831 | $ 82,097 | $ 82,204 | $ 108,783 | $ 109,656 | 114,218
Stock-based compensation expense | 9,032 |  | 8,208 | 18,362 | 17,432 | 29,045 | 26,147 | 39,608 | 34,976 | 26,235
Deferred income taxes | 6,059 |  | 3,858 | 9,173 | 8,787 | 15,993 | 26,946 | 27,910 | 28,375 | 11,772
Gain on sale of intellectual property |  |  |  |  |  |  |  |  | (15,000) |
Gain on liquidation of foreign entity |  |  |  |  |  |  | (8,263) |  | (8,263) |
Impairment of goodwill and other assets |  |  |  |  |  | 1,848 |  | 1,848 |  | 8,409
Loss on sale of intellectual property |  |  |  |  |  |  |  | 7,000 |  |
Other, net | (3,638) |  | (99) | (1,903) | (19) | (3,146) | (633) | 1,260 | (1,371) | (239)
Changes in operating assets and liabilities, net of amounts acquired: |  |  |  |  |  |  |  |  |  |
Accounts receivable | (106,656) |  | (66,961) | (79,308) | (79,333) | (40,276) | (108,008) | 47,483 | (145,810) | 81,914
Contract assets | (15,393) |  | 28,680 | (67,092) | 64,722 | (112,606) | 53,231 | (143,531) | 54,479 | 9,631
Inventories | (213,278) |  | 57,469 | (403,783) | 90,490 | (552,851) | (7,419) | (651,118) | (157,278) | 24,377
Prepaid expenses and other assets | (2,939) |  | (8,694) | (11,334) | 2,065 | (13,269) | (2,868) | (31,700) | (5,780) | 17,092
Accounts payable | 240,591 |  | (66,657) | 362,191 | (99,525) | 507,909 | 61,524 | 558,828 | 243,834 | (106,640)
Accrued liabilities | 70,880 |  | 28,814 | 161,137 | 6,024 | 152,192 | (54,861) | 124,099 | (49,022) | (19,383)
Cash provided by operating activities | 68,300 |  | 61,811 | 147,273 | 142,900 | 248,956 | 246,621 | 330,854 | 338,342 | 300,555
CASH FLOWS PROVIDED BY (USED IN) INVESTING ACTIVITIES: |  |  |  |  |  |  |  |  |  |
Purchases of property, plant and equipment |  |  |  |  |  |  |  | (138,639) | (73,296) | (65,982)
Proceeds from sales of property, plant and equipment |  |  |  |  |  |  |  | 8,425 | 1,084 | 1,573
Purchases of investments |  |  |  |  |  |  |  | (2,000) | (2,705) | (30,000)
Sale of investments |  |  |  |  |  |  |  |  |  | 30,000
Cash paid for business acquisition, net of cash acquired |  |  |  |  |  |  |  |  | (21,408) |
Proceeds from sale of intellectual property |  |  |  |  |  |  |  |  | 5,000 |
Cash used in investing activities |  |  |  |  |  |  |  | (132,214) | (91,325) | (64,409)
CASH FLOWS PROVIDED BY (USED IN) FINANCING ACTIVITIES: |  |  |  |  |  |  |  |  |  |
Proceeds from revolving credit facility borrowings |  |  |  |  |  |  |  | 1,874,000 | 399,600 | 1,909,000
Repayments of revolving credit facility borrowings |  |  |  |  |  |  |  | (1,874,000) | (399,600) | (1,909,000)
Repayments of long-term debt |  |  |  |  |  |  |  | (332,814) | (18,752) | (39,048)
Proceeds from issuance of long-term debt |  |  |  |  |  |  |  | 350,000 |  |
Debt issuance costs |  |  |  |  |  |  |  | (3,263) |  |
Net proceeds from stock issuances |  |  |  |  |  |  |  | 2,379 | 2,993 | 7,793
Repurchases of common stock |  |  |  |  |  |  |  | (331,101) | (64,059) | (179,025)
Proceeds from collection of notes receivable |  |  |  |  |  |  |  | 500 | 2,500 |
Cash used in financing activities |  |  |  |  |  |  |  | (314,299) | (77,318) | (210,280)
Effect of exchange rate changes |  |  |  |  |  |  |  | (4,510) | (199) | (81)
Increase (decrease) in cash and cash equivalents |  |  |  |  |  |  |  | (120,169) | 169,500 | 25,785
Cash and cash equivalents at beginning of year | 650,026 |  | 480,526 | 650,026 | 480,526 | 650,026 | 480,526 | 650,026 | 480,526 | 454,741
Cash and cash equivalents at end of year |  |  |  |  |  |  |  | 529,857 | 650,026 | 480,526
Previously Reported |  |  |  |  |  |  |  |  |  |
CASH FLOWS PROVIDED BY (USED IN) OPERATING ACTIVITIES: |  |  |  |  |  |  |  |  |  |
Net income |  |  |  |  |  |  |  |  |  | 139,713
Adjustments to reconcile net income to cash provided by operating activities: |  |  |  |  |  |  |  |  |  |
Depreciation and amortization | 27,465 |  | 27,635 | 55,032 | 54,831 | 82,097 | 82,204 | 108,783 | 109,656 | 114,218
Stock-based compensation expense | 9,032 |  | 8,208 | 18,362 | 17,432 | 29,045 | 26,147 | 39,608 | 34,976 | 26,235
Deferred income taxes | 6,707 |  | 3,447 | 11,071 | 13,641 | 18,522 | 32,142 | 31,733 | 33,724 | 13,567
Gain on sale of intellectual property |  |  |  |  |  |  |  |  | (15,000) |
Gain on liquidation of foreign entity |  |  |  |  |  |  | (8,263) |  | (8,263) |
Impairment of goodwill and other assets |  |  |  |  |  | 1,848 |  | 1,848 |  | 8,409
Loss on sale of intellectual property |  |  |  |  |  |  |  | 7,000 |  |
Other, net | (3,638) |  | (99) | (1,903) | (19) | (3,146) | (633) | 1,260 | (1,371) | (239)
Changes in operating assets and liabilities, net of amounts acquired: |  |  |  |  |  |  |  |  |  |
Accounts receivable | (106,972) |  | (64,217) | (79,705) | (79,166) | (39,850) | (108,277) | 46,480 | (146,516) | 83,623
Contract assets | (15,666) |  | 46,534 | (68,545) | 61,626 | (110,565) | 51,487 | (154,933) | 47,842 | (283)
Inventories | (207,300) |  | 42,282 | (403,396) | 75,303 | (559,118) | (22,606) | (663,379) | (167,186) | 39,564
Prepaid expenses and other assets | (2,939) |  | (9,400) | (11,334) | 1,359 | (13,269) | (3,574) | (31,700) | (6,486) | 17,798
Accounts payable | 234,525 |  | (66,657) | 357,176 | (99,525) | 507,632 | 61,524 | 554,492 | 236,270 | (106,640)
Accrued liabilities | 68,452 |  | 26,057 | 158,661 | 2,360 | 144,363 | (60,963) | 133,541 | (48,302) | (35,410)
Cash provided by operating activities | 68,300 |  | 61,811 | 147,273 | 142,900 | 248,956 | $ 246,621 | 330,854 | 338,342 | 300,555
Investigative Adjustments |  |  |  |  |  |  |  |  |  |
CASH FLOWS PROVIDED BY (USED IN) OPERATING ACTIVITIES: |  |  |  |  |  |  |  |  |  |
Net income |  |  |  |  |  |  |  |  |  | (6,544)
Adjustments to reconcile net income to cash provided by operating activities: |  |  |  |  |  |  |  |  |  |
Deferred income taxes | (648) | $ (5,196) | (279) | (1,898) | (4,854) | (2,529) |  | (3,823) | (5,349) | (1,795)
Changes in operating assets and liabilities, net of amounts acquired: |  |  |  |  |  |  |  |  |  |
Contract assets | 3,064 | 4,921 | (15,009) | 4,804 | 2,768 | 6,210 |  | (755) | 4,272 | 24,436
Inventories | 88 | 15,187 | 15,187 | 4,628 | 15,187 | 6,544 |  | 19,420 | 17,472 | (15,187)
Prepaid expenses and other assets |  | 706 | 706 |  | 706 |  |  |  | 706 | (706)
Accrued liabilities | $ (47) | $ 3,194 | $ 68 | $ (478) | $ 3,825 | $ (848) |  | (705) | 2,351 | (204)
Other Adjustments |  |  |  |  |  |  |  |  |  |
Changes in operating assets and liabilities, net of amounts acquired: |  |  |  |  |  |  |  |  |  |
Accounts receivable |  |  |  |  |  |  |  | 1,003 | 706 | (1,709)
Contract assets |  |  |  |  |  |  |  | 12,157 | 2,365 | (14,522)
Inventories |  |  |  |  |  |  |  | (7,159) | (7,564) |
Accounts payable |  |  |  |  |  |  |  | 4,336 | 7,564 |
Accrued liabilities |  |  |  |  |  |  |  | $ (8,737) | $ (3,071) | $ 16,231

X
- Definition Amount of gain included in earnings for the sale of intellectual property. + References No definition available. + Details
Name: | sanm_GainOnSaleOfIntellectualProperty
Namespace Prefix: | sanm_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of loss included in earnings for the sale of intellectual property. + References No definition available. + Details
Name: | sanm_LossOnSaleOfIntellectualProperty
Namespace Prefix: | sanm_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The portion of profit or loss for the period, net of income taxes, which is attributable to the parent. + References No definition available. + Details
Name: | sanm_NetIncomeOrLossOnOperatingActivities
Namespace Prefix: | sanm_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The cash inflow associated with principal collections from a borrowing supported by a written promise to pay an obligation (for financing activity). + References No definition available. + Details
Name: | sanm_ProceedsFromNotesReceivable
Namespace Prefix: | sanm_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Cash inflow from the sale of intellectual property (non productive asset) + References No definition available. + Details
Name: | sanm_ProceedsFromSaleOfIntellectualProperty
Namespace Prefix: | sanm_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- References No definition available. + Details
Name: | us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of write-down of assets recognized in the income statement. Includes, but is not limited to, losses from tangible assets, intangible assets and goodwill. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 28 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=126954810&loc=d3e3602-108585 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 360 -SubTopic 10 -Section 45 -Paragraph 4 -URI https://asc.fasb.org/extlink&oid=126905981&loc=d3e2420-110228 + Details
Name: | us-gaap_AssetImpairmentCharges
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of cash and cash equivalents, and cash and cash equivalents restricted to withdrawal or usage. Excludes amount for disposal group and discontinued operations. Cash includes, but is not limited to, currency on hand, demand deposits with banks or financial institutions, and other accounts with general characteristics of demand deposits. Cash equivalents include, but are not limited to, short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 24 -URI https://asc.fasb.org/extlink&oid=126954810&loc=d3e3521-108585 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 4 -URI https://asc.fasb.org/extlink&oid=126954810&loc=d3e3044-108585 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 50 -Paragraph 8 -URI https://asc.fasb.org/extlink&oid=126999549&loc=SL98516268-108586 + Details
Name: | us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of increase (decrease) in cash, cash equivalents, and cash and cash equivalents restricted to withdrawal or usage; including effect from exchange rate change. Cash includes, but is not limited to, currency on hand, demand deposits with banks or financial institutions, and other accounts with general characteristics of demand deposits. Cash equivalents include, but are not limited to, short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 830 -SubTopic 230 -Section 45 -Paragraph 1 -URI https://asc.fasb.org/extlink&oid=123444420&loc=d3e33268-110906 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 24 -URI https://asc.fasb.org/extlink&oid=126954810&loc=d3e3521-108585 + Details
Name: | us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of deferred income tax expense (benefit) pertaining to income (loss) from continuing operations. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SAB Topic 6.I.7) -URI https://asc.fasb.org/extlink&oid=122134291&loc=d3e330036-122817 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SAB Topic 6.I.Fact.1) -URI https://asc.fasb.org/extlink&oid=122134291&loc=d3e330036-122817 Reference 3: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 235 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.4-08(h)(1)(Note 1)) -URI https://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SAB Topic 6.I.Fact.2) -URI https://asc.fasb.org/extlink&oid=122134291&loc=d3e330036-122817 Reference 5: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 28 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=126954810&loc=d3e3602-108585 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 9 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=121826272&loc=d3e32639-109319 + Details
Name: | us-gaap_DeferredIncomeTaxExpenseBenefit
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The aggregate expense recognized in the current period that allocates the cost of tangible assets, intangible assets, or depleting assets to periods that benefit from use of the assets. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 22 -Subparagraph (e) -URI https://asc.fasb.org/extlink&oid=126901519&loc=d3e8736-108599 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 28 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=126954810&loc=d3e3602-108585 + Details
Name: | us-gaap_DepreciationDepletionAndAmortization
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of increase (decrease) from effect of exchange rate changes on cash and cash equivalents, and cash and cash equivalents restricted to withdrawal or usage; held in foreign currencies. Excludes amounts for disposal group and discontinued operations. Cash includes, but is not limited to, currency on hand, demand deposits with banks or financial institutions, and other accounts with general characteristics of demand deposits. Cash equivalents include, but are not limited to, short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 830 -SubTopic 230 -Section 45 -Paragraph 1 -URI https://asc.fasb.org/extlink&oid=123444420&loc=d3e33268-110906 + Details
Name: | us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount before tax of foreign currency transaction realized gain (loss) recognized in the income statement. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 830 -SubTopic 20 -Section 50 -Paragraph 1 -URI https://asc.fasb.org/extlink&oid=124440516&loc=d3e30840-110895 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 830 -SubTopic 20 -Section 45 -Paragraph 1 -URI https://asc.fasb.org/extlink&oid=125521441&loc=d3e30690-110894 + Details
Name: | us-gaap_ForeignCurrencyTransactionGainLossRealized
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The increase (decrease) during the reporting period in the aggregate amount of liabilities incurred (and for which invoices have typically been received) and payable to vendors for goods and services received that are used in an entity's business. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 28 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=126954810&loc=d3e3602-108585 + Details
Name: | us-gaap_IncreaseDecreaseInAccountsPayable
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The increase (decrease) during the reporting period in amount due within one year (or one business cycle) from customers for the credit sale of goods and services. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 28 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=126954810&loc=d3e3602-108585 + Details
Name: | us-gaap_IncreaseDecreaseInAccountsReceivable
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of increase (decrease) in right to consideration in exchange for good or service transferred to customer when right is conditioned on something other than passage of time. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 28 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=126954810&loc=d3e3602-108585 + Details
Name: | us-gaap_IncreaseDecreaseInContractWithCustomerAsset
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The increase (decrease) during the reporting period in the aggregate value of all inventory held by the reporting entity, associated with underlying transactions that are classified as operating activities. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 28 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=126954810&loc=d3e3602-108585 + Details
Name: | us-gaap_IncreaseDecreaseInInventories
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- References No definition available. + Details
Name: | us-gaap_IncreaseDecreaseInOperatingCapitalAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of increase (decrease) in operating liabilities classified as other. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 28 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=126954810&loc=d3e3602-108585 + Details
Name: | us-gaap_IncreaseDecreaseInOtherOperatingLiabilities
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of increase (decrease) in prepaid expenses, and assets classified as other. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 28 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=126954810&loc=d3e3602-108585 + Details
Name: | us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of cash inflow (outflow) from financing activities, including discontinued operations. Financing activity cash flows include obtaining resources from owners and providing them with a return on, and a return of, their investment; borrowing money and repaying amounts borrowed, or settling the obligation; and obtaining and paying for other resources obtained from creditors on long-term credit. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 24 -URI https://asc.fasb.org/extlink&oid=126954810&loc=d3e3521-108585 + Details
Name: | us-gaap_NetCashProvidedByUsedInFinancingActivities
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- References No definition available. + Details
Name: | us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of cash inflow (outflow) from investing activities, including discontinued operations. Investing activity cash flows include making and collecting loans and acquiring and disposing of debt or equity instruments and property, plant, and equipment and other productive assets. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 24 -URI https://asc.fasb.org/extlink&oid=126954810&loc=d3e3521-108585 + Details
Name: | us-gaap_NetCashProvidedByUsedInInvestingActivities
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- References No definition available. + Details
Name: | us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of cash inflow (outflow) from operating activities, including discontinued operations. Operating activity cash flows include transactions, adjustments, and changes in value not defined as investing or financing activities. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 25 -URI https://asc.fasb.org/extlink&oid=126954810&loc=d3e3536-108585 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 24 -URI https://asc.fasb.org/extlink&oid=126954810&loc=d3e3521-108585 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 28 -URI https://asc.fasb.org/extlink&oid=126954810&loc=d3e3602-108585 + Details
Name: | us-gaap_NetCashProvidedByUsedInOperatingActivities
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | na
Period Type: | duration

X
- References No definition available. + Details
Name: | us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Other cash or noncash adjustments to reconcile net income to cash provided by (used in) operating activities that are not separately disclosed in the statement of cash flows (for example, cash received or cash paid during the current period for miscellaneous operating activities, net change during the reporting period in other assets or other liabilities). + References No definition available. + Details
Name: | us-gaap_OtherOperatingActivitiesCashFlowStatement
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The cash outflow to reacquire common stock during the period. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 15 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=126954810&loc=d3e3291-108585 + Details
Name: | us-gaap_PaymentsForRepurchaseOfCommonStock
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The cash outflow paid to third parties in connection with debt origination, which will be amortized over the remaining maturity period of the associated long-term debt. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 15 -Subparagraph (e) -URI https://asc.fasb.org/extlink&oid=126954810&loc=d3e3291-108585 + Details
Name: | us-gaap_PaymentsOfDebtIssuanceCosts
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The cash outflow associated with the acquisition of a business, net of the cash acquired from the purchase. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 13 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=126954810&loc=d3e3213-108585 + Details
Name: | us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The cash outflow associated with the purchase of all investments (debt, security, other) during the period. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 13 -URI https://asc.fasb.org/extlink&oid=126954810&loc=d3e3213-108585 + Details
Name: | us-gaap_PaymentsToAcquireInvestments
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The cash outflow associated with the acquisition of long-lived, physical assets that are used in the normal conduct of business to produce goods and services and not intended for resale; includes cash outflows to pay for construction of self-constructed assets. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 13 -Subparagraph (c) -URI https://asc.fasb.org/extlink&oid=126954810&loc=d3e3213-108585 + Details
Name: | us-gaap_PaymentsToAcquirePropertyPlantAndEquipment
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The cash inflow from a debt initially having maturity due after one year or beyond the operating cycle, if longer. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 14 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=126954810&loc=d3e3255-108585 + Details
Name: | us-gaap_ProceedsFromIssuanceOfLongTermDebt
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of cash inflow from issuance of shares under share-based payment arrangement. Includes, but is not limited to, option exercised. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2A -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=128089324&loc=SL79508275-113901 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 14 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=126954810&loc=d3e3255-108585 + Details
Name: | us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlansIncludingStockOptions
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of cash inflow from contractual arrangement with the lender, including but not limited to, letter of credit, standby letter of credit and revolving credit arrangements. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 14 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=126954810&loc=d3e3255-108585 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 235 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.4-08(f)) -URI https://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690 + Details
Name: | us-gaap_ProceedsFromLinesOfCredit
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The cash inflow associated with the sale and maturity (principal being due) of other investments, prepayment and call (request of early payment) of other investments not otherwise defined in the taxonomy. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 12 -URI https://asc.fasb.org/extlink&oid=126954810&loc=d3e3179-108585 + Details
Name: | us-gaap_ProceedsFromSaleAndMaturityOfOtherInvestments
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The cash inflow from the sale of long-lived, physical assets that are used in the normal conduct of business to produce goods and services and not intended for resale. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 12 -Subparagraph (c) -URI https://asc.fasb.org/extlink&oid=126954810&loc=d3e3179-108585 + Details
Name: | us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of cash outflow for payment of an obligation from a lender, including but not limited to, letter of credit, standby letter of credit and revolving credit arrangements. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 15 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=126954810&loc=d3e3291-108585 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 235 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.4-08(f)) -URI https://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690 + Details
Name: | us-gaap_RepaymentsOfLinesOfCredit
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of cash outflow for debt, mandatory redeemable security, and principal payment for finance lease obligation. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 15 -Subparagraph (a),(b) -URI https://asc.fasb.org/extlink&oid=126954810&loc=d3e3291-108585 + Details
Name: | us-gaap_RepaymentsOfLongTermDebtAndCapitalSecurities
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of noncash expense for share-based payment arrangement. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 28 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=126954810&loc=d3e3602-108585 + Details
Name: | us-gaap_ShareBasedCompensation
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Details
Name: | srt_RestatementAxis=srt_ScenarioPreviouslyReportedMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RestatementAxis=sanm_InvestigationAdjustmentsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RestatementAxis=sanm_RevisionOfPeriodOtherAdjustmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |