@charset "UTF-8";
/* CSS для фиксированной шапки таблицы на страницах статистики бомбардиров */

/* Контейнер для таблицы с фиксированной шапкой */
.tabs .sticky-table-wrapper {
    max-height: 600px;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
    margin: 0;
    /* Важно для корректной работы на webkit браузерах */
    -webkit-overflow-scrolling: touch;
}

/* Делаем таблицу внутри wrapper без отступов */
.tabs .sticky-table-wrapper table {
    margin: 0;
    width: 100%;
}

/* Фиксируем шапку таблицы */
.tabs .sticky-table-wrapper table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Убираем прозрачность у фиксированной шапки для лучшей читаемости */
.tabs .sticky-table-wrapper table thead th {
    background-color: rgb(14, 61, 89);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Поддержка tablesorter фильтров - они добавляются в thead как отдельная строка */
.tabs .sticky-table-wrapper table thead tr.tablesorter-filter-row {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: rgb(14, 61, 89);
}

.tabs .sticky-table-wrapper table thead tr.tablesorter-filter-row th,
.tabs .sticky-table-wrapper table thead tr.tablesorter-filter-row td {
    background-color: rgb(14, 61, 89);
}

/* Обеспечиваем корректное позиционирование строки фильтров под заголовком */
.tabs .sticky-table-wrapper table thead tr:first-child {
    position: sticky;
    top: 0;
    z-index: 11;
}

.tabs .sticky-table-wrapper table thead tr.tablesorter-filter-row {
    position: sticky;
    top: 27px; /* Высота заголовка (18px line-height + 9px padding) */
    z-index: 10;
}

/* Для второй вкладки (таблица "Голов за матч") без wrapper класса */
.tabs > div > div {
    max-height: 600px;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

/* Фиксированная шапка для второй таблицы тоже */
.tabs > div > div table.wide thead tr {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: rgb(14, 61, 89);
}

.tabs > div > div table.wide thead tr th {
    background-color: rgb(14, 61, 89);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Поддержка tablesorter фильтров для второй таблицы */
.tabs > div > div table.wide thead tr.tablesorter-filter-row {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: rgb(14, 61, 89);
}

.tabs > div > div table.wide thead tr.tablesorter-filter-row th,
.tabs > div > div table.wide thead tr.tablesorter-filter-row td {
    background-color: rgb(14, 61, 89);
}

/* Обеспечиваем корректное позиционирование для второй таблицы */
.tabs > div > div table.wide thead tr:first-child {
    position: sticky;
    top: 0;
    z-index: 11;
}

.tabs > div > div table.wide thead tr.tablesorter-filter-row {
    position: sticky;
    top: 27px; /* Высота заголовка */
    z-index: 10;
}

/* Убираем стандартный отступ для таблиц внутри табов */
.tabs > div > div table {
    margin: 0;
}

/* Адаптивность для планшетов (до 768px) */
@media screen and (max-width: 768px) {
    .tabs .sticky-table-wrapper,
    .tabs > div > div {
        max-height: 500px;
    }
}

/* Адаптивность для мобильных (до 480px) */
@media screen and (max-width: 480px) {
    .tabs .sticky-table-wrapper,
    .tabs > div > div {
        max-height: 400px;
    }

    /* На мобильных устройствах уменьшаем тень для экономии места */
    .tabs .sticky-table-wrapper table thead th,
    .tabs > div > div table.wide thead tr th {
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }
}
