/* Centre de notifications du tableau de bord. */

/*
 * Une image ne respecte pas automatiquement les dimensions de son parent.
 * Ces règles la contraignent donc au cercle prévu par la maquette, dans la
 * barre latérale comme dans la barre supérieure, quelle que soit sa taille
 * d'origine.
 */
.dashboard-avatar-image {
    display: block;
    width: 44px;
    height: 44px;
    overflow: hidden;
    object-fit: cover;
}

.top-avatar {
    overflow: hidden;
}

.top-avatar > img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}
.notification-center { position: relative; }
.notification-toggle { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #f6f7f9; color: #596174; }
.notification-toggle:hover { color: #ff751f; }
.notification-badge { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 99px; background: #ff751f; color: #fff; font-size: .58rem; font-weight: 800; }
.notification-panel { position: absolute; z-index: 120; top: calc(100% + .7rem); right: 0; width: min(380px, calc(100vw - 2rem)); overflow: hidden; border: 1px solid #e2e6ec; border-radius: 10px; background: #fff; box-shadow: 0 18px 45px rgba(24, 31, 43, .2); }
.notification-panel > header { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1rem; border-bottom: 1px solid #edf0f3; }
.notification-panel > header strong { font-size: .82rem; }
.notification-panel > header button { border: 0; background: transparent; color: #d95a0b; font-size: .7rem; font-weight: 800; }
.notification-list { max-height: 390px; overflow-y: auto; }
.notification-item { display: flex; align-items: flex-start; gap: .55rem; padding: .9rem 1rem; border-bottom: 1px solid #f0f2f5; color: #2c3040; }
.notification-item:hover { background: #fff7f2; color: #2c3040; }
.notification-content { flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.notification-item.is-unread { border-left: 3px solid #ff751f; background: #fffaf7; }
.notification-item strong, .notification-item small { display: block; }
.notification-item strong { font-size: .74rem; }
.notification-item small { margin-top: .25rem; color: #747e8d; font-size: .67rem; line-height: 1.45; }
.notification-action { flex: 0 0 auto; border: 0; background: transparent; color: #7c8493; font-size: .65rem; font-weight: 700; }
.notification-action:hover { color: #d95a0b; }.notification-delete { font-size: .8rem; }
.notification-empty { margin: 0; padding: 1.4rem 1rem; color: #7c8493; font-size: .75rem; text-align: center; }
@media (max-width: 600px) { .notification-panel { position: fixed; top: 70px; right: 1rem; left: 1rem; width: auto; } }
