/* PIMM_V4_APP_SHELL_NAV_UNIFICATION_BODY_INSERT_FIX_V1_CONTINUE_FIX_B */
/* PIMM_V4_APP_SHELL_NAV_UNIFICATION_BODY_INSERT_FIX_V1_CONTINUE_FIX_B */

.pimm-unified-app-shell {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  background: #087568;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  position: sticky;
  top: 0;
  z-index: 5000;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

.pimm-unified-left,
.pimm-unified-right,
.pimm-unified-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pimm-unified-left {
  min-width: 0;
  flex: 1 1 auto;
}

.pimm-unified-right {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.pimm-unified-brand {
  color: #ffffff;
  font-weight: 900;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  margin-right: 8px;
}

.pimm-unified-nav a,
.pimm-unified-lang a,
.pimm-unified-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 9px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
}

.pimm-unified-nav a:hover,
.pimm-unified-lang a:hover {
  background: rgba(255,255,255,.18);
}

.pimm-unified-nav a.is-active,
.pimm-unified-lang a.is-active {
  background: rgba(255,255,255,.25);
  border-color: rgba(255,255,255,.35);
}

.pimm-unified-pill {
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  opacity: .96;
}

.pimm-unified-lang {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.pimm-unified-lang a {
  min-width: 28px;
  justify-content: center;
  padding: 5px 7px;
}

/* Hide old app shells when body marker exists */
body[data-pimm-app-shell-nav-unified] > .topbar,
body[data-pimm-app-shell-nav-unified] > header,
body[data-pimm-app-shell-nav-unified] > nav,
body[data-pimm-app-shell-nav-unified] .pimm-topbar,
body[data-pimm-app-shell-nav-unified] .pimm-app-topbar,
body[data-pimm-app-shell-nav-unified] .navbar {
  display: none !important;
}

/* Hide old app shells when templates have no explicit body and marker is on html */
html[data-pimm-app-shell-nav-unified] .topbar,
html[data-pimm-app-shell-nav-unified] header,
html[data-pimm-app-shell-nav-unified] nav,
html[data-pimm-app-shell-nav-unified] .pimm-topbar,
html[data-pimm-app-shell-nav-unified] .pimm-app-topbar,
html[data-pimm-app-shell-nav-unified] .navbar {
  display: none !important;
}

/* Never hide the unified shell itself */
body[data-pimm-app-shell-nav-unified] .pimm-unified-app-shell,
html[data-pimm-app-shell-nav-unified] .pimm-unified-app-shell {
  display: flex !important;
}

@media (max-width: 1100px) {
  .pimm-unified-app-shell {
    align-items: flex-start;
    flex-direction: column;
    padding: 8px 10px;
  }

  .pimm-unified-right {
    width: 100%;
    justify-content: flex-start;
  }
}
