@charset "utf-8";

/* Thin */
@font-face {
    font-family: 'Pretendard';
    font-weight: 100;
    font-display: swap;
    src: url('https://img.wownet.co.kr/wownet20/front/fonts/Pretendard/woff2-subset/Pretendard-Thin.subset.woff2') format('woff2');
}

/* ExtraLight */
@font-face {
    font-family: 'Pretendard';
    font-weight: 200;
    font-display: swap;
    src: url('https://img.wownet.co.kr/wownet20/front/fonts/Pretendard/woff2-subset/Pretendard-ExtraLight.subset.woff2') format('woff2');
}

/* Light */
@font-face {
    font-family: 'Pretendard';
    font-weight: 300;
    font-display: swap;
    src: url('https://img.wownet.co.kr/wownet20/front/fonts/Pretendard/woff2-subset/Pretendard-Light.subset.woff2') format('woff2');
}

/* Regular (기본) */
@font-face {
    font-family: 'Pretendard';
    font-weight: 400;
    font-display: swap;
    src: url('https://img.wownet.co.kr/wownet20/front/fonts/Pretendard/woff2-subset/Pretendard-Regular.subset.woff2') format('woff2');
}

/* Medium */
@font-face {
    font-family: 'Pretendard';
    font-weight: 500;
    font-display: swap;
    src: url('https://img.wownet.co.kr/wownet20/front/fonts/Pretendard/woff2-subset/Pretendard-Medium.subset.woff2') format('woff2');
}

/* SemiBold */
@font-face {
    font-family: 'Pretendard';
    font-weight: 600;
    font-display: swap;
    src: url('https://img.wownet.co.kr/wownet20/front/fonts/Pretendard/woff2-subset/Pretendard-SemiBold.subset.woff2') format('woff2');
}

/* Bold */
@font-face {
    font-family: 'Pretendard';
    font-weight: 700;
    font-display: swap;
    src: url('https://img.wownet.co.kr/wownet20/front/fonts/Pretendard/woff2-subset/Pretendard-Bold.subset.woff2') format('woff2');
}

/* ExtraBold */
@font-face {
    font-family: 'Pretendard';
    font-weight: 800;
    font-display: swap;
    src: url('https://img.wownet.co.kr/wownet20/front/fonts/Pretendard/woff2-subset/Pretendard-ExtraBold.subset.woff2') format('woff2');
}

/* Black */
@font-face {
    font-family: 'Pretendard';
    font-weight: 900;
    font-display: swap;
    src: url('https://img.wownet.co.kr/wownet20/front/fonts/Pretendard/woff2-subset/Pretendard-Black.subset.woff2') format('woff2');
}

#bestContainer {
    font-family: 'Pretendard';
}

.best-tabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
}

.best-tabs .tabs {
    width: 75%;
    margin-bottom: 0;
}

.best-tabs .tabs li {
    border-bottom: none;
    border-right: none;
    font-weight: 500;
}

.best-tabs .tabs li:last-child {
    border-right: 1px solid #ddd;
}

.best-tabs .date-navigator {
    width: 23%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.best-tabs .move-date {
    width: 40px;
    height: 40px;
    background-size: contain;
}

.best-tabs .move-date[disabled] {
    filter: opacity(0.5);
}

.best-tabs .move-date.pre {
    background: url('https://img.wownet.co.kr/wownet20/front/images/static/best/260727/btn-date-pre.png') no-repeat left;
}

.best-tabs .date-navigator span {
    font-weight: bold;
    font-size: 20px;
    line-height: 1.2;
    color: #000;
}

.best-tabs .date-navigator span b {
    font-weight: bold;
    color: #5962ba;
}

.best-tabs .move-date.next {
    background: url('https://img.wownet.co.kr/wownet20/front/images/static/best/260727/btn-date-next.png') no-repeat right;
}

.best-tabs .date-navigator span.highlight-period {
    color: #5962ba;
}

#bestContainer .info-text {
    text-align: center;
    font-size: 18px;
}

#bestContainer .btn-go-yearly {
    display: block;
    background-color: #dddddd;
    padding: 2% 5%;
    font-size: 20px;
    margin: 2% auto 5%;
    color: #5962ba;
    font-weight: bold;
}

#targetArea {
    transition: opacity 0.2s ease-in-out;
}
/* 통신 중일 때 붙는 클래스 */
#targetArea.is-loading {
    opacity: 0.4;
    pointer-events: none;
}

.partner_search_result .rankBox h4.rnkTit {
    font-weight: 600;
    color: #111;
    letter-spacing: -0.23px;
    font-size: 23px;
    background-size: auto 23px;
    padding-left: 30px;
}

.partner_search_result .rankBox h4.rnkTit span {
    color: #999;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.14px;
}

.partner_list_rank .partner {
    position: relative;
}

.partner_list_rank li a {
    background: #fff;
}

.partner_search_result .rank-icon {
    display: inline-block;
    width: 39px;
    height: 48px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    top: 20%;
    left: 20px;
}

.partner_search_result .rank-icon.rank-1 {
    background-image: url('https://img.wownet.co.kr/wownet20/front/images/static/best/260727/flag-01.png');
}

.partner_search_result .rank-icon.rank-2 {
    background-image: url('https://img.wownet.co.kr/wownet20/front/images/static/best/260727/flag-02.png');
}

.partner_search_result .rank-icon.rank-3 {
    background-image: url('https://img.wownet.co.kr/wownet20/front/images/static/best/260727/flag-03.png');
}

.partner_search_result .rate-area {
    width: 100%;
    border-top: none;
}

.partner_search_result .account-rate {
    background-color: #2a283c;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4% 7%;
    font-size: 17px;
    width: 100%;
    min-height: 40px;
}

.partner_search_result .account-rate span {
    font-weight: 500;
}

.partner_search_result .account-rate b {
    color: #ed2225;
    font-size: 20px;
}

.partner_search_result .rate-area {
    border: 1px solid #ced2d8;
    border-top: none;
}

.partner_search_result .stock-detail {
    width: 80%;
    margin: 0 auto;
    padding: 7% 0;
    border-bottom: 1px solid #ececf1;
}

.partner_search_result .stock-detail b {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    color: #000;
    font-size: 17px;
    margin-bottom: 8%;
}

.partner_search_result .stock-detail span:first-of-type {
    background-color: #ececf1;
    color: #222;
    font-size: 14px;
    font-weight: 500;
    padding: 3% 6%;
    border-radius: 15px;
}

.partner_search_result .stock-detail span:last-of-type {
    color: #ed2225;
    font-weight: bold;
    font-size: 17px;
    margin-left: 5%;
}
/* 종목 보유중 */
.partner_search_result .stock-detail.owned span:first-of-type {
    background-color: #fef1f1;
    color: #ed2225;
}

.partner_search_result .stock-detail.owned span:last-of-type {
    color: #666;
}

/* 전체 카드 테두리 및 상단 다크바 설정 */
.partner_search_result .dashboard-card {
    width: 100%;
    background-color: #ffffff;
    padding: 7% 5% 4%;
    box-sizing: border-box;
}

/* 두 차트를 나란히 배치 */
.partner_search_result .card-content {
    display: flex;
    justify-content: space-between;
    gap: 10%;
}

/* 개별 차트 구역 (정확히 반반씩 차지) */
.partner_search_result .chart-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50%;
    min-width: 0;
}

/* 차트 위 타이틀 */
.partner_search_result .section-title {
    font-size: 17px;
    font-weight: 700;
    color: #000;
    text-align: center;
}

/* ★ Webponent 차트가 그려질 영역 크기 제한 */
.partner_search_result .chart-area {
    width: 95%;
    aspect-ratio: 1 / 1;
}

/* 커스텀 범례 위치 및 간격 맞춤 */
.partner_search_result .legend-area {
    width: 100%;
    padding: 0 5%;
    box-sizing: border-box;
    overflow: hidden;
}

.partner_search_result .custom-legend {
    list-style: none;
    padding: 0;
    margin: 0;
    min-height: 4.5em;
}

.partner_search_result .custom-legend li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    width: 100%;
    font-weight: 500;
}

.partner_search_result .legend-mark {
    width: 12px;
    height: 12px;
    margin-right: 8px;
    display: inline-block;
    flex-shrink: 0;
}

.partner_search_result .legend-name {
    flex: 1;
    text-align: left;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.partner_search_result .legend-value {
    font-weight: 600;
    flex-shrink: 0;
    margin-left: 5px;
    flex-shrink: 0;
}

.partner_search_result .chart-section.single-chart {
    flex: 0 0 45% !important;
    max-width: 45% !important;
    width: 45% !important;
}

/*안내 사항*/
#bestContainer .notice-txt {
    width: 100%;
    background-color: #f5f5f5;
    padding: 1% 4%;
    margin: 4% auto;
}

#bestContainer .notice-txt li {
    list-style-type: '· ';
    color: #999;
    font-size: 16px;
    line-height: 1.75;
    letter-spacing: -0.16px;
    font-weight: normal;
}

#bestContainer .notice-txt li::marker {
    color: #999;
}

/*데이터 없을 때*/
#bestContainer .empty-state-css-icon {
    width: 100%;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f7f7f7;
    border-radius: 8px;
    margin-top: 15px;
    gap: 15px;
}

#bestContainer .empty-state-css-icon::before {
    content: '!';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #bababa;
    border-radius: 50%;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
}

#bestContainer .empty-state-css-icon p {
    color: #666;
    font-size: 16px;
    margin: 0;
    text-align: center;
    padding: 0 20px;
    word-break: keep-all;
    line-height: 1.5;
}

@media screen and (max-width: 768px) {
    .best-tabs {
        flex-wrap: wrap;
        border-bottom: none;
        margin-bottom: 10%;
    }

    .best-tabs .tabs {
        width: 100%;
        justify-content: left;
        flex-wrap: wrap;
        align-items: center;
        margin: 5% 0 0;
    }

    .best-tabs .tabs li {
        border: 1px solid #ddd;
        border-radius: 8px;
        margin: 0 2% 2% 0;
        flex: 0 0 48%;
    }

    .best-tabs .date-navigator {
        width: 93%;
        margin: 3% auto 0;
    }

    .partner_search_result .rankBox h4.rnkTit {
        background-position: left 10%;
        font-size: 20px;
    }

    .partner_search_result .rankBox h4.rnkTit span {
        display: block;
    }

    .partner_search_result .partner_list_rank {
        width: 90%;
        margin: 20px auto 0;
    }

    .partner_search_result .custom-legend li {
        margin: 0 0 10% 0 !important;
        font-size: 13px;
    }

    #bestContainer .notice-txt {
        width: auto;
        padding: 5% 12%;
        margin: 4% -20px -20px;
    }

    #bestContainer .empty-state-css-icon {
        min-height: 180px;
        gap: 10px;
    }

    #bestContainer .empty-state-css-icon::before {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
}