:root {
    --z-base: 1;
    --z-sticky: 100;
    --z-dropdown: 200;
    --z-drawer-overlay: 540;
    --z-drawer: 550;
    --z-bottom-nav: 650;
    --z-modal: 600;
    --z-cookie: 700;
    --z-toast: 800;
    --z-tooltip: 900;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 0;
    padding: 0;
    margin: 0;
    position: static;
    top: auto;
    z-index: auto;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.admin-nav a {
    display: block;
    color: var(--color-text-muted);
    text-decoration: none;
    padding: 12px 15px;
    border-radius: var(--radius-md);
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
    width: 100%;
    max-width: 158px;
    text-align: center;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: var(--color-surface-2);
    color: var(--color-text-base);
    transform: translateX(2px);
}

@media (max-width: 1024px) {
    .admin-container {
        flex-direction: column;
        gap: 16px;
    }

    .admin-sidebar {
        position: static;
        width: 100%;
        max-height: none;
        flex: 1 1 auto;
        border-right: none;
        border-bottom: var(--border-base);
        border-radius: var(--radius-lg);
    }

    .admin-nav {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
    }

    .admin-nav a {
        flex: 1 1 180px;
        max-width: none;
        text-align: center;
    }
}

@media (max-width: 768px) {
    body {
        padding: var(--safe-top, env(safe-area-inset-top, 0px)) max(8px, var(--safe-right, env(safe-area-inset-right, 0px))) 0 max(8px, var(--safe-left, env(safe-area-inset-left, 0px)));
    }

    .admin-sidebar {
        padding: 16px;
    }

    .admin-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-nav a {
        flex: 1 1 auto;
        max-width: none;
        text-align: left;
    }
}


#yandex_rtb_R-A-17939695-1 {
  margin: 24px 0 32px;
}


@media (max-width: 768px) {
  .tabs {
    gap: 4px;
    padding: 3px;
    border-radius: var(--radius-lg);
  }

  .tab {
    min-height: 46px;
    padding: 12px 10px;
    font-size: 0.95rem;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    gap: 6px;
  }

  .tab .nav-icon {
    flex: 0 0 auto;
  }
  .tab .nav-icon svg,
  .tab .nav-icon i {
    width: 14px;
    height: 14px;
  }
}


@media (max-width: 600px) {
  .tabs {
    gap: 3px;
    padding: 3px;
  }

  .tab {
    min-height: 42px;
    padding: 10px 8px;
    font-size: 0.88rem;
    line-height: 1.05;
    gap: 5px;
  }
  .tab .nav-icon svg,
  .tab .nav-icon i {
    width: 13px;
    height: 13px;
  }
}

/* Модальные окна 2026 Edition */

.modal {
    display: flex;
    visibility: hidden;
    opacity: 0;
    position: fixed;
    z-index: var(--z-modal); /* Higher than PWA bottom nav */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-overlay-backdrop);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: center;
    justify-content: center;
    overscroll-behavior: contain;
}
