@import url("//fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap");
@import url("//fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap");

body {
    margin: 0px;
}

/*************************************** Start of: Basic setting to overvwrite the tool ****************************************/

body,
.data-button,
.tabs li,
.tabs:after,
.tabs:after,
.page-font-style,
input.textbox-base,
.main-heading {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    color: #394049;
}

body.ar-ae,
body.ar-ae .data-button,
body.ar-ae .tabs li,
body.ar-ae .tabs:after,
body.ar-ae .tabs:after,
body.ar-ae .page-font-style,
body.ar-ae input.textbox-base,
body.ar-ae .main-heading {
    font-family: 'Cairo', sans-serif;
}

.dividend-checked {
    height: 17px;
}

.hyperlink:link,
.disclaimer-box a:link,
.cookies-box a:link,
.hyperlink:visited,
.disclaimer-box a:visited,
.cookies-box a:visited {
    color: #394049;

    font-weight: normal;
    text-decoration: none;
    font-style: none;
}

.hyperlink:active,
.disclaimer-box a:active,
.cookies-box a:active,
.hyperlink:hover,
.disclaimer-box a:hover,
.cookies-box a:hover {
    color: #394049;

    font-weight: none;
    text-decoration: none;
    font-style: none;
}

@media (max-width: 480px) {
    .data-button {
        float: right !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 320px) {

    body.fi-fi .data-button,
    body.fi-fi .data-button-separated {
        float: right !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 568px) {
    .data-button {
        float: right !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 568px) {

    .end-investment,
    .data-button-separated {
        margin-left: 0 !important;
    }
}

/*************************************** End of: Basic setting to overvwrite the tool ****************************************/

.wrapper {
    margin: 0px auto;
    max-width: 805px;
    width: auto;
}

.main-heading {
    line-height: normal;
    margin: 0px;
    padding: 0px;

    font-family: inherit;
    font-size: 1.25em !important;
    font-weight: bold;
    color: #394049 !important;

    padding-top: 1.0em;
    padding-bottom: 1.0em;
    display: none;
}

.download-data-button,
.data-button:active,
.data-button {
    height: auto;
    line-height: normal;
    margin: 0px;
    font-family: inherit;
    font-size: 0.85em;
    font-weight: 600;
    color: #FFFFFF !important;
    text-transform: uppercase;
    padding: 10px 10px;
    border: 0em solid #FFFFFF;
    border-radius: 0.0em 0.0em 0.0em 0.0em;
    background: #015B96;
    letter-spacing: 3px;
    min-width: 144px;
    color: #FFFFFF !important;
    transition: background 0.5s, color 0.5s, border 0.5s;
}

.download-data-button td {
    color: #FFFFFF !important;
    transition: background 0.5s, color 0.5s, border 0.5s;
}

.download-data-button:hover,
.data-button:hover {
    background: #015B96;
    color: #FFFFFF !important;
    border-color: #FFFFFF;
}

.download-data-button:hover td {
    color: #FFFFFF !important;
}

.download-data-button img {
    display: none;
}

.footer {
    padding-top: 1em;
    font-size: 12px;
}


/*************************************** Start of: Selection ****************************************/

.parameter-item-label {
    margin-right: 3em;
    width: 13em !important;
}

.tab-content {
    padding-top: 1em;
}

.parameter-item {
    padding-top: 0.5em;
    line-height: 1.5em;
}

.parameter-item td {
    vertical-align: middle;
}

.date-img {
    line-height: auto;
    height: 16px;
    display: inline-block;
}

.datefrom-input,
.dateto-input,
.value-input {
    line-height: 1.5em !important;
    height: 2.5em !important;
    padding: 5px;
    color: #31363e;
    border: 1px solid #767676;

}

.ac_input,
.datefrom-input,
.dateto-input,
.value-input {
    min-width: 9em !important;
    box-sizing: border-box;
    font-size: 16px;

}

.currency-selection {
    margin-left: 0.5em;
}

/*************************************** Start of: Currency Selection ****************************************/

.ac_input {
    border: 1px solid #767676;
    height: 2.5em;
    width: 15.5em !important;
}

.dropdown-item {
    width: auto !important;
    box-sizing: border-box;
}

.dropdown-item-text td:first-child {
    width: 100% !important;
}

.dropdown-item-text .flags {
    padding-right: 5px;
}

.ac-arrow,
.arrow-wrapper,
.ac-arrow button,
.dropdown-item-table {
    line-height: 1.5em !important;
    height: 2.5em !important;
    box-sizing: border-box;
}

.dropdown-item-table td:last-child {
    width: 1.5em !important;
}

.arrow-wrapper {
    text-align: center;
}

.ac_input_active .arrow-wrapper,
.arrow-wrapper:hover {
    border-left: 0.08em solid #CCCCCC;
    background: #DBD2D5;
    background: linear-gradient(#DBD2D5, #E6E6E6);
}

.ac-arrow {
    display: inline-block;
    background: transparent;

    position: relative;
    top: 0px;
    left: 0px;

    width: 1em;
}

.ac-arrow:before {
    content: "";
    width: 0;
    height: 0;

    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -0.35em;
    margin-top: -0.35em;

    border-left: 0.3em solid transparent;
    border-right: 0.3em solid transparent;
    border-top: 0.7em solid #394049;
}

.ac_odd,
.ac_even {
    transition: background 0.3s, border 0.3s;
}

.ac_over {
    background: #DBD2D5;
    color: #394049;
    border-color: #CCCCCC;
    border-width: 0.08em;
}

.ac_results {
    border: 0.08em solid #CCCCCC;
    border-top: 0;
    box-shadow: 1px 1px 3px #DBD2D5;
}

.local-currency {
    width: 100% !important;
    line-height: 1em;
    height: auto;
    padding-left: 0.16em;

    font-size: 16px;
}

.dropdown-name {
    width: 100% !important;

    font-size: 16px;
}

.ac_results li {
    margin-bottom: 0em;
    line-height: normal;
    height: auto;
}

.ac_results li table,
.ac_results li table tr td:first-child {
    width: 100%;
}

.flags {
    padding-right: 10px;
}

/*************************************** Start of: Results Settings ****************************************/

.result-wrapper {
    margin-top: 2em;
    border: 0.08em solid #CCCCCC;
    /*Insert table-data-row-border color*/
}

.result-close-button {
    width: 2em;
    height: 2em;

    border: 0.08em solid #CCCCCC;
    /*Insert table-data-row-border color*/
    border-top: 0px;
    border-right: 0px;
    line-height: 2em;

    border-radius: 0px;
}

.block-title {
    box-sizing: border-box;

    padding-top: 0.6em;
    padding-bottom: 0.0em;

    line-height: normal;
    height: auto;
}

.block-date {
    box-sizing: border-box;

    padding-top: 0.0em;
    padding-bottom: 0.6em;
}

.data-detail {
    padding: 0em;
    margin: 0em;

    border-top: 0;
    border-bottom: 0;

    box-sizing: border-box;
}

.detail-line {
    height: auto;
    line-height: normal;
    padding-top: 13px;
    padding-bottom: 35px;
    padding-left: 0.6em;
    padding-right: 0.6em;
}

.data-block {
    margin-top: 1em;
    margin-bottom: 1em;
    box-sizing: border-box;
}

.initial-investment {
    padding: 0 !important;

    box-sizing: border-box;

    margin-right: 4%;
}

.end-investment {
    padding: 0 !important;

    box-sizing: border-box;

    margin-left: 4%;
}

.text-result {
    padding: 2em;
}

.chart-type-label {
    padding-left: 2.5em;
}

/*************************************** Start of: Table Settings ****************************************/

/*************************************** BORDER SETTINGS *************************************************/

/*** Table ***/

.table-share {
    border-collapse: collapse;
}

/*** Inner Borders ***/

.table-share-header-market,
.table-share-header-currency,
.table-share-header-date {
    border-left: 0em solid #CCCCCC;
}

.table-share-market-name,
.table-share-row-currency,
.table-share-row-date {
    border-left: 0em solid #CCCCCC;
}

.detail-line,
.table-share .border-inline {
    border-bottom: 0.08em solid #CCCCCC !important;
}


/*** Outter borders ***/

.block-title,
.table-share-header {
    border-top: 0em solid #CCCCCC;
}

.data-detail,
.block-title,
.block-date,
.table-share .checkbox-wrapper,
.table-share-header-name {
    border-left: 0em solid #CCCCCC;
}

.data-detail,
.block-title,
.block-date,
.table-share-header-date,
.table-share-row-date {
    border-right: 0em solid #CCCCCC;
}

.end-details > .detail-line + .detail-line + .detail-line + .detail-line + .detail-line,
.discount-info + .detail-line,
.table-share tr:last-child .border-inline {
    border-bottom: 0em solid #CCCCCC;
}

/*** Header Top/Bottom Borders ***/

.table-share-header,
.block-title {
    border-top: 0em solid #6E6362;
}

.table-share-header,
.block-date {
    border-bottom: 0.08em solid #111111;
}

/*** Header Left/Right Borders ***/

.block-title,
.block-date,
.table-share-header-name {
    border-left-color: #CCCCCC;
}

.block-title,
.block-date,
.table-share-header-date {
    border-right-color: #CCCCCC;
}

@media (max-width: 548px) {

    /*** Reset the borders of the share selection table to reflect the limited table in mobile ***/

    .table-share-header-market {
        border-right: 0em solid #CCCCCC;
    }

    .table-share-market-name {
        border-right: 0em solid #CCCCCC;
    }

}

/*** Table Backgrounds ***/

/*** Head ***/

.table-share-header {
    background: #015B97;
    color: #FFFFFF;
    text-align: right;

    font-weight: bold;
    text-transform: uppercase;
}

.block-title,
.block-date,
.table-share-header-name {
    background: #015B97;
    color: #FFFFFF;
    text-align: left;

    font-weight: bold;
    text-transform: uppercase;
}

.block-title,
.block-date {
    text-align: center;
}

/*** Body ***/

.initial-details .detail-line:first-child,
.discount-info + .detail-line,
.end-details .detail-line:nth-child(odd),
.table-share .table-share-row-even {
    background: #FFFFFF !important;
}

.initial-details > .detail-line:first-child + .detail-line,
.end-details .detail-line:nth-child(even),
.table-share .table-share-row-odd {
    background: #EEEEEE !important;
}

.table-share .border-inline {
    background: transparent;
    text-align: right;
    color: #394049;

    font-weight: normal;
}

.table-share .table-share-row-name,
.table-share .checkbox-wrapper {
    background: #FFFFFF;
    text-align: left;
    color: #394049;

    font-weight: normal;
    text-transform: none;
}

.initial-details > .detail-line:first-child + .detail-line,
.data-block .initial-details .detail-line,
.data-block .end-details .detail-line {
    background: transparent;
    color: #394049;
}

.detail-label {
    font-weight: normal;
    text-transform: none;
}

/*** Various Fixes ***/

/*Fix required for single cell look*/
.checkbox-wrapper {
    border-right: 0;
}


/*fight against main css*/
.end-investment {
    border-left: 0 !important;
}

/* CHECK BOX BORDER DISABLE */
.checkbox-wrapper {
    border-right: 0;
    text-align: left !important;
    padding: 0.3em 4px 0.3em 4px !important;
}

.table-share-row-name {
    border-left: 0;
    padding-left: 0em !important;
}

/*********************************** END OF BORDER SETTINGS **********************************************/


.tabs-content-wrapper {
    margin-top: 2em;
    border-top: 0em solid #A3A3A9;
}

.table-share {
    margin-bottom: 2.0em;
}

.table-share-row-name,
.table-share-row-market-name,
.table-share-row-currency,
.table-share-row-date {
    width: 25%;
}

.table-share th,
.table-share td {
    line-height: normal;
    height: auto;
}

.table-share-header {
    padding-top: 0.6em;
    padding-bottom: 0.6em;
    padding-left: 0.6em;
    padding-right: 0.6em;
}

.table-share-row-even,
.table-share-row-odd {
    padding-top: 0.6em;
    padding-bottom: 0.6em;
    padding-left: 0.6em;
    padding-right: 0.6em;
}

.table-share-header-name {
    padding-left: 26px;
}

.table-share-row-name {
    padding-left: 0em;
}


.share-selection .table-share-header {
    width: 25%;
}

.share-selection .checkbox-wrapper {
    width: 20px;
}


/*************************************** Start of: Tab Settings ****************************************/

.tabs {
    text-align: left;
    border-bottom: 0px;
    font-size: 0px !important;

    position: relative;
    z-index: 0;
}

.tabs:after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0em;
    left: 0em;
    width: 100%;
    height: 0em;
    z-index: -1;

    border-bottom: 2px solid #ccc;
}

#LatestTradesContainer,
#TradesBrokerContainer {
    margin-top: 2em;
}

.tabs li {
    float: none;
    display: inline-block;
    margin: 0px;
    width: 50%;
}

.tabItem {
    height: auto;
    line-height: 2.5;
    margin: 0em 0em 0em 0em;
    padding:10px 20px;
    height: 40px;
    font-family: inherit;
    font-weight: bold;
    font-size: 16px;
    font-style: normal;
    text-decoration: none;
    text-transform: uppercase !important;
    border-radius: 0.0em 0.0em 0.0em 0.0em;
    border-top: 2px solid #ccc;
    border-right: 2px solid #ccc;
    border-bottom: 2px solid #ccc;
    border-left: 2px solid #ccc;
    background: #FFFFFF;
    position: relative;
    color: #AAAAAA;
    letter-spacing: 2px;
    min-width: 240px;
    transition: background 0.5s, color 0.5s, border 0.5s;
    z-index: 1;
}


.tabItem:hover,
.tabItem:active {
    background: transparent;
    color: #AAAAAA;
    position: relative;
    top: 0px;
    left: 0px;
    z-index: 1;
}

.tab-active,
.tab-active:hover {
    background: #FFFFFF;
    color: #000000;
    border-bottom: 2px solid #fff;
    position: relative;
    top: 0px;
    left: 0px;
    z-index: 1;
}

body.en-gb .tabItem:after,
body.en-gb .tabItem:before {
    content: ' ';
    position: absolute;
    top: -2px;
    right: -2px;
    border-color: transparent;
    border-style: solid;
}

body.ar-ae .tabItem:before,
body.ar-ae .tabItem:after {
    content: ' ';
    position: absolute;
    top: -2px;
    left: -2px;
    border-color: transparent;
    border-style: solid;
}

body.en-gb .tabItem:before {
    border-width: 1.4em;
    border-right-color: #ccc;
    border-top-color: #ccc;
}

body.ar-ae .tabItem:before {
    border-width: 1.7em;
    border-left-color: #ccc;
    border-top-color: #ccc;
}

body.en-gb .tabItem:after {
    border-width: 1.32em;
    border-right-color: #fff;
    border-top-color: #fff;
}

body.ar-ae .tabItem:after {
    border-width: 1.6em;
    border-left-color: #fff;
    border-top-color: #fff;
}

body.en-gb div#amountInvestedContainer .data-button-wrapper {
    max-width: 555px;
}

body.en-gb div#shareBoughtContainer .data-button-wrapper {
    max-width: 403px;
}

.block-date,
.block-title {
    font-size: 16px;
}

/*********************************** Start of Calendar settings ***************************************/

.EUCalendar-menu-yearLabel div,
.EUCalendar-title div,
.EUCalendar-dayNames div {
    text-shadow: none;
}

.EUCalendar-day-selected,
.EUCalendar-hover-date {
    background-color: #666666;
    border: none;
    color: #ffffff;

}

.EUCalendar-day-selected {
    margin: 0px;
}

.EUCalendar-day-today.EUCalendar-day-selected {
    background-color: #666666;
}


.EUCalendar {
    border: 1px solid #ccc;
    box-shadow: none;
    ms-box-shadow: none;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    text-shadow: none;
}

.EUCalendar-menu-today,
.EUCalendar-bottomBar-today {
    background-color: #015B96;
    border: 0em solid #63666A;
    color: #FFFFFF;
    text-transform: uppercase;
    font-family: inherit;
    font-size: 15px;
    border-radius: 0;
    box-shadow: none;
    transition: background 0.1s linear;
    cursor: pointer;
    letter-spacing: 3px;
}

.EUCalendar-menu-today-hover,
.EUCalendar-bottomBar-today-hover {
    background-color: #015B96;
    padding: 2px 15px;
    border-color: #63666A;
}

/*********************************** end of Calendar settings ***************************************/
/***************** START OF ARABIC *****************/
body.ar-ae .tabItem {
    text-align: right;
}

body.body-rtl .data-button {
    margin-left: 0px;
}

body.body-rtl div#amountInvestedContainer .data-button-wrapper {
    width: 523px;
}

body.body-rtl div#shareBoughtContainer .data-button-wrapper {
    width: 376px;
}

/******* COMMON *********/
body.body-rtl .result-close-button {
    border-right: 0.08em solid #CCCCCC;
}

body.body-rtl .initial-investment {
    margin-right: 0;
    margin-left: 4%;
}

body.body-rtl .end-investment {
    margin-left: 0;
    margin-right: 4%;
}

body.body-rtl .download-data-button,
body.body-rtl .data-button:active,
body.body-rtl .data-button {
    padding: 10px 7px;
}


/******* COMMON *********/
/***************** END OF ARABIC *****************/
/***************** START OF MEDIA QUERIES *****************/
@media (max-width: 663px) {

    .end-investment,
    .initial-investment {
        margin-right: 0;
    }
}

@media (max-width: 645px) {

    body.body-rtl .end-investment {
        margin-left: 0;
        margin-right: 0;
    }

    body.body-rtl .initial-investment {
        margin-right: 0;
        margin-left: 0;
    }
}

@media (max-width: 593px) {

    .end-investment,
    .initial-investment {
        margin-right: 0;
    }
}

@media (max-width: 578px) {
    .currency-selection {
        margin-left: 0;
        display: block;
        float: none;
        margin-top: 9px;
    }

    body.en-gb div#amountInvestedContainer .data-button-wrapper {
        width: 416px;
    }

    .parameter-item .by-amount-invested .amount-invested {
        float: none;
    }
}

@media (max-width: 568px) {
    body.en-gb div#amountInvestedContainer .data-button-wrapper {
        width: 367px;
    }

    body.en-gb div#shareBoughtContainer .data-button-wrapper {
        width: 367px;
    }

    body.ar-ae div#amountInvestedContainer .data-button-wrapper .data-button {
        margin-right: 369px !important;
    }

    body.body-rtl div#shareBoughtContainer .data-button-wrapper .data-button {
        margin-right: 209px !important;
    }
}

@media (max-width: 548px) {

    .table-share-row-name,
    .table-share-row-market-name,
    .table-share-row-currency,
    .table-share-row-date {
        width: inherit;
    }
}

@media (max-width: 527px) {
    .tabs:after {
        border-bottom: 0px solid #ccc;
    }

    /* body.ar-ae .tabItem:after,
    body.en-gb .tabItem:after,
    body.ar-ae .tabItem:before,
    body.en-gb .tabItem:before {
        display: none;
    } */

    .tabItem {
        width: 70%;
        min-width: 215px;
        margin: 0 auto;
    }

    .tabs li {
        margin: 2px auto;
        width: 50%;
    }

    body.ar-ae .tab-active,
    .tab-active {
        border-bottom-color: none;
    }
    body.en-gb .tabItem {
        border-right: 2px solid #ccc!important;
        text-align: center;
    }
    body.ar-ae .tabItem {
        border-left: 2px solid #ccc!important;
        text-align: center;
    }
}

@media(max-width:481px){
    body.ar-ae .tab-active,
    .tab-active {
        border-bottom-color: #CCCCCC;
    }
}

@media (max-width: 526px) {
    body.ar-ae div#amountInvestedContainer .data-button-wrapper .data-button {
        margin-right: 210px !important;
    }
}

@media (max-width: 480px) {
    .tabs li {
        display: block;
        width: unset;
    }

    body.body-rtl .tabs li {
        float: unset !important;
    }
}

@media (max-width: 374px) {
    body.en-gb div#amountInvestedContainer .data-button-wrapper {
        width: 159px;
    }
}

@media (max-width: 371px) {
    body.en-gb div#shareBoughtContainer .data-button-wrapper {
        width: 159px;
    }

    body.body-rtl div#shareBoughtContainer .data-button-wrapper .data-button {
        margin-right: 1px !important;
    }

    body.ar-ae div#amountInvestedContainer .data-button-wrapper .data-button {
        margin-right: 1px !important;
    }
}



/***************** START OF MEDIA QUERIES *****************/

/* m3 */
body.en-gb [role="shares-bought"] {
    border-right: 2px solid #ccc!important;
}

body.en-gb .tabItem {
    border-right: 0;
}

body.ar-ae .tabItem {
    border-left: 0;
}

body.ar-ae [role="shares-bought"] {
    border-left: 2px solid #ccc!important;
}
