XML 49 R33.htm IDEA: XBRL DOCUMENT
v3.19.1

Marketable Securities (Tables) | 12 Months Ended
--- | ---
Dec. 31, 2018
Investments, Debt and Equity Securities [Abstract] |
Summary of marketable securities |
|  | December 31, |
|  | 2017 |  |  | 2018 |
Fair value through profit or loss (1) |  | $ | 1,209 |  |  | $ | 1,156 |
Available-for-sale |  |  | 12,929 |  |  |  | 8,757 |
|  | $ | 14,138 |  |  | $ | 9,913 |
(1) | The Group recognized trading gains in the amount of $ 53 during the year ended December 31, 2018.
Summary of marketable securities classified as available-for-sale |
|  | December 31, |
|  | 2017 |  |  | 2018 |
|  | Amortized cost |  |  | Unrealized losses |  |  | Unrealized gains |  |  | Market value |  |  | Amortized cost |  |  | Unrealized losses |  |  | Unrealized gains |  |  | Market value |
Available-for-sale: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Corporate bonds |  | $ | 12,987 |  |  | $ | (58 | ) |  | $ | - |  |  | $ | 12,929 |  |  | $ | 8,851 |  |  | $ | (94 | ) |  | $ | - |  |  | $ | 8,757 |
Schedule of marketable securities with contractual maturities |
|  | Amortized |  |  | Unrealized gains (losses) |  |  | Market |
|  | cost |  |  | Gains |  |  | Losses |  |  | value |
Due within one year |  | $ | 3,326 |  |  | $ | - |  |  | $ | (21 | ) |  | $ | 3,305 |
Due after one year through three years |  | $ | 5,525 |  |  | $ | - |  |  | $ | (73 | ) |  | $ | 5,452 |
Total |  | $ | 8,851 |  |  | $ | - |  |  | $ | (94 | ) |  | $ | 8,757 |
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, 2017 |  | $ | 40 |
Gains reclassified into earnings from marketable securities |  |  | (94 | )
Unrealized losses from available-for-sale securities |  |  | (4 | )
Other comprehensive loss from available-for-sale securities as of December 31, 2017 |  | $ | (58 | )
|  | Other comprehensive loss |
Other comprehensive loss from available-for-sale securities as of January 1, 2018 |  | $ | (58 | )
Unrealized losses from available-for-sale securities |  |  | (36 | )
Other comprehensive loss from available-for-sale securities as of December 31, 2018 |  | $ | (94 | )

X
- Definition The tabular disclosure of changes in the other comprehensive. + References No definition available. + Details
Name: | mgic_ScheduleOfChangesInOtherComprehensiveIncomeOfAvailableForSaleSecuritiesTableTextBlock
Namespace Prefix: | mgic_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of maturities of an entity's investments as well as any other information pertinent to the investments. + References No definition available. + Details
Name: | us-gaap_InvestmentsClassifiedByContractualMaturityDateTableTextBlock
Namespace Prefix: | us-gaap_
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

X
- Definition Tabular disclosure of the reconciliation of available-for-sale securities from cost basis to fair value. + References No definition available. + Details
Name: | us-gaap_ScheduleOfAvailableForSaleSecuritiesReconciliationTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration