body {
  font-family: rubik, "rubik", sans-serif;
}
.master-cont * {
  font-family: rubik, "rubik", sans-serif;
  /* cursor: default; */
}

#table-profit-head {
  text-align: center;
}
.master-cont body {
  margin-top: 0;
}

.master-cont .tabs,
.master-cont #trades-list {
  list-style-type: none;
  display: flex;
  justify-content: center;
}

.master-cont .tabs > li {
  margin-left: 10px;
  padding: 10px;
  /* background-color: DodgerBlue; */
  /* cursor: pointer; */
}

.master-cont #trades-list {
  direction: ltr;
}

.master-cont #trades-list > li {
  width: 100%;
  direction: rtl;
  /* background-color: #adad85; */
  /* cursor: pointer; */
}

/* #trade-disp td{
  direction: ltr;
} */

#trade-disp tr,
#trade-disp td,
#trade-disp th {
  text-align: center;
}
#trade-disp tr {
  height: 17px;
}

.master-cont #total-profit {
  display: inline-block;
  font-weight: normal;
}

.master-cont table {
  background-color: transparent;
  width: 100%;
  text-align: center;
  border-spacing: 0;
}

.master-cont tr:hover,
#history-table tbody tr:first-child:hover {
  /* background-color: #a7b6ab; */
  background-color: #e3dfdf;
}

.active-trade {
  border: 2px solid #00367c;
}

#history-table {
  table-layout: flex;
}

#history-table thead tr th {
  text-align: center;
}

#more-profits-for-month {
  width: 30%;
  align-self: center;
  cursor: pointer;
  background-color: white !important;
  border: grey solid 2px;
  color: #000;
  font-weight: normal;
}

.master-cont td {
  direction: ltr;
}

.master-cont #trade-details {
  list-style-type: none;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding-inline-start: 0px;
}

#trade-details-table {
  table-layout: fixed;
}

#trade-details-table thead tr th,
#trade-details-table tbody tr td {
  width: calc(100% / 9);
  text-align: center;
}

#trade-details-table thead tr th:nth-child(9),
#trade-details-table tbody tr td:nth-child(9) {
  width: 12% !important;
}

.master-cont #trade-details > li {
  margin-left: 10px;
  padding: 10px;
  cursor: pointer;
}

.master-cont #trade-details > li > span {
  direction: ltr;
  display: inline-block;
}

#trade-details .flex-li {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 5%;
  position: relative;
  border-radius: 25px;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 16px;
  width: 75%;
  margin-right: 78px;
}

#trade-details .flex-li::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  background: linear-gradient(90deg, #f5c250 55.4%, #00367c 100%);
  border-radius: inherit;
  mask: conic-gradient(#000 0 0) content-box exclude, conic-gradient(#000 0 0);
  pointer-events: none;
}

.master-cont .close-option {
  display: none;
}

.master-cont button {
  border-radius: 20px;
  border-width: 0px;
  background-color: #476b6b;
  color: white;
  padding: 5px 25px;
  font-size: 1em;
  font-weight: bold;
}

.master-cont .active {
  background-color: MediumSeaGreen;
}

.trade-tab-status.active {
  background-color: white;
  color: #087c32;
  /* border: MediumSeaGreen solid 2px; */
  background: linear-gradient(
    180deg,
    rgba(75, 245, 136, 0.5) 0%,
    rgba(39, 186, 92, 0.5) 100%
  );
  border-radius: 10px !important;
  padding: 2px 4px !important;
  font-weight: 700;
}

.master-cont .nonactive {
  background-color: Tomato;
}

.trade-tab-status.nonactive {
  font-weight: 700;
  border-radius: 10px !important;
  padding: 2px 4px !important;
  background: linear-gradient(
    180deg,
    rgba(243, 107, 65, 0.5) 0%,
    rgba(239, 77, 80, 0.5) 100%
  );
  color: #d91400;
}

#trades-list {
  font-size: 15px;
}
#trades-list .nonactive {
  background-color: transparent;
  color: tomato;
}

#trades-list .active {
  background-color: transparent;
  /* color: MediumSeaGreen;   */
  color: #000;
  font-weight: bold;
}

.master-cont .shadow {
  /* -moz-box-shadow:    inset 0 0 40px #333;
   -webkit-box-shadow: inset 0 0 40px #333;
   box-shadow:         inset 0 0 40px #333; */
  font-weight: bold;
  /* color: white; */
}

.master-cont #content {
  /* display: grid;
  grid-template-columns: 50% 50%;
  grid-gap: 20px; */
  margin: 0px 50px;
}

.master-cont .chart-container,
.master-cont .trade {
  border: 0px;
  text-align: center;
  padding: 10px;
  /* background-color: #e4e4e4; */
  box-sizing: border-box;
}

.master-cont #content > div:first-child {
  grid-column: 1 / span 2;
}

.master-cont #trades-list {
  max-height: 350px;
  padding-inline-start: 0px;
  overflow-x: hidden;
  overflow-y: auto;
}

.master-cont #filters > select {
  padding: 5px;
  border: 0px;
  border-radius: 5px;
}

.master-cont .container {
  display: flex;
  flex-direction: column;
  align-content: space-around;
  width: calc(100% - 270px);
}

.sidebar-trades {
  max-width: 300px;
}

.master-cont .profit-trades {
  display: flex;
  flex-direction: column;
  width: 300px;
  justify-content: flex-start;
  /* position: sticky; */
  top: 0px;
  bottom: 0px;
  border-right: 1px solid #ffffff29;
}

.master-cont .profit-trades > h3 {
  margin: 0;
  text-align: center;
  font-size: 1.6em;
}

.master-cont .profit-trades > p,
.master-cont #total-container {
  margin-top: 0;
  padding: 5px;
  text-align: center;
  font-size: 1.7em;
  border-radius: 5px;
}

.master-cont .profit-trades > p > span,
.master-cont #total-container > h2 {
  font-size: 1.7em;
  line-height: 1.4em;
}

.master-cont #total-container > h2 {
  font-size: 1.3em;
}

.master-cont .profit-trades > table {
  table-layout: fixed;
}

.master-cont .green {
  /* background-color: LightGreen; */
  color: SeaGreen;
  font-weight: bolder;
  border-radius: 4px;
}

.master-cont .red {
  /* background-color: Tan; */
  color: Tomato;
  font-weight: 550;
  border-radius: 4px;
}

.master-cont .upside-green {
  color: SeaGreen;
  font-weight: 550;
  border-radius: 4px;
}

.master-cont .upside-red {
  color: Tomato;
  font-weight: bolder;
  border-radius: 4px;
}

.master-cont .green-bg {
  color: #239b56;
  background: white;
  border: #239b56 solid 2px;
}

.master-cont .red-bg {
  background-color: #cb4335;
}

.master-cont .trade-tab {
  height: 80px;
  width: 150px;
  padding: 8px 15px 8px 8px;
  /* background-color: #dce4e4; */
  border: grey solid 2px;
}
.tabs li {
  font-weight: normal;
}

.master-cont .history-tab {
  height: 80px;
  width: 150px;
  padding: 8px 15px;
  background-color: #dce4e4;
}

.master-cont .trade-tab-status {
  border-radius: 30px 0px 0px 30px;
  height: 80px;
  width: 150px;
  padding: 8px 8px 8px 15px;
}

.master-cont {
  display: flex;
}

@media only screen and (max-width: 730px) {
  .master-cont .tabs {
    padding: 0px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    overflow-x: scroll;
  }

  .master-cont .tabs > li {
    margin: 0px;
  }

  .master-cont #content {
    grid-template-columns: 100%;
    margin: 0px;
  }

  .master-cont #content > div:first-child {
    grid-column: 1 / span 1;
  }

  .master-cont .option-more {
    display: none;
  }

  .master-cont #trades-list > li > table > thead > tr > th:nth-child(2),
  .master-cont #trades-list > li > table > thead > tr > th:nth-child(3) {
    display: none;
  }

  .master-cont #trades-list > li > table > tbody > tr > td:nth-child(2),
  .master-cont #trades-list > li > table > tbody > tr > td:nth-child(3) {
    display: none;
  }

  .master-cont .tabs > li {
    display: flex;
    width: auto;
  }

  .master-cont .trade-tab-status {
    height: auto;
    width: auto;
    border-radius: 0px;
  }

  .master-cont .trade-tab {
    height: auto;
    width: auto;
  }

  .master-cont .history-tab {
    height: auto;
    width: auto;
  }

  #trade-details .flex-li{
    width: 90%;
    margin-right: 5%;
  }
  #tabs-trades-page {
    padding-bottom: 5px;
  }
}

.green-line,
.red-line {
  color: black !important;
  position: relative;
  text-decoration: underline;
}

/* 
.green-line::after, .red-line::after{
    content: "";
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 100px;
    height: 4px;
    pointer-events: none;
  }
  

  .green-line::after{
    background-color: green;
  }
  .red-line::after{
    background-color: red;
  } */

.green-line {
  text-decoration-color: green;
}
.red-line {
  text-decoration-color: red;
}
#profit-trades-side {
  position: relative;
  top: 5px;
}

#tabs-trades-page {
  position: relative;
  top: 22px;
}

#tabs-trades-page > li .trade-tab {
  border: none;
  white-space: nowrap;
  height: fit-content;
}

.not-displayed-trade {
  border-radius: 5px;
  border: 1px solid #d9d9d9;
  box-shadow: 0px 2px 4px 0px #00000040;
}

#status-D,
#status-W,
#status-M {
  border: none;
  height: fit-content;
}

#tabD,
#tabW,
#tabM,
#tabH {
  padding: 5px;
  cursor: pointer;
  display: flex;
  width: 130px;
  justify-content: center;
  align-items: center;
  height: 30px;
  margin-left: 30px;
}

#trade-data-trades-page {
  position: relative;
  top: 29px;
}

#chart-profit-rt {
  position: relative;
  top: 31px; /*47px*/
}

#trades-list li:first-child {
  padding: 0px 0px 7px 0px;
}

#trade-disp thead tr:hover,
#trades-details-title,
#history-table thead tr:hover {
  background-color: white;
}

#trade-disp th {
  font-size: 16px;
  color: #000000;
  font-weight: 700;
  border-bottom: 3px solid #d9d9d9;
  padding: 4px 0;
}

#trade-disp table {
  border: 2px solid #d9d9d9;
  border-collapse: collapse;
}

#trade-disp table tbody tr {
  border-bottom: 2px solid #d9d9d9;
}

#trade-disp table tbody tr:hover {
  background-color: #e9e9e9;
}

#open-positions-title {
  border: 2px solid #d9d9d9;
  border-bottom: unset;
  border-radius: 4px;
  color: #087c32;
  font-size: 18.72px;
  font-weight: 700;
}

#close-positions-title {
  border: 2px solid #d9d9d9;
  border-bottom: unset;
  font-size: 18.72px;
  font-weight: 700;
  margin-top: 1.4em;
}

#trade-disp table tbody tr td {
  font-weight: 400;
  font-size: 16px;
  padding: 12px 0;
}

#trades-details-title td {
  font-weight: bold;
}

#chart-strategy-container {
  position: relative;
  top: 38px; /*85px*/
}

#tabH .history-tab {
  background-color: transparent;
  /* border: grey solid 2px; */
  height: fit-content;
}

#trade-details h2 {
  font-size: 14px;
  font-family: "rubik", arial;
  font-weight: bold;
}

#profit-graph-btns {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

#rt-graph-profit,
#daily-graph-profit {
  background-color: white;
  border-radius: 4px;
  padding: 5px;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25);
  color: #3199f4;
  border: none;
  height: 39px;
  width: 80px;
  cursor: pointer;
  margin: 10px;
}

.profit-graph-btn.active {
  background-color: #3399ff !important;
  color: white !important;
  margin: 10px;
  padding: 5px;
  height: 39px;
  width: 80px;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25);
  border: none;
}
