:root {
    --color-green: #28a745;
    --color-orange: #fd9d5d;
    --color-gray: #6c757d;
}

h2 {
    margin-bottom: 20px;
}

.flight__board {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow-x: auto;
    padding: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 18px;
}

th, td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

td {
    line-height: 25px;
    font-size: 18px;
}

th {
    /*background-color: var(--color-blue-1);*/
    color: var(--color-blue-1);
    font-size: 20px;
    font-weight: 700;
}

.td__day {
    font-size: 16px;
}

.status {
    display: inline-block;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 5px;
    min-width: 90px;
    font-size: 16px;
}

.status-arrived {
    background-color: #e6f9ed;
    color: var(--color-green);
}

.status-departure {
    background-color: #e6f0ff;
    color: var(--color-blue-1);
}

.status-delayed {
    background-color: #fff4e6;
    color: var(--color-orange);
}

.date-tabs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 10px;
    width: 50%;
}

.td__name {
    font-weight: 700;
    font-size: 18px;
}

small {
    color: #999;
    font-size: 16px;
    font-weight: 400;
}

.flight__board-time {
    font-size: 18px;
    font-weight: 700;
}

@media(max-width: 1000px) {
    table {
        font-size: 16px;
    }

    .td__name {
        font-size: 18px;
    }

    small {
        font-size: 16px;
    }

    th, td {
        padding: 8px;
        border-bottom: 1px solid #ddd;
    }

    .flight__board-time {
        font-size: 18px;
    }
}


.flight__adaptive {
    display: none;
}

@media (max-width: 768px) {
    .flight__board {
        display: none;
    }

    .flight__adaptive {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .flight__card {
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 8px 10px;
        border-radius: 6px;
        background: #fff;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        border: 1px solid #eee;
        font-size: 13px;
    }

    .flight__top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-weight: 600;
        font-size: 14px;
        color: #333;
    }

    .flight__number {
        color: #0052cc;
        font-weight: 700;
    }

    .flight__route {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }


    .flight__route .bi-arrow-right {
        width: 5%;
    }

    .flight__route .city {
        display: flex;
        flex-direction: column;
        align-items: end;
        gap: 2px;
        font-weight: 700;
        font-size: 14px;
        width: 45%;
    }

    .flight__route .city:nth-child(1) {
        align-items: start;
    }

    .flight__route small {
        font-size: 12px;
        color: #888;
    }

    .arrow {
        font-size: 16px;
        color: #aaa;
        margin: 0 6px;
    }

    .flight__time {
        display: flex;
        justify-content: space-between;
        font-size: 14px;
        font-weight: bold;
    }

    .status {
        padding: 2px 6px;
        font-size: 12px;
        min-width: auto;
    }
}
