body {
    font-family: Arial, sans-serif;
    font-size: 11px;
}

/* ===== Таблица ===== */

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    margin-top: 10px;
}

th {
    background-color: #f2f2f2;
    font-weight: 600;
    text-align: center;   /* заголовки по центру */
    padding: 2px;
    border: 1px solid #000000;
}

#statistics-table th {
    font-size: 11px;
}

#flights-table th {
    font-size: 11px;
}

#statistics-table td {
    border: 1px solid #000000;
    padding: 10px 4px;
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;   /* по умолчанию одна строка */
    text-align: center
}

#flights-table td {
    border: 1px solid #949696;
    padding: 3px 4px;
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;   /* по умолчанию одна строка */
}

/* Чередование строк */
#flights-table #flights-table tr:nth-child(even) {
    background-color: #fafafa;
}

#flights-table tr:hover {
    background-color: #eef6ff;
}

/* ===== Перенос ТОЛЬКО для нужных колонок ===== */

#flights-table th:nth-child(1),
#flights-table th:nth-child(2),
#flights-table th:nth-child(3),
#flights-table th:nth-child(6),
#flights-table th:nth-child(7),
#flights-table th:nth-child(8),
#flights-table td:nth-child(1),
#flights-table td:nth-child(2),
#flights-table td:nth-child(3),
#flights-table td:nth-child(6),
#flights-table td:nth-child(7),
#flights-table td:nth-child(8) {
    white-space: normal;      /* разрешаем перенос */
    word-break: break-word;   /* перенос длинных строк */
}

/* flights-table */
#flights-table th:nth-child(1), #flights-table td:nth-child(1) {
    width: 5%;
    text-align: center;
}

#flights-table th:nth-child(2), #flights-table td:nth-child(2) {
    width: 50%;
}

/* Остальные колонки компактные */
#flights-table th:nth-child(n+3), #flights-table td:nth-child(n+3) {
    width: 10%;
    text-align: center;
}

#flights-table th:nth-child(9), #flights-table td:nth-child(9) {
    width: 5%;
    text-align: center;
}

/* statistics-table */
#statistics-table th:nth-child(1),#statistics-table td:nth-child(1) {
    width: 10%;
}

#statistics-table th:nth-child(2), #statistics-table td:nth-child(2) {
    width: 80%;
}

#statistics-table th:nth-child(n+3), #statistics-table td:nth-child(n+3) {
    width: 10%;
}

/* Группа 0 (3 колонки) */
.group-0, .group-2, .group-4{
    background: rgba(254, 255, 254, 0.82);
}

/* Группа 1 */
.group-1, .group-3 {
    background: rgba(223, 223, 221, 0.37);
}