XML 117 R104.htm IDEA: XBRL DOCUMENT
v3.22.1

Selected Statements of Income Data (Details) - Schedule of financial income (expenses), net - USD ($) $ in Thousands | 12 Months Ended
--- | ---
Dec. 31, 2021 | Dec. 31, 2020 | Dec. 31, 2019
Schedule of financial income (expenses), net [Abstract] |  |  |
Bank charges and interest on loans offset by interest from short term deposits | $ (844) | $ (614) | $ (374)
Interest income from marketable securities, net of amortization of premium on marketable securities |  | 100 | 212
Loss arising from foreign currency translation and other | (2,311) | (403) | (1,007)
Financial expenses, net | $ (3,155) | $ (917) | $ (1,169)

X
- Definition The amount of financial income (expense), net. + References No definition available. + Details
Name: | mgic_FinancialExpenseIncomeNet
Namespace Prefix: | mgic_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Interest income from marketable securities net of amortization of premium. + References No definition available. + Details
Name: | mgic_InterestIncomeFromMarketableSecuritiesNetOfAmortizationOfPremiumOnMarketableSecurities
Namespace Prefix: | mgic_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

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

X
- Definition The net amount of operating interest income (expense). + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 220 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-04.10) -URI https://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260 + Details
Name: | us-gaap_InterestIncomeExpenseNet
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount before tax and reclassification adjustments of gain (loss) on foreign currency translation adjustments, foreign currency transactions designated and effective as economic hedges of a net investment in a foreign entity and intra-entity foreign currency transactions that are of a long-term-investment nature. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 830 -SubTopic 10 -Section 45 -Paragraph 9 -URI https://asc.fasb.org/extlink&oid=126980362&loc=d3e28129-110885 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 830 -SubTopic 30 -Section 45 -Paragraph 12 -URI https://asc.fasb.org/extlink&oid=118261656&loc=d3e32022-110900 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 220 -SubTopic 10 -Section 45 -Paragraph 11 -URI https://asc.fasb.org/extlink&oid=126968391&loc=d3e637-108580 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 220 -SubTopic 10 -Section 45 -Paragraph 10A -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=126968391&loc=SL7669646-108580 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 830 -SubTopic 20 -Section 35 -Paragraph 3 -URI https://asc.fasb.org/extlink&oid=123602790&loc=d3e30304-110892 + Details
Name: | us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossBeforeReclassificationAndTax
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration