/* ════════════════════════════════════════════════════════════════════════════
   EDUCATED 6 — NOTIFICATIONS (Navigation:Mode = V6)
   Fichier : wwwroot/css/notify-v6.css
   Composants : NavigationV6/Notifications/EducatedBell.razor (cloche de la barre du haut)
                NavigationV6/Notifications/EducatedNotifications.razor (« Mes notifications »)
   Maquette XafNotifications. Préfixes ed6n- (cloche) et edh-nt- (page, sous .edh).
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Cloche ─────────────────────────────────────────────────────────────── */
html.ed6-railmode .header .d-flex.ms-auto > .ed6n-bell { order: 2 !important; }

.ed6n-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0 2px 0 4px;
    padding-left: 8px;
    border-left: 1px solid #E9E7F3;
    font-family: "Geist", system-ui, sans-serif;
}

.ed6n-bell-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #4A4766;
    cursor: pointer;
    transition: background-color 120ms, color 120ms;
}
    .ed6n-bell-btn:hover, .ed6n-bell.is-open .ed6n-bell-btn { background: #F3F2F9; color: #342484; }
    .ed6n-bell-btn:focus-visible { outline: 2px solid #5351FB; outline-offset: 1px; }

.ed6n-badge {
    position: absolute;
    top: 3px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 99px;
    background: #5351FB;
    color: #FFFFFF;
    font: 700 10px/16px "Geist", system-ui, sans-serif;
    text-align: center;
    box-shadow: 0 0 0 2px #FFFFFF;
}
    .ed6n-badge.is-crit { background: linear-gradient(135deg, #DC4A63 0%, #B4233B 100%); }

.ed6n-moon {
    position: absolute;
    left: 3px;
    bottom: 3px;
    font-size: 10px;
    line-height: 1;
    color: #6E6A8A;
}

.ed6n-backdrop { position: fixed; inset: 0; z-index: 1090; }

.ed6n-drop {
    position: absolute;
    z-index: 1100;
    top: calc(100% + 8px);
    right: -60px;
    width: 380px;
    max-width: calc(100vw - 24px);
    display: flex;
    flex-direction: column;
    border: 1px solid #E9E7F3;
    border-radius: 14px;
    background: #FFFFFF;
    color: #14122B;
    font-size: 13px;
    line-height: 1.4;
    box-shadow: 0 22px 48px -18px rgba(20, 15, 62, .42), 0 2px 8px rgba(20, 15, 62, .08);
    overflow: hidden;
    animation: ed6n-in 160ms ease-out;
}
@keyframes ed6n-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.ed6n-drop-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px 6px; }
    .ed6n-drop-head b { font: 600 14px "Sora", sans-serif; letter-spacing: -.01em; }

.ed6n-link { border: 0; padding: 0; background: transparent; color: #5351FB; font: 600 12px "Geist", system-ui, sans-serif; cursor: pointer; }
    .ed6n-link:hover { text-decoration: underline; }
    .ed6n-link.ed6n-muted { color: #6E6A8A; }

.ed6n-tabs { display: flex; gap: 4px; padding: 4px 14px 8px; border-bottom: 1px solid #F0EEF7; }
    .ed6n-tabs button { height: 26px; padding: 0 10px; border: 0; border-radius: 99px; background: transparent; color: #4A4766; font: 600 12px "Geist", system-ui, sans-serif; cursor: pointer; }
    .ed6n-tabs button:hover { background: #F3F2F9; }
    .ed6n-tabs button.on { background: #14122B; color: #FFFFFF; }

.ed6n-quiet { padding: 7px 14px; background: #F7F6FC; color: #4A4766; font-size: 12px; border-bottom: 1px solid #F0EEF7; }

.ed6n-list { max-height: 420px; overflow-y: auto; }
.ed6n-none { padding: 28px 14px; text-align: center; color: #6E6A8A; }

.ed6n-row {
    position: relative;
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 26px 10px 14px;
    border: 0;
    border-bottom: 1px solid #F5F4FA;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
    .ed6n-row:hover { background: #FAF9FD; }
    .ed6n-row.is-unread { background: #FBFBFF; }
    .ed6n-row.is-unread:hover { background: #F3F3FF; }

.ed6n-ico { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; }
.ed6n-ico-crit { background: #FCEBEE; color: #B4233B; }
.ed6n-ico-warn { background: #FFEDE5; color: #C2410C; }
.ed6n-ico-brand { background: #EEEEFF; color: #5351FB; }
.ed6n-ico-green { background: #E8F6EF; color: #0E6B45; }

.ed6n-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
    .ed6n-txt b { font-weight: 600; font-size: 12.5px; color: #14122B; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .ed6n-row:not(.is-unread) .ed6n-txt b { font-weight: 500; color: #2B2846; }
    .ed6n-txt span { font-size: 12px; color: #6E6A8A; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ed6n-when { flex: none; font-size: 11px; color: #8A86A6; white-space: nowrap; padding-top: 2px; }
.ed6n-dot { position: absolute; right: 11px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #5351FB; }

.ed6n-drop-foot { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: #FAFAFE; border-top: 1px solid #F0EEF7; }

/* ── Page « Mes notifications » ─────────────────────────────────────────── */
.edh .edh-nt-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .edh .edh-nt-grid { grid-template-columns: minmax(0, 1fr); } }
.edh .edh-nt-list { overflow: hidden; padding-bottom: 6px; }
.edh .edh-nt-day { padding: 12px 16px 6px; font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #6E6A8A; border-top: 1px solid #F0EEF7; }
.edh .edh-nt-row { display: flex; align-items: center; border-top: 1px solid #F5F4FA; }
.edh .edh-nt-day + .edh-nt-row { border-top: 0; }
.edh .edh-nt-row.is-unread { background: #FBFBFF; }
.edh .edh-nt-main { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 12px; padding: 10px 8px 10px 16px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.edh .edh-nt-main:hover { background: #F7F6FC; }
.edh .edh-nt-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.edh .edh-nt-txt b { font-weight: 600; color: #14122B; }
.edh .edh-nt-row:not(.is-unread) .edh-nt-txt b { font-weight: 500; color: #2B2846; }
.edh .edh-nt-txt span { font-size: 12px; color: #6E6A8A; }
.edh .edh-nt-when { flex: none; font-size: 11.5px; color: #8A86A6; padding-top: 2px; white-space: nowrap; }
.edh .edh-nt-mark { flex: none; display: grid; place-items: center; width: 34px; height: 34px; margin-right: 8px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.edh .edh-nt-mark:hover { background: #EEEEFF; }
.edh .edh-nt-mark i { width: 8px; height: 8px; border-radius: 50%; background: #5351FB; }
.edh .edh-nt-mark.is-read { cursor: default; }

.edh .edh-nt-settings { display: flex; flex-direction: column; gap: 8px; padding: 16px; position: sticky; top: 12px; transition: box-shadow .3s; }
.edh .edh-nt-settings.is-flash { box-shadow: 0 0 0 3px rgba(83, 81, 251, .22); }
.edh .edh-nt-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.edh .edh-nt-table th { padding: 6px 4px; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #6E6A8A; text-align: center; border-bottom: 1px solid #F0EEF7; }
.edh .edh-nt-table th:first-child { text-align: left; }
.edh .edh-nt-table td { padding: 8px 4px; border-bottom: 1px solid #F5F4FA; text-align: center; vertical-align: middle; }
.edh .edh-nt-table td:first-child { text-align: left; }
.edh .edh-nt-table td b { display: block; font-weight: 600; color: #14122B; }
.edh .edh-nt-table td span { display: block; font-size: 11.5px; color: #6E6A8A; }

.edh .edh-nt-switch { position: relative; display: inline-block; width: 32px; height: 18px; cursor: pointer; }
.edh .edh-nt-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.edh .edh-nt-switch i { position: absolute; inset: 0; border-radius: 99px; background: #DDDAEE; transition: background .15s; pointer-events: none; }
.edh .edh-nt-switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 2px rgba(20, 18, 43, .25); transition: transform .15s; }
.edh .edh-nt-switch input:checked + i { background: #5351FB; }
.edh .edh-nt-switch input:checked + i::after { transform: translateX(14px); }
.edh .edh-nt-switch input:focus-visible + i { box-shadow: 0 0 0 3px rgba(83, 81, 251, .25); }
.edh .edh-nt-switch.is-off { opacity: .45; cursor: not-allowed; }
.edh .edh-nt-switch.is-off input { cursor: not-allowed; }

.edh .edh-nt-quiet { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 8px; padding-top: 12px; border-top: 1px solid #F0EEF7; }
.edh .edh-nt-quiet .edh-check { margin-left: 0; color: #14122B; font-size: 12.5px; }
.edh .edh-nt-hours { flex-wrap: wrap; }
.edh .edh-nt-hours input[type=time] { height: 28px; padding: 0 6px; border: 1px solid #E1DEEE; border-radius: 7px; font: inherit; color: #14122B; background: #FFFFFF; }
.edh .edh-nt-quiet-on { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 99px; background: #F3F2F9; color: #342484; font-size: 11.5px; font-weight: 600; }
