/* ============================================
   Мед Плам — Custom CSS
   ============================================ */

/* ---------- Mobile Menu ---------- */
#mobile-menu-btn{
    display: none;
}

@media (max-width: 767px) {
    /* Мобильная навигация — скрыта по умолчанию */
    nav {
        display: none !important;
    }

    .backdrop-blur-md {
        --tw-backdrop-blur: inherit;
        -webkit-backdrop-filter: inherit;
        backdrop-filter: inherit;
    }

    #mobile-menu-btn{
        display: inherit;
        z-index: 200;
    }

    #logo-link{
        z-index: 200;
    }

    #color-mode-btn, #logout-btn, #begin-btn{
        display: none;
    }

    /* Меню открыто */
    nav.open {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 100;
        background-color: rgb(255 255 255 / 0.98);
        backdrop-filter: saturate(180%) blur(8px);
        -webkit-backdrop-filter: saturate(180%) blur(8px);
        padding: 5rem 1.5rem 2rem;
        overflow-y: auto;
        animation: menuSlideIn 0.2s ease-out;
    }

    [data-theme="dark"] nav.open {
        background-color: rgb(0 0 0 / 0.98);
    }

    @keyframes menuSlideIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    nav.open a {
        display: block;
        padding: 0.875rem 0.5rem;
        font-size: 1.125rem;
        font-weight: 500;
        border-radius: 0.5rem;
        transition: background-color 0.15s ease;
    }

    nav.open a:hover {
        background-color: rgb(0 0 0 / 0.04);
    }

    [data-theme="dark"] nav.open a:hover {
        background-color: rgb(255 255 255 / 0.06);
    }

    /* Блокировка скролла */
    body.menu-open {
        overflow: hidden;
    }
}

@media (min-width: 768px) {
    .md\:items-end {
        align-items: end;
    }
}

/*styky*/
#analysis-table {
    border-collapse: collapse;
    width: 100%;
}
#analysis-table th, #analysis-table td {
}
/* Шапка */
#analysis-table thead th {
    position: sticky;
    top: 0;
    background: #dde9e5;
    z-index: 10;
}
#analysis-table thead th.sticky {
    z-index: 15;
}
/* Первая колонка */
#analysis-table tbody td.sticky {
    position: sticky;
    left: 0;
    background-color: #fff;
    z-index: 5;
}

/*styky dark*/
/* Шапка */
.dark #analysis-table thead th {
    background: #29322f;
}
/* Первая колонка */
.dark #analysis-table tbody td.sticky {
    background-color: hsl(var(--card));
}
