/* 수의사 상단 메뉴 공통 정리 (vet-nav.js와 함께 쓴다). 모든 수의사 화면은 흰 바 + 같은 메뉴 글자·선택 표시·계정 메뉴를 쓴다. */
nav.vet-nav-enhanced {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

/* 시인성: 글자 15px·진한 회색, 선택 메뉴는 파란 글자 + 밑줄 (2026-10-30 통일안) */
nav.vet-nav-enhanced > a:not(.vet-nav-bell) {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  height: 44px;
  padding: 0 4px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #334155;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

nav.vet-nav-enhanced > a:not(.vet-nav-bell):hover {
  color: #1d4ed8;
  background: transparent;
}

nav.vet-nav-enhanced > a:not(.vet-nav-bell)[aria-current="page"] {
  color: #1d4ed8;
  border-bottom-color: #2563eb;
  font-weight: 800;
}

nav.vet-nav-enhanced .vet-nav-spacer {
  flex: 1 1 auto;
}

nav.vet-nav-enhanced .vet-nav-bell {
  position: relative;
  min-width: 40px;
  min-height: 40px;
  padding: 0 10px;
  gap: 0;
}

/* 종 아이콘: 모든 수의사 화면에서 같은 둥근 버튼 (페이지별 notice-button 모양보다 우선) */
nav.vet-nav-enhanced > a.vet-nav-bell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  text-decoration: none;
}

nav.vet-nav-enhanced > a.vet-nav-bell:hover {
  border-color: #93c5fd;
  background: #dbeafe;
}

nav.vet-nav-enhanced .vet-nav-bell .vet-nav-bell-icon {
  display: inline-flex;
}

nav.vet-nav-enhanced .vet-nav-bell b {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #dc2626;
  color: #ffffff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}

nav.vet-nav-enhanced .vet-nav-bell b[hidden] {
  display: none;
}

nav.vet-nav-enhanced .vet-account {
  position: relative;
}

nav.vet-nav-enhanced .vet-account > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 999px;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

nav.vet-nav-enhanced .vet-account > summary::-webkit-details-marker {
  display: none;
}

nav.vet-nav-enhanced .vet-account > summary:hover,
nav.vet-nav-enhanced .vet-account[open] > summary {
  background: #eef4fb;
  color: #1d4ed8;
}

nav.vet-nav-enhanced .vet-account > summary:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}

nav.vet-nav-enhanced .vet-account-name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

nav.vet-nav-enhanced .vet-account .vet-account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 300;
  display: grid;
  min-width: 200px;
  padding: 6px;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(16, 35, 61, 0.18);
}

nav.vet-nav-enhanced .vet-account .vet-account-menu > a,
nav.vet-nav-enhanced .vet-account .vet-account-menu > button {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  height: auto;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  color: #1e293b;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

nav.vet-nav-enhanced .vet-account .vet-account-menu > a:hover,
nav.vet-nav-enhanced .vet-account .vet-account-menu > button:hover {
  background: #f1f5fa;
  color: #1d4ed8;
}

nav.vet-nav-enhanced .vet-account .vet-account-menu > [hidden] {
  display: none !important;
}

nav.vet-nav-enhanced .vet-account .vet-account-menu > .vet-account-section {
  margin-top: 4px;
  padding: 10px 12px 4px;
  border-top: 1px solid #eef2f7;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

nav.vet-nav-enhanced .vet-account .vet-account-menu > .vet-account-privacy {
  font-weight: 800;
  color: #0f172a;
}

nav.vet-nav-enhanced .vet-account .vet-account-menu > .vet-account-logout {
  margin-top: 4px;
  border-top: 1px solid #eef2f7;
  border-radius: 0 0 8px 8px;
  color: #b42318;
}

@media (max-width: 720px) {
  nav.vet-nav-enhanced {
    gap: 8px;
  }

  nav.vet-nav-enhanced .vet-account-name {
    display: none;
  }
}

/* 페이지마다 같은 자리·같은 글꼴로 보이게 고정한다(2026-11-03).
   페이지 스타일이 글꼴(Pretendard·Inter·맑은 고딕)과 아이콘 크기, 상단 바 여백을 달리 줘서 종·계정 위치와 굵기가 페이지마다 달랐다.
   공통 메뉴에 한해 페이지 스타일보다 우선한다. */
html:has(nav.vet-nav-enhanced) {
  scrollbar-gutter: stable;
}

header:has(> nav.vet-nav-enhanced) {
  padding-left: 24px !important;
  padding-right: 24px !important;
}

nav.vet-nav-enhanced,
nav.vet-nav-enhanced a,
nav.vet-nav-enhanced button,
nav.vet-nav-enhanced summary,
nav.vet-nav-enhanced span {
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif !important;
  letter-spacing: 0 !important;
}

nav.vet-nav-enhanced > a:not(.vet-nav-bell) {
  font-size: 15px !important;
  line-height: 1 !important;
}

nav.vet-nav-enhanced > a.vet-nav-bell svg {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px;
}

nav.vet-nav-enhanced .vet-account > summary {
  gap: 6px !important;
  padding: 0 10px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

nav.vet-nav-enhanced .vet-account > summary > svg:first-child {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px;
}

nav.vet-nav-enhanced .vet-account > summary > svg:last-child {
  width: 12px !important;
  height: 12px !important;
  flex: 0 0 12px;
}

nav.vet-nav-enhanced .vet-account-name {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

nav.vet-nav-enhanced {
  gap: 16px !important;
}

nav.vet-nav-enhanced > a:not(.vet-nav-bell) {
  padding: 0 4px !important;
  margin: 0 !important;
}

nav.vet-nav-enhanced > a.vet-nav-bell,
nav.vet-nav-enhanced > .vet-account {
  margin: 0 !important;
}
