/* T105 · колокольчик «малоконкурентные закупки» в шапке + счётчик в меню */
.aspro-platform .gov-topbar__row { display:flex; align-items:center; }
.nf-bell-wrap { position:relative; margin-left:auto; display:flex; align-items:center; }
.nf-bell {
  position:relative; display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px; border-radius:12px; border:1px solid transparent; background:transparent;
  color:var(--gov-muted, #5b6b85); cursor:pointer; transition:background .16s ease, color .16s ease, border-color .16s ease;
}
.nf-bell:hover, .nf-bell[aria-expanded="true"] { background:var(--gov-surface-muted, #f2f5fa); color:var(--gov-text, #14213d); border-color:var(--gov-border, #e3e8f0); }
.nf-bell:focus-visible { outline:2px solid var(--gov-accent, #1168f4); outline-offset:2px; }
.nf-bell svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.nf-bell.has-unread svg { color:var(--gov-text, #14213d); }
.nf-count {
  display:inline-flex; align-items:center; justify-content:center; min-width:18px; height:18px; padding:0 5px;
  border-radius:9px; background:#e5484d; color:#fff; font:600 10.5px/1 var(--gov-font-active, var(--gov-font, Inter, system-ui, sans-serif));
  font-variant-numeric:tabular-nums; letter-spacing:0; box-shadow:0 0 0 2px var(--gov-surface, #fff);
}
.nf-count[hidden] { display:none!important; }
.nf-bell .nf-count { position:absolute; top:3px; right:2px; }

.nf-panel {
  position:absolute; top:calc(100% + 8px); right:0; z-index:12050; width:min(420px, calc(100vw - 24px));
  max-height:min(560px, calc(100dvh - 96px)); display:flex; flex-direction:column;
  background:var(--gov-surface, #fff); border:1px solid var(--gov-border, #e3e8f0); border-radius:14px;
  box-shadow:0 18px 48px rgba(20,33,61,.16), 0 2px 6px rgba(20,33,61,.06);
  font-family:var(--gov-font-active, var(--gov-font, Inter, system-ui, sans-serif)); color:var(--gov-text, #14213d);
  opacity:0; transform:translateY(-4px); pointer-events:none; visibility:hidden;
  transition:opacity .14s ease, transform .14s ease, visibility 0s linear .14s;
}
.nf-panel.is-open { opacity:1; transform:none; pointer-events:auto; visibility:visible; transition:opacity .14s ease, transform .14s ease; }
.nf-panel__head { display:flex; align-items:flex-start; gap:10px; padding:14px 16px 10px; border-bottom:1px solid var(--gov-border, #e3e8f0); }
.nf-panel__title { margin:0; font-size:14px; font-weight:650; line-height:1.3; }
.nf-panel__sub { margin:2px 0 0; font-size:11.5px; color:var(--gov-muted, #5b6b85); line-height:1.35; }
.nf-panel__readall { margin-left:auto; flex:0 0 auto; border:0; background:none; padding:4px 2px; font:inherit; font-size:12px; font-weight:550; color:var(--gov-link, #1168f4); cursor:pointer; white-space:nowrap; }
.nf-panel__readall:disabled { color:var(--gov-muted, #8a97ab); cursor:default; }
.nf-list { overflow:auto; overscroll-behavior:contain; padding:4px 0; min-height:72px; }
.nf-item {
  display:grid; grid-template-columns:1fr auto; column-gap:12px; row-gap:3px; width:100%; text-align:left;
  padding:10px 16px 10px 22px; border:0; background:none; font:inherit; color:inherit; cursor:pointer; position:relative;
}
.nf-item + .nf-item { border-top:1px solid var(--gov-border, #eef1f6); }
.nf-item:hover, .nf-item:focus-visible { background:var(--gov-surface-muted, #f6f8fb); outline:none; }
.nf-item.is-unread::before { content:""; position:absolute; left:9px; top:16px; width:6px; height:6px; border-radius:50%; background:var(--gov-accent, #1168f4); }
.nf-item__title { grid-column:1 / -1; font-size:13px; font-weight:550; line-height:1.35; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.nf-item:not(.is-unread) .nf-item__title { font-weight:450; color:var(--gov-muted, #4a5872); }
.nf-item__meta { display:flex; align-items:center; gap:8px; min-width:0; font-size:11.5px; color:var(--gov-muted, #5b6b85); }
.nf-item__price { font-variant-numeric:tabular-nums; font-weight:600; color:var(--gov-text, #14213d); white-space:nowrap; }
.nf-item__dl { white-space:nowrap; font-variant-numeric:tabular-nums; }
.nf-item__badges { display:flex; gap:4px; align-items:center; justify-self:end; }
.nf-badge { display:inline-flex; align-items:center; height:20px; padding:0 7px; border-radius:6px; font-size:10.5px; font-weight:600; white-space:nowrap; letter-spacing:.01em; }
.nf-badge--zero { background:#fdecec; color:#b4232a; }
.nf-badge--repeat { background:#e8f1ff; color:#0e59cc; }
.nf-badge--failed { background:#fff4e0; color:#9a5b00; }
.nf-badge--law { background:var(--gov-surface-muted, #f1f4f8); color:var(--gov-muted, #5b6b85); }
.nf-empty { margin:0; padding:22px 16px; font-size:12.5px; color:var(--gov-muted, #5b6b85); text-align:center; line-height:1.45; }
.nf-skel { height:44px; margin:8px 16px; border-radius:8px; background:linear-gradient(90deg, var(--gov-surface-muted,#f2f5fa) 0, #fbfcfe 50%, var(--gov-surface-muted,#f2f5fa) 100%); background-size:200% 100%; animation:nfShimmer 1.2s linear infinite; }
@keyframes nfShimmer { to { background-position:-200% 0; } }
.nf-panel__foot { display:flex; align-items:center; gap:10px; padding:10px 16px 12px; border-top:1px solid var(--gov-border, #e3e8f0); font-size:12px; color:var(--gov-muted, #5b6b85); }
.nf-switch { display:inline-flex; align-items:center; gap:8px; cursor:pointer; user-select:none; }
.nf-switch input { appearance:none; -webkit-appearance:none; width:30px; height:18px; margin:0; border-radius:9px; background:#cfd7e3; position:relative; cursor:pointer; transition:background .16s ease; flex:0 0 auto; }
.nf-switch input::after { content:""; position:absolute; top:2px; left:2px; width:14px; height:14px; border-radius:50%; background:#fff; box-shadow:0 1px 2px rgba(0,0,0,.2); transition:transform .16s ease; }
.nf-switch input:checked { background:var(--gov-accent, #1168f4); }
.nf-switch input:checked::after { transform:translateX(12px); }
.nf-switch input:disabled { opacity:.5; cursor:not-allowed; }
.nf-panel__channels { margin-left:auto; font-size:11px; color:var(--gov-muted, #8a97ab); white-space:nowrap; }

/* счётчик на пункте «Поиск тендеров» */
.platform-nav a .platform-nav__badge {
  position:absolute; top:7px; right:3px; min-width:16px; height:16px; padding:0 4px; font-size:9.5px; z-index:1; pointer-events:none;
}
body.aspro-platform.is-nav-collapsed .platform-nav a .platform-nav__badge {
  position:absolute; top:9px; right:9px; min-width:8px; height:8px; padding:0; font-size:0; margin:0;
}

[data-theme="dark"] .nf-panel { background:#1b2840; border-color:rgba(255,255,255,.08); box-shadow:0 18px 48px rgba(0,0,0,.45); }
[data-theme="dark"] .nf-item:hover { background:rgba(255,255,255,.04); }
[data-theme="dark"] .nf-badge--zero { background:rgba(229,72,77,.18); color:#ff9a9e; }
[data-theme="dark"] .nf-badge--repeat { background:rgba(126,184,255,.16); color:#a9ceff; }
[data-theme="dark"] .nf-badge--failed { background:rgba(255,184,77,.16); color:#ffcf85; }
@media (max-width:600px) {
  .nf-panel { position:fixed; top:56px; right:8px; left:8px; width:auto; }
}
@media (prefers-reduced-motion:reduce) { .nf-panel, .nf-skel { transition:none; animation:none; } }
