html {
    font-size: 14px;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

@media (min-width: 768px) {
    html {
        font-size: 22px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    padding-top: 60px;
    margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

p {
    overflow-wrap: break-word; /* Современный стандарт */
    word-wrap: break-word; /* Для старых браузеров */
}

/* Контейнер для адаптивности (прокрутка на мобильных) */
.table-container {
    overflow-x: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    display: block;
}

/* Стили самой таблицы */
.styled-table {
    border-collapse: collapse; /* Схлопывание двойных рамок */
    font-size: 0.95em;
    min-width: 600px;
    background-color: #ffffff;
    width: 100%;
    max-width: 100%;
    table-layout: auto;
}

    /* Стили шапки таблицы */
    .styled-table thead tr {
        background-color: #3A70BE; /* Основной цвет */
        color: #ffffff;
        text-align: left;
        font-weight: bold;
    }

    /* Внутренние отступы в ячейках */
    .styled-table th,
    .styled-table td {
        padding: 12px 20px;
        text-align: left;
    }

    /* Нижние границы для всех строк */
    .styled-table tbody tr {
        border-bottom: 1px solid #dddddd;
    }

        /* Эффект "Зебры" (окрашивание четных строк) */
        .styled-table tbody tr:nth-of-type(odd) {
            background-color: #f3f3f3;
        }

        /* Подсветка последней строки красивой рамкой */
        .styled-table tbody tr:last-of-type {
            border-bottom: 3px solid #3A70BE;
        }

        /* Эффект при наведении курсора на строку */
        .styled-table tbody tr:hover {
            background-color: #CBE0F8;
            cursor: default;
            transition: background-color 0.2s ease;
        }


.custom-menu-item {
    transition: background-color 0.3s ease, color 0.3s ease;
    padding: 10px 15px;
    margin-right: 10px;
    border-radius: 16px;
}


    .custom-menu-item:hover {
        background-color: #f8f9fa;
        color: #3A70BE !important;
        text-decoration: none;
        cursor: pointer;
    }

a.custom-menu-item.active {
    color: #ffffff !important;
    font-weight: bold !important;
    background-color: #3A70BE !important;
}

.flex-item {
    min-width: 0;
}

.flex-container {
    display: flex;
    justify-content: start;
}

/* Контейнер: выстраивает элементы в ряд и переносит их */
.tag-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: start; /* Центрирует плашки по горизонтали */
    gap: 8px;
    padding: 10px 0;
}

/* Стили для каждой отдельной плашки */
.tag-item {
    display: inline-flex;
    align-items: center;
    background-color: #e2e8f0; /* Светло-серый фон */
    color: #334155; /* Темно-серый текст */
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 16px; /* Округлые края */
    user-select: none; /* Запрет выделения текста */
    transition: background-color 0.2s ease;
}

    /* Эффект при наведении (опционально) */
    .tag-item:hover {
        background-color: #cbd5e1;
        cursor: default;
    }

a {
    text-decoration: none;
}

.header-footer-bg {
    background-color: #E6F2FF;
}