/* Visitor navigation buttons v30 — visual-only. Preserve tab IDs and handlers. */
.app-shell-header .visitor-nav-v30 {
  width: min(98%, 1400px);
  max-width: 100%;
  margin: 0;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.26) transparent;
}

.app-shell-header .visitor-nav-v30 .nav-item {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.app-shell-header .visitor-nav-v30 .nav-item.d-none {
  display: none !important;
}

.app-shell-header .visitor-nav-v30 .nav-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #e0e8f3;
  background: transparent;
  box-shadow: none;
  font: 500 .83rem/1.25 'Prompt', sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.app-shell-header .visitor-nav-v30 .nav-link i.me-2 {
  margin-right: 0 !important;
  font-size: .95rem;
}

.app-shell-header .visitor-nav-v30 .nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.12);
}

.app-shell-header .visitor-nav-v30 .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,.17);
  border: 1px solid rgba(255,255,255,.28);
  border-bottom: 1px solid rgba(255,255,255,.28) !important;
  border-radius: 11px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035);
  animation: none;
  font-weight: 700;
}

.app-shell-header .visitor-nav-v30 .nav-link.active::before {
  display: none !important;
}

/* Primary workflow: make data entry immediately identifiable. */
.app-shell-header .visitor-nav-v30 #formTabItem:not(.d-none) .nav-link {
  color: #fff;
  background: #de501b;
  border: 1px solid #f16a3c;
  font-weight: 700;
}
.app-shell-header .visitor-nav-v30 #formTabItem:not(.d-none) .nav-link:hover {
  color: #fff;
  background: #c74412;
  border-color: #ff8d64;
}
.app-shell-header .visitor-nav-v30 #formTabItem:not(.d-none) .nav-link.active {
  color: #a93409 !important;
  background: #fff;
  border: 1px solid #fff;
  border-bottom: 1px solid #fff !important;
}

/* Subtle separation between the daily workflow and reports. */
@media (min-width: 769px) {
  .app-shell-header .visitor-nav-v30 #calendarTabItem:not(.d-none) {
    border-left: 1px solid rgba(255,255,255,.22);
    padding-left: 12px;
    margin-left: 6px;
  }
  .app-shell-header .app-header-actions .header-utility-button {
    min-height: 40px;
    padding-inline: 13px;
    border: 1px solid #e4e9f0;
    border-radius: 10px;
    background: #fff;
  }
  .app-shell-header .app-header-actions .header-utility-button:hover {
    border-color: #fac2a9;
    background: #fff3ed;
  }
}

.app-shell-header .visitor-nav-v30 .nav-link:focus-visible {
  outline: 3px solid #ffb17e;
  outline-offset: 3px;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .app-shell-header > .d-flex.justify-content-center {
    justify-content: flex-start !important;
    min-width: 0;
  }
  .app-shell-header .visitor-nav-v30 {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 8px 12px 9px;
    justify-content: flex-start;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 12px;
  }
  .app-shell-header .visitor-nav-v30 .nav-item {
    scroll-snap-align: start;
  }
  .app-shell-header .visitor-nav-v30 .nav-link {
    min-height: 44px;
    padding: 0 13px;
    font-size: .78rem;
  }
}

@media (max-width: 480px) {
  .app-shell-header .visitor-nav-v30 .nav-link {
    gap: 7px;
    padding: 0 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-shell-header .visitor-nav-v30 .nav-link {
    transition: none;
    animation: none;
  }
}
