/*
 * Firmenfarben, QB-Logo und Navigation.
 * Diese Datei wird nach site.css geladen und überschreibt bewusst die
 * neutralen Basisfarben mit dem grünen QB-Erscheinungsbild.
 */

/* QB-Farbpalette */
:root {
  --navy: #112a22;
  --blue: #176b4b;
  --cyan: #d5f36b;
  --paper: #f4f7f5;
  --ink: #17231f;
  --muted: #718079;
  --line: #e4eae6;
  --sidebar-width: 250px;
}

/* Logo im Seitenmenü, Login und Kopfbereich */
.qb-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qb-brand img {
  display: block;
  width: 60px;
  height: 50px;
  object-fit: contain;
}

.qb-brand b {
  font-size: 18px;
  line-height: 1.1;
}

.sidebar .qb-brand {
  min-height: 84px;
  padding: 10px 12px;
}

.sidebar .qb-brand img {
  flex: 0 0 76px;
  width: 76px;
  height: 64px;
}

.sidebar .qb-brand b {
  font-size: 16px;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  color: var(--navy);
}

.login-brand img {
  display: block;
  width: 100px;
  height: 84px;
  object-fit: contain;
}

.login-brand strong {
  font-size: 22px;
  line-height: 1.1;
}

/* Gruppierte Navigation mit aktivem Menüpunkt */
.sidebar nav {
  gap: 18px;
  padding: 16px 12px 22px;
}

.nav-section {
  display: grid;
  gap: 4px;
}

.nav-group-toggle {
  width: 100%;
  min-height: 29px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 12px 6px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #91b3a7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-group-toggle:hover, .nav-group-toggle:focus-visible {
  background: #ffffff0d;
  color: #d7e7e1;
  outline: none;
}

.nav-group-toggle i {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .16s ease;
}

.nav-section.collapsed .nav-group-toggle i {
  transform: rotate(-45deg) translate(-1px, -1px);
}

.nav-section-items {
  display: grid;
  gap: 4px;
}

.nav-section-items[hidden] {
  display: none;
}

.sidebar nav a {
  display: flex;
  align-items: center;
  color: #d3dfdb;
  padding: 10px 12px;
}

.sidebar nav a:hover, .sidebar nav a:focus {
  background: #ffffff12;
  color: #fff;
}

.sidebar nav a.nav-current {
  background: #176b4b;
  color: #fff;
  box-shadow: 0 5px 16px #07181255;
}

.nav-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 17px;
  font-weight: 400;
}

.nav-notification-count {
  min-width: 22px;
  height: 20px;
  margin-left: auto;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  border-radius: 99px;
  background: #d99927;
  color: #fff;
  font-size: 9px;
  line-height: 1;
}

.nav-notification-count.critical {
  background: #d23b31;
}

.nav-notification-count[hidden] {
  display: none;
}

.sidebar-close {
  display: none;
}

@media (max-width: 960px) {
  .nav-toggle:checked~.mobile-nav-button {
    opacity: 0;
    pointer-events: none;
    transform: scale(.8);
  }
  .mobile-nav-button {
    transition: opacity .16s ease, transform .16s ease;
  }
  .has-operational-notifications .mobile-nav-button::after {
    content: "";
    position: absolute;
    top: -3px;
    right: -3px;
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #d99927;
  }
  .has-critical-notifications .mobile-nav-button::after {
    background: #d23b31;
  }
  .sidebar-close {
    position: absolute;
    z-index: 2;
    top: 13px;
    right: 12px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid #ffffff26;
    border-radius: 9px;
    background: #0b201a;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
  }
  .sidebar .qb-brand {
    padding-right: 54px;
  }
}

@media (max-width: 620px) {
  .topbar .qb-brand img {
    width: 52px;
    height: 44px;
  }
  .topbar .qb-brand b {
    font-size: 17px;
  }
  .login-brand img {
    width: 84px;
    height: 70px;
  }
  .login-brand strong {
    font-size: 20px;
  }
}

/* Reiter für Rohstoffe und Fertigartikel */
.article-panel {
  padding-top: 0;
  overflow: hidden;
}

.article-tabs {
  display: flex;
  gap: 4px;
  margin: 0 -20px 18px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: #f8faf9;
}

.article-tabs a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 16px 18px 13px;
  border-bottom: 4px solid transparent;
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.article-tabs a:hover {
  color: var(--blue);
  background: #edf4f0;
}

.article-tabs a.active {
  border-color: var(--blue);
  color: var(--blue);
  background: #fff;
}

.article-tabs span {
  min-width: 25px;
  padding: 3px 8px;
  border-radius: 99px;
  background: #e5ece8;
  color: inherit;
  text-align: center;
  font-size: 12px;
}

@media (max-width: 620px) {
  .article-tabs {
    margin-left: -12px;
    margin-right: -12px;
    padding: 0 8px;
  }
  .article-tabs a {
    flex: 1;
    justify-content: center;
    padding: 14px 8px 11px;
  }
}
