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.open-option,
#trade-disp tr#open-positions-table-heading-row {
  /* height: 17px; */
  grid-template-columns: 0.5fr repeat(6, 1.3fr) 2fr;
  display: grid;
  white-space: nowrap;
}

.open-option td.regular-text-size {
  color: #0f172a;
  font-size: 14px;
  font-weight: 400;
}

.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: 100%;
  align-self: center;
  cursor: pointer;
  /* background-color: white !important; */
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  /* border: grey solid 2px; */
  color: #fff;
  font-weight: normal;
  border-radius: 14px;
  width: 248px;
  height: 40px;
  margin-top: 30px;
}

.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;
}

#trades-list li {
  text-decoration: none;
}

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

#trade-details .flex-li .trade-detail-title {
  font-weight: 700;
  font-size: 14px;
  color: #4a5565;
}

#trade-details .flex-li #dest {
  font-weight: 400;
  font-size: 16px;
  color: #0f172a;
}

#trade-details .flex-li #profit.red,
#trade-details .flex-li #profit_p.red {
  color: #f54900;
  font-weight: 400;
  font-size: 16px;
}

#trade-details .flex-li #profit.green,
#trade-details .flex-li #profit_p.green {
  color: #00a63e;
  font-weight: 400;
  font-size: 16px;
}

/* #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: 4px 6px !important;
  font-weight: 700;
}

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

.trade-tab-status.nonactive {
  font-weight: 700;
  border-radius: 10px !important;
  padding: 3px 6px !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;
  background-color: #c9cfe080;
}
#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 .container #content {
  margin: 0;
}

.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;
}

#chart-strategy-container.chart-container.chart-container1.conteiner
  .chart-display
  #chart {
  height: 88% !important;
}

#page-container #tabs-trades-page.tabs {
  background: linear-gradient(
    180deg,
    rgba(0, 107, 183, 0.9) 0%,
    rgba(0, 54, 124, 0.9) 100%
  );
  padding: 4px;
  border-top-right-radius: 16px;
  border-top-left-radius: 16px;
  z-index: 1;
  /* margin-top: 3.5em; */
}

ul#tabs-trades-page::before {
  z-index: -1;
  background: rgba(255, 255, 255, 0.1);
  content: "";
  height: 92%;
  width: 46%;
  position: absolute;
  border-radius: 16px;
}

#tabD.active-trade,
#tabW.active-trade,
#tabM.active-trade,
#tabH.active-trade {
  background-color: white;
  border-radius: 14px;
  box-shadow:
    0px 4px 6px -4px rgba(0, 0, 0, 0.1),
    0px 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: none;
}

.trade-type-text {
  margin-bottom: 4px;
  color: #ffffff;
}

#tabD.active-trade .trade-tab svg,
#tabD.active-trade .trade-type-text,
#tabW.active-trade .trade-type-text,
#tabM.active-trade .trade-type-text,
#tabH.active-trade .trade-type-text,
#tabW.active-trade .trade-tab svg,
#tabM.active-trade .trade-tab svg,
#tabH.active-trade svg {
  color: #0066b7 !important;
}

#tabD .trade-tab svg,
#tabW .trade-tab svg,
#tabM .trade-tab svg,
#tabH .trade-tab svg #tabD .trade-type-text,
#tabW .trade-type-text,
#tabM .trade-type-text,
#tabH .trade-type-text,
#tabH .history-tab svg {
  color: #ffffff;
}

#tabD.not-displayed-trade,
#tabW.not-displayed-trade,
#tabM.not-displayed-trade,
#tabH.not-displayed-trade {
  border: none;
}

@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; */
}

#real-time-update {
  height: 900px !important;
}

#tabs-trades-page > li .trade-tab {
  border: none;
  white-space: nowrap;
  height: fit-content;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column-reverse;
  justify-content: center;
  align-items: center;
  gap: 0.5em;
}

.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;
  width: fit-content;
  right: -37%;
  top: -10%;
  position: relative;
}

#tabD,
#tabW,
#tabM,
#tabH {
  padding: 5px;
  cursor: pointer;
  /* display: flex; */
  width: 90px;
  /* justify-content: center;
  align-items: center; */
  height: 77px;
  margin-left: 6px;
}

#tabs-trades-page .trade-tab-status.active {
  background-color: #00c950;
  font-weight: 500;
  font-size: 10px;
}

#tabs-trades-page .trade-tab-status.nonactive {
  background-color: #fb2c36;
  font-weight: 500;
  font-size: 10px;
}

#tabs-trades-page .trade-tab-status {
  color: white;
}

#trade-data-trades-page {
  position: relative;
  padding: 0;
  /* box-shadow: 0px 25px 50px -12px rgba(0, 0, 0, 0.25); */
  box-shadow: 0px 22.5px 45px -10.8px rgba(0, 0, 0, 0.225);
}

#trade-main-data {
  display: flex;
  gap: 2em;
  justify-content: center;
}

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

#chart-profit-rt #rt-profit-graph-heading {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}

#chart-profit-rt.chart-container.chart-container2.conteiner,
#chart-strategy-container.chart-container.chart-container1.conteiner {
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  box-shadow: 0px 22.5px 45px -10.8px rgba(0, 0, 0, 0.225);
}

#chart-strategy-container.chart-container.chart-container1.conteiner {
  top: 5.5em;
  height: 23em;
}

#chart2 .apexcharts-toolbar {
  direction: ltr;
}

#chart2 .apexcharts-toolbar .apexcharts-zoomout-icon {
  margin-right: 0;
}

#chart2 .apexcharts-toolbar .apexcharts-zoomin-icon svg path,
#chart2 .apexcharts-toolbar .apexcharts-zoomout-icon svg path,
#chart2 .apexcharts-toolbar .apexcharts-pan-icon svg path,
#zoom-in-strategy-graph-custom-button svg path,
#zoom-out-strategy-graph-custom-button svg path,
#reset-strategy-graph-display-custom-icon svg path,
#strategy-graph-export-menu-options svg path {
  fill: #006bb7 !important;
  stroke: #006bb7 !important;
  transform: scale(1.3);
}

#chart2 .apexcharts-toolbar .apexcharts-reset-icon svg path {
  stroke: #006bb7 !important;
  transform: scale(1.3);
}

#chart2 .apexcharts-toolbar .apexcharts-reset-icon svg {
  position: relative;
  top: 3px;
}
#chart2 .apexcharts-toolbar .download-graph-custom-icon {
  margin-left: 5px;
}
#trades-list li:first-child {
  padding: 7px 0px 7px 0px;
}

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

#trade-disp th {
  font-size: 14px;
  /* color: #000000; */
  color: #6a7282;

  font-weight: 700;
  /* border-bottom: 3px solid #d9d9d9; */
  border-bottom: 2px solid #e5e7eb;
  padding: 15px 0;
}

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

#trade-disp .open-option {
  border-bottom: 0.67px solid #f3f4f6;
}

#trade-disp .open-option td.position-quantity,
#trade-disp .close-option td.positive-quantity,
#trade-disp .open-option td.positive-quantity,
#profit-value-this-month.profitable-month {
  color: #00a63e;
  font-size: 14px;
  font-weight: 400;
}

#wrapper-profit-this-month {
  display: flex;
  justify-content: center;
}

.profitable-month-background {
  background: linear-gradient(270deg, #ecfdf5 0%, #f0fdf4 100%);
  padding: 1em;
  border-radius: 2.23696e7px;
  word-spacing: 7px;
}
#profit-details-title {
  color: #0f172a;
  font-size: 16px;
  font-weight: 400;
  padding: 1em;
}
#month-profit .time-period-label {
  color: #364153;
  font-size: 14px;
  font-weight: 400;
  padding: 10px;
  text-align: right;
}

#month-profit tr {
  border-bottom: 0.67px solid #f3f4f6;
}

#month-profit td.upside-green {
  color: #00a63e;
  font-size: 16px;
  font-weight: 400;
}

#month-profit td.upside-red {
  color: #e7000b;
  font-size: 16px;
  font-weight: 400;
}
#trade-disp .open-option td.buy-date-small-text,
#trade-disp .close-option td.sell-date-small-text,
#trade-disp .close-option td.buy-date-small-text {
  color: #6a7282;
  font-size: 12px;
  font-weight: 400;
}

#trade-disp .open-option td.position-loss,
#trade-disp .close-option td.position-loss,
#trade-disp .open-option td.negative-quantity,
#trade-disp .close-option td.negative-quantity,
#profit-value-this-month.non-profitable-month {
  color: #e7000b;
  font-size: 16px;
  font-weight: 400;
}

#trade-disp .open-option td.position-profit,
#trade-disp .close-option td.position-profit {
  color: #00a63e;
  font-size: 16px;
  font-weight: 400;
}
/* #trade-disp table tbody tr {
  border-bottom: 2px solid #d9d9d9;
} */

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

#open-positions-title-container,
#close-positions-title-container {
  display: flex;
  gap: 1em;
  margin-bottom: 1.5em;
}

#close-positions-title-container {
  margin-top: 2em;
}

#close-positions-table tr {
  display: grid;
  grid-template-columns: 0.2fr repeat(8, 1.9fr) 2fr;
  white-space: nowrap;
}

#close-positions-table tr.close-option {
  border-bottom: 0.67px solid #f3f4f6;
}

#open-positions-title,
#close-positions-title {
  /* border: 2px solid #d9d9d9; */
  /* border-bottom: unset; */
  /* border-radius: 4px; */
  /* color: #087c32; */
  color: #0f172a;
  font-size: 18px;
  font-weight: 400;
}

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

#close-positions-table.table-not-shown {
  display: none;
}

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

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

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

#total-balance-title {
  font-size: 16px;
  color: #4a5565;
  font-weight: 400;
}

#profit-trades-side #total-container {
  color: #0f172a;
  font-size: 30px;
  font-weight: 400;
  border: none;
}

#profit-data-container,
#detailed-monthly-profit {
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  /* box-shadow:
    0px 8px 10px -6px rgba(0, 0, 0, 0.1),
    0px 20px 25px -5px rgba(0, 0, 0, 0.1); */
  box-shadow:
    0px 7.2px 9px -5.4px rgba(0, 0, 0, 0.09),
    0px 18px 22.5px -4.5px rgba(0, 0, 0, 0.09);
  margin-bottom: 2em;
  padding: 3em 1em;
  border-radius: 16px;
  margin-right: 1em;
}

#profit-data-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1em;
}

#total-container,
#total-profit {
  background: transparent;
}

#detailed-monthly-profit {
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  /* box-shadow:
    0px 8px 10px -6px rgba(0, 0, 0, 0.1),
    0px 20px 25px -5px rgba(0, 0, 0, 0.1),
    0px 25px 50px -12px rgba(0, 0, 0, 0.25); */
  box-shadow:
    0px 7.2px 9px -5.4px rgba(0, 0, 0, 0.09),
    0px 18px 22.5px -4.5px rgba(0, 0, 0, 0.09),
    0px 22.5px 45px -10.8px rgba(0, 0, 0, 0.225);
  margin-bottom: 0;
  padding: 2em 1em;
  border-radius: 16px;
}

#this-month-title {
  color: #6a7282;
  font-size: 14px;
  font-weight: 400;
}
#tabH .history-tab {
  background-color: transparent;
  /* border: grey solid 2px; */
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column-reverse;
  justify-content: center;
  align-items: center;
  gap: 0.5em;
  padding: 14px;
}

/* #trade-data-trades-page #trades-list {
  display: none;
} */

#strategy-graph-toolbar-icons-pro-page {
  direction: ltr;
  display: flex;
  gap: 4px;
}

#strategy-graph-toolbar-icons-pro-page #zoom-in-strategy-graph-custom-button,
#strategy-graph-toolbar-icons-pro-page #zoom-out-strategy-graph-custom-button,
#strategy-graph-toolbar-icons-pro-page
  #reset-strategy-graph-display-custom-icon,
#strategy-graph-toolbar-icons-pro-page #strategy-graph-export-menu-options {
  background-color: white;
  border: none;
  padding: 0px;
  height: 30px;
  width: 30px;
}

#zoom-in-strategy-graph-custom-button svg,
#zoom-out-strategy-graph-custom-button svg,
#reset-strategy-graph-display-custom-icon svg,
#strategy-graph-export-menu-options svg {
  height: 28px;
  width: 28px;
}

/* #zoom-in-strategy-graph-custom-button svg path {
  fill: #00367c;
} */

#reset-strategy-graph-display-custom-icon svg path {
  fill: white !important;
}
#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;
}

#main-content.container.sidebar-left {
  height: 1500px;
}

#chart-strategy-container.chart-container.chart-container1.conteiner
  .chart-display {
  height: 100%;
}

#chart-strategy-container.chart-container.chart-container1.conteiner
  .chart-display
  .logo-image {
  bottom: 1em;
  right: 4em;
}

#trade-details .flex-li #risk.very-low {
  color: #ffa500b3;
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
}

#trade-details .flex-li #risk.low {
  color: #ffcc00;
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
}

#trade-details .flex-li #risk.medium {
  color: #ff8c00;
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
}

#trade-details .flex-li #risk.high {
  color: #ff4500;
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
}

#trade-details .flex-li #risk.very-high {
  color: #ff0000;
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
}

#trade-details .flex-li {
  width: 100%;
  margin: 0;
}

#total-profit-and-icon-container {
  display: flex;
  justify-content: center;
  gap: 1em;
}

@media (max-width: 768px) {
  #status-D,
  #status-W,
  #status-M {
    right: -6%;
    position: absolute;
    top: 0%;
  }

  #tabD,
  #tabW,
  #tabM,
  #tabH {
    position: relative;
  }

  #tabs-trades-page > li .trade-tab {
    height: 100%;
  }

  .ai-professional #sidebar #block-20,
  .ai-professional #sidebar #block-10,
  .ai-professional #sidebar #block-9 {
    display: none;
  }

  #tabs-trades-page {
    height: 119px;

    background: linear-gradient(
      180deg,
      rgba(0, 107, 183, 0.95) 0%,
      rgba(0, 54, 124, 0.95) 100%
    );
    box-shadow:
      0px 10px 15px -3px rgba(0, 0, 0, 0.1),
      0px 4px 6px -4px rgba(0, 0, 0, 0.1);
    align-items: center;
  }

  #tabs-trades-page::before {
    height: 65% !important;
    width: 96% !important;
  }

  #total-container.green-bg {
    color: #0f172a;
    border: none;
  }

  #total-container {
    padding: 10px;
  }

  #profit-data-container {
    padding-bottom: 2em;
  }

  #trade-disp .open-positions-table-container table {
    width: 40em;
    margin-right: 1.5em;
  }

  .open-positions-table-container {
    overflow-x: auto;
  }

  .open-positions-table-container::-webkit-scrollbar,
  .close-positions-table-container::-webkit-scrollbar {
    display: none;
  }

  #open-positions-title-container,
  #close-positions-title-container {
    margin: 1.5em 0;
  }

  #open-positions-table thead tr {
    display: grid;
    grid-template-columns: 0.6fr 0.5fr 0.7fr 0.4fr 0.8fr 0.5fr 0.8fr !important;
  }

  #open-positions-table tbody tr.open-option {
    grid-template-columns: 0.6fr 0.5fr 0.7fr 0.4fr 0.8fr 0.5fr 0.8fr !important;
  }

  /* #close-options-table tbody tr.close-option {
    grid-template-columns: repeat(9, 0.8fr);
  } */

  #close-positions-table tbody tr.close-option,
  #close-positions-table thead tr {
    display: grid;
    grid-template-columns: 0.8fr 0.9fr 0.8fr 0.8fr 0.9fr 0.9fr 0.9fr 0.9fr 0.9fr;
  }

  #detailed-monthly-profit,
  #real-time-update {
    position: relative;
    top: 7.5em;
  }

  #chart-profit-rt.chart-container.chart-container2.conteiner,
  #chart-strategy-container.chart-container.chart-container1.conteiner,
  #real-time-update {
    width: 90%;
    margin: 0 auto;
  }

  #page-container {
    margin-top: 0;
  }

  #page-container .master-cont .container #content {
    height: fit-content;
    padding-bottom: 7em;
  }

  #trade-disp th {
    height: fit-content;
    white-space: nowrap;
  }

  #close-positions-table {
    width: 54em !important;
  }

  #main-content.container.sidebar-left .top-scroll-space {
    height: 0px !important;
  }

  #detailed-monthly-profit {
    width: 92%;
  }

  #tabs-trades-page {
    top: 0px;
  }

  #close-positions-table thead tr th.two-row-heading,
  #open-positions-table thead tr th.two-row-heading {
    display: flex;
    flex-direction: column;
    padding-bottom: 15px;
  }

  #close-positions-table thead tr th,
  #open-positions-table thead tr th {
    height: 100%;
    padding-bottom: 0;
  }

  .close-positions-table-container {
    overflow-x: auto;
  }

  #history-table,
  #history-table thead,
  #history-table tbody {
    display: block;
  }

  #history-table thead tr,
  #history-table tbody tr {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  #history-table tbody tr td {
    padding: 4px;
  }

  #trade-data-trades-page #trade-details table thead tr th {
    text-align: center;
    padding: 4px;
  }

  #trade-data-trades-page #trade-details table tbody tr td {
    padding: 4px;
  }
  #page-container #tabs-trades-page.tabs {
    margin-top: 0;
  }
}

@media (width <= 320px) {
  .open-positions-table-container {
    margin-left: 1em;
  }
  .close-positions-table-container {
    margin-left: 2em;
  }
}

@media (320px < width < 375px) {
  .open-positions-table-container {
    margin-left: 1em;
  }
  .close-positions-table-container {
    margin-left: -1em;
  }
}

@media (375px <= width <= 425px) {
  .open-positions-table-container {
    margin-left: 0;
  }
  .close-positions-table-container {
    margin-left: -0.5em;
  }
}
