/* Notifications v2 (30/10/2026, drapeau notifs_v2). Tout est scopé sous #sNotifs.nv2. */
#sNotifs.nv2{width:100%;box-sizing:border-box}
#sNotifs.nv2 #nv2{padding-right:64px;position:relative}
#sNotifs.nv2 .nv2-cnt{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;padding:0;border-radius:6px;font-size:11px;font-weight:800;line-height:1;box-sizing:border-box;flex:0 0 auto}
#sNotifs.nv2 .nv2-cnt.l3{font-size:9.5px;letter-spacing:-.02em}
#sNotifs.nv2 .nv2-cnt.r{background:var(--red);color:#fff}
#sNotifs.nv2 .nv2-cnt.b{background:#e4ecf7;color:#1b5fa8}
#sNotifs.nv2 .nv2-cnt.g{background:var(--card2);color:var(--mut);border:1px solid var(--line)}
html.theme-dark #sNotifs.nv2 .nv2-cnt.b{background:#22506b;color:#dbe8ed}

/* bandeau « À faire » */
#sNotifs.nv2 .nv2-af{margin:12px 0 14px;position:relative}
#sNotifs.nv2 .nv2-afh{display:flex;align-items:baseline;gap:10px;margin:0 2px 8px;font-size:10.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--mut)}
#sNotifs.nv2 .nv2-afh span{font-size:11.5px;font-weight:500;letter-spacing:0;text-transform:none}
#sNotifs.nv2 .nv2-afg{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
#sNotifs.nv2 .nv2-afg.n3{grid-template-columns:repeat(3,minmax(0,1fr))}
#sNotifs.nv2 .nv2-afg.n2{grid-template-columns:repeat(2,minmax(0,1fr))}
#sNotifs.nv2 .nv2-c{display:grid;grid-template-columns:auto minmax(0,1fr) 16px;align-items:center;column-gap:12px;height:62px;padding:0 14px 0 16px;background:var(--card);border:1px solid var(--line);border-radius:12px;box-sizing:border-box;cursor:pointer;text-align:left;position:relative;overflow:hidden;font:inherit;color:inherit;width:100%}
#sNotifs.nv2 .nv2-c:hover{border-color:#b9c6cf}
#sNotifs.nv2 .nv2-c.on{border-color:var(--ink)}
#sNotifs.nv2 .nv2-c.late::before{content:"";position:absolute;left:0;top:12px;bottom:12px;width:3px;border-radius:0 3px 3px 0;background:var(--red)}
#sNotifs.nv2 .nv2-cn{font-size:24px;font-weight:800;color:var(--ink);min-width:30px;line-height:1}
#sNotifs.nv2 .nv2-c.late .nv2-cn{color:#c42b37}
#sNotifs.nv2 .nv2-c.zero .nv2-cn{color:var(--mut);font-weight:700}
html.theme-dark #sNotifs.nv2 .nv2-c.late .nv2-cn{color:#ff8a94}
#sNotifs.nv2 .nv2-ct{min-width:0;line-height:17px}
#sNotifs.nv2 .nv2-ct b{display:block;font-size:13px;font-weight:700;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#sNotifs.nv2 .nv2-ct span{display:block;font-size:11.5px;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#sNotifs.nv2 .nv2-c > svg{width:16px;height:16px;color:var(--mut)}

/* barre d'outils */
#sNotifs.nv2 .nv2-bar{display:flex;align-items:center;gap:6px;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:7px 9px;margin-bottom:14px;position:relative}
#sNotifs.nv2 .nv2-seg{display:inline-flex;gap:2px;padding:3px;background:var(--card2);border:1px solid var(--line);border-radius:10px;flex:0 0 auto}
#sNotifs.nv2 .nv2-seg button{border:0;background:transparent;border-radius:7px;padding:0 8px;height:26px;font-weight:700;font-size:12.5px;color:var(--mut);cursor:pointer;white-space:nowrap;display:inline-flex;align-items:center;gap:7px;font-family:inherit}
#sNotifs.nv2 .nv2-seg button.on{background:var(--card);color:var(--ink);box-shadow:0 1px 3px rgba(15,29,51,.14)}
#sNotifs.nv2 .nv2-search{flex:1;min-width:80px;display:flex;align-items:center;gap:7px;background:var(--card);border:1px solid var(--line);border-radius:10px;padding:0 10px;height:34px;color:var(--mut);box-sizing:border-box;margin:0}
#sNotifs.nv2 .nv2-search svg{width:15px;height:15px;flex:0 0 auto}
#sNotifs.nv2 .nv2-search input{border:0;outline:0;background:transparent;flex:1;min-width:0;font-size:12.5px;color:var(--txt);padding:0;height:30px;font-family:inherit}
#sNotifs.nv2 .nv2-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:34px;border:1px solid var(--line);border-radius:10px;background:var(--card);padding:0 12px;font-weight:700;font-size:12.5px;color:var(--txt);white-space:nowrap;box-sizing:border-box;flex:0 0 auto;cursor:pointer;font-family:inherit}
#sNotifs.nv2 .nv2-btn svg{width:14px;height:14px;color:var(--mut)}
#sNotifs.nv2 .nv2-btn.tg{color:var(--mut)}
#sNotifs.nv2 .nv2-btn.on{color:var(--ink);border-color:var(--ink)}
#sNotifs.nv2 .nv2-btn:hover{background:var(--card2)}
#sNotifs.nv2 .nv2-gear{width:34px;padding:0}
#sNotifs.nv2 .nv2-gear svg{width:16px;height:16px}

/* liste */
#sNotifs.nv2 .nv2-list{background:var(--card);border:1px solid var(--line);border-radius:12px;margin-bottom:76px;position:relative}
#sNotifs.nv2 .nv2-cols,#sNotifs.nv2 .nv2-r{display:grid;grid-template-columns:20px 32px minmax(0,1fr) 44px 156px 128px 76px;align-items:center;column-gap:12px;padding:0 14px 0 12px}
#sNotifs.nv2 .nv2-cols{height:34px;border-bottom:1px solid var(--line);font-size:10.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--mut)}
#sNotifs.nv2 .nv2-cols span{white-space:nowrap}
#sNotifs.nv2 .nv2-cols .c-nb{text-align:center}
#sNotifs.nv2 .nv2-cols .c-act{text-align:right}
#sNotifs.nv2 .nv2-g{display:flex;align-items:center;gap:9px;height:38px;padding:0 14px 0 16px;background:var(--card2);border-bottom:1px solid var(--line);font-size:12px;font-weight:800;color:var(--ink)}
#sNotifs.nv2 .nv2-g .nv2-gd{font-weight:600;color:var(--mut)}
#sNotifs.nv2 .nv2-g .nv2-cnt{margin-left:auto}
#sNotifs.nv2 .nv2-r{height:58px;border-bottom:1px solid var(--line);position:relative;cursor:pointer}
#sNotifs.nv2 .nv2-list > .nv2-r:last-child{border-bottom:0}
#sNotifs.nv2 .nv2-r:hover{background:color-mix(in srgb,var(--card2) 55%,transparent)}
#sNotifs.nv2 .nv2-r.gris .nv2-lb{color:var(--mut)}
#sNotifs.nv2 .nv2-dot{width:8px;height:8px;border-radius:50%;justify-self:center}
#sNotifs.nv2 .nv2-dot.t-urgent{background:var(--red)}
#sNotifs.nv2 .nv2-dot.t-todo{background:#1b6ac2}
html.theme-dark #sNotifs.nv2 .nv2-dot.t-todo{background:#5aa6ef}
#sNotifs.nv2 .nv2-ico{width:32px;height:32px;border-radius:9px;background:var(--card2);border:1px solid var(--line);color:var(--mut);display:flex;align-items:center;justify-content:center;box-sizing:border-box}
#sNotifs.nv2 .nv2-ico svg{width:15px;height:15px}
#sNotifs.nv2 .nv2-ico.ia{background:var(--ia-soft);border-color:transparent;color:var(--ia)}
#sNotifs.nv2 .nv2-ico.alerte{background:#fdecee;border-color:transparent;color:#c42b37}
html.theme-dark #sNotifs.nv2 .nv2-ico.alerte{background:#3a2229;color:#ff8a94}
#sNotifs.nv2 .nv2-t{min-width:0}
#sNotifs.nv2 .nv2-lb{font-size:13.5px;font-weight:600;color:var(--txt);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:18px}
#sNotifs.nv2 .nv2-r.unread .nv2-lb{font-weight:700;color:var(--ink)}
#sNotifs.nv2 .nv2-lb .nv2-chev{display:inline-flex;align-items:center;justify-content:center;width:16px;height:18px;margin-left:6px;vertical-align:top;color:var(--mut);transition:transform .15s}
#sNotifs.nv2 .nv2-lb .nv2-chev svg{width:14px;height:14px}
#sNotifs.nv2 .nv2-r.ouvert .nv2-lb .nv2-chev{transform:rotate(180deg)}
#sNotifs.nv2 .nv2-sb{font-size:12px;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:17px;margin-top:2px}
#sNotifs.nv2 .nv2-sb b{font-weight:700;color:var(--txt)}
#sNotifs.nv2 .nv2-sb a.nv2-tkl{color:#1b5fa8;font-weight:600;text-decoration:none}
#sNotifs.nv2 .nv2-sb a.nv2-tkl:hover{text-decoration:underline}
html.theme-dark #sNotifs.nv2 .nv2-sb a.nv2-tkl{color:#7fb8ec}
#sNotifs.nv2 .nv2-sb .ok{color:#18794e;font-weight:600}
html.theme-dark #sNotifs.nv2 .nv2-sb .ok{color:#7ee2a8}
#sNotifs.nv2 .nv2-nb{justify-self:center}
#sNotifs.nv2 .nv2-ty{font-size:12px;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#sNotifs.nv2 .nv2-wh{line-height:17px;white-space:nowrap}
#sNotifs.nv2 .nv2-wa{font-size:12.5px;font-weight:700;color:var(--txt)}
#sNotifs.nv2 .nv2-wb{font-size:11.5px;color:var(--mut)}
#sNotifs.nv2 .nv2-acts{display:flex;align-items:center;justify-content:flex-end;gap:6px}
#sNotifs.nv2 .nv2-lu,#sNotifs.nv2 .nv2-more{width:32px;height:32px;border:1px solid var(--line);border-radius:9px;background:var(--card);color:var(--mut);display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;flex:0 0 auto;cursor:pointer;padding:0}
#sNotifs.nv2 .nv2-lu svg{width:14px;height:14px}
#sNotifs.nv2 .nv2-more svg{width:15px;height:15px}
#sNotifs.nv2 .nv2-lu:hover{border-color:#18794e;color:#18794e;background:var(--card)}
html.theme-dark #sNotifs.nv2 .nv2-lu:hover{border-color:#7ee2a8;color:#7ee2a8}
#sNotifs.nv2 .nv2-more:hover{color:var(--ink);background:var(--card2)}
#sNotifs.nv2 .nv2-lu.vide{visibility:hidden}
#sNotifs.nv2 .nv2-more.on{border-color:var(--ink);color:var(--ink)}

/* occurrences dépliées */
#sNotifs.nv2 .nv2-occ{background:color-mix(in srgb,var(--card2) 45%,transparent);border-bottom:1px solid var(--line);padding:4px 0}
#sNotifs.nv2 .nv2-o{display:grid;grid-template-columns:118px minmax(0,1fr) 72px 96px;column-gap:12px;align-items:center;min-height:34px;padding:0 14px 0 64px;cursor:pointer;font-size:12.5px}
#sNotifs.nv2 .nv2-o:hover{background:var(--card2)}
#sNotifs.nv2 .nv2-o .ot{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--txt)}
#sNotifs.nv2 .nv2-o .ot b{font-weight:700;color:var(--ink)}
#sNotifs.nv2 .nv2-o .od{color:var(--mut);white-space:nowrap}
#sNotifs.nv2 .nv2-o .on{color:#1b5fa8;font-weight:600;white-space:nowrap}
html.theme-dark #sNotifs.nv2 .nv2-o .on{color:#7fb8ec}
#sNotifs.nv2 .nv2-o .oa{text-align:right;color:var(--mut);font-size:11.5px}

/* état « à jour » et messages */
#sNotifs.nv2 .nv2-ok{display:flex;align-items:center;gap:16px;padding:26px 24px;background:var(--card);border:1px solid var(--line);border-radius:12px;margin-bottom:76px}
#sNotifs.nv2 .nv2-oki{width:44px;height:44px;border-radius:50%;background:#dff3e8;color:#18794e;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
html.theme-dark #sNotifs.nv2 .nv2-oki{background:#1d4a37;color:#7ee2a8}
#sNotifs.nv2 .nv2-oki svg{width:20px;height:20px}
#sNotifs.nv2 .nv2-okt b{display:block;font-size:15px;font-weight:800;color:var(--ink)}
#sNotifs.nv2 .nv2-okt span{display:block;font-size:12.5px;color:var(--mut);margin-top:3px}
#sNotifs.nv2 .nv2-ok .nv2-btn{margin-left:auto}
#sNotifs.nv2 .nv2-msg{padding:16px 18px;font-size:12.5px;color:var(--mut)}
#sNotifs.nv2 .nv2-err{margin:0 0 12px;padding:9px 12px;border-radius:10px;background:#fdecee;color:#9b1c27;font-size:12.5px;font-weight:600}
html.theme-dark #sNotifs.nv2 .nv2-err{background:#3a2229;color:#ffb3ba}

/* menus flottants */
#sNotifs.nv2 .nv2-pop{position:absolute;z-index:30;width:290px;background:var(--card);border:1px solid var(--line);border-radius:12px;box-shadow:0 14px 34px rgba(13,31,41,.18);padding:6px;box-sizing:border-box;cursor:default}
#sNotifs.nv2 .nv2-r .nv2-pop{right:14px;top:50px}
#sNotifs.nv2 .nv2-po{display:flex;align-items:center;gap:9px;height:34px;padding:0 10px;border-radius:8px;font-size:13px;font-weight:600;color:var(--ink);white-space:nowrap;cursor:pointer}
#sNotifs.nv2 .nv2-po svg{width:14px;height:14px;color:var(--mut);flex:0 0 auto}
#sNotifs.nv2 .nv2-po:hover{background:var(--card2)}
#sNotifs.nv2 .nv2-po.mute{color:var(--mut)}
#sNotifs.nv2 .nv2-psep{height:1px;background:var(--line);margin:5px 4px}
#sNotifs.nv2 .nv2-ph{font-size:10.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--mut);padding:7px 10px 4px}
#sNotifs.nv2 .nv2-pf{width:320px;right:56px;top:48px;padding:10px 12px 12px}
#sNotifs.nv2 .nv2-pf label{display:block;font-size:11.5px;font-weight:700;color:var(--mut);margin:6px 0 4px}
#sNotifs.nv2 .nv2-pf select{width:100%;height:34px;border:1px solid var(--line);border-radius:9px;background:var(--card);color:var(--txt);font-size:12.5px;padding:0 8px;font-family:inherit}
#sNotifs.nv2 .nv2-pf .nv2-pfb{display:flex;justify-content:flex-end;margin-top:10px}
#sNotifs.nv2 .nv2-pt{width:440px;left:0;top:74px;max-height:360px;overflow:auto}
#sNotifs.nv2 .nv2-pt .nv2-po{height:auto;min-height:40px;align-items:center}
#sNotifs.nv2 .nv2-pt .pt{min-width:0;flex:1;line-height:16px;padding:4px 0}
#sNotifs.nv2 .nv2-pt .pt b{display:block;font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#sNotifs.nv2 .nv2-pt .pt span{display:block;font-size:11.5px;color:var(--mut);font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#sNotifs.nv2 .nv2-pt .pn{color:#1b5fa8;font-weight:700;font-size:12px}
html.theme-dark #sNotifs.nv2 .nv2-pt .pn{color:#7fb8ec}

/* panneau Réglages */
#sNotifs.nv2 .nv2-veil{position:fixed;inset:0;z-index:69;background:rgba(13,31,41,.18)}
#sNotifs.nv2 .nv2-set{position:fixed;right:0;top:0;bottom:0;width:440px;z-index:70;background:var(--card);border-left:1px solid var(--line);box-shadow:-16px 0 40px rgba(13,31,41,.16);display:flex;flex-direction:column;box-sizing:border-box}
#sNotifs.nv2 .nv2-sh{display:flex;align-items:center;height:58px;padding:0 14px 0 22px;border-bottom:1px solid var(--line);font-size:15px;font-weight:800;color:var(--ink);flex:0 0 auto}
#sNotifs.nv2 .nv2-sh button{margin-left:auto;width:32px;height:32px;border:0;background:transparent;color:var(--mut);font-size:16px;cursor:pointer;border-radius:8px}
#sNotifs.nv2 .nv2-sh button:hover{background:var(--card2)}
#sNotifs.nv2 .nv2-sbody{padding:6px 22px 90px;overflow:auto;flex:1}
#sNotifs.nv2 .nv2-sk{font-size:10.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--mut);margin:16px 0 4px}
#sNotifs.nv2 .nv2-sl{display:grid;grid-template-columns:minmax(0,1fr) 36px;align-items:center;column-gap:12px;min-height:40px;border-bottom:1px solid var(--line);cursor:pointer}
#sNotifs.nv2 .nv2-sl.wide{grid-template-columns:minmax(0,1fr) auto}
#sNotifs.nv2 .nv2-sl.lock{cursor:default}
#sNotifs.nv2 .nv2-sl b{font-size:13px;font-weight:600;color:var(--ink)}
#sNotifs.nv2 .nv2-sl i{display:block;font-style:normal;font-size:11.5px;color:var(--mut);line-height:15px;margin:1px 0 6px}
#sNotifs.nv2 .nv2-sw{width:34px;height:20px;border-radius:10px;background:#c9d2d8;position:relative;justify-self:end}
#sNotifs.nv2 .nv2-sw::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2);transition:left .12s}
#sNotifs.nv2 .nv2-sw.on{background:#143240}
html.theme-dark #sNotifs.nv2 .nv2-sw.on{background:#2f6f8f}
#sNotifs.nv2 .nv2-sw.on::after{left:16px}
#sNotifs.nv2 .nv2-sw.lock{background:#9aa8b1}
#sNotifs.nv2 .nv2-scl{justify-self:end;font-size:12px;font-weight:700;color:var(--txt);white-space:nowrap;display:inline-flex;align-items:center;gap:6px}
#sNotifs.nv2 .nv2-scl svg{width:13px;height:13px;color:var(--mut)}
#sNotifs.nv2 .nv2-sub{padding:2px 0 8px 12px;border-bottom:1px solid var(--line)}
#sNotifs.nv2 .nv2-sub .nv2-sl{min-height:32px;border-bottom:0}
#sNotifs.nv2 .nv2-sub .nv2-sl b{font-weight:500;font-size:12.5px}
