@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/poppins/v15/pxiEyp8kv8JHgFVrFJA.ttf) format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/poppins/v15/pxiByp8kv8JHgFVrLGT9V1s.ttf) format('truetype');
}
.sgxstock {
  cursor: pointer;
}
.sgxstock:not(.init) {
  display: none !important;
}
.sgxstock .positive {
  color: #1CC700;
}
.sgxstock .negative {
  color: #EF3340;
}
.sgxstock .main {
  font-weight: 600;
  text-decoration: underline;
}
.sgxstock .main.positive:hover {
  background-color: #1CC700;
  color: #fff;
}
.sgxstock .main.negative:hover {
  background-color: #EF3340;
  color: #fff;
}
.sgxstock.sidebar {
  display: block;
  background-color: #2b2b2b;
  padding: 20px;
  margin: 2px 0 0;
  background-image: url(https://www.businesstimes.com.sg/modules/custom/bt_sgx_block/images/chevron-right.svg);
  background-position: calc(100% - 10px) 20px;
  background-repeat: no-repeat;
  background-size: 14px;
}
.sgxstock.sidebar h2 {
  font-family: "Poppins", sans-serif;
  font-weight: bold;
  font-size: 16px;
  line-height: 1.3;
  display: block;
  color: #fff;
  margin: 0;
  text-transform: capitalize;
}
.sgxstock.sidebar .stocknamecode {
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 26px;
}
.sgxstock.sidebar .last {
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  line-height: 18px;
  color: #fff;
}
.sgxstock.sidebar .last span {
  font-size: 25px;
  line-height: 37px;
}
.sgxstock.sidebar .roundedchanges {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 16px;
  color: #fff;
}
.sgxstock.sidebar .roundedchanges span {
  margin: 0 5px;
}
.sgxstock.sidebar .roundedchanges img {
  margin: 0 3px;
}
.sgx-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  width: 1000px;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  background-color: #fff;
  z-index: 1000000055;
  border: 1px solid #f2f2f2;
  border-radius: 4px;
  -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}
@media (min-width: 768px) {
  .sgx-modal {
    height: 700px;
  }
}
.sgx-modal .close {
  background-image: url(https://www.businesstimes.com.sg/modules/custom/bt_sgx_block/images/times-solid.svg);
  height: 30px;
  width: 30px;
  background-color: #000;
  opacity: .75;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 15px;
  border-radius: 100%;
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
  -webkit-transition: opacity 300ms ease;
  -o-transition: opacity 300ms ease;
  transition: opacity 300ms ease;
}

.sgx-modal .close:hover {
  opacity: 1;
}

.sgx-modal .positive {
  color: #1CC700;
}
.sgx-modal .negative {
  color: #EF3340;
}
.sgx-modal .sgx-modal-guts {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 20px;
  overflow: auto;
}
@media (min-width: 768px) {
  .sgx-modal .sgx-modal-guts {
    padding: 40px;
  }
}
.sgx-modal .sgx-modal-content .title {
  font-family: Open Sans;
  font-style: normal;
  font-weight: 600;
  font-size: 18px;
  line-height: 25px;
  letter-spacing: 0.075px;
  display: inline-block;
  border-top: 5px solid;
  margin: 0 0 10px 0;
}
.sgx-modal .sgx-modal-content .title + img {
  display: inline-block;
  vertical-align: top;
}
.sgx-modal .sgx-modal-content .header-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: baseline;
  -ms-flex-align: baseline;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid #000;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}
@media (min-width: 768px) {
  .sgx-modal .sgx-modal-content .header-wrapper {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
  }
}
.sgx-modal .sgx-modal-content .timestamp {
  font-family: Open Sans;
  font-style: normal;
  font-weight: normal;
  font-size: 14px;
  line-height: 1.5;
  text-align: right;
  color: #999999;
  margin: 10px 0;
}
.sgx-modal .sgx-modal-content .header.stock {
  font-family: Open Sans;
  font-style: normal;
  font-weight: bold;
  font-size: 26px;
  line-height: 1.5;
  letter-spacing: 0.0625px;
  color: #2B2B2B;
  text-transform: uppercase;
  white-space: nowrap;
}
@media (min-width: 768px) {
  .sgx-modal .sgx-modal-content .header.stock {
    font-size: 32px;
  }
}
.sgx-modal .sgx-modal-content .header.stock span {
  font-weight: normal;
  margin-right: 10px;
}
.sgx-modal .sgx-modal-content .numbers {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: baseline;
  -ms-flex-align: baseline;
  align-items: baseline;
  margin-left: -10px;
  margin-right: -10px;
}
@media (min-width: 768px) {
  .sgx-modal .sgx-modal-content .numbers {
    padding-left: 15px;
  }
}
.sgx-modal .sgx-modal-content .numbers > * {
  margin-left: 10px;
  margin-right: 10px;
}
.sgx-modal .sgx-modal-content .numbers img {
  margin-top: -3px;
  margin-right: 3px;
}
.sgx-modal .sgx-modal-content .last {
  font-family: "Poppins", sans-serif;
  font-style: normal;
  font-weight: normal;
  letter-spacing: 0.078125px;
  color: #000000;
  font-size: 16px;
  line-height: 1.5;
}
.sgx-modal .sgx-modal-content .last span {
  font-size: 28px;
  line-height: 1.5;
}
.sgx-modal .sgx-modal-content .changes,
.sgx-modal .sgx-modal-content .rounded {
  font-family: "Poppins", sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.sgx-modal .sgx-modal-content .graph-content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}
.sgx-modal .sgx-modal-content .graph-image {
  width: 100%;
  position: relative;
}
@media (min-width: 768px) {
  .sgx-modal .sgx-modal-content .graph-image {
    width: 60%;
  }
}
.sgx-modal .sgx-modal-content .graph-image .graph-tab > span {
  padding: 5px 10px;
  background-color: #fff;
  border: 1px solid;
  border-color: #007bad;
  color: #007bad;
  margin: 0 5px;
  cursor: pointer;
  font-size: 16px;
  display: inline-block;
  line-height: 1;
}
.sgx-modal .sgx-modal-content .graph-image .graph-tab > span.active,
.sgx-modal .sgx-modal-content .graph-image .graph-tab > span:hover {
  background-color: #007bad;
  color: #fff;
}
.sgx-modal .sgx-modal-content .graph-details {
  width: 100%;
  font-family: Open Sans;
  font-style: normal;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.04375px;
  color: #2B2B2B;
  font-weight: normal;
}
@media (min-width: 768px) {
  .sgx-modal .sgx-modal-content .graph-details {
    width: 40%;
    padding-left: 20px;
  }
}
.sgx-modal .sgx-modal-content .graph-details > div {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: nowrap;
  flex-wrap: nowrap;
  padding: 5px 0;
  border-bottom: 1px solid #f2f2f2;
}
.sgx-modal .sgx-modal-content .graph-details .text {
  width: 70%;
  font-weight: bold;
}
.sgx-modal .sgx-modal-content .graph-details .amount {
  width: 30%;
}
