.topbar-notif {
    position: relative;
}

.topbar-notif .dropdown-menu {
    z-index: 2000;
}

.topbar-notif .dropdown-menu.show {
    display: block;
}

.topbar-notif__btn {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.topbar-notif__badge {
    position: absolute;
    top: -0.2rem;
    right: -0.2rem;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.1rem;
    text-align: center;
}

.topbar-notif__menu {
    width: min(22rem, calc(100vw - 1.5rem));
    max-height: min(24rem, 70vh);
    overflow: hidden;
    z-index: 1060;
}

.topbar-notif__head {
    background: #f8f9fa;
}

.topbar-notif__list {
    max-height: min(20rem, 60vh);
    overflow-y: auto;
}

.topbar-notif__item {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
    transition: background 0.12s ease;
}

.topbar-notif__item:hover,
.topbar-notif__item:focus-visible {
    background: rgba(25, 135, 84, 0.06);
}

.topbar-notif__item--unread {
    background: rgba(25, 135, 84, 0.04);
}

.topbar-notif__item-title {
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.topbar-notif__item-msg {
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
    line-height: 1.35;
}

.topbar-notif__item-time {
    font-size: 0.6875rem;
    color: #adb5bd;
}

.topbar-notif__empty {
    font-size: 0.8125rem;
    color: #6c757d;
    text-align: center;
    padding: 1.5rem 1rem;
}
