/* Notifications: small pop-ups, compact bell list, do not disturb. Levels: Critical #D92D20 · Warning #E8A317 · Info #2E90FA · Resolved #22A06B */
:root { --nb-critical: #D92D20; --nb-warning: #E8A317; --nb-info: #2E90FA; --nb-resolved: #22A06B; }

/* ---- the old slide-over is replaced by our list (only once the script has started) ---- */
html.nb-on .fi-modal.fi-no-database { display: none !important; }
html.nb-on .fi-no-database .fi-icon-btn-badge-ctn, html.nb-on .fi-no-database .fi-badge { display: none !important; }
button[aria-label^="Notifications"] { position: relative; }
.nb-badge { position: absolute; top: -3px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: #D92D20; color: #fff; font: 700 10px/16px system-ui, sans-serif; text-align: center; box-sizing: border-box; }
.nb-badge[hidden] { display: none; }
.nb-dnd { border: 0; background: transparent; color: var(--dk-fg-667085, #667085); width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; margin-right: 2px; }
.nb-dnd:hover { background: var(--dk-bg-f2f4f7, #F2F4F7); } .nb-dnd.is-on { color: var(--dk-fg-b54708, #B54708); background: var(--dk-bg-fef0c7, #FEF0C7); }
body:has(:is(.fv-page, .fv-settings)) .prov-bar { right: 150px !important; z-index: 65 !important; }

/* ---- pop-ups ---- */
#fv-toasts { position: fixed; right: 16px; bottom: 16px; z-index: 1500; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; pointer-events: none; width: 340px; max-width: calc(100vw - 20px); }
.nb-t { pointer-events: auto; position: relative; width: 340px; max-width: 100%; height: 40px; box-sizing: border-box; background: var(--dk-bg-ffffff, #fff); border-radius: 10px; border-left: 3px solid var(--nb-info); box-shadow: 0 4px 14px rgba(16,24,40,.16), 0 0 0 1px rgba(16,24,40,.05);
    display: flex; align-items: center; gap: 7px; padding: 0 8px 0 10px; font: 12.5px/1 system-ui, 'Segoe UI', sans-serif; color: var(--dk-fg-344054, #344054); overflow: hidden; cursor: pointer; animation: nb-in .2s ease-out; }
.nb-t.nb-off { display: none; } .nb-t.nb-out { opacity: 0; transform: translateX(14px); transition: opacity .2s, transform .2s; }
.nb-t.nb-critical { border-left-color: var(--nb-critical); } .nb-t.nb-warning { border-left-color: var(--nb-warning); } .nb-t.nb-info { border-left-color: var(--nb-info); } .nb-t.nb-resolved { border-left-color: var(--nb-resolved); }
.nb-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; background: var(--nb-info); display: inline-block; }
.nb-critical > .nb-dot, .nb-dot.nb-critical { background: var(--nb-critical); } .nb-warning > .nb-dot, .nb-dot.nb-warning { background: var(--nb-warning); } .nb-resolved > .nb-dot, .nb-dot.nb-resolved { background: var(--nb-resolved); } .nb-dot.nb-info { background: var(--nb-info); }
.nb-txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .nb-txt b { color: var(--dk-fg-101828, #101828); font-weight: 700; } .nb-txt span { color: var(--dk-fg-667085, #667085); }
.nb-n { font-style: normal; font-weight: 700; font-size: 11px; background: var(--dk-bg-f2f4f7, #F2F4F7); color: var(--dk-fg-344054, #344054); border-radius: 999px; padding: 2px 6px; flex: 0 0 auto; } .nb-n:empty { display: none; }
.nb-t time, .nb-r time { color: var(--dk-fg-98a2b3, #98A2B3); font-size: 11px; flex: 0 0 auto; }
.nb-x { border: 0; background: none; color: var(--dk-fg-98a2b3, #98A2B3); font-size: 17px; line-height: 1; cursor: pointer; padding: 0 2px; flex: 0 0 auto; } .nb-x:hover { color: var(--dk-fg-344054, #344054); }
.nb-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: currentColor; opacity: .55; transform-origin: left; animation: nb-bar 8s linear forwards; }
.nb-warning .nb-bar { color: var(--dk-fgv-nb-warning, var(--nb-warning)); } .nb-resolved .nb-bar { color: var(--dk-fgv-nb-resolved, var(--nb-resolved)); } .nb-critical .nb-bar { color: var(--dk-fgv-nb-critical, var(--nb-critical)); } .nb-info .nb-bar { color: var(--dk-fgv-nb-info, var(--nb-info)); }
.nb-more { pointer-events: auto; border: 1px solid var(--dk-bd-d0d5dd, #D0D5DD); background: var(--dk-bg-ffffff, #fff); border-radius: 999px; font: 600 11.5px system-ui, sans-serif; color: var(--dk-fg-344054, #344054); padding: 3px 11px; cursor: pointer; box-shadow: 0 2px 8px rgba(16,24,40,.12); } .nb-more[hidden] { display: none; }
@keyframes nb-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes nb-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ---- the bell list ---- */
#fv-bell-panel { position: fixed; top: 48px; right: 12px; width: 360px; max-width: calc(100vw - 20px); max-height: min(72vh, 600px); z-index: 1500; background: var(--dk-bg-ffffff, #fff); border-radius: 12px; display: flex; flex-direction: column; overflow: hidden;
    box-shadow: 0 12px 32px rgba(16,24,40,.2), 0 0 0 1px rgba(16,24,40,.07); font: 12.5px/1.2 system-ui, 'Segoe UI', sans-serif; color: var(--dk-fg-344054, #344054); }
#fv-bell-panel[hidden] { display: none; }
.nb-h { display: flex; align-items: center; gap: 8px; padding: 9px 12px 6px; } .nb-h b { font-size: 13px; color: var(--dk-fg-101828, #101828); }
.nb-q { background: var(--dk-bg-fef0c7, #FEF0C7); color: var(--dk-fg-b54708, #B54708); border-radius: 999px; font-size: 10.5px; font-weight: 700; padding: 2px 7px; }
.nb-link { margin-left: auto; border: 0; background: none; color: var(--dk-fg-b54708, #B54708); font: 600 12px system-ui, sans-serif; cursor: pointer; padding: 0; } .nb-link:hover { text-decoration: underline; }
.nb-tabs { display: flex; gap: 4px; padding: 0 10px 6px; border-bottom: 1px solid var(--dk-bd-eaecf0, #EAECF0); }
.nb-tabs button { border: 0; background: none; font: 600 12px system-ui, sans-serif; color: var(--dk-fg-667085, #667085); padding: 4px 10px; border-radius: 7px; cursor: pointer; } .nb-tabs button.is-on { background: var(--dk-bg-f2f4f7, #F2F4F7); color: var(--dk-fg-101828, #101828); }
.nb-list { overflow-y: auto; flex: 1; min-height: 60px; }
.nb-day { padding: 7px 12px 3px; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--dk-fg-98a2b3, #98A2B3); }
.nb-r { height: 36px; box-sizing: border-box; padding: 0 12px; display: flex; align-items: center; gap: 7px; cursor: pointer; border-bottom: 1px solid var(--dk-bd-f2f4f7, #F2F4F7); } .nb-r:hover { background: var(--dk-bg-f9fafb, #F9FAFB); }
.nb-r.is-read, .nb-r.is-read .nb-txt b { color: var(--dk-fg-98a2b3, #98A2B3); font-weight: 500; } .nb-r.is-read .nb-txt span { color: var(--dk-fg-b0b6c1, #B0B6C1); } .nb-r.is-read .nb-dot { opacity: .45; }
.nb-res { font-style: normal; font-size: 10px; font-weight: 700; color: var(--dk-fg-067647, #067647); background: var(--dk-bg-ecfdf3, #ECFDF3); border-radius: 999px; padding: 2px 6px; flex: 0 0 auto; }
.nb-empty { padding: 22px; text-align: center; color: var(--dk-fg-98a2b3, #98A2B3); }
.nb-f { display: flex; justify-content: space-between; padding: 8px 12px; border-top: 1px solid var(--dk-bd-eaecf0, #EAECF0); background: var(--dk-bg-fafafb, #FAFAFB); } .nb-f a { color: var(--dk-fg-b54708, #B54708); font-weight: 600; text-decoration: none; } .nb-f a:hover { text-decoration: underline; }
/* level pills (History page) */
.lv-critical { background: var(--dk-bg-fef3f2, #FEF3F2); color: var(--dk-fg-b42318, #B42318); } .lv-warning { background: var(--dk-bg-fffaeb, #FFFAEB); color: var(--dk-fg-9a5b00, #9A5B00); } .lv-info { background: var(--dk-bg-eff8ff, #EFF8FF); color: var(--dk-fg-175cd3, #175CD3); } .lv-resolved { background: var(--dk-bg-ecfdf3, #ECFDF3); color: var(--dk-fg-067647, #067647); }
@media (max-width: 560px) { #fv-toasts { right: 8px; bottom: 8px; } }

/* ================= two bells: NETWORK (red) and CUSTOMERS (blue) ================= */
:root { --nb-net: #D92D20; --nb-cust: #1D6FE0; }
button.fv-bell { position: relative; color: var(--dk-fgv-nb-cust, var(--nb-cust)); } button.fv-bell-network { color: var(--dk-fgv-nb-net, var(--nb-net)); }
button.fv-bell:hover { background: rgba(16, 24, 40, .06); }
button.fv-bell-network.has-unread svg { animation: nb-pulse 1.8s ease-in-out infinite; }
.fv-bell-host { display: inline-flex; }
.nb-badge { background: var(--nb-cust); } button.fv-bell-network .nb-badge { background: var(--nb-net); }
@keyframes nb-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) { button.fv-bell-network.has-unread svg { animation: none; } }

/* pop-up stacks: Network top-right (red border), Customers bottom-right (blue border, silent) */
.fv-toasts { position: fixed; right: 16px; z-index: 1500; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; pointer-events: none; width: 340px; max-width: calc(100vw - 20px); }
.fv-toasts-network { top: 56px; } .fv-toasts-customer { bottom: 16px; }
.nb-t.nb-cat-network { border-left: 4px solid var(--nb-net); } .nb-t.nb-cat-customer { border-left: 4px solid var(--nb-cust); }
.nb-t.nb-cat-network.nb-resolved { border-left-color: var(--nb-resolved); }
.fv-toasts-network .nb-t { animation-name: nb-in-top; }
@keyframes nb-in-top { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .fv-toasts { right: 8px; } .fv-toasts-customer { bottom: 8px; } }

/* the panels */
#fv-bell-panel.nb-p-network { box-shadow: 0 12px 32px rgba(16, 24, 40, .2), 0 0 0 1px rgba(217, 45, 32, .35); }
#fv-bell-panel.nb-p-customer, #fv-bell-panel.nb-p-personal { box-shadow: 0 12px 32px rgba(16, 24, 40, .2), 0 0 0 1px rgba(29, 111, 224, .35); }
#fv-bell-panel { width: 400px; }
.nb-h .nb-ic { display: inline-flex; } .nb-ic-network { color: var(--dk-fgv-nb-net, var(--nb-net)); } .nb-ic-customer, .nb-ic-personal { color: var(--dk-fgv-nb-cust, var(--nb-cust)); }
.nb-h strong { font-size: 14px; color: var(--dk-fg-101828, #101828); } .nb-h b { font-weight: 600; color: var(--dk-fg-667085, #667085); }
.nb-chips { display: flex; gap: 4px; padding: 0 10px 6px; flex-wrap: wrap; }
.nb-chips button { border: 1px solid var(--dk-bd-d0d5dd, #D0D5DD); background: var(--dk-bg-ffffff, #fff); font: 600 11.5px system-ui, sans-serif; color: var(--dk-fg-475467, #475467); padding: 3px 9px; border-radius: 999px; cursor: pointer; }
.nb-p-network .nb-chips button.is-on { background: var(--dk-bg-fef3f2, #FEF3F2); border-color: var(--nb-net); color: var(--dk-fg-b42318, #B42318); } .nb-p-customer .nb-chips button.is-on { background: var(--dk-bg-eff8ff, #EFF8FF); border-color: var(--nb-cust); color: var(--dk-fg-175cd3, #175CD3); }
.nb-r { height: auto; min-height: 40px; padding-top: 5px; padding-bottom: 5px; }
.nb-r .nb-txt { white-space: normal; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.nb-r .nb-txt b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-r .nb-txt small { color: var(--dk-fg-667085, #667085); font-size: 11px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nb-r.is-read .nb-txt small { color: var(--dk-fg-b0b6c1, #B0B6C1); }
.nb-aff { color: var(--dk-fg-175cd3, #175CD3); font-weight: 600; text-decoration: none; margin-left: 4px; } .nb-aff:hover { text-decoration: underline; }
.nb-pill { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px; flex: 0 0 auto; }
.nb-lv-critical { background: var(--dk-bg-fef3f2, #FEF3F2); color: var(--dk-fg-b42318, #B42318); } .nb-lv-warning { background: var(--dk-bg-fffaeb, #FFFAEB); color: var(--dk-fg-9a5b00, #9A5B00); } .nb-lv-info { background: var(--dk-bg-eff8ff, #EFF8FF); color: var(--dk-fg-175cd3, #175CD3); } .nb-lv-resolved { background: var(--dk-bg-ecfdf3, #ECFDF3); color: var(--dk-fg-067647, #067647); }
.nb-f a { color: var(--dk-fg-175cd3, #175CD3); }
.nb-p-network .nb-f a:last-child { color: var(--dk-fg-b42318, #B42318); }

/* the yellow area banner (people without the Network bell) */
#fv-banners { position: fixed; top: 52px; left: 50%; transform: translateX(-50%); z-index: 1400; display: flex; flex-direction: column; gap: 4px; width: min(640px, calc(100vw - 24px)); pointer-events: none; }
.fv-banner { pointer-events: auto; display: flex; align-items: center; gap: 8px; background: var(--dk-bg-fef0c7, #FEF0C7); border: 1px solid #F5C451; color: var(--dk-fg-7a4a00, #7A4A00); border-radius: 9px; padding: 6px 10px; font: 600 12.5px/1.25 system-ui, 'Segoe UI', sans-serif; box-shadow: 0 2px 8px rgba(16, 24, 40, .12); }
.fv-banner b { background: #B54708; color: #fff; width: 17px; height: 17px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; flex: 0 0 auto; }
.fv-banner span { flex: 1; } .fv-banner button { border: 0; background: none; color: var(--dk-fg-7a4a00, #7A4A00); font-size: 17px; line-height: 1; cursor: pointer; }
/* Compact 2-line rows (both bells) */
#fv-bell-panel { width: 380px; max-height: min(560px, 86vh); }
.nb-h strong { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .nb-hc { color: var(--dk-fg-667085, #667085); font-weight: 600; }
.nb-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 7px; } .nb-chips::-webkit-scrollbar { display: none; } .nb-chips button { flex: 0 0 auto; padding: 2px 8px; font-size: 11px; }
#fv-bell-panel .nb-list { overflow-y: auto; position: relative; }
.nb-sec { position: sticky; top: 0; z-index: 3; padding: 5px 12px; background: var(--dk-bg-f9fafb, #F9FAFB); border-top: 1px solid var(--dk-bd-eaecf0, #EAECF0); border-bottom: 1px solid var(--dk-bd-eaecf0, #EAECF0); font: 700 10.5px system-ui, sans-serif; letter-spacing: .05em; color: var(--dk-fg-667085, #667085); }
.nb-sec-r { display: flex; justify-content: space-between; align-items: center; } .nb-lk2 { font-size: 11px; text-transform: none; letter-spacing: 0; }
.nr { display: flex; align-items: center; gap: 8px; box-sizing: border-box; min-height: 46px; padding: 5px 10px 5px 12px; border-bottom: 1px solid var(--dk-bd-f2f4f7, #F2F4F7); background: var(--dk-bg-ffffff, #fff); }
.nr.is-link { cursor: pointer; } .nr.is-unread { background: var(--dk-bg-fff7ed, #FFF7ED); } .nr.is-link:hover { background: var(--dk-bg-fef0dd, #FEF0DD); } .nr.is-read.is-link:hover { background: var(--dk-bg-f9fafb, #F9FAFB); }
.nr.is-done { opacity: .62; }
.nr-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.nr-l1 { display: flex; align-items: center; gap: 5px; min-width: 0; line-height: 1.25; }
.nr-l1 .nb-dot { flex: 0 0 auto; margin: 0; }
.nr-tag { flex: 0 0 auto; font: 700 9.5px system-ui, sans-serif; letter-spacing: .03em; }
.t-critical { color: var(--dk-fg-b42318, #B42318); } .t-warning { color: var(--dk-fg-b54708, #B54708); } .t-info { color: var(--dk-fg-175cd3, #175CD3); } .t-worse { color: var(--dk-fg-93370d, #93370D); } .t-reminder { color: var(--dk-fg-6941c6, #6941C6); } .t-resolved { color: var(--dk-fg-067647, #067647); }
.nr-title { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 600 12.5px system-ui, sans-serif; color: var(--dk-fg-101828, #101828); }
.nr.is-read .nr-title { font-weight: 500; color: var(--dk-fg-475467, #475467); }
.nr-x { flex: 0 0 auto; font-style: normal; font-weight: 700; font-size: 11px; color: var(--dk-fg-b54708, #B54708); }
.nr-l2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; line-height: 1.3; color: var(--dk-fg-667085, #667085); }
.nr-ack { color: var(--dk-fg-067647, #067647); } .nr-ok { color: var(--dk-fg-067647, #067647); font-weight: 600; } .nr-mt { font-style: normal; font-weight: 700; color: var(--dk-fg-475467, #475467); }
.nr-side { flex: 0 0 auto; min-width: 70px; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.nr-side time { font-size: 11px; line-height: 1; color: var(--dk-fg-98a2b3, #98A2B3); }
.nr-dest { font-size: 11px; font-weight: 600; line-height: 1.2; color: var(--dk-fg-175cd3, #175CD3); } .nb-p-network .nr-dest { color: var(--dk-fg-b42318, #B42318); }
.nr-acts { display: none; gap: 3px; }
.nr:hover .nr-dest { display: none; } .nr:hover .nr-acts { display: flex; }
@media (hover: none) { .nr .nr-dest { display: none; } .nr .nr-acts { display: flex; } }
.nr-ic { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 6px; background: var(--dk-bg-f2f4f7, #F2F4F7); color: var(--dk-fg-475467, #475467); display: grid; place-items: center; cursor: pointer; } .nr-ic:hover { background: var(--dk-bg-e4e7ec, #E4E7EC); color: var(--dk-fg-101828, #101828); } .nr-ic:disabled { opacity: .5; cursor: default; }
.nr-ic[data-act="ack"] { background: var(--dk-bg-fef3f2, #FEF3F2); color: var(--dk-fg-b42318, #B42318); }
#fv-flash { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); z-index: 1600; max-width: min(92vw, 420px); padding: 9px 14px; border-radius: 9px; background: var(--dk-bg-101828, #101828); color: #fff; font: 600 13px system-ui, sans-serif; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
#fv-flash.is-on { opacity: 1; transform: translate(-50%, 0); }
/* the header, the chips and the footer never shrink; only the list scrolls */
#fv-bell-panel > .nb-h, #fv-bell-panel > .nb-chips, #fv-bell-panel > .nb-f { flex: 0 0 auto; }
#fv-bell-panel > .nb-list { flex: 1 1 auto; min-height: 0; }
.nb-chips { align-items: center; min-height: 28px; } .nb-chips button { line-height: 1.3; white-space: nowrap; }
