/**
 * Таблицы — мягкие края как у dropdown меню шапки
 */
:root {
    --table-radius: 12px;
    --table-border-color: #e9ebef;
    --table-border: 2px solid var(--table-border-color);
    --table-shadow: 0 9px 62px rgba(0, 0, 0, 0.06);
    --table-row-divider: #e9ebef;
    --table-hover-bg: #f5f6fb;
}

body.as-redesign table.table,
body.as-redesign table.table1,
body.as-redesign table.table-striped,
body.as-redesign .schedule .shedule-table,
body.as-redesign .schedule table {
    box-sizing: border-box;
    width: 100%;
    margin: 31px 0 40px;
    border: var(--table-border);
    border-radius: var(--table-radius);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--table-shadow);
}

body.as-redesign table.table1 tbody {
    border: none;
}

body.as-redesign table.table > thead > tr > th,
body.as-redesign table.table > thead > tr > td,
body.as-redesign table.table1 > thead > tr > th,
body.as-redesign table.table1 > thead > tr > td,
body.as-redesign table.table-striped > thead > tr > th,
body.as-redesign table.table-striped > thead > tr > td,
body.as-redesign .schedule table > thead > tr > th,
body.as-redesign .schedule table > thead > tr > td {
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

body.as-redesign table.table > tbody > tr > th,
body.as-redesign table.table > tbody > tr > td,
body.as-redesign table.table > tfoot > tr > th,
body.as-redesign table.table > tfoot > tr > td,
body.as-redesign table.table1 > tbody > tr > td,
body.as-redesign table.table-striped > tbody > tr > th,
body.as-redesign table.table-striped > tbody > tr > td,
body.as-redesign .schedule table > tbody > tr > td {
    border: none;
    border-bottom: 1px solid var(--table-row-divider);
    background: #ffffff;
}

body.as-redesign table.table > tbody > tr:last-child > th,
body.as-redesign table.table > tbody > tr:last-child > td,
body.as-redesign table.table > tfoot > tr:last-child > th,
body.as-redesign table.table > tfoot > tr:last-child > td,
body.as-redesign table.table1 > tbody > tr:last-child > td,
body.as-redesign table.table-striped > tbody > tr:last-child > th,
body.as-redesign table.table-striped > tbody > tr:last-child > td,
body.as-redesign .schedule table > tbody > tr:last-child > td {
    border-bottom: none;
}

body.as-redesign table.table tbody tr:first-of-type td,
body.as-redesign table.table1 tbody tr:first-of-type td {
    border-top: none;
}

body.as-redesign table.table tr:last-of-type td {
    border-bottom: none;
}

body.as-redesign table.table > tbody > tr:hover,
body.as-redesign table.table1 > tbody > tr:hover,
body.as-redesign table.table-striped > tbody > tr:hover,
body.as-redesign .schedule table > tbody > tr:hover {
    background: var(--table-hover-bg);
}

body.as-redesign table.table:not(.table-bordered) > tbody > tr:hover td:first-of-type,
body.as-redesign table.table:not(.table-bordered) > tbody > tr:hover td:last-of-type,
body.as-redesign .schedule table > tbody > tr:hover td:first-of-type,
body.as-redesign .schedule table > tbody > tr:hover td:last-of-type {
    padding-left: 20px;
    padding-right: 20px;
    border-left: none;
    border-right: none;
}

body.as-redesign .schedule table tbody td.cell-date,
body.as-redesign .schedule table tbody td.cell-city,
body.as-redesign .schedule table tbody td.cell-price {
    border: none;
    border-bottom: 1px solid var(--table-row-divider);
}

body.as-redesign .schedule table > tbody > tr:last-child > td.cell-date,
body.as-redesign .schedule table > tbody > tr:last-child > td.cell-city,
body.as-redesign .schedule table > tbody > tr:last-child > td.cell-price {
    border-bottom: none;
}

body.as-redesign table.table-bordered {
    border: var(--table-border);
    border-radius: var(--table-radius);
    overflow: hidden;
    box-shadow: var(--table-shadow);
}

body.as-redesign table.table-bordered > thead > tr > th,
body.as-redesign table.table-bordered > tbody > tr > th,
body.as-redesign table.table-bordered > tbody > tr > td {
    border-color: var(--table-row-divider);
}

@media (max-width: 767px) {
    body.as-redesign table.table,
    body.as-redesign table.table1,
    body.as-redesign table.table-striped,
    body.as-redesign .schedule .shedule-table,
    body.as-redesign .schedule table {
        border-radius: 10px;
    }
}
