/* ============================================================
 * styles/nav.css — shared top navigation across dashboard pages.
 * ============================================================ */

.nav {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 2px rgba(15,23,42,.03);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .02em;
  color: #0f172a;
  flex: 0 0 auto;
}
.nav-brand .bullseye {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e21a23;
  position: relative;
  flex: 0 0 22px;
  box-shadow: inset 0 0 0 3px #ffffff, inset 0 0 0 4px #e21a23;
}
.nav-brand .bullseye::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #ffffff;
}
.nav-brand .wordmark { font-size: 15px; }
.nav-brand .wordmark .red { color: #e21a23; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  color: #475569;
  transition: background-color .12s ease, color .12s ease;
}
.nav-links a:hover { background: #f1f5f9; color: #0f172a; }
.nav-links a.is-active { background: #fef2f2; color: #b30f17; }
.nav-links a .count-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  font-weight: 700;
  font-size: 10.5px;
}
.nav-links a:hover .count-chip { background: #fecaca; }
.nav-links a.is-active .count-chip { background: #fff; color: #991b1b; }

.nav-right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #475569;
  flex: 0 0 auto;
}
.nav-right .nav-user {
  font-weight: 600;
  color: #0f172a;
}
.nav-right .nav-role-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef2f7;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.nav-right .nav-role-chip.is-admin { background: #fef2f2; color: #991b1b; }
.nav-right .nav-role-chip.is-manager { background: #eff6ff; color: #1e3a8a; }
.nav-right .nav-sep { color: #cbd5e1; }
.nav-right a.signout {
  color: #475569;
  text-decoration: none;
}
.nav-right a.signout:hover { color: #0f172a; text-decoration: underline; }

/* Mobile collapse */
@media (max-width: 720px) {
  .nav-inner { gap: 12px; padding: 0 16px; height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .nav-links { order: 3; width: 100%; overflow-x: auto; padding-bottom: 4px; }
  .nav-links a { font-size: 13px; padding: 6px 10px; }
  .nav-right { font-size: 12.5px; }
}
