XML 107 R59.htm IDEA: XBRL DOCUMENT
v3.20.1

Marketable Securities (Details 3) - USD ($) $ in Thousands | 12 Months Ended
--- | ---
Dec. 31, 2019 | Dec. 31, 2018
Investments, Debt and Equity Securities [Abstract] |  |
Other comprehensive income from available-for-sale securities, Beginning | $ (94) | $ (58)
Unrealized losses from available-for-sale securities | 95 | (36)
Other comprehensive income/loss from available-for-sale securities, Ending | $ 1 | $ (94)

X
- Definition Other comprehensive income (loss) unrealized gain (loss) from available for sale securities. + References No definition available. + Details
Name: | mgic_OtherComprehensiveIncomeLossUnrealizedGainLossFromAvailableForSaleSecurities
Namespace Prefix: | mgic_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount, after tax, of accumulated unrealized gain (loss) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale). + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 220 -SubTopic 10 -Section 45 -Paragraph 14 -URI http://asc.fasb.org/extlink&oid=118930883&loc=d3e681-108580 + Details
Name: | us-gaap_AccumulatedOtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

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