/* Canonical centrally hosted Tekla Uniform App Navbar stylesheet.
 * Served from https://app.teklatoppings.com/tekla-app-nav.css
 * Supports both html[data-theme="dark"] and html.dark across all 6 Tekla apps.
 */

.tk-nav {
  box-sizing: border-box;
  font-family: "Outfit", "Noto Sans Georgian", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.1;
}

.tk-nav *,
.tk-nav *::before,
.tk-nav *::after {
  box-sizing: border-box;
}

.tk-nav--desktop {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tk-nav--bottom {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  align-items: center;
  width: 100%;
  flex: 1 1 auto;
  grid-column: 1 / -1;
  gap: 2px;
}

.tk-nav__slot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.tk-nav--bottom .tk-nav__slot {
  width: 100%;
}

.tk-nav__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 54px;
  margin: 0;
  padding: 5px 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #6e6e73;
  text-decoration: none;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 150ms ease;
}

span.tk-nav__item {
  cursor: default;
}

.tk-nav--bottom .tk-nav__item {
  min-width: 0;
  width: 100%;
  padding: 4px 2px;
  border-radius: 10px;
}

.tk-nav__item:hover {
  background: transparent;
  color: #141414;
}

.tk-nav__item:focus-visible {
  outline: 2px solid #0BA6DF;
  outline-offset: 2px;
}

.tk-nav__icon {
  position: relative;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex: none;
}

/* Strictly direct-child selectors so the 8x8px corner lock SVG is never stretched or glowing. */
.tk-nav__icon > svg,
.tk-nav__icon > img {
  width: 20px;
  height: 20px;
  max-width: none;
  display: block;
  flex: none;
  opacity: 0.84;
  filter: saturate(0.92);
  transition: opacity 150ms ease, filter 150ms ease, transform 150ms ease, box-shadow 180ms ease;
}

.tk-nav__icon > img,
.tk-nav__mark {
  border-radius: 5px;
  object-fit: cover;
}

.tk-nav__item:hover .tk-nav__icon > svg,
.tk-nav__item:hover .tk-nav__icon > img {
  opacity: 1;
  filter: saturate(1.06);
  transform: translateY(-1px);
}

.tk-nav--bottom .tk-nav__item:hover .tk-nav__icon > svg,
.tk-nav--bottom .tk-nav__item:hover .tk-nav__icon > img {
  transform: none;
}

.tk-nav__label {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.1;
  white-space: nowrap;
}

.tk-nav__item.is-active,
.tk-nav__item.is-active:hover {
  background: transparent;
  color: #c44eb0;
  font-weight: 700;
}

.tk-nav__item.is-active .tk-nav__label {
  font-weight: 700;
}

.tk-nav__item.is-active .tk-nav__icon > svg,
.tk-nav__item.is-active .tk-nav__icon > img {
  opacity: 1;
  filter: saturate(1.08);
  border-radius: 6px;
  box-shadow: 0 0 0 1.5px #FDC8F5, 0 0 7px rgba(253, 200, 245, 0.95), 0 0 14px rgba(232, 111, 212, 0.55);
}

.tk-nav__item--locked.is-tip-open {
  color: #141414;
}

/* Crisp 8x8px corner lock badge inside a 13x13px surface-matched pill. */
.tk-nav__lock {
  position: absolute;
  top: -3px;
  right: -5px;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: #ffffff;
  color: #5a6470;
  box-shadow: 0 0 0 1px rgba(20, 20, 20, 0.12);
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 2;
}

.tk-nav__lock > svg {
  width: 8px;
  height: 8px;
  max-width: none;
  display: block;
  flex: none;
  opacity: 0.92;
  transform: none;
  filter: none;
  box-shadow: none;
}

/* Sleek centered tooltip (below desktop items, above phone bottom tabs). */
.tk-nav__tip {
  --tk-tip-shift: 0px;
  position: absolute;
  left: 50%;
  transform: translateX(calc(-50% + var(--tk-tip-shift)));
  width: max-content;
  max-width: min(248px, calc(100vw - 24px));
  padding: 10px 13px;
  border-radius: 13px;
  background: #ffffff;
  border: 1px solid rgba(20, 20, 20, 0.08);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
  color: #141414;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.42;
  text-align: center;
  white-space: normal;
  z-index: 160;
  pointer-events: auto;
  animation: tk-nav-tip-in 140ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tk-nav__tip[hidden] {
  display: none;
}

.tk-nav--desktop .tk-nav__tip {
  top: calc(100% + 10px);
}

.tk-nav--desktop .tk-nav__tip::before {
  content: "";
  position: absolute;
  top: -5px;
  left: clamp(16px, calc(50% - var(--tk-tip-shift)), calc(100% - 16px));
  width: 9px;
  height: 9px;
  background: #ffffff;
  border-top: 1px solid rgba(20, 20, 20, 0.08);
  border-left: 1px solid rgba(20, 20, 20, 0.08);
  transform: translateX(-50%) rotate(45deg);
}

.tk-nav--bottom .tk-nav__tip {
  bottom: calc(100% + 12px);
  max-width: min(236px, calc(100vw - 24px));
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
}

.tk-nav--bottom .tk-nav__tip::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: clamp(16px, calc(50% - var(--tk-tip-shift)), calc(100% - 16px));
  width: 9px;
  height: 9px;
  background: #ffffff;
  border-right: 1px solid rgba(20, 20, 20, 0.08);
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
  transform: translateX(-50%) rotate(45deg);
}

@keyframes tk-nav-tip-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tk-nav__tip {
    animation: none;
  }
  .tk-nav__icon > svg,
  .tk-nav__icon > img {
    transition: none;
  }
}

/* Dual dark mode support: html[data-theme="dark"] AND html.dark */
html[data-theme="dark"] .tk-nav__item,
html.dark .tk-nav__item {
  color: #a1a1a6;
}

html[data-theme="dark"] .tk-nav__item:hover,
html.dark .tk-nav__item:hover,
html[data-theme="dark"] .tk-nav__item--locked.is-tip-open,
html.dark .tk-nav__item--locked.is-tip-open {
  color: #f4f5f7;
}

html[data-theme="dark"] .tk-nav__item.is-active,
html[data-theme="dark"] .tk-nav__item.is-active:hover,
html.dark .tk-nav__item.is-active,
html.dark .tk-nav__item.is-active:hover {
  color: #0BA6DF;
}

html[data-theme="dark"] .tk-nav__item.is-active .tk-nav__icon > svg,
html[data-theme="dark"] .tk-nav__item.is-active .tk-nav__icon > img,
html.dark .tk-nav__item.is-active .tk-nav__icon > svg,
html.dark .tk-nav__item.is-active .tk-nav__icon > img {
  box-shadow: 0 0 0 1.5px #0BA6DF, 0 0 7px rgba(11, 166, 223, 0.85), 0 0 14px rgba(11, 166, 223, 0.45);
}

html[data-theme="dark"] .tk-nav__lock,
html.dark .tk-nav__lock {
  background: #0b0b0f;
  color: #a1a8b3;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

html[data-theme="dark"] .tk-nav__tip,
html.dark .tk-nav__tip {
  background: #141419;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.56);
  color: #f4f5f7;
}

html[data-theme="dark"] .tk-nav--desktop .tk-nav__tip::before,
html.dark .tk-nav--desktop .tk-nav__tip::before,
html[data-theme="dark"] .tk-nav--bottom .tk-nav__tip::after,
html.dark .tk-nav--bottom .tk-nav__tip::after {
  background: #141419;
  border-color: rgba(255, 255, 255, 0.12);
}
