/* Mutual Fund Section Styles */
:root {
  --blue: #081d58;
  --kiwoom: #28388d;
  --muted: #576071;
  --line: #f0f2f5;
  --panel: #f4f5f6;
  --pill: #e8f1fd;
  --soft-blue: #d8dff9;
  --disabled: #e7e7e7;
}

.contents-white {
  background: #ffffff;
}

.mutual-fund-main {
  background: #ffffff;
}

.banner {
  position: relative;
  height: 106px;
  margin: 20px 0 0;
  overflow: hidden;
  border: 1px solid rgba(177, 177, 177, 0.29);
  border-radius: 14px;
  background: #081d58;
}

.banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 106px;
  overflow: hidden;
}

.banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.banner-bg-mobile {
  display: block !important;
}

.banner-bg-desktop {
  display: none !important;
}

.banner h2 {
  position: absolute;
  left: 13px;
  top: 22px;
  margin: 0;
  color: #d8dff9;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 800;
  white-space: nowrap;
}

.banner p {
  position: absolute;
  left: 12px;
  top: 45px;
  width: 170px;
  margin: 0;
  color: #d8dff9;
  font-size: 10px;
  line-height: 1.18;
}

.logo-fade {
  position: absolute;
  top: -1px;
  right: 0;
  width: 174px;
  height: 106px;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, #fff 58%);
}

.banner-logo {
  position: absolute;
  right: 26px;
  top: 22px;
  width: 88px;
  height: auto;
}

.banner-logo-desktop {
  display: none !important;
}

.mutual-fund-progress {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  height: 15px;
}

.mutual-fund-progress span {
  width: 40px;
  height: 5px;
  border-radius: 33px;
  background: #d9d9d9;
}

.mutual-fund-progress i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d9d9d9;
  display: block;
}

.mutual-fund-flow {
  padding: 5px 0 0;
  border-radius: 14px;
}

.mutual-fund-section-title {
  margin: 0;
  padding: 0 25px;
  color: var(--blue);
  font-size: 15px;
  line-height: 25px;
  font-weight: 800;
}

.mutual-fund-step-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 31px;
}

.mutual-fund-step-num {
  width: 30px;
  height: 30px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  background: rgba(8, 29, 88, 0.2);
  color: var(--kiwoom);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
  flex: 0 0 auto;
}

.mutual-fund-connector {
  height: 3px;
  min-width: 10px;
  flex: 1 1 auto;
  border: 1px solid #cfcfcf;
  border-radius: 60px;
  background: rgba(207, 207, 207, 0.5);
}

.mutual-fund-step-labels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  min-height: 50px;
  padding: 0 10px;
  color: var(--kiwoom);
  text-align: center;
  align-items: center;
}

.mutual-fund-step-label {
  padding: 7px 2px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.mutual-fund-step-label strong {
  font-size: 9.9px;
  line-height: 1.05;
  font-weight: 800;
}

.mutual-fund-step-label span,
.mutual-fund-step-label a {
  color: var(--kiwoom);
  font-size: 7.9px;
  line-height: 1.1;
  text-decoration-thickness: 1px;
}

.mutual-fund-section {
  margin: 5px 0 20px;
  border: 1px solid #f4f5f6;
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
}

.product-head {
  padding: 15px 20px;
  border-radius: 8px 8px 0 0;
  background: var(--panel);
}

.product-head h2 {
  margin: 0 0 15px;
  color: var(--blue);
  font-size: 16px;
  line-height: 25px;
  font-weight: 800;
}

.tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.search-field {
  position: relative;
  height: 35px;
  min-width: 120px;
  flex: 1 1 auto;
  max-width: 150px;
}

.search-field img {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  pointer-events: none;
}

.search-field input {
  width: 100%;
  height: 100%;
  border: 1px solid #cfcfcf;
  border-radius: 20px;
  padding: 0 15px 0 35px;
  background: #ffffff;
  color: var(--muted);
  font-size: 11px;
  font-family: inherit;
  outline: none;
}

.search-field input::placeholder {
  color: #d8d8d8;
}

.filter-btn {
  height: 33px;
  padding: 8px 18px;
  border: 0;
  border-radius: 20px;
  background: var(--disabled);
  color: #b1b1b1;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent; 
}

.filter-btn.active {
  background: var(--soft-blue);
  color: var(--kiwoom);
}

.filter-btn:hover {
  background: var(--soft-blue);
  color: var(--kiwoom);
}

.fund-list {
  max-height: 405px;
  overflow-y: auto;
  padding: 10px;
  display: none;
  flex-direction: column;
  gap: 10px;
}

.fund-mobile-card {
  border-radius: 12px;
  background: transparent;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #e8e8e8;
}

.fund-mobile-row-1 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.fund-mobile-col-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fund-product-nm {
  font-weight: 800;
  font-size: 13px;
  color: #000;
  line-height: 1.3;
}

.fund-aum-label {
  font-size: 11px;
  color: #000;
}

.fund-aum-label span {
  color: #000;
  font-weight: 500;
}

.fund-min-subs-label {
  font-size: 11px;
  color: darkgray;
}

.fund-min-subs-label span {
  color: darkgray;
  font-weight: 500;
}

.fund-mobile-col-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.fund-return-labels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  width: 100%;
  background: #e8f1fd;
  border-radius: 999px;
  padding: 0;
  overflow: hidden;
  margin-bottom: 6px;
}

.return-item {
  background: var(--panel);
  border-radius: 0;
  padding: 6px 8px;
  font-size: 12px;
  color: #666;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.return-item:last-child {
  border-right: none;
}

.return-item strong {
  display: block;
  font-weight: 700;
}

.fund-return-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: 100%;
}

.return-value {
  background: #e8f1fd;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  color: #000;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
}

.return-value.return-green {
  color: #4CAF50;
  font-weight: 400;
}

.fund-mobile-divider {
  height: 1px;
  background: #e8e8e8;
  margin: 8px 0;
}

.fund-mobile-row-2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
}

.fund-mobile-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-link {
  display: block;
  width: 100%;
  padding: 8px 10px;
  background: #e8f1fd;
  border: none;
  border-radius: 20px;
  color: gray !important;
  font-weight: 600;
  font-size: 11px;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.action-link:hover {
  background: #d8e8f9;
  color: #4CAF50 !important;
}

.action-link:focus {
  outline: none !important;
  -webkit-focus-ring-color: transparent;
  background: #d8e8f9;
}

.action-link:focus-visible {
  outline: none !important;
  -webkit-focus-ring-color: transparent;
}

.action-link:active {
  outline: none !important;
  -webkit-focus-ring-color: transparent;
  background: #d8e8f9;
}

.action-link.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.fund-card {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 1px rgba(0,0,0,0.04);
}

.fund-top {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.fund-info {
  flex: 1 1 auto;
  min-width: 0;
}

.fund-name {
  margin: 0 0 5px;
  color: #000000;
  font-size: 13px;
  line-height: 1.22;
  font-weight: 800;
}

.fund-info p {
  margin: 0;
  line-height: 16px;
}

.aum { 
  color: var(--muted); 
  font-size: 11px; 
}

.subs { 
  color: #a1a1a1; 
  font-size: 10px; 
}

.returns {
  width: 171px;
  flex: 0 0 171px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.return-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.return-labels {
  padding: 0;
  border-radius: 20px;
  background: var(--panel);
}

.return-labels span,
.return-values span {
  min-width: 0;
  height: 25px;
  padding: 5px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
}

.return-labels span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.return-values span {
  background: var(--pill);
  color: #000000;
  font-weight: 400;
}

.return-values .positive { 
  color: #00671d; 
}

.actions {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.actions a {
  min-width: 0;
  height: 25px;
  padding: 5px;
  border-radius: 12px;
  background: var(--pill);
  color: #7b7b7b;
  display: grid;
  place-items: center;
  text-align: center;
  text-decoration: none;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.actions a:hover {
  background: var(--soft-blue);
  color: var(--kiwoom);
}

.desktop-table-wrap {
  display: block;
  padding: 20px;
  max-height: 400px;
  overflow-y: auto;
}

@media screen and (max-width: 959px) {
  .fund-list {
    display: flex !important;
  }

  .desktop-table-wrap {
    display: none !important;
    padding: 10px;
    max-height: none;
  }
}

@media screen and (min-width: 960px) {
  .fund-list {
    display: none !important;
  }

  .desktop-table-wrap {
    display: block !important;
    padding: 20px;
    max-height: 400px;
  }
}

.fund-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.fund-table thead tr {
  background: var(--panel);
}

.fund-table th {
  height: 66px;
  padding: 10px 12px;
  color: #7b7b7b;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 800;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}

.fund-table th:first-child {
  width: 354px;
  text-align: left;
  border-radius: 8px 0 0 0;
}

.fund-table th:last-child {
  border-radius: 0 8px 0 0;
}

.fund-table td {
	height: 64px;
	padding: 10px 12px;
	border-bottom: 1px solid #f4f5f6;
	color: #000000;
	font-size: 13px;
	text-align: center;
	vertical-align: middle;
}

.fund-table td:first-child {
	text-align: left;
}

.fund-table td.fund-return-green {
	color: darkgreen !important;
}

.fund-min-subs-row {
	background-color: #f9f9f9;
}

.fund-min-subs-row td {
	height: auto;
	padding: 8px 12px;
	border-bottom: 1px solid #f4f5f6;
	text-align: left;
	font-size: 12px;
	color: #666;
	font-weight: 500;
}

.table-product strong {
  display: block;
  font-size: 13px;
  line-height: 1.1;
  font-weight: 800;
}

.table-product span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 400;
}

.fund-product-name {
	text-align: left;
}

.fund-return-green {
	color: #4CAF50;
}

.fund-form-cell {
	text-align: center;
	vertical-align: middle;
}

.fund-aum {
	font-size: 11px;
	color: black;
	margin-top: 2px;
}

.fund-min-subs {
	font-size: 12px;
	font-weight: 500;
	color: gray;
}

.fund-table .positive {
  color: #00671d;
}

.download-btn {
  display: inline-block;
  width: 48px;
  height: 48px;
  background-image: url('../images/btn/btn_download.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.download-btn:hover {
  /* background: var(--pill); */
}

.download-btn img,
.download-btn svg {
  width: 24px;
  height: 24px;
  display: block;
  color: #000000;
}

.empty {
  padding: 30px 10px;
  color: #8c95a4;
  font-size: 12px;
  text-align: center;
}

@media (min-width: 960px) {
  .banner {
    width: 100%;
    height: 106px;
    border-color: #f4f5f6;
  }

  .banner-bg {
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .banner-bg img {
    width: 100%;
    height: 100%;
    object-position: center;
  }

  .banner-bg-mobile {
    display: none !important;
  }

  .banner-bg-desktop {
    display: block !important;
  }

  .banner h2,
  .banner p,
  .logo-fade,
  .banner-logo {
    display: none;
  }

  .banner-logo-desktop {
    position: absolute !important;
    display: block !important;
    width: 120px !important;
    height: auto !important;
    right: 28% !important;
    top: 50% !important;
    transform: translate(50%, -50%) !important;
    z-index: 10 !important;
  }

  .mutual-fund-flow {
    padding-top: 5px;
  }

  .mutual-fund-section-title {
    padding: 0 25px;
    font-size: 21px;
  }

  .mutual-fund-step-row {
    height: 50px;
    padding: 0 70px;
  }

  .mutual-fund-step-num {
    width: 40px;
    height: 40px;
    font-size: 25px;
  }

  .mutual-fund-connector {
    height: 6px;
  }

  .mutual-fund-step-labels {
    min-height: 50px;
    padding: 0 25px;
    gap: 10px;
    align-items: center;
  }

  .mutual-fund-step-label {
    padding: 10px;
    align-items: center;
  }
  
  .mutual-fund-step-label:nth-child(1) {
  	padding-right: 100px;
  }
  
  .mutual-fund-step-label:nth-child(2) {
  	padding-right: 50px;
  }
  
  .mutual-fund-step-label:nth-child(4) {
  	padding-left: 50px;
  }

  .mutual-fund-step-label:nth-child(5) {
  	padding-left: 100px;
  }	

  .mutual-fund-step-label strong {
    font-size: 15px;
  }

  .mutual-fund-step-label span,
  .mutual-fund-step-label a {
    font-size: 12px;
  }

  .fund-list {
    display: none;
  }

  .desktop-table-wrap {
    display: block;
  }

  .product-head h2 {
    height: 50px;
    margin: 0;
    display: flex;
    align-items: center;
    font-size: 18px;
  }

  .tools {
    height: 50px;
    flex-wrap: nowrap;
  }

  .search-field {
    flex: 1 1 auto;
    max-width: 205px;
    height: 40px;
    margin-left: auto;
    min-width: auto;
  }

  .search-field img {
    width: 16px;
    height: 16px;
    left: 16px;
  }

  .search-field input {
    font-size: 12px;
    padding-left: 52px;
    border-radius: 30px;
  }

  .filter-btn {
    font-size: 13px;
  }

  .fund-table th {
    font-size: 13px;
  }

  .fund-table td {
    font-size: 13px;
  }
}