#box_main {
  width: 1020px;
  padding-top: 14px;
  padding-left: 20px;
}

.box_title {
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.box_title .box_right {
  display: flex;
  align-items: center;
  gap: 8px;
}

#box_filter_stat {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 20px;
}

#box_filter {
  width: 490px;
  height: 129px;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 16px;
}

#box_filter #box_filter_top {
  display: flex;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

#box_filter #box_filter_top select {
  width: 120px;
  height: 40px;
  border: 0px;
  padding-left: 10px;
  background-color: #ffffff;
  -webkit-appearance: none; /* Remove default arrow for webkit browsers */
  -moz-appearance: none; /* Remove default arrow for Firefox */
  appearance: none; /* Remove default arrow for other browsers */
  background-image: url("/static/img/icon_arrow.png");
  background-repeat: no-repeat;
  background-position: calc(100% - 10px) center;
  background-size: 12px auto;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 140%;
  color: var(--color-black);
}

#box_filter #box_filter_top select:hover {
  cursor: pointer;
}

#box_filter #box_filter_top select#dropdown_timeframe {
  width: 140px;
  margin-left: 16px;
  border-left: 1px var(--color-greyLight) solid;
  padding-left: 16px;
}

#box_filter #box_filter_top select#dropdown_score {
  width: 200px;
  margin-left: 16px;
  border-left: 1px var(--color-greyLight) solid;
  padding-left: 16px;
}

#box_filter #box_filter_bottom {
  border-top: 1px var(--color-greyLight) solid;
  height: 56px;
  display: flex;
  align-items: center;
}

#box_filter #box_filter_bottom a {
  font-size: 12px;
  color: var(--color-greyMedium);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
}

#box_stat {
  width: 490px;
  height: 129px;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#box_stat .box_title {
  display: flex;
  justify-content: space-between;
  margin: 0px;
  align-items: center;
}

#box_stat .box_title h6 {
  font-size: 14px;
}

#box_stat .box_title span {
  font-size: 10px;
  color: var(--color-greyDark);
  display: flex;
  align-items: center;
  gap: 4px;
}

#box_stat .box_title .custom-img {
  width: 14px;
  height: 14px;
  background-image: url("/static/img/studio/charts/icon_warning.png");
  background-size: cover;
  background-position: center;
}

#box_stat .stat_row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 20px;
}

#box_stat .stat_row p {
  font-size: 12px;
  color: var(--color-greyMedium);
}

#box_stat .stat_row button {
  background-color: transparent;
  border: 0px;
  height: 20px;
  content: url("/static/img/studio/charts/icon_tooltip.png");
}

#box_stat .stat_row h6 {
  font-size: 14px;
}

#box_stat .stat_row #up_prob {
  display: flex;
  align-items: center;
  gap: 8px;
}

#box_stat .stat_row #up_prob img {
  width: 20px;
}

#box_stat .stat_row #up_prob .progress {
  width: 120px;
  height: 8px;
  background-color: transparent;
}

#box_chart {
  width: 100%;
  height: 566px;
  background-color: #ffffff;
  border-radius: 12px;
  margin-bottom: 20px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#box_chart .chart {
  min-height: 1px;
  flex: 1;
}
#box_chart .loader {
  border: 4px solid var(--color-black);
  border-top: 4px solid #00000000;
  width: 40px;
  height: 40px;
  margin: auto;
  margin-top: 214px;
}

/******** RWD ********/

@media (max-width: 1300px) {
  #box_main {
    width: 588px;
    padding-left: 0px;
  }

  .box_title {
    display: none;
  }

  #box_filter_stat {
    flex-direction: column;
    gap: 16px;
  }

  #box_filter {
    width: 100%;
  }

  #box_stat {
    width: 100%;
  }

  #box_chart {
    width: 100%;
    height: 444px;
    padding: 12px 6px;
  }

  #box_filter #box_filter_top .box_symbol input {
    width: 150px;
  }

  #box_chart .loader {
    margin-top: 168px;
  }
}

@media (max-width: 768px) {
  #box_main {
    width: 350px;
  }

  #box_stat .stat_row h6 {
    font-size: 12px;
  }

  #box_stat .stat_row #up_prob {
    gap: 4px;
  }

  #box_stat .stat_row #up_prob img {
    width: 16px;
  }

  #box_stat .stat_row #up_prob .progress {
    width: 68px;
  }

  #box_chart {
    height: 480px;
    padding: 12px 0px;
  }

  #box_chart .loader {
    margin-top: 184px;
  }

  #box_filter #box_filter_top .box_symbol {
    margin-left: 0px;
    border-left: 0px;
    padding-left: 0px;
    margin-bottom: 16px;
  }

  #box_filter #box_filter_top .box_symbol input {
    width: 318px;
  }

  #box_filter #box_filter_top select#dropdown_timeframe {
    width: 100px;
    margin-left: 0px;
    border-left: 0px;
    padding-left: 16px;
  }
}

/* -------- Dark mode -------- */
body.dark-mode #box_filter {
  background-color: var(--color-greyDark);
}

body.dark-mode #box_filter #box_filter_top select {
  background-color: var(--color-greyDark);
  color: var(--color-white);
  background-image: url("/static/img/icon_arrow_dark_mode.png");
}

body.dark-mode #box_filter #box_filter_top .box_symbol input {
  background-color: var(--color-greyLightMedium);
  border: 0px;
}

body.dark-mode #box_filter #box_filter_top .box_symbol input::placeholder {
  color: var(--color-greyMedium);
}

body.dark-mode #box_filter #box_filter_bottom {
  border-top: 1px var(--color-greyMedium) solid;
}

body.dark-mode #box_filter #box_filter_bottom a {
  color: var(--color-greyLightMedium);
}

body.dark-mode #box_stat {
  background-color: var(--color-greyDark);
}

body.dark-mode #box_stat .box_title span {
  color: var(--color-greyLight);
}

body.dark-mode #box_stat .box_title .custom-img {
  background-image: url("/static/img/studio/charts/icon_warning_dark.png");
}

body.dark-mode #box_stat .stat_row button {
  content: url("/static/img/studio/charts/icon_tooltip_dark.png");
}

body.dark-mode #box_stat .stat_row p {
  font-size: 12px;
  color: var(--color-greyLightMedium);
}

body.dark-mode #box_chart {
  background-color: var(--color-greyDark);
}

body.dark-mode #box_chart .loader {
  border: 4px solid var(--color-white);
  border-top: 4px solid var(--color-greyDark);
}
