/*
 * AMNKO unified application header.
 * R16.9.10.46.25 — one server-rendered header geometry for every client route.
 * This file is the sole owner of topbar, header-brand, header-context,
 * shift, user identity, tour and logout presentation.
 */

body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 {
  --amk-shell-topbar-height: 64px !important;
  --amnko-header-control-height: 38px;
  --amnko-header-radius: 999px;
  --amnko-header-surface: rgba(255, 255, 255, .13);
  --amnko-header-surface-hover: rgba(255, 255, 255, .22);
  --amnko-header-border: rgba(255, 255, 255, .22);
  --amnko-header-text-soft: rgba(255, 255, 255, .78);
  --amnko-header-gradient: linear-gradient(90deg, #0aa6bd 0%, #0094a9 54%, #08737d 100%);
}

body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 .app-header,
body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 .amnko-app-topbar {
  height: var(--amk-shell-topbar-height);
  min-height: var(--amk-shell-topbar-height);
  padding: 0 16px !important;
  color: #fff;
  background: var(--amnko-header-gradient) !important;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 5px 18px rgba(4, 93, 106, .18) !important;
}

body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 .app-title-link,
body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 .app-title-link:is(:hover, :focus-visible) {
  color: #fff;
  text-decoration: none;
}

body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 .amnko-topbar-inner {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(170px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0 !important;
}

body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 .amnko-topbar-context {
  grid-column: 1;
  justify-self: start;
  min-width: 0;
  max-width: min(250px, 24vw);
  margin: 0 !important;
}

body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 .amnko-shell-context-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  min-height: var(--amnko-header-control-height);
  padding: 6px 14px;
  overflow: hidden;
  color: #fff;
  font-size: .84rem;
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
  text-overflow: ellipsis;
  background: var(--amnko-header-surface);
  border: 1px solid var(--amnko-header-border);
  border-radius: var(--amnko-header-radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 .app-title-wrap {
  grid-column: 2;
  position: static !important;
  inset: auto !important;
  transform: none !important;
  justify-self: center;
  min-width: 0;
  max-width: min(330px, 30vw);
  padding: 2px 0;
  text-align: center;
  line-height: 1.08;
  white-space: nowrap;
}

body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 .amnko-topbar-brand,
body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 .app-title {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  color: #fff !important;
  font-size: 1.14rem !important;
  font-weight: 900;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
  white-space: nowrap;
}

body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 .amnko-topbar-logo {
  display: block;
  flex: 0 0 auto;
  width: 38px;
  max-width: 38px;
  height: 22px;
  max-height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .94;
}

body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 .app-subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px !important;
  min-width: 0;
  max-width: 100%;
  margin-top: 2px;
  overflow: hidden;
  color: var(--amnko-header-text-soft) !important;
  font-size: .72rem !important;
  font-weight: 800;
  line-height: 1.15 !important;
  white-space: nowrap;
}

body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 .app-subtitle > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 .amnko-edition-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  min-height: 20px;
  padding: 2px 8px;
  color: #fff;
  font-size: .66rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--amnko-header-radius) !important;
}

body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 .amnko-edition-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: #93c5fd;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, .14);
}

body.amnko-r9.amnko-unified-shell-header-r1691046256-v1.edition-business .amnko-edition-pill::before {
  background: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, .14);
}

body.amnko-r9.amnko-unified-shell-header-r1691046256-v1.edition-erp .amnko-edition-pill::before {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .14);
}

body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 .amnko-topbar-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 7px !important;
  min-width: 0;
  max-width: 100%;
  margin: 0 !important;
  overflow: hidden;
}

body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 :is(
  .amnko-shift-chip,
  .amnko-topbar-app-btn,
  .amnko-topbar-icon-btn,
  .user-badge,
  .amnko-topbar-logout
) {
  min-height: var(--amnko-header-control-height) !important;
  height: var(--amnko-header-control-height);
  flex: 0 0 auto;
  color: #fff !important;
  background: var(--amnko-header-surface) !important;
  border: 1px solid var(--amnko-header-border) !important;
  border-radius: var(--amnko-header-radius) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}

body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 :is(
  .amnko-topbar-app-btn,
  .amnko-topbar-icon-btn,
  .user-badge,
  .amnko-topbar-logout
):is(:hover, :focus-visible) {
  color: #fff !important;
  background: var(--amnko-header-surface-hover) !important;
  border-color: rgba(255, 255, 255, .32) !important;
  transform: translateY(-1px);
}

body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 .amnko-shift-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  font-size: .8rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 .amnko-shift-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: #f59e0b;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .16);
}

body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 .amnko-shift-chip.is-open::before {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .16);
}

body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 .amnko-topbar-app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 13px !important;
  font-size: .82rem;
  font-weight: 900;
  white-space: nowrap;
}

body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 .amnko-topbar-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--amnko-header-control-height);
  min-width: var(--amnko-header-control-height);
  padding: 0 !important;
}

body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 .amnko-tour-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 .user-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 155px;
  padding: 0 12px;
  overflow: hidden;
  font-size: .8rem;
  font-weight: 900;
  white-space: nowrap;
}

body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 .user-badge svg {
  flex: 0 0 auto;
}

body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 .amnko-topbar-user-name {
  min-width: 0;
  max-width: 88px;
  margin: 0 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 .amnko-topbar-user-short {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  font-size: .78rem;
  font-weight: 900;
}

body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 .amnko-logout-form {
  display: inline-flex !important;
  align-items: center;
  margin: 0 !important;
}

body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 .amnko-topbar-logout,
body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 .user-badge .btn-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px !important;
  color: #fff !important;
  font-size: .82rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
}

body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 .offcanvas-header.app-header {
  height: 64px;
  min-height: 64px;
  padding: 0 14px !important;
  border-radius: 0;
  box-shadow: none !important;
}

body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 .offcanvas-header .amnko-topbar-brand {
  font-size: 1rem !important;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 .amnko-topbar-inner {
    grid-template-columns: minmax(0, 1fr) minmax(150px, auto) minmax(0, 1fr);
    gap: 8px;
  }

  body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 .app-title-wrap {
    max-width: 230px;
  }

  body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 .app-subtitle,
  body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 .amnko-shift-chip {
    display: none !important;
  }

  body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 .user-badge {
    max-width: 118px;
    padding-inline: 10px;
  }

  body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 .amnko-topbar-user-name {
    max-width: 58px;
  }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 .amnko-topbar-context {
    max-width: 190px;
  }

  body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 .app-title-wrap {
    max-width: 250px;
  }
}

@media (max-width: 991.98px) {
  body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 {
    --amk-shell-topbar-height: 62px !important;
  }

  body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 > .app-header.d-lg-none {
    position: sticky;
    top: 0;
    z-index: 1030;
    padding: 0 10px !important;
  }

  body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 > .app-header.d-lg-none > .container-fluid {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    width: 100%;
    height: 100%;
    padding: 0 !important;
  }

  body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 > .app-header.d-lg-none > .container-fluid > button:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0 !important;
    color: #fff !important;
    background: var(--amnko-header-surface) !important;
    border: 1px solid var(--amnko-header-border) !important;
    border-radius: 14px !important;
  }

  body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 > .app-header.d-lg-none .amnko-topbar-brand {
    justify-self: center;
    display: flex !important;
    max-width: 100%;
    overflow: hidden;
  }

  body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 > .app-header.d-lg-none .amnko-topbar-logo {
    width: 32px;
    max-width: 32px;
    height: 19px;
    max-height: 19px;
  }

  body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 > .app-header.d-lg-none .amnko-topbar-title {
    display: block;
    min-width: 0;
    overflow: hidden;
  }

  body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 > .app-header.d-lg-none .amnko-topbar-title .fw-bold {
    overflow: hidden;
    font-size: .94rem !important;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 > .app-header.d-lg-none .amnko-topbar-title > span:last-child {
    gap: 4px !important;
    flex-wrap: nowrap !important;
    overflow: hidden;
  }

  body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 > .app-header.d-lg-none .amnko-topbar-title .small {
    min-width: 0;
    overflow: hidden;
    font-size: .65rem;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 > .app-header.d-lg-none .amnko-edition-pill {
    min-height: 18px;
    padding: 2px 6px;
    font-size: .6rem;
  }

  body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 > .app-header.d-lg-none .amnko-topbar-actions {
    grid-column: auto;
    justify-self: end;
    gap: 5px !important;
    overflow: visible;
  }

  body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 > .app-header.d-lg-none :is(.amnko-topbar-icon-btn, .user-badge) {
    height: 38px;
    min-height: 38px !important;
  }

  body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 > .app-header.d-lg-none .amnko-topbar-icon-btn {
    width: 38px;
    min-width: 38px;
  }

  body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 > .app-header.d-lg-none .user-badge {
    max-width: 112px;
    padding-inline: 9px;
    gap: 5px;
  }

  body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 > .app-header.d-lg-none .user-badge .btn-logout {
    height: auto;
    min-height: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    font-size: .7rem;
  }
}

@media (max-width: 575.98px) {
  body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 > .app-header.d-lg-none {
    padding-inline: 7px !important;
  }

  body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 > .app-header.d-lg-none > .container-fluid {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 4px;
  }

  body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 > .app-header.d-lg-none .amnko-topbar-logo,
  body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 > .app-header.d-lg-none .amnko-edition-pill,
  body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 > .app-header.d-lg-none .amnko-shift-chip,
  body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 > .app-header.d-lg-none .amnko-topbar-tour-btn {
    display: none !important;
  }

  body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 > .app-header.d-lg-none .amnko-topbar-title .fw-bold {
    font-size: .88rem !important;
  }

  body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 > .app-header.d-lg-none .user-badge {
    max-width: 88px;
    padding-inline: 7px;
  }
}

@media (max-width: 359.98px) {
  body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 > .app-header.d-lg-none .amnko-topbar-mobile-shortcuts-btn {
    display: none !important;
  }

  body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 > .app-header.d-lg-none .user-badge {
    max-width: 78px;
  }
}

@media print {
  body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 .app-header,
  body.amnko-r9.amnko-unified-shell-header-r1691046256-v1 .amnko-app-topbar {
    display: none !important;
  }
}
