/* topbar.css — plakanais admin topbar (brand, view-switch, Servisi ▾, RAG). */
/* ── Topbar — plakans, bez gradient ─────────────────────────────────────── */
.topbar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0 1rem; height: 2.75rem;
  background: var(--cg-green, #006342);
  color: #fff;
  font-family: var(--cg-font, Montserrat, sans-serif);
}
.topbar a { color: rgba(241,245,249,.85); }
.topbar a:hover { color: #fff; }
.topbar-link {
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  font-size: 0.75rem; font-weight: 500;
  transition: background-color .12s;
}
.topbar-link:hover { background: rgba(255,255,255,.08); }
.topbar-link.is-active { background: rgba(255,255,255,.12); color: #fff; }
.topbar-sep { width: 1px; height: 1rem; background: rgba(255,255,255,.2); margin: 0 0.25rem; }
.topbar-ops-menu {
  position: absolute; right: 0; top: calc(100% + 4px);
  min-width: 14rem;
  background: var(--c-surface); color: var(--c-text);
  border: 1px solid var(--c-border);
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(15,23,42,.12);
  padding: 0.25rem;
  z-index: 40;
  display: none;
}
.topbar-ops-menu.is-open { display: block; }
.topbar-ops-menu a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 0.75rem; border-radius: 0.375rem;
  color: var(--c-text); font-size: 0.8125rem;
}
.topbar-ops-menu a:hover { background: #f1f5f9; }
.topbar-ops-menu .ops-section {
  font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--c-soft); padding: 0.5rem 0.75rem 0.25rem;
}
.topbar-rag {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
  background: rgba(255,255,255,.1);
  font-size: 0.6875rem; color: rgba(241,245,249,.95);
}
.topbar-rag-dot { width: 6px; height: 6px; border-radius: 9999px; background: #fbbf24; }

.topbar-wa-restriction {
  display: inline-flex;
  align-items: center;
  max-width: min(40rem, 58vw);
  padding: 0.15rem 0.5rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-wa-restriction.is-ban {
  border-color: #f59e0b;
  background: #fff7ed;
  color: #9a3412;
}
.topbar-wa-restriction.is-ok {
  border-color: rgba(167,243,208,.55);
  background: rgba(236,253,245,.18);
  color: #ecfdf5;
}

/* LV | EN language toggle */
.topbar-lang {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 0.375rem;
  overflow: hidden;
}
.topbar-lang-btn {
  padding: 0.15rem 0.45rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(241,245,249,.7);
  background: transparent;
  border: 0;
  cursor: pointer;
  line-height: 1.4;
}
.topbar-lang-btn + .topbar-lang-btn {
  border-left: 1px solid rgba(255,255,255,.18);
}
.topbar-lang-btn:hover { color: #fff; background: rgba(255,255,255,.08); }
.topbar-lang-btn.is-active {
  color: var(--cg-green, #006342);
  background: var(--cg-yellow, #f9c41a);
}
