XML 46 R31.htm IDEA: XBRL DOCUMENT
v3.8.0.1

Marketable Securities (Tables) | 12 Months Ended
--- | ---
Dec. 31, 2017
Marketable Securities [Abstract] |
Summary of marketable securities |
|  |  | December 31, |
|  |  | 2016 |  |  | 2017 |
| Fair value through profit or loss (1) |  | $ | - |  |  | $ | 1,209 |
| Available-for-sale |  |  | 12,506 |  |  |  | 12,929 |
|  |  | $ | 12,506 |  |  | $ | 14,138 |
(1) The Group recognized trading gains in the amount of $ 10 during the year ended December 31, 2017.
Summary of marketable securities classified as available-for-sale |
|  |  | December 31, |
|  |  | 2016 |  |  | 2017 |
|  |  | Amortized cost |  |  | Unrealized losses |  |  | Unrealized gains |  |  | Market value |  |  | Amortized cost |  |  | Unrealized losses |  |  | Unrealized gains |  |  | Market value |
| Available-for-sale: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
| Corporate bonds |  | $ | 12,348 |  |  | $ | (72 | ) |  | $ | - |  |  | $ | 12,276 |  |  | $ | 12,987 |  |  | $ | (58 | ) |  | $ | - |  |  | $ | 12,929 |
| Equity funds |  |  | 118 |  |  |  | - |  |  |  | 112 |  |  |  | 230 |  |  |  | - |  |  |  | - |  |  |  | - |  |  |  | - |
| Total available-for-sale marketable securities |  | $ | 12,466 |  |  | $ | (72 | ) |  | $ | 112 |  |  | $ | 12,506 |  |  | $ | 12,987 |  |  | $ | (58 | ) |  | $ | - |  |  | $ | 12,929 |
Schedule of marketable securities with contractual maturities |
|  |  | Amortized |  |  | Unrealized gains (losses) |  |  | Market |
|  |  | cost |  |  | Gains |  |  | Losses |  |  | value |
| Due within one year |  | $ | 4,045 |  |  | $ | - |  |  | $ | (5 | ) |  | $ | 4,040 |
| Due after one year through three years |  | $ | 8,942 |  |  | $ | - |  |  | $ | (53 | ) |  | $ | 8,889 |
| Total |  | $ | 12,987 |  |  | $ | - |  |  | $ | (58 | ) |  | $ | 12,929 |
Schedule of changes in other comprehensive income of available for sale securities | The following is the change in the other comprehensive income of available-for-sale securities during 2016:
|  |  | Other comprehensive income (loss) |
| Other comprehensive income from available-for-sale securities as of January 1, 2016 |  | $ | 35 |
| Losses reclassified into earnings from marketable securities |  |  | 16 |
| Unrealized losses from available-for-sale securities |  |  | (11 | )
| Other comprehensive income from available-for-sale securities as of December 31, 2016 |  | $ | 40 |
The following is the change in the other comprehensive income of available-for-sale securities during 2017:
|  |  | 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 | )

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 Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 45 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=82896770&loc=d3e26626-111562 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03.4) -URI http://asc.fasb.org/extlink&oid=6876686&loc=d3e534808-122878 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 5 -Subparagraph (d) -URI http://asc.fasb.org/extlink&oid=82897076&loc=d3e27232-111563 Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 45 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=82896770&loc=d3e26610-111562 Reference 5: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=82897076&loc=d3e27161-111563 Reference 6: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.2,12) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 + 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