/* TGSI App / Notifications: estilos limitados al topbar. */
.notifications-trigger { position: relative; }
.notifications-badge {
    position: absolute;
    top: 0;
    right: -2px;
    min-width: 18px;
    font-size: .62rem;
    line-height: 1;
    padding: 4px 5px;
    pointer-events: none;
}
.notifications-menu {
    width: min(380px, calc(100vw - 20px));
    padding: 0;
    overflow: hidden;
    border-radius: .75rem;
}
.notifications-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    padding: .9rem 1rem;
    border-bottom: 1px solid var(--bs-border-color);
}
.notifications-list { max-height: 390px; overflow-y: auto; }
.notifications-item {
    display: block;
    width: 100%;
    padding: .85rem 1rem;
    text-align: left;
    color: var(--bs-body-color);
    background: var(--bs-body-bg);
    border: 0;
    border-bottom: 1px solid var(--bs-border-color-translucent);
}
.notifications-item:last-child { border-bottom: 0; }
.notifications-item:hover, .notifications-item:focus-visible {
    background: var(--bs-tertiary-bg);
}
.notifications-item.is-unread { background: var(--bs-secondary-bg); }
.notifications-item.is-urgent { border-left: 3px solid var(--bs-danger); }
.notifications-title { font-size: .88rem; font-weight: 600; line-height: 1.25; }
.notifications-text {
    margin: .3rem 0;
    font-size: .83rem;
    line-height: 1.4;
    color: var(--bs-secondary-color);
    overflow-wrap: anywhere;
}
.notifications-time { font-size: .7rem; color: var(--bs-secondary-color); }
.notifications-unread-dot {
    flex: none;
    width: 8px;
    height: 8px;
    margin-top: .3rem;
    border-radius: 50%;
    background: var(--bs-primary);
}
.notifications-item:disabled { opacity: .7; cursor: wait; }
@media (max-width: 575.98px) {
    .notifications-menu { max-width: calc(100vw - 20px); }
}
