/* ---------------------------------------
   상단 광고/네비 바 Sticky
--------------------------------------- */
.sticky-top-adv {
  position: sticky;
  top: 0;
  z-index: 1050;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------------------------------------
   테이블 스타일 (고수 표)
--------------------------------------- */
.custom-table-simple thead th {
  background: #FFA726 !important;
  color: #fff !important;
  border-top: none !important;
  border-bottom: 2px solid #e0e0e0 !important;
  text-align: center;
}
.custom-table-simple, .custom-table-simple th, .custom-table-simple td {
  border: 1px solid #e0e0e0 !important;
}
.custom-table-simple thead tr {
  border-bottom: 2px solid #e0e0e0 !important;
}
.custom-table-simple tbody tr:nth-child(even) {
  background: #fafafa !important;
}
.custom-table-simple tbody tr:hover {
  background-color: #fff8e1 !important;
}
.custom-table-simple thead .sorting:after,
.custom-table-simple thead .sorting_asc:after,
.custom-table-simple thead .sorting_desc:after {
  filter: brightness(0) invert(1);
  opacity: 1 !important;
  color: #fff !important;
  mix-blend-mode: normal !important;
}
.custom-table-simple thead .sorting:not(.sorting_asc):not(.sorting_desc):after {
  filter: brightness(0) invert(90%) sepia(10%) saturate(0%) hue-rotate(172deg) brightness(1.2);
  opacity: 1 !important;
}
.custom-table-simple th:first-child,
.custom-table-simple td:first-child {
  width: 70px !important;
  min-width: 40px !important;
  max-width: 70px !important;
  text-align: left;
  padding-right: 1.5rem !important;
}
.custom-table-simple th:nth-child(2) {
  text-align: center !important;
  vertical-align: middle !important;
}
.custom-table-simple th:last-child {
  width: 110px !important;
  min-width: 90px !important;
  max-width: 150px !important;
  text-align: center !important;
}

#table1_wrapper .row.mt-2,
#table2_wrapper .row.mt-2,
.dt-container .row.mt-2 {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  border: none !important;
  padding: 0 !important;
  --bs-gutter-x: 0 !important;
  --bs-gutter-y: 0 !important;
}

/* ---------------------------------------
   자산규모별 탭/날짜 선택 스타일
--------------------------------------- */

/* 날짜 선택 chevron(좌우) 비활성/활성 */
.date-asset-selector .btn:disabled {
  color: #ccc !important;
  cursor: not-allowed !important;
}
.date-asset-selector .btn-link {
  box-shadow: none !important;
}
.date-asset-selector .bi-caret-down-fill {
  vertical-align: middle;
}

/* nav-underline 탭 + asset-tabs 완전 단어 길이 언더라인! */
.asset-tabs .nav-link,
.nav-underline .nav-link {
  color: #222 !important;
  font-weight: 500;
  font-size: 0.97rem !important;
  /* padding: 0.18em 0.25em 0.36em 0.25em !important; */
  padding: 0.18em 0.9em 0.36em 0.9em !important; /* 좌우 넉넉, 언더라인 단어에 맞게 */
  min-width: unset !important;
  width: auto !important;
  /* border-width: 0 0 2.1px 0 !important;  
  border-bottom: 2.1px solid transparent !important;   */
  transition: color 0.18s, border-color 0.18s;
  display: inline-block !important;
  text-align: center;
}

ul.nav-underline {
  gap: 0.7em;
}

.asset-tabs .nav-link.active,
.nav-underline .nav-link.active {
  color: #0d6efd !important;
  /* border-bottom: 2.1px solid #0d6efd !important;   */
  font-weight: 700;
  background: none !important;
}

.asset-tabs .nav-link:focus,
.asset-tabs .nav-link:hover,
.nav-underline .nav-link:focus,
.nav-underline .nav-link:hover {
  color: #0d6efd !important;
  /* border-bottom: 2.1px solid #0d6efd !important;  원래 2.5 px */
  background: none !important;
  font-weight: 700;
}

@media (max-width: 480px) {
  .asset-tabs .nav-link,
  .nav-underline .nav-link {
    font-size: 0.88rem !important;
    padding: 0.15em 0.5em 0.33em 0.5em !important;  /* 모바일은 좀 더 좁게 */
  }
}