XML 49 R34.htm IDEA: XBRL DOCUMENT
v3.21.1

Marketable Securities (Tables) | 12 Months Ended
--- | ---
Dec. 31, 2020
Investments, Debt and Equity Securities [Abstract] |
Summary of marketable securities |
|  | December 31, |
|  | 2020 |  |  | 2019 |
Fair value through profit or loss (1) |  | $ | 1,238 |  |  | $ | 1,112 |
Available-for-sale- Corporate bonds |  |  | - |  |  |  | 5,488 |
|  | $ | 1,238 |  |  | $ | 6,600 |
Schedule of changes in other comprehensive income of available for sale securities |
|  | Other comprehensive income (loss) |
Other comprehensive income from available-for-sale securities as of January 1, 2019 |  | $ | (94) |
Unrealized losses from available-for-sale securities |  |  | 95 |
Other comprehensive loss from available-for-sale securities as of December 31, 2019 |  | $ | 1 |
Unrealized gain from available-for-sale securities |  |  | (1) |
Other comprehensive income from available-for-sale securities as of December 31, 2020 |  | $ | - |

X
- References No definition available. + Details
Name: | mgic_ScheduleOfChangesInOtherComprehensiveIncomeOfAvailableForSaleSecuritiesTableTextBlock
Namespace Prefix: | mgic_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration

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

X
- Definition Tabular disclosure of marketable securities. This may consist of investments in certain debt and equity securities, short-term investments and other assets. + References No definition available. + Details
Name: | us-gaap_MarketableSecuritiesTextBlock
Namespace Prefix: | us-gaap_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration