/* tables.css — единый стиль таблиц цен на всём сайте (18.10.2026, по образцу страницы пакетов).
   Шапка — бледно-зелёная с тёмно-зелёным текстом, левая колонка — светлая серо-зелёная, цены — на белом.
   Подключается в header.php последним, поэтому перекрывает старые стили страниц (!important только на цвета). */
:root {
    --tbl-head-bg: #e3f1ec;
    --tbl-head-corner: #d4eae2;
    --tbl-head-ink: #0b5c45;
    --tbl-side-bg: #f3f8f6;
    --tbl-side-ink: #1f2d27;
    --tbl-line: #dfeae5;
}
:is(.table-std, .sp-price-body table, .striped-table, .comp-table, .pricing-table-v3, .tpt-table, .shiro-price-table, .zr-table, .ds-table, .price-table, .simple-price-table) {
    border-collapse: collapse;
    background: #fff;
}
:is(.table-std, .sp-price-body table, .striped-table, .comp-table, .pricing-table-v3, .tpt-table, .shiro-price-table, .zr-table, .ds-table, .price-table, .simple-price-table) :is(th, td) {
    border-color: var(--tbl-line) !important;
}
/* шапка */
:is(.table-std, .sp-price-body table, .striped-table, .comp-table, .pricing-table-v3, .tpt-table, .shiro-price-table, .zr-table, .ds-table, .price-table, .simple-price-table) :is(thead th, thead td, tr:first-child > th) {
    background: var(--tbl-head-bg) !important;
    color: var(--tbl-head-ink) !important;
    font-weight: 700;
}
:is(.table-std, .sp-price-body table, .striped-table, .comp-table, .pricing-table-v3, .tpt-table, .shiro-price-table, .zr-table, .ds-table, .price-table, .simple-price-table) :is(thead th:first-child, thead td:first-child, tr:first-child > th:first-child) {
    background: var(--tbl-head-corner) !important;
}
/* левая колонка */
:is(.table-std, .sp-price-body table, .striped-table, .comp-table, .pricing-table-v3, .tpt-table, .shiro-price-table, .zr-table, .ds-table, .price-table, .simple-price-table) tbody tr:not(:first-child:has(> th)) > :is(td, th):first-child,
:is(.table-std, .sp-price-body table, .striped-table, .comp-table, .pricing-table-v3, .tpt-table, .shiro-price-table, .zr-table, .ds-table, .price-table, .simple-price-table) thead ~ tbody tr > :is(td, th):first-child {
    background: var(--tbl-side-bg) !important;
    color: var(--tbl-side-ink) !important;
    font-weight: 600;
}
/* цены — на белом (полосатая заливка убирается) */
:is(.table-std, .sp-price-body table, .striped-table, .comp-table, .pricing-table-v3, .tpt-table, .shiro-price-table, .zr-table, .ds-table, .price-table, .simple-price-table) tbody td:not(:first-child) {
    background: #fff !important;
}
/* числа с единицами не переносятся (класс ставит js/tables.js) */
.tbl-nowrap { white-space: nowrap; }
/* широкие таблицы на телефоне листаются вбок, а не сжимаются */
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
