/* Центрирование заголовка (размеры в base.css) */
.modtab-title {
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 1.5em;
}

@media (max-width: 600px) {
    #table__modification { 
        display: none !important; 
    }
}

/* Контейнер и Скроллбар */
.modtab-container {
    width: 100%;
    overflow-x: auto;
    margin: 0 auto;
    display: block; 
    -webkit-overflow-scrolling: touch;
    position: relative;
}

.modtab-container::-webkit-scrollbar { height: 18px; background-color: #f1f1f1; }
.modtab-container::-webkit-scrollbar-thumb {
    background-color: #167f2b;
    border: 3px solid #f1f1f1; 
    border-radius: 100px;
}




/* Таблица */
.modtab-table {
    border-collapse: collapse;
    border: 1px solid #cecece;
    width: max-content;
    table-layout: fixed; 
}

/* Ячейки данных */
.modtab-td {
    width: 220px;
    padding: 15px;
    vertical-align: middle;
    text-align: center;
    border: 1px solid #cecece;
    background-color: #eaeaea;
    white-space: normal;
    word-wrap: break-word;
    color: #1a1a1a;
}

/* Первый столбец (Липкий) */
.modtab-th {
    position: sticky;
    left: 0;
    z-index: 10;
    width: 260px;
    text-align: left;
    color: #1a1a1a;
    font-weight: 600; /* Semibold */
    background-color: #eaeaea;
    padding: 15px;
    border: 1px solid #cecece;
}

.modtab-th::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background-color: #cecece;
}

/* Шапка (Зеленая) */
.modtab-head-cell, .modtab-head-main {
    background-color: #157c2a !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-align: center;
    min-height: 130px;
    transition: background-color 0.2s ease;
}

.modtab-head-cell a {
    color: #ffffff !important;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 130px;
    padding: 25px 20px;
    box-sizing: border-box;
}

.modtab-head-cell:not(.modtab-current):hover { background-color: #d0f7d8 !important; }
.modtab-head-cell:not(.modtab-current):hover a { color: #1a1a1a !important; }

/* Текущий товар */
.modtab-current.modtab-head-cell, .modtab-current.modtab-head-cell a {
    background-color: #d0f7d8 !important; 
    color: #1a1a1a !important;
}
td.modtab-current { background-color: #ffffff !important; font-weight: 600; color: #1a1a1a; }

/* Цена (Нижняя строка) */
.modtab-row:last-child td:not(.modtab-th) {
    color: #167f2b !important;
    font-size: 22px;
    font-weight: 700;
}


/* Стрелки */
.modtab-nav { 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
    margin: 25px 0; 
}

.modtab-arrow {
    background: #157c2a;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 60px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    padding-bottom: 20px; /* Центровка символа ‹ › */
    transition: 0.2s;
}

/* Эффект при нажатии (чтобы было понятно, что клик сработал) */
.modtab-arrow:active {
    transform: scale(0.9);
    background: #0e5a1e;
}

@media (max-width: 1023px) {
    .modtab-td { width: 140px; padding: 10px; }
    .modtab-th { width: 120px; }
    .modtab-head-cell, .modtab-head-main, .modtab-head-cell a { min-height: 85px; }
}
