body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background-color: #f4f4f4;
}
header {
    text-align: left;
    margin-bottom: 20px;
}
.header-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.header-content .logo {
    height: 50px;
    margin-right: 10px;
}
.header-content .tools-icon {
    height: 50px;
    margin-right: 10px;
}
header h1 {
    margin: 0;
    font-size: 24px;
    margin-right: 10px;
}
header #totalFoundRows {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}
.search-form {
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    margin: 0 auto;
    gap: 10px;
}
.search-form label {
    margin-right: 10px;
    font-weight: bold;
}
.search-form input[type="text"],
.search-form select,
.search-form input[type="checkbox"],
.search-form button {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}
.search-form input[type="checkbox"] {
    margin-left: 10px;
}
.search-form button {
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
}
.search-form button:hover {
    background-color: #45a049;
}
table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 20px;
    background-color: white;
}
th, td {
    border: 1px solid #dddddd;
    text-align: left;
    padding: 12px;
}
th {
    background-color: #4CAF50;
    color: white;
}
tr:nth-child(even) {
    background-color: #f2f2f2;
}
tr.hover {
    background-color: #d4edda;
}
tr.selected {
    background-color: #c3e6cb;
}
.pagination {
    text-align: center;
    margin-top: 20px;
}
.pagination button {
    background-color: #4CAF50;
    color: white;
    border: none;
    margin: 2px;
    padding: 10px 20px;
    cursor: pointer;
}
.pagination button.active {
    background-color: #45a049;
    font-weight: bold;
}
.pagination button:hover:not(.active) {
    background-color: #3e8e41;
}
/* Ограничение высоты таблицы вариантов и добавление прокрутки */
#variantTableContainer {
    max-height: 400px; /* Установите нужное значение максимальной высоты */
    overflow-y: auto;
}

/* Ограничение максимального количества строк в таблице */
#variantTableContainer table {
    max-height: 300px; /* Установите нужное значение максимальной высоты таблицы */
    display: block;
    overflow-y: auto;
}

/* Дополнительные стили для таблицы вариантов */
#variantTable table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 18px;
    text-align: left;
}

#variantTable th, #variantTable td {
    padding: 12px 15px;
    border: 1px solid #dddddd;
}

#variantTable th {
    background-color: #009879;
    color: #ffffff;
    text-align: center;
}

#variantTable tr {
    border-bottom: 1px solid #dddddd;
}

#variantTable tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

#variantTable tr:last-of-type {
    border-bottom: 2px solid #009879;
}

#variantTable tr:hover {
    background-color: #f1f1f1;
}

#variantTable td input[type="url"], 
#variantTable td input[type="tel"] {
    width: 90%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Адаптация для мобильных устройств */
@media only screen and (max-width: 600px) {
    .search-form {
        flex-direction: column;
        align-items: flex-start;
    }
    .search-form label,
    .search-form input[type="text"],
    .search-form select,
    .search-form input[type="checkbox"],
    .search-form button {
        width: 100%;
        margin: 5px 0;
    }
    .search-form input[type="checkbox"] {
        margin-left: 0;
    }
    table, thead, tbody, th, td, tr {
        display: block;
    }
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    tr { 
        border: 1px solid #ccc; 
        margin-bottom: 5px;
    }
    td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
    }
    td:before {
        position: absolute;
        top: 6px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        content: attr(data-column);
    }
    form {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
    label {
        margin: 5px 0;
    }
    input, select, button {
        margin: 5px 0;
    }
}
