/* Ова се промени за неделен ранкинг. Frontend [xf_leaderboard] styles. */
.xf-lb {
    margin: 0 0 1.5rem;
}
.xf-lb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: xf-lb;
}
.xf-lb-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .25rem;
    border-bottom: 1px solid var(--itmk-line);
    counter-increment: xf-lb;
}
.xf-lb-item:last-child {
    border-bottom: 0;
}
.xf-lb-badge {
    flex: 0 0 auto;
    white-space: nowrap;
	font-size:16px;
}
/* Member avatar. */
.xf-lb-avatar-link {
    flex: 0 0 auto;
    display: inline-flex;
    line-height: 0;
}
.xf-lb-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: #e5e7eb;
}
.xf-lb-name {
    flex: 1 1 auto;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/*
 * The theme's custom.js tags rows 4-5 as ".is-top-members-lower-row" and its
 * CSS shrinks their avatars to 16px (its "[class*=avatar]" selector also matches
 * our .xf-lb-avatar, and "> :nth-child(2)" matches the avatar wrapper). Keep
 * EVERY avatar in this widget the same size. Selectors below are 0,4,0 specific
 * so they beat the theme's 0,3,0 !important rules.
 */
.xf-lt-widget .is-top-members-lower-row.xf-lb-item .xf-lb-avatar-link,
.xf-lt-widget .is-top-members-lower-row.xf-lb-item .xf-lb-avatar {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    font-size: inherit !important;
}
/* Username link: keep the default text color, no underline. */
a.xf-lb-name {
    color: inherit;
    text-decoration: none;
}
a.xf-lb-name:hover,
a.xf-lb-name:focus {
    text-decoration: none;
    color: inherit;
}
.xf-lb-stats {
    flex: 0 0 auto;
    font-size: .85rem;
    color: #728092;
}
.xf-lb-stats b {
    color: inherit;
}
.xf-lb-empty {
    color: #888;
    font-style: italic;
}

.xf-lb-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.xf-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #555;
    font-size: 16px;
    font-weight: bold;
    cursor: help;
}

.xf-tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    max-width: 300px;
    padding: 8px 10px;
    border-radius: 6px;
    background: #222;
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
    transition: opacity .2s ease;
    z-index: 1000;
}

.xf-tooltip:hover .xf-tooltip-text {
    visibility: visible;
    opacity: 1;
}
