/* ===== Общие стили для блока таблицы ===== */
.repair-service-prices {
    margin: 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Адаптивная обёртка для горизонтальной прокрутки на мобильных */
.repair-service-prices .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Сама таблица */
.repair-service-prices .price {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
}

/* Заголовок — ВСЕГДА видимый */
.repair-service-prices .price_th {
    background: linear-gradient(135deg, #1e3c72 0%, #2b4c7c 100%);
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    display: flex;
}

.repair-service-prices .price_th .col1,
.repair-service-prices .price_th .col2,
.repair-service-prices .price_th .col3 {
    padding: 16px 20px;
    text-transform: uppercase;
}

/* Строки таблицы */
.repair-service-prices .price_line {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.repair-service-prices .price_line:hover {
    background-color: #f9fafc;
}

/* Ячейки */
.repair-service-prices .col1,
.repair-service-prices .col2,
.repair-service-prices .col3 {
    padding: 18px 20px;
    flex: 1;
    display: flex;
    align-items: center;
}

.repair-service-prices .col1 {
    flex: 2;
    font-weight: 500;
    color: #2c3e50;
}

.repair-service-prices .col2 {
    flex: 1;
    color: #05a255;
    font-weight: 700;
    font-size: 18px;
}

.repair-service-prices .col3 {
    flex: 1;
    justify-content: center;
}

/* Кнопка */
.repair-service-prices .order-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #05a255 0%, #048c48 100%);
    color: #fff;
    padding: 10px 24px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 5px rgba(5, 162, 85, 0.2);
    border: none;
    cursor: pointer;
}

.repair-service-prices .order-button:before {
    content: "📝";
    font-size: 14px;
    transition: transform 0.2s;
}

.repair-service-prices .order-button:hover {
    background: linear-gradient(135deg, #048c48 0%, #036e3a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(5, 162, 85, 0.3);
    text-decoration: none;
    color: #fff;
}

.repair-service-prices .order-button:active {
    transform: translateY(1px);
}

.repair-service-prices .clear {
    display: none;
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ ===== */
@media (max-width: 768px) {
    /* Шапка теперь ВСЕГДА отображается */
    
    .repair-service-prices .price_line {
        display: block;
        background: #fff;
        margin-bottom: 16px;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        border: 1px solid #eef2f6;
        transition: all 0.2s;
    }

    .repair-service-prices .price_line:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }

    /* Мобильные стили ТОЛЬКО для строк (шапка не ломается) */
    .repair-service-prices .price_line .col1,
    .repair-service-prices .price_line .col2,
    .repair-service-prices .price_line .col3 {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
        border-bottom: 1px solid #f0f0f0;
    }

    .repair-service-prices .price_line .col1:before {
        content: "Услуга:";
        font-weight: 600;
        color: #4a6a8b;
        margin-right: 12px;
    }

    .repair-service-prices .price_line .col2:before {
        content: "Стоимость:";
        font-weight: 600;
        color: #4a6a8b;
        margin-right: 12px;
    }

    .repair-service-prices .price_line .col3:before {
        content: "Заказ:";
        font-weight: 600;
        color: #4a6a8b;
        margin-right: 12px;
    }

    .repair-service-prices .price_line .col3 {
        justify-content: space-between;
        border-bottom: none;
    }

    .repair-service-prices .price_line .order-button {
        padding: 6px 16px;
    }
}