XML 78 R63.htm IDEA: XBRL DOCUMENT
v3.21.1

Marketable Securities (Details) - Schedule of changes in other comprehensive income of available for sale securities - Other Comprehensive Income (Loss) [Member] - USD ($) $ in Thousands | 12 Months Ended
--- | ---
Dec. 31, 2020 | Dec. 31, 2019
Marketable Securities (Details) - Schedule of changes in other comprehensive income of available for sale securities [Line Items] |  |
Other comprehensive income from available-for-sale securities, Beginning | $ 1 | $ (94)
Unrealized gain(loss) from available-for-sale securities | (1) | 95
Other comprehensive income/loss from available-for-sale securities, Ending |  | $ 1

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

X
- Definition Other comprehensive income (loss) unrealized gain (loss) from available for sale securities. + References No definition available. + Details
Name: | mgic_OtherComprehensivecomeLossUnrealizedGainLossFromAvailableForSaleSecurities
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=121641772&loc=d3e681-108580 + Details
Name: | us-gaap_AccumulatedOtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Details
Name: | us-gaap_OtherComprehensiveIncomeLocationAxis=us-gaap_OtherComprehensiveIncomeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |