/* Fixed Header */
.site-header {
  width: 100vw;
  top: 0;
  left: 0;
  position: fixed;
  z-index: 99;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  min-height: 66px;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1560px, 99vw);
  margin: 0 auto;
  min-height: 66px;
  padding: 8px 12px;
}

.site-header .logo {
  font-size: 1.19rem;
  font-weight: bold;
  color: var(--text);
  text-decoration: none;
  letter-spacing: .03em;
  flex-shrink: 0;
  white-space: nowrap;
}

.site-header .header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.site-header .header-actions .nav-link {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  transition: .2s;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  font-size: 14px;
}

.site-header .header-actions .nav-link:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

.site-header .header-actions .nav-link.logout-link {
  background: rgba(220, 38, 38, 0.1);
  color: var(--danger);
  border-color: rgba(220, 38, 38, 0.2);
}

.site-header .header-actions .nav-link.logout-link:hover {
  background: rgba(220, 38, 38, 0.15);
  border-color: var(--danger);
}

/* Новые кнопки навигации */
.header-nav-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 1;
  justify-content: center;
  flex-wrap: nowrap;
  min-width: 0;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  color: var(--primary);
}

.nav-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
}

.nav-btn.active:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.nav-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: inherit;
}

.nav-btn-icon svg {
  display: block;
}

/* Карточки статистики и заголовки секций (панель компании) */
.stat-cards { display: grid; gap: 20px; }

.stat-card {
  text-align: center;
  padding: 24px 20px !important;
  border-radius: 16px;
}

.stat-card__icon {
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #374151;
}

.stat-card__icon svg { display: block; }

.stat-card__value {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.stat-card__label { color: var(--text-secondary); font-size: 14px; font-weight: 500; }

.stat-card__meta {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-secondary);
}

.section-title {
  margin-bottom: 16px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title__icon {
  display: inline-flex;
  align-items: center;
  color: #4b5563;
}

.section-title__icon svg { display: block; }

.section-title--warn { color: var(--warn); }

.section-title--warn .section-title__icon { color: var(--warn); }

.btn--icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn--icon .btn-icon { flex-shrink: 0; }

/* Evervault Navigation Menu */
.styles_list__z_6uf,
.ev-menu-list {
  gap: 4px;
  padding: 8px;
  display: flex;
  margin: 0;
  align-items: center;
  line-height: 1;
  font-size: 13.6px;
  list-style: none;
  pointer-events: all;
  height: 40px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.64);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .05), 0 10px 26px rgba(15, 23, 42, .10);
  border: 1px solid var(--border);
  min-width: 670px;
}

.styles_navLink___VcW8 {
  color: var(--text);
  border: none;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  font-weight: 500;
  align-items: center;
  display: inline-flex;
  text-decoration: none;
  background: transparent;
  padding: 12px 0;
  margin: -12px 0;
}

.styles_navLink___VcW8 span {
  height: 24px;
  padding: 0 12px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  transition: background .3s;
}

.styles_navLink___VcW8:hover span,
.styles_navLink___VcW8[data-state=open] span,
.styles_navLink___VcW8.active span {
  transition: background .15s;
  background: rgba(15, 23, 42, .06);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .04);
}

.styles_arrow__fxWHa path {
  fill: none;
  stroke: currentColor;
  stroke-width: calc(1em / 10);
  transition: opacity .3s, transform .3s;
}

.styles_arrow__fxWHa .styles_line___qSr7 {
  opacity: 0;
  transform: translateX(-3px);
}

.styles_arrow__fxWHa:hover .styles_line___qSr7 {
  opacity: 1;
  transform: translateX(0);
}

.styles_arrow__fxWHa:hover .styles_chevron__pzecF {
  transform: translateX(3px);
}

/* Footer */
footer {
  width: 100%;
  margin: 0;
  padding: 24px 0 0;
  text-align: center;
  color: var(--muted);
  letter-spacing: .01em;
  background: none;
}

/* Уведомления (колокольчик) */
.header-notify-wrap {
  position: relative;
}

.header-notify-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}

.header-notify-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.header-notify-badge {
  position: absolute;
  right: 2px;
  bottom: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.25);
}

.header-notify-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(380px, 92vw);
  max-height: min(420px, 70vh);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.15);
  z-index: 200;
}

.header-notify-dropdown__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
}

.header-notify-mark-all {
  border: none;
  background: none;
  color: var(--primary);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 0;
}

.header-notify-mark-all:hover {
  text-decoration: underline;
}

.header-notify-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-notify-empty {
  padding: 16px 12px;
  font-size: 13px;
  color: var(--muted);
}

.header-notify-item {
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.header-notify-item:last-child {
  border-bottom: none;
}

.header-notify-item__link {
  display: block;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
}

.header-notify-item__link:hover {
  background: rgba(96, 165, 250, 0.08);
}

.header-notify-item--read .header-notify-item__title {
  opacity: 0.65;
}

.header-notify-item__title {
  font-weight: 600;
  line-height: 1.35;
}

.header-notify-item__body {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

/* Кнопка мобильного меню (видна только в mobile.css) */
.header-menu-toggle {
  display: none;
}

.header-nav-backdrop {
  display: none;
}

/* Responsive */
@media (max-width: 900px) {
  .styles_list__z_6uf,
  .ev-menu-list {
    min-width: unset;
    font-size: 13px;
    padding: 0 11px;
  }
}
