/* ── Global Smart Alerts notification bell (navbar) ─────────────────────── */
.al-notif-btn {
    position: relative; width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid #e2e8f0;
    border-radius: 8px; cursor: pointer;
    color: #374151; transition: background .15s;
}
.al-notif-btn:hover { background: #f8fafc; }
.al-notif-dot {
    position: absolute; top: 2px; right: 2px;
    width: 8px; height: 8px; background: var(--danger-text);
    border-radius: 50%; border: 1.5px solid #fff;
    display: none;
}
.al-notif-popover {
    position: absolute; right: 0; top: calc(100% + 8px);
    width: 340px; background: #fff; border: 1px solid #e2e8f0;
    border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.1);
    z-index: 1050; display: none;
}
.al-notif-popover.open { display: block; }
.al-notif-header {
    padding: .8rem 1rem; border-bottom: 1px solid #f1f5f9;
    display: flex; justify-content: space-between; align-items: center;
}
.al-notif-header-title { font-size: .85rem; font-weight: 600; color: #0f172a; }
.al-notif-mark-read {
    font-size: .72rem; color: var(--tds-blue); cursor: pointer; background: none; border: none; padding: 0;
}
.al-notif-mark-read:hover { text-decoration: underline; }
.al-notif-list { max-height: 320px; overflow-y: auto; }
.al-notif-item {
    padding: .7rem 1rem; border-bottom: 1px solid #f8fafc;
    display: flex; gap: .7rem; align-items: flex-start;
    transition: background .12s;
}
.al-notif-item:hover { background: #f8fafc; }
.al-notif-item-icon {
    width: 28px; height: 28px; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: .72rem; flex-shrink: 0;
}
.al-notif-icon-warn { background: #fff7ed; color: #d97706; }
.al-notif-icon-crit { background: #F8EDED; color: var(--danger-text); }
.al-notif-item-body { flex: 1; min-width: 0; }
.al-notif-item-text { font-size: .76rem; color: #374151; line-height: 1.4; }
.al-notif-item-time { font-size: .68rem; color: #9ca3af; margin-top: 2px; }
.al-notif-empty { padding: 1.5rem; text-align: center; color: #9ca3af; font-size: .8rem; }
.al-notif-footer {
    padding: .6rem 1rem; border-top: 1px solid #f1f5f9; text-align: center;
}
.al-notif-footer a { font-size: .76rem; color: var(--tds-blue); text-decoration: none; }

@media (max-width: 991.98px) {
    .al-notif-btn { width: 34px; height: 34px; }
}

@media (max-width: 420px) {
    .al-notif-popover { width: calc(100vw - 2rem); right: -1rem; }
}
