/* css/v1/notifications.css — the bell (#sales-bell-btn, its badge) and its popover (.ft-notif-popover), and the Notifications page (.notif-cols and its columns), drawn by js/v1/screens/notifications.js.
   The names shared with other panels (.notif-row, .notif-row-body, .bell-empty) apply only inside the popover and the page's columns, so css/v1.css's own .notif-row panels keep their look. */

#sales-bell-btn { position: relative; cursor: pointer; }
#sales-bell-btn.is-bell-open { background: var(--surface2, #f1f5f9); color: var(--text, #0f172a); }
.ft-notif-bell-badge { position: absolute; top: -3px; right: -4px; min-width: 17px; height: 17px; padding: 0 4.5px; border-radius: 999px; background: #059669; color: #ffffff; font-size: 10px; font-weight: 800; line-height: 17px; text-align: center; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--surface, #ffffff), 0 2px 5px rgba(5,150,105,.38); pointer-events: none; }
html[data-theme="dark"] .ft-notif-bell-badge { background: #10b981; color: #042f2e; box-shadow: 0 0 0 2px #171c26, 0 2px 6px rgba(0,0,0,.6); }

.ft-notif-popover { position: fixed; width: 416px; max-width: calc(100vw - 16px); max-height: min(78vh, 650px); display: flex; flex-direction: column; overflow: hidden; background: var(--surface, #ffffff); color: var(--text, #1a1d26); border: 1px solid var(--border, #e2e5ea); border-radius: 12px; box-shadow: var(--shadow-drop, 0 12px 32px rgba(15,23,42,.2)); z-index: 960; }
html[data-theme="dark"] .ft-notif-popover { background: #171c26; border-color: #2b3445; color: #e6edf5; box-shadow: 0 16px 40px rgba(0,0,0,.68); }
.ft-notif-pop-hdr { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px 8px; border-bottom: 1px solid var(--border, #e2e5ea); background: var(--surface, #ffffff); }
html[data-theme="dark"] .ft-notif-pop-hdr { background: #171c26; border-bottom-color: #2b3445; }
.ft-notif-pop-title { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--text, #0f172a); }
.ft-notif-pop-pill { padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums; background: rgba(16,185,129,.13); color: #047857; }
.ft-notif-pop-pill.is-zero { background: var(--surface2, #f1f5f9); color: var(--muted, #64748b); }
html[data-theme="dark"] .ft-notif-pop-pill { background: rgba(52,211,153,.16); color: #6ee7b7; }
html[data-theme="dark"] .ft-notif-pop-pill.is-zero { background: #1f2633; color: #94a3b8; }

.ft-notif-chips { display: flex; flex-wrap: wrap; gap: 5px; padding: 8px 10px; border-bottom: 1px solid var(--border, #e2e5ea); background: var(--surface2, #f8fafc); }
html[data-theme="dark"] .ft-notif-chips { background: #131822; border-bottom-color: #2b3445; }
.ft-notif-chip { display: inline-flex; align-items: center; gap: 4.5px; cursor: pointer; padding: 3.5px 8.5px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--surface, #ffffff); color: var(--text, #334155); border: 1px solid var(--border, #e2e5ea); transition: background .12s, border-color .12s, color .12s; user-select: none; }
.ft-notif-chip:hover { border-color: #10b981; }
html[data-theme="dark"] .ft-notif-chip { background: #1c2330; color: #cbd5e1; border-color: #2e384b; }
html[data-theme="dark"] .ft-notif-chip:hover { border-color: #34d399; color: #ffffff; }
.ft-notif-chip.ft-notif-chip-on { background: #059669; color: #ffffff; border-color: #059669; }
html[data-theme="dark"] .ft-notif-chip.ft-notif-chip-on { background: #10b981; color: #042f2e; border-color: #10b981; font-weight: 700; }
.ft-notif-chip-cnt { padding: 0 5px; border-radius: 999px; font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; background: rgba(15,23,42,.08); color: inherit; }
html[data-theme="dark"] .ft-notif-chip-cnt { background: rgba(255,255,255,.1); }
.ft-notif-chip.ft-notif-chip-on .ft-notif-chip-cnt { background: rgba(255,255,255,.24); color: #ffffff; }
html[data-theme="dark"] .ft-notif-chip.ft-notif-chip-on .ft-notif-chip-cnt { background: rgba(4,47,46,.22); color: #042f2e; }

.ft-notif-markall { cursor: pointer; font-size: 11.5px; font-weight: 600; color: #059669; background: transparent; border: none; padding: 2px 6px; border-radius: 6px; transition: background .12s; white-space: nowrap; }
.ft-notif-markall:hover { background: rgba(16,185,129,.1); }
.ft-notif-markall.is-caught-up { color: var(--muted, #94a3b8); cursor: default; pointer-events: none; }
html[data-theme="dark"] .ft-notif-markall { color: #34d399; }
html[data-theme="dark"] .ft-notif-markall.is-caught-up { color: #64748b; }

.ft-notif-popover .bell-list-scroll { flex: 1 1 auto; overflow-y: auto; max-height: 440px; }
:is(.ft-notif-popover, .notif-cols) .notif-group-head { display: flex; align-items: center; justify-content: space-between; padding: 5px 12px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted, #64748b); background: var(--surface2, #f8fafc); border-bottom: 1px solid var(--border, #e2e5ea); }
html[data-theme="dark"] :is(.ft-notif-popover, .notif-cols) .notif-group-head { background: #141923; color: #94a3b8; border-bottom-color: #262f3f; }

:is(.ft-notif-popover, .notif-cols) .notif-row { display: flex; align-items: flex-start; gap: 10px; padding: 9.5px 12px; border-bottom: 1px solid var(--border, #eef0f4); cursor: pointer; transition: background .12s, opacity .12s; }
:is(.ft-notif-popover, .notif-cols) .notif-row:last-child { border-bottom: none; }
:is(.ft-notif-popover, .notif-cols) .notif-row.is-unread { background: rgba(16,185,129,.055); }
:is(.ft-notif-popover, .notif-cols) .notif-row.is-unread:hover { background: rgba(16,185,129,.10); }
html[data-theme="dark"] :is(.ft-notif-popover, .notif-cols) .notif-row { border-bottom-color: #232b3a; }
html[data-theme="dark"] :is(.ft-notif-popover, .notif-cols) .notif-row.is-unread { background: rgba(16,185,129,.09); }
html[data-theme="dark"] :is(.ft-notif-popover, .notif-cols) .notif-row.is-unread:hover { background: rgba(16,185,129,.15); }
:is(.ft-notif-popover, .notif-cols) .notif-row.is-seen { opacity: .73; background: transparent; }
:is(.ft-notif-popover, .notif-cols) .notif-row.is-seen:hover { opacity: 1; background: var(--surface2, #f8fafc); }
html[data-theme="dark"] :is(.ft-notif-popover, .notif-cols) .notif-row.is-seen:hover { background: #1f2633; }

.ft-notif-thumbwrap { position: relative; flex: 0 0 auto; width: 38px; height: 38px; margin-top: 1px; }
.ft-notif-thumb { width: 38px; height: 38px; object-fit: cover; border-radius: 7px; border: 1px solid var(--border, #e2e8f0); display: block; background: var(--surface2, #f1f5f9); }
.ft-notif-sync-tile { width: 38px; height: 38px; border-radius: 7px; border: 1px solid var(--border, #e2e8f0); background: var(--surface2, #f1f5f9); display: flex; align-items: center; justify-content: center; }
html[data-theme="dark"] .ft-notif-thumb, html[data-theme="dark"] .ft-notif-sync-tile { border-color: #2e384b; background: #1f2633; }
.ft-notif-dot { position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: #10b981; border: 1.75px solid var(--surface, #ffffff); display: block; }
html[data-theme="dark"] .ft-notif-dot { border-color: #171c26; background: #34d399; }
:is(.ft-notif-popover, .notif-cols) .notif-row.is-seen .ft-notif-dot { display: none; }

:is(.ft-notif-popover, .notif-cols) .notif-row-body { flex: 1 1 auto; min-width: 0; }
.ft-notif-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11.5px; line-height: 1.3; }
.ft-notif-head-left { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; min-width: 0; }
:is(.ft-notif-popover, .notif-cols) .notif-row.is-unread .ft-notif-head-plat, :is(.ft-notif-popover, .notif-cols) .notif-row.is-unread .ft-notif-title { font-weight: 700; color: var(--text, #0f172a); }
:is(.ft-notif-popover, .notif-cols) .notif-row.is-seen .ft-notif-head-plat, :is(.ft-notif-popover, .notif-cols) .notif-row.is-seen .ft-notif-title { font-weight: 500; color: var(--text, #334155); }
html[data-theme="dark"] :is(.ft-notif-popover, .notif-cols) .notif-row.is-unread .ft-notif-head-plat, html[data-theme="dark"] :is(.ft-notif-popover, .notif-cols) .notif-row.is-unread .ft-notif-title { color: #f8fafc; }
html[data-theme="dark"] :is(.ft-notif-popover, .notif-cols) .notif-row.is-seen .ft-notif-head-plat, html[data-theme="dark"] :is(.ft-notif-popover, .notif-cols) .notif-row.is-seen .ft-notif-title { color: #cbd5e1; }
.ft-notif-time { flex: 0 0 auto; font-size: 10.5px; color: var(--muted, #64748b); font-variant-numeric: tabular-nums; white-space: nowrap; }

.ft-notif-kind-pill { display: inline-flex; align-items: center; padding: 1px 6px; border-radius: 5px; font-size: 10px; font-weight: 700; letter-spacing: .01em; }
.ft-notif-kind-pill.kind-sold { background: rgba(16,185,129,.14); color: #047857; }
.ft-notif-kind-pill.kind-offer { background: rgba(245,158,11,.15); color: #b45309; }
.ft-notif-kind-pill.kind-ended { background: rgba(100,116,139,.14); color: #475569; }
html[data-theme="dark"] .ft-notif-kind-pill.kind-sold { background: rgba(52,211,153,.18); color: #6ee7b7; }
html[data-theme="dark"] .ft-notif-kind-pill.kind-offer { background: rgba(251,191,36,.18); color: #fcd34d; }
html[data-theme="dark"] .ft-notif-kind-pill.kind-ended { background: rgba(148,163,184,.18); color: #cbd5e1; }
.ft-notif-sku-pill { display: inline-flex; align-items: center; padding: 0.5px 5px; border-radius: 4px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; font-weight: 600; background: var(--surface2, #f1f5f9); color: var(--muted, #475569); border: 1px solid var(--border, #e2e8f0); }
html[data-theme="dark"] .ft-notif-sku-pill { background: #1f2633; color: #94a3b8; border-color: #2e384b; }
.ft-notif-title { margin-top: 3px; font-size: 12px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

:is(.ft-notif-popover, .notif-cols) .bell-empty { padding: 22px 14px; font-size: 12px; color: var(--muted, #64748b); text-align: center; }
.ft-notif-popover .bell-foot { padding: 9px 12px; text-align: center; border-top: 1px solid var(--border, #e2e5ea); background: var(--surface2, #f8fafc); }
html[data-theme="dark"] .ft-notif-popover .bell-foot { background: #131822; border-top-color: #2b3445; }
.ft-notif-seeall-link { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: #059669; text-decoration: none; cursor: pointer; background: none; border: none; padding: 2px 8px; border-radius: 6px; }
.ft-notif-seeall-link:hover { background: rgba(16,185,129,.1); text-decoration: underline; }
html[data-theme="dark"] .ft-notif-seeall-link { color: #34d399; }

.notif-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 14px; align-items: start; }
.notif-page-col { background: var(--surface, #ffffff); border: 1px solid var(--border, #e2e5ea); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
html[data-theme="dark"] .notif-page-col { background: #171c26; border-color: #2b3445; box-shadow: none; }
.notif-page-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border, #e2e5ea); background: var(--surface2, #f8fafc); }
html[data-theme="dark"] .notif-page-head { background: #1c2330; border-bottom-color: #2b3445; }
.notif-page-col-title { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--text, #0f172a); }
html[data-theme="dark"] .notif-page-col-title { color: #f1f5f9; }
.notif-page-col-cnt { font-size: 11.5px; font-weight: 700; color: #059669; font-variant-numeric: tabular-nums; }
.notif-page-col-cnt.is-zero { color: var(--muted, #94a3b8); font-weight: 500; }
html[data-theme="dark"] .notif-page-col-cnt { color: #34d399; }
html[data-theme="dark"] .notif-page-col-cnt.is-zero { color: #64748b; }
.notif-page-list { max-height: 64vh; overflow-y: auto; }
.ft-notif-col-foot { padding: 8px 10px; text-align: center; border-top: 1px solid var(--border, #eef0f4); background: var(--surface2, #f8fafc); }
html[data-theme="dark"] .ft-notif-col-foot { background: #141923; border-top-color: #232b3a; }
.ft-notif-loadmore { cursor: pointer; font-size: 11.5px; font-weight: 700; color: #059669; background: var(--surface, #ffffff); border: 1px solid var(--border, #cbd5e1); border-radius: 7px; padding: 4px 12px; transition: border-color .12s, background .12s; }
.ft-notif-loadmore:hover { border-color: #10b981; background: rgba(16,185,129,.07); }
html[data-theme="dark"] .ft-notif-loadmore { background: #1c2330; border-color: #334155; color: #34d399; }
html[data-theme="dark"] .ft-notif-loadmore:hover { border-color: #34d399; background: rgba(52,211,153,.12); }

/* The Spotter-problem bar the bell's read can raise, at the top of the page area. */
.ft-notif-alertbar { min-height: 24px; padding: 3px 8px; font-weight: 700; font-size: 12px; text-align: center; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; background: var(--accent, #17a35a); color: #ffffff; }
.ft-notif-alertbar[hidden] { display: none; }
.ft-notif-alertbar span { flex: 0 1 auto; min-width: 0; line-height: 16px; overflow-wrap: anywhere; }
.ft-notif-alertbar button { cursor: pointer; padding: 5px 12px; border-radius: 6px; font-size: 11px; background: var(--surface2, #f8fafc); color: var(--text, #1a1d26); border: 1px solid var(--border, #e2e5ea); }
.ft-notif-alertbar button:hover { border-color: var(--accent, #17a35a); color: var(--accent, #17a35a); }
