[data-operator-header] {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
}

[data-operator-nav] {
  min-width: 0;
  max-width: 100%;
}

.operator-nav {
  --operator-navy: #152b47;
  --operator-ocean: #0d9488;
  --operator-gold: #f59e0b;
  width: 100%;
  max-width: 100%;
  overflow: visible;
  background: var(--operator-navy);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0 max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
}

.operator-nav__links {
  display: none;
  align-items: stretch;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  min-height: 0;
  overflow: visible;
}

.operator-nav__label {
  display: none;
}

.operator-nav__links.is-open {
  display: flex;
}

.operator-nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 14px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.operator-nav__toggle:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.operator-nav__toggle:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid var(--operator-gold);
  outline-offset: -3px;
}

.operator-nav__link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-bottom: 3px solid transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  text-align: left;
  white-space: normal;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
  flex: 0 1 auto;
}

.operator-nav__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.operator-nav__link:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid var(--operator-gold);
  outline-offset: -3px;
}

.operator-nav__link.is-active {
  color: #fff;
  border-bottom-color: var(--operator-ocean);
  background: rgba(13, 148, 136, 0.16);
}

.operator-nav__switch {
  margin-left: 0;
  color: #8ee4dc;
}

.operator-nav__switch:hover {
  color: #b8f3ed;
}

.operator-local-tabs {
  position: sticky;
  top: var(--operator-header-height, 0px);
}

#workOrdersSection,
#employeeMgmtSection {
  scroll-margin-top: calc(7rem + env(safe-area-inset-top));
}

@media (min-width: 768px) {
  .operator-nav {
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
  }

  .operator-nav__links {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 10px;
    min-width: max-content;
    min-height: 48px;
    overflow: visible;
  }

  .operator-nav__label {
    display: inline-flex;
    order: -1;
    align-items: center;
    min-height: 48px;
    padding: 0 14px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
  }

  .operator-nav__link {
    display: inline-flex;
    justify-content: center;
    width: auto;
    min-height: 48px;
    padding: 0 18px;
    white-space: nowrap;
    text-align: center;
  }

  .operator-nav__toggle {
    display: none;
  }

  .operator-nav__switch {
    margin-left: 8px;
  }
}
