#box_main {
  flex: 1;
  min-width: 0;
  min-height: 800px;
  padding-top: 14px;
  padding-left: 20px;
}

/* ── Filter ── */
#box_filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

#btn_set_indicators {
  height: 44px;
}

/* ── Chart container (single LW Charts instance, height set by JS) ── */
#chart_container {
  width: 100%;
  height: 340px;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
}

/* ── Set Indicators button ── */
#box_chart_toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.btn_set_indicators {
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--color-greyLight);
  border-radius: 10px;
  background: transparent;
  font-size: 14px;
  color: var(--color-greyDark);
  cursor: pointer;
  outline: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.btn_set_indicators:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ── Modal sizing ── */
#modal_set_indicators .modal-content {
  width: 350px;
  padding: 25px 32px;
}

#modal_set_indicators .modal-header {
  padding: 0 0 12px;
  border: 0px;
  margin-bottom: 16px;
}

#modal_set_indicators .modal-body {
  padding: 0;
}

/* ── Set Indicators modal — mirrors crypto dashboard ── */
#modal_set_indicators .modal-body .box_indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  margin-bottom: 16px;
  padding-right: 12px;
  cursor: pointer;
  user-select: none;
}

#modal_set_indicators .modal-body .box_indicator:lang(zh),
#modal_set_indicators .modal-body .box_indicator:lang(cn) {
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 500;
}

#modal_set_indicators .modal-body .box_indicator span {
  display: inline-block;
  text-align: center;
  vertical-align: middle;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  margin-right: 8px;
  font-size: 10px;
  line-height: 22px;
}

#modal_set_indicators .modal-body .box_indicator input[type="checkbox"] {
  width: 24px;
  height: 24px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 4px;
  border: 1px solid var(--color-greyLightMedium);
  outline: none;
  background-color: var(--color-white);
  flex-shrink: 0;
}

#modal_set_indicators
  .modal-body
  .box_indicator
  input[type="checkbox"]:checked {
  background-image: url("/static/img/icon_check.png");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
  border-color: var(--color-primary);
  background-color: var(--color-primaryLight);
}

/* ── Loading / empty ── */
.loader_wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 48px 0;
  color: var(--color-greyMedium);
  font-size: 14px;
}

/* ── RWD ── */
@media (max-width: 1300px) {
  #box_container {
    padding-top: 60px !important;
  }
  #box_main {
    padding-left: 0;
  }
  #chart_container {
    border-radius: 12px;
  }
}

@media (max-width: 768px) {
  #btn_stock_select {
    flex: 1;
    min-width: 0;
    max-width: 240px;
  }
  .btn_set_indicators {
    padding: 0 8px;
    font-size: 12px;
    flex-shrink: 1;
  }
}
