@font-face {
  font-family: "rubik";
  src: url("/wp-includes/fonts/Rubik-VariableFont_wght.ttf");
}

body {
  font-family: "rubik", arial;
  margin: 0;
}

#bondSearchResult {
  margin-left: 30px !important;
}

.search-results-container {
  background-color: white;
  padding-inline-start: 0px;
  z-index: 1;
  margin: 0;
  position: absolute;
  /* border: 1px solid; */
  top: 29px;
  width: 245px;
  max-height: 300px;
  overflow-y: hidden;
  overflow-x: hidden;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: "rubik", Arial, sans-serif !important;
  max-height: 450px;
  cursor: default;
  list-style: none;
  margin: 0;
  outline: 0;
  background: #ffffff;
  color: #333333;
  /* border: 1px solid #c5c5c5; */
  border: 2px solid #00367c;
  border-radius: 5px;
  display: none;
}

.search-results-container li {
  padding: 2px 0;
  list-style-type: none;
}

.search-results-container li:nth-child(n + 11) {
  display: none;
}

.search-results-container li {
  font-size: 14px;
  display: block;
  padding: 2px 0;
  background-color: white;
  cursor: pointer;
}

.search-results-container li:hover , li.focused {
  /* background-color: #3472a7d1; */
  background-color: #e6ebf2;
  color: #00285b;
}

.search-bonds::placeholder {
  font-weight: 350;
  color: #3472a7;
}

.search-bonds:not(:focus) + ul:not(:focus) + li:not(:focus) {
  visibility: hidden;
}

.search-bonds:focus + ul,
.search-bonds:focus + li {
  visibility: visible;
}

/* .search-results-container {
  max-height: 100px;
  overflow-y: auto;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.search-results-container:has(li) {
  border: solid 2px #333333;
  list-style: none;
}

.search-result-list-item {
  align-self: center;
}

.search-result-list-item:hover {
  background-color: #7da7cc;
  cursor: pointer;
} */
.search-bonds {
  font-family: "Rubik", sans-serif;
  padding-left: 5px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" ><path d="M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z" fill="%237da7cc"/></svg>')
    no-repeat;
  /* background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" transform="rotate(90)"><path d="M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z" fill="%237da7cc"/></svg>') no-repeat; */
  background-size: 16px 16px;
  background-position: 50px center;

  text-align: center;
  padding-right: 0;
  box-sizing: border-box;
  height: 30px;
  width: 250px;
  background-color: white;
  border-radius: 3px;
  /* border: 1px solid #7da7cc; */
  border: 2px solid #00367c;
  border-radius: 5px;
}

.reset-btn {
  cursor: pointer;
}

.hidden-row {
  display: none;
}

.bond-reports,
.short-reports {
  font-size: 14px;
  text-align: center;
  margin: 0px auto;
}

h1 {
  text-align: center;
}

table > * {
  font-size: 14px;
}

th,
td {
  width: 9%;
}

#short-results {
  list-style-type: none;
  margin: 0px;
  padding: 0px;
  overflow-y: hidden;
  overflow-x: hidden;
}

#bond-results {
  list-style-type: none;
  margin: 0px;
  padding: 0px;
  overflow-x: hidden;
}

.link-info {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  width: 350px;
  display: block;
}

#title-results {
  list-style-type: none;
  margin: 0px 0px 5px 0px;
  padding: 0px;
  display: flex;
  align-items: center;
  color: #01549d;
  justify-content: space-around;
}

#display-results {
  list-style-type: none;
  margin: 0px 0px 5px 0px;
  padding: 0px;
  position: relative;
}

#display-results > li {
  display: inline-block;
  box-sizing: border-box;
  padding: 5px;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  direction: rtl;
}

/*
.bond-val {
  list-style-type: none;
      padding-inline-start: 0px;
  text-align: center;
  direction: ltr;
  margin:0;
}
*/
.bond-val {
  list-style-type: none;
  padding-inline-start: 0;
  text-align: center;
  direction: ltr;
  margin: 0;
  display: flex;
  /* Use flexbox for centering */
  justify-content: center;
  /* Center content horizontally */
  align-items: center;
  /* Center content vertically */
  gap: 5px;
  /* Adjust spacing between elements */
}

#world-content td {
  height: 25px;
}

#world-content p {
  margin: 0;
  margin-right: 5px;
}

.green {
  color: #008000;
  /*#239B56*/
  /* font-weight: bold; */
}

.red {
  color: #ff0000;
  /*CB4335*/
  /* font-weight: bold; */
}

.bond-val > li:nth-child(1) {
  /* font-size: .8em; */
  font-size: 14px;
}

.bond-content {
  list-style-type: none;
  margin: 5px;
  padding: 5px;
  font-size: 14px;
  text-align: center;
  width: 100%;
  background-color: #ffebcd80;
  display: flex;
  align-items: center;
}

.shorts-content {
  list-style-type: none;
  margin-bottom: 5px;
  padding: 0px;
  font-size: 14px;
  text-align: center;
  width: 100%;
  background-color: #ffebcd80;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

li {
  list-style-type: none;
}

.time-content {
  list-style-type: none;
  padding: 15px 0px 10px 0px;
}

.time-content > span {
  background-color: #242424;
  color: white;
  font-size: 0.8em;
  padding: 5px;
  border-radius: 3px;
}

.bond-title,
.short-title {
  font-size: 14px;
  padding: 10px;
  font-weight: bold;
  text-align: center;
  width: 100%;
  background-color: #e3f0ff80;
  color: #01549d;
  position: relative;
}

.bond-title {
  padding: 0;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 2px 0;
}

.short-title > li {
  display: inline-block;
  box-sizing: border-box;
  width: 9%;
  padding: 2px;
  text-align: center;
  vertical-align: middle;
  direction: ltr;
  display: flex;
  align-items: center;
  justify-content: center;
}

.short-title > li:first-child,
.shorts-content > li:first-child {
  padding: 2px 0px;
  width: 15%;
}

.shorts-content > li {
  display: inline-block;
  box-sizing: border-box;
  width: 10%;
  padding: 7px;
  text-align: center;
  vertical-align: middle;
  direction: ltr;
}

.bond-name {
  width: 30%;
  padding-left: 5px;
  text-align: right;

  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  width: 195px;
  display: block;
}

.bond-report,
.short-report {
  display: inline-block;
  width: 55%;
  text-align: right;
}

.bond-title > .bond-report {
  text-align: center;
}

.bond-tab {
  list-style-type: none;
  cursor: pointer;
  margin: 0;
  padding-inline-start: 0px;
  white-space: nowrap;
  width: 100%;
}

.bond-tab > li {
  font-size: 16px;
  display: inline-block;
  padding: 10px;
  margin: 5px 0px 0px 5px;
  background-color: silver;
}

/* tr:nth-child(odd) td:not(:first-child) {
  background: #ffebcd80;
} */

#short-results::-webkit-scrollbar-track {
  background-color: transparent;
}

#short-results::-webkit-scrollbar {
  width: 5px;
  background-color: transparent;
}

#short-results::-webkit-scrollbar-thumb {
  background-color: #476b6b;
}

#bond-results::-webkit-scrollbar-track {
  background-color: transparent;
}

#bond-results::-webkit-scrollbar {
  width: 5px;
  background-color: transparent;
}

#bond-results::-webkit-scrollbar-thumb {
  background-color: #476b6b;
}

.read-more-icon {
  height: 12px;
}

.bond-full-page-link {
  position: fixed;
  left: 0;
}

.arrows {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.countries {
  font-weight: bold;
}

.bond-title li:last-child,
.bond-content li:last-child {
  width: 179px;
  text-align: start;
}

.bond-title li:last-child {
  padding-right: 20px;
}

.name-field {
  cursor: pointer;
  height: 32px;
  width: 15%;
}

#shorts-table {
  position: relative;
  width: 100%;
}

/* #shorts-table-body tr:nth-child(odd) {
  background: #ffebcd80;
} */

.shorts-thead-container {
  display: flex;
  direction: ltr;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

#my-stocks-bag-and-bursting-messages {
  display: flex;
  flex-direction: column;
  justify-content: start;
  gap: 23px;
  position: relative;
  top: 32px !important;
  /* transform: translateX(-34px); */
  /* width: 25%; */
}

#container-rt-bag-interest {
  /* display: flex;
    flex-direction: row;
    justify-content: space-between; */
  display: flex;
  flex-direction: row;
  justify-content: center;
  /* width: 812px; */
}

#bond-display-container {
  width: 100%;
  /*100%*/
}

.hide-element {
  display: none;
}

#reset-button-rt-bonds {
  cursor: pointer;
  position: relative;
  top: 7px;
}

#chosen-bond-graph {
  width: 800px;
  background-image: url("/wp-content/uploads/2023/08/weinvest-10.png");
  background-size: 100% 89%;
  background-repeat: no-repeat;
}

#buttons-to-filter-by-time {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 2px;
}

.graph-time-btn,
.graph-type {
  /* background-color: #fff9f4; */
  /* border: 1px solid #97133f; */
  cursor: pointer;
  color: #3199f4;
  border-radius: 5px;
  box-shadow: 0 2px 4px gray;
  background: #fff;
  border: none;
  font-size: 13px;
  width: 68px;
  height: 20px;
  margin: 6px;
  padding: 1px 6px;
  text-wrap-mode: nowrap;
}

.graph-time-btn.active,
.graph-type.active {
  /* background-color: #97133f;
  color: white; */
  background-color: #3199f4;
  color: white;
}

.disable-time-btn {
  background-color: lightgray;
  cursor: default;
}

#chart-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
}

#search-bonds-realtime {
  font-family: "Rubik", sans-serif;
  padding-left: 5px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" ><path d="M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z" fill="%237da7cc"/></svg>')
    no-repeat;
  background-size: 16px 16px;
  background-position: 50px center;
  text-align: center;
  padding-right: 0;
  box-sizing: border-box;
  height: 30px;
  width: 250px;
  background-color: white;
  border-radius: 3px;
  border: 1px solid #7da7cc;
}

#searchResultsBonds {
  background-color: white;
  padding-inline-start: 0px;
  z-index: 1;
  margin: 0;
  position: absolute;
  /* border: 1px solid; */
  top: 35px;
  width: 245px;
  max-height: 300px;
  overflow-y: hidden;
  overflow-x: hidden;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: "rubik", Arial, sans-serif !important;
  max-height: 450px;
  cursor: default;
  list-style: none;
  margin: 0;
  outline: 0;
  background: #ffffff;
  color: #333333;
  border: 1px solid #c5c5c5;
  display: none;
}

#searchResultsBonds li {
  padding: 2px 0;
  list-style-type: none;
}

#searchResultsBonds li:nth-child(n + 11) {
  display: none;
}

#searchResultsBonds li a {
  font-size: 14px;
  display: block;
  padding: 2px 0;
  background-color: white;
  cursor: pointer;
}

#searchResultsBonds li a:hover {
  /* background-color: #3472a7d1; */
  background-color: #e6ebf2;
  color: #00285b;
}

.tooltip-window {
  height: fit-content;
  width: 100px;
}

.tooltip-date {
  background-color: #eceff1;
  text-align: right;
  margin-top: 0;
  border-bottom: 1px solid #ddd;
}

.tooltip-value {
  text-align: right;
  padding-right: 10px;
}

@media only screen and (max-width: 830px) {
  .bond-title li:last-child {
    padding-right: 100px;
  }
}

@media only screen and (max-width: 600px) {
  #short-results,
  #bond-results {
    overflow-y: hidden;
  }

  .link-info {
    width: 130px;
  }

  #title-results li:nth-child(7),
  #title-results li:nth-child(8),
  .shorts-content li:nth-child(7),
  .shorts-content li:nth-child(8) {
    display: none;
  }

  #short-results {
    height: fit-content;
  }

  .bond-title li:last-child {
    padding-right: 0;
  }

  .bond-title li:last-child,
  .bond-report {
    text-align: center;
  }

  .short-reports {
    font-size: 14px;
    text-align: center;
    margin: 0px auto;
    overflow-x: scroll;
  }

  #title-results,
  #short-results {
    width: 700px;
  }

  .short-title li:first-child {
    position: sticky;
    right: 0;
    background: #f1f7ff;
  }

  #short-results .name-field {
    position: sticky;
    right: 0;
    background: #f1f7ff;
  }

  .name-field {
    height: 45px;
  }

  #short-results {
    overflow-x: scroll;
  }

  #shorts-table {
    /* min-width: 700px; */
    width: 812px;
  }

  .bond-table th:first-child,
  .bond-table td:first-child {
    position: sticky;
    right: 0;
    background-color: #f1f7ff;
  }
}

.bond-container {
  display: flex;
  justify-content: center;
  /* Centers the whole container horizontally */
  align-items: center;
  gap: 10px;
  /* Controls spacing between the values and the | */
  direction: ltr;
  height: 30px;
}

.bond-left {
  flex: 1;
  /* Distributes equal space for both sides */
  text-align: right;
  /* Aligns the left value */
}

.bond-right {
  flex: 1;
  /* Distributes equal space for both sides */
  text-align: left;
  /* Aligns the left value */
}

.bond-separator {
  flex: 0;
  /* Keeps the | symbol in the center */
  width: 20px;
  /* Adjust the width if needed for a consistent look */
  text-align: center;
}

.second-table {
  padding-top: 10px;
}

.graph-row {
  background-color: white !important;
}

/* New Design */
#shorts-table,
.bond-table {
  border-collapse: collapse;
  border: 2px solid #d9d9d9;
}

#shorts-table-head,
.bond-table thead {
  border-bottom: 2px solid #d9d9d9;
}

#shorts-table-body tr,
.bond-table tr {
  border-bottom: 1px solid #d9d9d9;
  height: 34px;
}

#shorts-table-head tr th:first-child,
#shorts-table-body tr td:first-child {
  /* position: sticky;
  right: -2px;
  background-color: #f1f7ff; */
}

#shorts-table-body tr:hover {
  background-color: #e9e9e9;
}

.name-link {
  text-decoration: none;
  color: #000;
}

.bond-country-title {
  border: 2px solid #d9d9d9;
  text-align: center;
}

.bond-table > tbody > tr:hover {
  background-color: #e9e9e9;
}

#shorts-table-head > tr > th:nth-child(1) {
  /* padding-right: 8%; */
}

.table-head {
  /* padding-right: 3%; */
}

.arrow-component-container {
  margin: auto;
}

th:has(#dropDownBar) {
  padding: 0;
}

.logo-image {
  opacity: 1;
  position: absolute;
  width: 17%;
  left: 80%;
  bottom: 28%;
  z-index: 100;
}

#rt-graph-buttons-container {
  box-shadow: 0 2px 4px #c9cfe0;
  border-radius: 5px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  width: 75%;
}

#shorts-table-container {
  display: contents;
}

.mobile-show {
  display: none;
}

.table-scroll-wraper {
  width: 100%;
  display: flex;
  height: 718px;
}
.table-scroll-wraper.section {
  height: fit-content;
}

@media (max-width: 768px) {
  #my-stocks-bag-and-bursting-messages {
    display: none;
  }

  #bond-display-container {
    align-items: flex-start !important;
  }

  /* 
    .mobile-show {
        display: flex;
        width: 400px;
        height: 400px;
    } */

  .table-scroll-wraper {
    width: 100%;
    height: 100%;
    overflow-x: scroll;
    display: block;
  }

  .short-reports {
    overflow-x: hidden;
  }

  #rt-graph-buttons-container {
    box-shadow: none;
    overflow-x: scroll;
    width: 100%;
  }
  .mobile-show {
    display: block;
    width: 100%;
  }
  #shorts-table-head tr th:first-child,
  #shorts-table-body tr td:first-child {
    position: sticky;
    right: -2px;
    background-color: #f1f7ff;
  }

  #graph-header {
    font-weight: bold;
    font-size: 16px;
    position: absolute;
    top: 4px;
  }
}
