/* ── Campanella notifiche ─────────────────────────────────────────────── */
.notif-bell { display: flex; align-items: center; margin-right: 6px; }
.notif-bell__button {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent;
    color: #fff; font-size: 1.15rem; transition: background-color .15s ease;
}
.notif-bell__button:hover, .notif-bell__button[aria-expanded="true"] { background: rgba(255,255,255,.16); }
.notif-bell__button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.notif-bell__count {
    position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 9px; background: #e5484d; color: #fff; font-size: 11px; font-weight: 700;
    line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #0092A7; font-variant-numeric: tabular-nums;
}
.notif-bell__count.is-bump { animation: notif-bump .35s ease-out; }
@keyframes notif-bump { 0% { transform: scale(.6); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }

.notif-panel {
    width: min(400px, calc(100vw - 24px)); padding: 0; border: 1px solid #dbe5ea; border-radius: 12px;
    box-shadow: 0 18px 40px -12px rgba(16, 52, 66, .28); overflow: hidden; margin-top: 8px !important;
}
.notif-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 16px 10px; border-bottom: 1px solid #eef2f4; }
.notif-panel__title { font-weight: 700; font-size: 15px; color: #12354a; }
.notif-panel__sub { font-size: 12px; color: #5b7482; }
.notif-panel__link { border: 0; background: none; padding: 2px 0; color: #007f90; font-size: 12px; font-weight: 600; white-space: nowrap; }
.notif-panel__link:hover { text-decoration: underline; }
.notif-panel__link:disabled { color: #9aaeb8; text-decoration: none; }
.notif-panel__list { max-height: min(420px, 60vh); overflow-y: auto; }
.notif-panel__empty { padding: 28px 16px; text-align: center; color: #5b7482; font-size: 13px; }
.notif-panel__empty i { display: block; font-size: 24px; color: #9fd5dd; margin-bottom: 8px; }
.notif-panel__footer { display: block; padding: 11px 16px; text-align: center; font-size: 13px; font-weight: 600; color: #007f90; text-decoration: none; border-top: 1px solid #eef2f4; background: #fafcfd; }
.notif-panel__footer:hover { background: #f0f7f9; color: #006777; }

/* Voce notifica, condivisa da pannello e pagina */
.notif-item { position: relative; display: flex; gap: 12px; padding: 12px 16px; color: #12354a; text-decoration: none; border-bottom: 1px solid #f1f4f6; transition: background-color .12s ease; }
.notif-item:last-child { border-bottom: 0; }
.notif-item:hover { background: #f4f9fa; color: #12354a; }
.notif-item.is-unread { background: #f2fafb; }
.notif-item.is-unread:hover { background: #e8f5f7; }
.notif-item.is-unread::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #0092A7; }
.notif-item__icon { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.notif-item__icon--ddt { background: #e6f4ff; color: #1f6fb2; }
.notif-item__icon--ordini { background: #fff3e0; color: #b05f00; }
.notif-item__body { min-width: 0; flex: 1; }
.notif-item__title { font-size: 13px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.notif-item.is-unread .notif-item__title { font-weight: 700; }
.notif-item__msg { font-size: 12px; color: #5b7482; line-height: 1.4; margin-top: 2px; }
.notif-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; font-size: 11px; color: #6c8592; }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: #0092A7; flex: 0 0 8px; margin-top: 6px; }
.notif-chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 18px; white-space: nowrap; }
.notif-chip--pending { background: #fff4d6; color: #8a5a00; }
.notif-chip--approved { background: #e3f6ea; color: #1e7a3c; }
.notif-chip--rejected { background: #fde8e8; color: #b42318; }
.notif-chip--gone { background: #eef1f3; color: #5b7482; }

@media (max-width: 575.98px) {
    .notif-bell { margin: 6px 0; }
    .notif-panel { position: fixed !important; left: 12px !important; right: 12px !important; top: 64px !important; transform: none !important; width: auto; }
}
@media (prefers-reduced-motion: reduce) { .notif-bell__count.is-bump { animation: none; } }
