/* ===== Top Nav (desktop 전용) ===== */
/* menuConfig navArea=top 항목의 그룹 드롭다운 — TopNavRenderer가 렌더링 */

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--app-header-height);
  padding: 0 20px;
  flex-shrink: 0;
  background: var(--bg-primary);
  border-bottom: var(--app-shell-divider-width) solid var(--app-shell-divider-color);
}

.top-nav-group {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.top-nav-group-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms ease;
}

.top-nav-group-toggle:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.top-nav-group.has-active .top-nav-group-toggle {
  color: var(--accent);
}

.top-nav-group.has-active::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 14px;
  height: 2px;
  border-radius: var(--radius-full) var(--radius-full) 0 0;
  background: var(--accent);
}

.top-nav-group.open .top-nav-group-toggle {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.top-nav-chevron {
  transition: transform 150ms ease;
}

.top-nav-group.open .top-nav-chevron {
  transform: rotate(180deg);
}

.top-nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 180px;
  padding: 6px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  z-index: 20;
}

.top-nav-group.open .top-nav-dropdown {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.top-nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 150ms ease;
}

.top-nav-dropdown-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.top-nav-dropdown-item.active {
  background: var(--accent-light);
  color: var(--accent);
}

/* Phase 2 (bigtionax-work-review-notification-surfaces, CAP07/08/09/10): 업무 그룹 미처리 카운트
   배지 — work-review-count.ts가 그룹 토글·드롭다운 항목에 주입/갱신한다. 0건이면 스크립트가
   display:none으로 숨긴다. */
.work-review-count-badge {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 5px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: var(--neutral-white);
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-family);
  line-height: 1;
}

.work-review-count-badge--item {
  margin-left: auto;
}

/* 모바일: 하단바가 담당 — 상단 네비 숨김 (A안) */
@media (max-width: 767px) {
  .top-nav {
    display: none;
  }
}
