.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  min-width: 160px;
}

.logo__img {
  width: auto;
  height: 82px;
  max-width: min(320px, 100%);
  object-fit: contain;
  object-position: left center;
}

.header-line {
  height: var(--header-line-height);
  background: var(--color-orange);
  width: 100%;
}

/* Guest header (login / contact) */
.guest-header {
  width: 100%;
  background: var(--color-white);
}

.guest-header__shell {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 22px var(--header-padding-x) 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.guest-header__shell--flags {
  padding: 0 var(--header-padding-x);
  justify-content: flex-end;
}

.guest-header__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 128px;
}

.guest-header__utility-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  min-height: 24px;
  padding-bottom: 6px;
}

.guest-header__auth-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-orange);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

.guest-header__auth-link--muted {
  color: var(--color-text);
}

.guest-header__auth-link--muted:hover {
  color: var(--color-text-dark);
}

.guest-header__auth-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-orange);
  color: var(--color-white);
  border-radius: var(--card-radius);
  font-size: 20px;
  line-height: 1;
}

/* App header */
.app-header {
  width: 100%;
  background: var(--color-white);
  position: relative;
  z-index: var(--z-header);
}

.app-header__shell {
  max-width: var(--content-max-width);
  margin: 0 auto;
  min-height: var(--header-bar-min-height);
  padding: 20px var(--header-padding-x) 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  column-gap: 32px;
}

.app-header__end {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 8px;
}

.app-header__menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--color-orange);
  border-radius: var(--card-radius);
  background: var(--color-white);
  color: var(--color-orange);
  cursor: pointer;
}

.app-header__menu-icon {
  width: 22px;
  height: 22px;
}

.app-header__tab--mobile-logout {
  display: none;
}

.app-header__tab--mobile-profile {
  display: none;
}

.app-header__profile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--color-white);
  text-decoration: none;
  flex-shrink: 0;
}

.app-header__logout {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  height: 44px;
  font-size: 15px;
  color: var(--color-white);
  text-decoration: none;
}

.app-header__logout .lang-nl,
.app-header__logout .lang-en {
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  color: #e79128;
  padding: 2px 10px;
  border: 2px solid #e79128;
  white-space: nowrap;
  line-height: 1.2;
}

.app-header__flags-shell {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 var(--header-padding-x);
  display: grid;
  grid-template-columns: auto 1fr auto;
  column-gap: 32px;
}

.app-header__flags-shell .app-header__aside {
  grid-column: 3;
  justify-self: end;
}

.app-header__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 128px;
}

.app-header__nav {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
}

.app-header__tab {
  padding: 12px 28px 10px;
  font-size: 15px;
  font-weight: 400;
  color: var(--color-nav-text);
  text-decoration: none;
  border-radius: 8px 8px 0 0;
  line-height: 1.15;
  white-space: nowrap;
}

.app-header__tab--active {
  background: var(--color-nav-active);
  color: var(--color-white);
  font-weight: 500;
}

.app-header__utilities {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  align-self: stretch;
  border-radius: var(--card-radius) var(--card-radius) 0 0;
  overflow: visible;
}

.app-header__action-group {
  display: inline-flex;
  align-items: stretch;
  height: 44px;
  background: var(--color-orange);
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.app-header__notify-wrap {
  position: relative;
  display: flex;
}

.app-header__user-icon {
  display: flex;
  width: 22px;
  height: 22px;
}

.app-header__user-icon svg {
  width: 100%;
  height: 100%;
}

.app-header__bell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 44px;
  background: transparent;
  border: none;
  color: var(--color-white);
  position: relative;
}

.app-header__bell-icon {
  display: block;
  width: 27px;
  height: auto;
}

.app-header__notify-wrap {
  position: relative;
}

.app-header__badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: #e53935;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}

/* Language switcher */
.language-switcher {
  display: flex;
  gap: 6px;
  align-items: center;
}

.language-switcher__btn {
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  line-height: 0;
}

.flag {
  width: 32px;
  height: 22px;
  display: block;
  border-radius: 1px;
}

.language-switcher--guest {
  justify-content: flex-end;
  gap: 0;
  margin-top: 0;
}

.language-switcher--guest .language-switcher__btn {
  width: 64px;
  padding: 7px;
  box-sizing: border-box;
  background: transparent;
  line-height: 0;
  border: none;
  margin-top: -2px;
  border-radius: 0 0 5px 5px;
}

.language-switcher--guest .language-switcher__btn--active {
  background: var(--color-orange);
}

.language-switcher--guest .flag {
  width: 100%;
  height: auto;
  display: block;
}

/* Legacy app flag styles removed — app header uses --guest flag styles */

/* Page shell */
.page-main {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 var(--header-padding-x) 48px;
}

.role-tab {
  display: inline-block;
  background: var(--color-orange);
  color: var(--color-white);
  font-size: 15px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--card-radius) var(--card-radius) 0 0;
  margin-top: 8px;
}

.module-shell {
  background: var(--color-card-bg);
  border-radius: 0 var(--card-radius) var(--card-radius) var(--card-radius);
  padding: 28px 32px 32px;
  min-height: 480px;
}

.module-shell__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.module-shell__title {
  margin: 0;
  font-size: 28px;
  font-weight: 500;
  color: var(--color-orange);
}

@media (max-width: 900px) {
  .logo__img {
    height: 56px;
  }

  .logo {
    min-width: 0;
  }

  .app-header__shell {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      'logo end'
      'nav nav';
    align-items: center;
    min-height: auto;
    padding: 12px 20px 10px;
    row-gap: 0;
    column-gap: 12px;
  }

  .app-header__shell > .logo {
    grid-area: logo;
  }

  .app-header__shell > .app-header__nav {
    grid-area: nav;
  }

  .app-header__end {
    grid-area: end;
    align-items: center;
  }

  .app-header__menu-btn {
    display: inline-flex;
    flex-shrink: 0;
  }

  .app-header__menu-btn[aria-expanded='true'] {
    background: var(--color-orange);
    color: var(--color-white);
  }

  .app-header__utilities {
    border-radius: 0;
    align-self: center;
  }

  .app-header__action-group {
    height: auto;
    background: transparent;
    gap: 8px;
  }

  .app-header__logout {
    display: none;
  }

  .app-header__profile {
    width: 44px;
    height: 44px;
    background: var(--color-orange);
    border-radius: var(--card-radius);
  }

  .app-header__bell {
    width: 44px;
    height: 44px;
    background: var(--color-orange);
    border-radius: var(--card-radius);
  }

  .app-header__nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 8px 0 4px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: 8px;
  }

  .app-header--nav-open .app-header__nav {
    display: flex;
  }

  .app-header__tab {
    border-radius: var(--card-radius);
    padding: 12px 16px;
  }

  .app-header__tab--mobile-logout {
    display: block;
    margin-top: 4px;
    color: var(--color-orange);
    font-weight: 500;
  }

  .app-header__tab--mobile-profile {
    display: block;
    margin-top: 4px;
    color: var(--color-orange);
    font-weight: 500;
  }

  .app-header__flags-shell {
    padding-left: 20px;
    padding-right: 20px;
  }

  .page-main {
    padding-left: 20px;
    padding-right: 20px;
  }

  .module-shell {
    padding: 20px 16px 24px;
    min-height: auto;
    min-width: 0;
    overflow-x: hidden;
  }

  .module-shell__head {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 18px;
  }

  .module-shell__head > .btn,
  .module-shell__head > .employees-toolbar-wrap {
    align-self: flex-end;
  }

  .module-shell__title {
    font-size: 22px;
  }

  .role-tab {
    font-size: 14px;
    padding: 5px 12px;
  }

  .guest-header__shell {
    padding-left: 20px;
    padding-right: 20px;
  }

  .guest-header__shell--flags {
    padding-left: 20px;
    padding-right: 20px;
  }
}