/* Bildirishnomalar (js/org-notif.js, v110): sarlavhadagi qoʻngʻiroqcha va roʻyxat oynasi (document.body da).
   Kompyuterda — tugma ostidagi panel (360px), telefonda (< 1024px) — pastdan chiqadigan varaq. Tokenlar — kabinet (--op-*) yoki zaxira. */
.op-hacts { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.onf-btn { position: relative; }
.onf-n { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: grid; place-items: center;
  background: #d64545; color: #fff; font: 700 10.5px/1 'Inter', sans-serif; box-shadow: 0 0 0 2px var(--op-bg, #f4f6fb); font-variant-numeric: tabular-nums; }
.onf-n[hidden] { display: none; }
body.dark .onf-n { box-shadow: 0 0 0 2px #0f1a33; }
@media (max-width: 1023.98px) { .op-topbar .onf-btn { display: none; } }
@media (min-width: 1024px) { .op-mbar .onf-btn { display: none; } }

.onf { position: fixed; inset: 0; z-index: 140; pointer-events: none;
  --n-bg: rgba(250, 251, 254, .98); --n-ink: #16223d; --n-mut: #5b6884; --n-line: rgba(31, 59, 115, .12); --n-hov: rgba(31, 59, 115, .06);
  --n-ok: #1d7a4f; --n-ok-bg: rgba(29, 122, 79, .1); --n-warn: #9a5b00; --n-warn-bg: rgba(233, 168, 40, .16); --n-info: #1f3b73; --n-info-bg: rgba(31, 59, 115, .08);
  --n-new: rgba(47, 84, 168, .06); color: var(--n-ink); font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif; }
body.dark .onf { --n-bg: rgba(22, 32, 58, .98); --n-ink: #e7edfb; --n-mut: #9fb0d2; --n-line: rgba(140, 165, 215, .18); --n-hov: rgba(140, 165, 215, .1);
  --n-ok: #6fd3a2; --n-ok-bg: rgba(111, 211, 162, .12); --n-warn: #f0c060; --n-warn-bg: rgba(240, 192, 96, .12); --n-info: #b9cbf2; --n-info-bg: rgba(140, 165, 215, .14);
  --n-new: rgba(120, 150, 215, .1); }
.onf[hidden] { display: none; }
.onf-scrim { position: absolute; inset: 0; display: none; }
.onf-box { position: absolute; width: 380px; max-height: min(560px, calc(100vh - 100px)); display: flex; flex-direction: column; pointer-events: auto;
  background: var(--n-bg); border: 1px solid var(--n-line); border-radius: 18px; box-shadow: 0 24px 64px rgba(8, 18, 42, .26), 0 2px 8px rgba(8, 18, 42, .08);
  overflow: hidden; animation: onfIn .14s ease-out; }
@keyframes onfIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.onf-h { display: flex; align-items: center; gap: 4px; padding: 12px 10px 10px 18px; border-bottom: 1px solid var(--n-line); }
.onf-h h2 { flex: 1; font: 800 16px/1.3 'Manrope', 'Inter', sans-serif; }
.onf-ic { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 0; background: transparent; color: var(--n-mut); cursor: pointer; }
.onf-ic:hover { background: var(--n-hov); color: var(--n-ink); }
.onf-ic svg { width: 18px; height: 18px; }
.onf-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px; }
.onf-it { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 11px 30px 11px 10px; border-radius: 12px; color: inherit; text-decoration: none; }
.onf-it:hover { background: var(--n-hov); }
.onf-it:focus-visible { outline: 2px solid var(--n-info); outline-offset: -2px; }
.onf-it.is-new { background: var(--n-new); }
.onf-it + .onf-it { margin-top: 2px; }
.onf-k { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--n-info-bg); color: var(--n-info); }
.onf-it.t-ok .onf-k { background: var(--n-ok-bg); color: var(--n-ok); }
.onf-it.t-warn .onf-k { background: var(--n-warn-bg); color: var(--n-warn); }
.onf-k svg { width: 18px; height: 18px; }
.onf-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.onf-t b { font-size: 14px; font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
.onf-x { font-size: 13px; line-height: 1.45; color: var(--n-mut); overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.onf-w { font-size: 12px; color: var(--n-mut); opacity: .85; margin-top: 2px; }
.onf-dot { position: absolute; right: 12px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: #2f6fe0; }
.onf-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 34px 22px; color: var(--n-mut); font-size: 13.5px; line-height: 1.5; }
.onf-empty b { color: var(--n-ink); font-size: 14.5px; }
.onf-empty-ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--n-info-bg); color: var(--n-info); margin-bottom: 4px; }
.onf-empty-ic svg { width: 22px; height: 22px; }
.onf-sk { height: 58px; margin: 6px 4px; border-radius: 12px; background: linear-gradient(90deg, var(--n-hov), rgba(255, 255, 255, .2), var(--n-hov)); background-size: 200% 100%; animation: onfSk 1.2s linear infinite; }
@keyframes onfSk { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.onf-f { padding: 10px 18px 12px; border-top: 1px solid var(--n-line); font-size: 12px; color: var(--n-mut); }

/* telefon / planshet: pastdan chiqadigan varaq */
.onf.is-sheet { pointer-events: auto; }
.onf.is-sheet .onf-scrim { display: block; background: rgba(12, 22, 44, .42); }
.onf.is-sheet .onf-box { left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: 82vh; border-radius: 22px 22px 0 0; border-bottom: 0;
  padding-bottom: env(safe-area-inset-bottom); animation: onfUp .18s ease-out; }
@keyframes onfUp { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .onf-box, .onf.is-sheet .onf-box { animation: none; } .onf-sk { animation: none; } }
