/* Основной контейнер */
#steering-dual-wrapper,
#category_description_full > #steering-dual-wrapper:first-child {
    background-color: transparent !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important; /* Уменьшили зазор между таблицами */
    margin: 10px 0 !important; /* Уменьшили внешний отступ */
}

#steering-dual-wrapper .cable-block {
    flex: 1 1 48% !important;
    min-width: 300px !important;
    background: #ffffff !important;
}

/* Компактные заголовки */
#steering-dual-wrapper h3 {
    background: #f1f1f1 !important;
    color: #333 !important;
    padding: 5px !important; /* Было 12px, стало 5px */
    margin: 0 !important;
    border: 1px solid #ccc !important;
    font-size: 14px !important;
    text-align: center !important;
    line-height: 1.2 !important; /* Принудительно уменьшаем высоту строки */
}

#steering-dual-wrapper table {
    width: 100% !important;
    border-collapse: collapse !important;
    border: 1px solid #ccc !important;
    line-height: 1 !important; /* Убираем лишнее пространство между строками */
}

/* Компактные ячейки */
#steering-dual-wrapper th, 
#steering-dual-wrapper td {
    border: 1px solid #ccc !important;
    padding: 3px 2px !important; /* Максимально сжали отступы (было 7px) */
    text-align: center !important;
    font-size: 12px !important;
    color: #333 !important;
    height: 20px !important; /* Фиксируем минимальную высоту ячейки */
}

#steering-dual-wrapper th {
    background: #f9f9f9 !important;
    font-weight: bold !important;
    padding: 5px 2px !important;
}

/* Стили меток наличия */
#steering-dual-wrapper .stock-ok {
    background-color: #7cd320 !important;
    padding: 1px 4px !important; /* Сжали плашку */
    font-size: 11px !important;
    font-weight: bold !important;
    border-radius: 2px !important;
    display: inline-block !important;
}

/* Мобильная версия (без изменений, чтобы пальцем было удобно нажимать) */
@media (max-width: 767px) {
    #steering-dual-wrapper {
        flex-direction: column !important;
    }
    #steering-dual-wrapper .cable-block {
        width: 100% !important;
        margin-bottom: 15px !important;
    }
    #steering-dual-wrapper td {
        padding: 8px 2px !important; /* На мобилках оставляем побольше для удобства тапа */
        font-size: 12px !important;
    }
}
/* Эффект подсветки строки при наведении мыши */
#steering-dual-wrapper tbody tr:hover td {
    background-color: #f2f7ff !important; /* Светло-голубой оттенок подсветки */
    cursor: pointer; /* Меняет курсор на "палец", показывая кликабельность */
    transition: background-color 0.2s ease; /* Плавный переход цвета */
}

/* Дополнительно: делаем ссылки внутри строк более заметными при наведении */
#steering-dual-wrapper tbody tr:hover td a {
    color: #ce0000 !important; /* Цвет ссылки меняется на красный при наведении на строку */
    text-decoration: underline !important;
}
/* Общие стили для компактных таблиц */
.compact-table-container,
#category_description_full > .compact-table-container:first-child {
    background-color: transparent !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 10px 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

.cable-block {
    flex: 1 1 48% !important;
    min-width: 300px !important;
    background: #fff !important;
}

/* Если таблица одна (как в газ-реверсе), растягиваем её */
.cable-block.single-table {
    flex: 1 1 100% !important;
}

.cable-block h3 {
    background: #f1f1f1 !important;
    color: #333 !important;
    padding: 5px !important;
    margin: 0 !important;
    border: 1px solid #ccc !important;
    font-size: 14px !important;
    text-align: center !important;
    line-height: 1.2 !important;
}

.cable-block table {
    width: 100% !important;
    border-collapse: collapse !important;
    border: 1px solid #ccc !important;
}

.cable-block th, .cable-block td {
    border: 1px solid #ccc !important;
    padding: 3px 2px !important;
    text-align: center !important;
    font-size: 12px !important;
    color: #333 !important;
    line-height: 1.2 !important;
}

.cable-block th {
    background: #f9f9f9 !important;
    font-weight: bold !important;
}

/* Подсветка строки при наведении */
.cable-block tbody tr:hover td {
    background-color: #f2f7ff !important;
    transition: background-color 0.1s ease;
}

.cable-block .stock-ok {
    background-color: #7cd320 !important;
    padding: 1px 4px !important;
    font-size: 11px !important;
    font-weight: bold !important;
    border-radius: 2px !important;
    display: inline-block !important;
}

/* Мобильная адаптация */
@media (max-width: 767px) {
    .compact-table-container { flex-direction: column !important; }
    .cable-block { width: 100% !important; }
    .cable-block td { padding: 6px 2px !important; font-size: 11px !important; }
}