/* Global tema stilleri */
body {
    font-feature-settings: "cv11" on, "ss01" on
}

.container {
    max-width: 1200px
}

.text-success {
    color: #0a7b2e !important
}

.bg-success-subtle {
    background: #e8f6ee
}

.bg-danger-subtle {
    background: #fdecec
}

/* Portfolio summary numbers: prevent wrap and scale down slightly on overflow */
.hk-card-shadow .h4 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 576px) {
    .hk-card-shadow .h4 {
        font-size: 1.15rem;
    }
}

.fund-icon {
    background: #fff
}

/* Fund card text clamp to avoid layout breaks */
.fund-card .fund-card-title {
    line-height: 1.3;
}

.fund-card .fund-card-title.len-40 {
    font-size: 0.98rem;
}

.fund-card .fund-card-title.len-55 {
    font-size: 0.92rem;
}

.fund-card .fund-card-title.len-70 {
    font-size: 0.86rem;
}

.fund-card .fund-card-sub {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Content box (auth vb.) */
.content-box-header {
    background: linear-gradient(135deg, #0ea5e9, #7c3aed);
    color: #fff;
    padding-top: 48px;
    padding-bottom: 56px;
}

.content-box-header .icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(16, 24, 40, .16);
}

.content-box .box {
    margin-top: -40px;
    max-width: 820px;
}

.nav-segment {
    display: flex;
    gap: 8px;
    background: #eef2f6;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 6px;
}

.nav-segment a {
    flex: 1;
    display: block;
    text-align: center;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #334155;
    font-weight: 600;
}

.nav-segment a.active {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 2px 6px rgba(16, 24, 40, .08);
    border: 1px solid #e5e7eb;
}

/* compare suggest shared */
.suggest-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 260px;
    overflow: auto;
    display: none
}

.suggest-item {
    padding: .5rem .75rem;
    cursor: pointer
}

.suggest-item:hover {
    background: #f1f5f9
}

/* Funds index: tooltip for fund name */
.has-tooltip {
    position: relative
}

.has-tooltip::after {
    content: attr(data-title);
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    transform: none;
    background: rgba(17, 24, 39, .95);
    color: #fff;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.2;
    white-space: normal;
    max-width: 280px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
    z-index: 9999
}

.has-tooltip:hover::after,
.has-tooltip:focus::after {
    opacity: 1
}

.fund-tooltip-bubble {
    position: absolute;
    left: 0;
    right: auto;
    top: 2.2rem;
    background: #111827;
    color: #fff;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.2;
    max-width: 70vw;
    z-index: 30
}

.fund-code-cell {
    position: relative
}
