.content-container {
    max-width: 70%;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.page-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.repairs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.repairs-table th, .repairs-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.repairs-table th {
    background-color: #4CAF50;
    color: white;
}

.repairs-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Стили для спойлера и формы */
.repair-details {
    margin-top: 20px;
    padding: 10px;
    border: 1px solid #4CAF50;
    border-radius: 4px;
    background-color: #e8f5e9;
}

.add-repair-summary {
    cursor: pointer;
    font-weight: bold;
    color: #4CAF50;
    font-size: 18px;
    padding: 4px 0;
    outline: none;
}

.add-repair-summary:hover {
    color: #388e3c;
}

.repair-form {
    margin-top: 10px;
    padding: 10px;
}

/* Улучшенные стили для формы */
.form-group {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.form-group input, .form-group select, .form-group textarea {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: #4CAF50;
    outline: none;
}

.save-button {
    padding: 10px 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.save-button:hover {
    background-color: #388e3c;
}

.back-button {
    display: inline-block;
    margin-top: 20px;
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
}

.back-button:hover {
    text-decoration: underline;
}

.form-errors {
    color: red;
    font-weight: bold;
    margin-bottom: 10px;
}

.complete-button {
    background-color: #007bff; /* Синий */
    color: white; /* Цвет текста */
    border: none; /* Без рамки */
    border-radius: 4px; /* Закругленные углы */
    padding: 8px 12px; /* Отступы */
    cursor: pointer; /* Указатель при наведении */
    transition: background-color 0.3s; /* Плавный переход при наведении */
}

.complete-button:hover {
    background-color: #218838; /* Темнее при наведении */
}

.issue-button {
    background-color: #4CAF50; /* Зеленый фон */
    color: white; /* Белый текст */
    border: none; /* Убираем границу */
    padding: 10px 20px; /* Отступы */
    text-align: center; /* Центрируем текст */
    text-decoration: none; /* Убираем подчеркивание */
    display: inline-block; /* Делаем кнопку строчным элементом */
    font-size: 16px; /* Размер шрифта */
    margin: 4px 2px; /* Отступы вокруг кнопки */
    cursor: pointer; /* Указываем, что это кнопка */
    border-radius: 5px; /* Скругляем углы */
    transition: background-color 0.3s; /* Плавный переход цвета фона */
}

.issue-button:hover {
    background-color: #45a049; /* Темнее при наведении */
}

.table-container {
    overflow-x: auto; /* Добавляем горизонтальную прокрутку */
    max-width: 100%; /* Устанавливаем ширину контейнера */
    margin-bottom: 20px; /* Отступ снизу */
}

.repairs-table {
    width: 100%; /* Таблица занимает всю ширину контейнера */
    border-collapse: collapse; /* Убираем промежутки между ячейками */
    table-layout: auto; /* Автоматическая ширина колонок */
    font-size: 14px; /* Размер текста */
}

@media (max-width: 768px) {
    .content-container {
        max-width: 100%;
        padding: 10px;
    }

    .repairs-table, .repairs-table thead, .repairs-table tbody,
    .repairs-table th, .repairs-table td, .repairs-table tr {
        display: block;
    }

    .repairs-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .repairs-table tr {
        border: 1px solid #ccc;
        margin-bottom: 15px;
        padding: 10px;
        position: relative;
    }

    .repairs-table td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
        padding-top: 8px;
        padding-bottom: 8px;
        text-align: left;
    }

    .repairs-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        top: 8px;
        width: 45%;
        padding-right: 10px;
        font-weight: bold;
        white-space: nowrap;
    }

    /* Специальные стили для кнопок */
    .repairs-table td[data-label="Действия"] {
        padding-left: 10px;
        text-align: center;
    }

    .repairs-table td[data-label="Действия"]:before {
        display: none;
    }

    /* Стили для фото */
    .repairs-table td[data-label="Фото"] img {
        max-width: 100% !important;
        height: auto;
    }

    /* Кнопки */
    .complete-button, .issue-button, .save-button {
        width: 100%;
        margin: 5px;
        padding: 8px 12px;
    }

    
}

/* Стили для информационной таблицы (десктоп) */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 0.9em;
}

.info-table th, 
.info-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.info-table th {
    background-color: #1b1eeb;
    color: white;
    padding-left: 20px;
}

.info-table td {
    padding-left: 20px;
    text-align: center;
}

.info-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Стиль для мобильных устройств (карточки) */
@media (max-width: 768px) {
    .info-table,
    .info-table thead,
    .info-table tbody,
    .info-table th,
    .info-table td,
    .info-table tr {
        display: block;
        width: 100%;
    }

    .info-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .info-table tr {
        border: 1px solid #ccc;
        margin-bottom: 15px;
        padding: 10px;
        position: relative;
        background-color: #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        border-radius: 4px;
    }

    .info-table td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 70%;
        padding-top: 8px;
        padding-bottom: 8px;
        text-align: left;
    }

    .info-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        top: 8px;
        width: 45%;
        padding-right: 50px;
        font-weight: bold;
        white-space: nowrap;
        color: #4CAF50;
    }

    /* Убираем псевдоэлемент для последней ячейки (если нужно) */
    .info-table td:last-child {
        border-bottom: 0;
    }
}