
   body {
        font-family: Arial, sans-serif;
        margin: 20px;
    }
    table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 20px;
        box-shadow: 0 2px 3px rgba(0,0,0,0.1);
    }
    th, td {
        border: 1px solid #ddd;
        padding: 12px 15px;
        text-align: left;
    }
    th {
        background-color: #4a6fa5;
        color: white;
        position: sticky;
        top: 0;
    }
    tr:nth-child(even) {
        background-color: #f8f9fa;
    }
    tr:hover {
        background-color: #e9ecef;
    }
    .rating {
        color: #ffc107;
        font-weight: bold;
    }
    .price {
        font-weight: bold;
        color: #28a745;
    }
    a {
        color: #007bff;
        text-decoration: none;
    }
    a:hover {
        text-decoration: underline;
    }
    .null-value {
        color: #6c757d;
        font-style: italic;
    }

form#add {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
}

form#add label {
    font-size: 14px;
    font-weight: bold;
}

form#add select,
form#add input[type="number"] {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
}

form#add button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

form#add button:hover {
    background-color: #0056b3;
}

form#add input[type="checkbox"] {
    margin-left: 5px;
}




/*------------------------------------------------------------------------------------------------




/* Сброс стилей */

/* Фильтр-форма */
#filter-block {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Контейнер с фильтрами */
#filter-block h4 {
    font-size: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px; /* Расстояние между элементами */
    flex-wrap: wrap; /* Позволяем перенос элементов на новую строку */
}

/* Стили для всех меток */
#filter-block label {
    font-size: 14px;
    font-weight: bold;
    margin-right: 5px;
}

/* Поля ввода */
#filter-block input[type="date"],
#filter-block input[type="number"] {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    width: 180px;  /* Чуть уже для компактности */
    margin-bottom: 0;
}

/* Кнопки */
#filter-block button {
    background-color: #4b8df8;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    white-space: normal;  /* Разрешаем перенос текста */
}

/* Кнопки при наведении */
#filter-block button:hover {
    background-color: #3a7dcd;
}

/* Кнопка сброса */
#filter-block button.clear-btn {
    background-color: #f44336;
}

#filter-block button.clear-btn:hover {
    background-color: #e53935;
}

/* 🔹 **Мобильные стили** */
@media (max-width: 768px) {
    #filter-block h4 {
        flex-direction: column; /* Элементы встают в колонку */
        align-items: flex-start;
    }

    #filter-block input[type="date"],
    #filter-block input[type="number"],
    #filter-block button {
        width: 100%; /* Растягиваем кнопки и инпуты */
        margin-bottom: 10px;
    }
}



/* Стили для метки и select */
#page_c, #searchMP, #count_sell {
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s, background-color 0.3s;
}



/* Стили для лейбла */
label[for="page_c"] {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-right: 10px;
}

/* Эффект при наведении */
#page_c:hover {
    border-color: #007bff;
}

/* Эффект при фокусе */
#page_c:focus {
    border-color: #0056b3;
    outline: none;
}

/* Стили для options */
#page_c option {
    font-size: 14px;
    padding: 5px;
}


/* Стили для блока пагинации */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;  /* Уменьшили расстояние между элементами */
    margin-top: 15px;
}

/* Стили для ссылок */
.pagination a {
    text-decoration: none;
    font-size: 14px;  /* Уменьшили размер шрифта */
    font-weight: bold;
    color: #007bff;
    padding: 6px 12px;  /* Уменьшили размер кнопок */
    border: 1px solid #007bff;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

/* Эффект при наведении на ссылку */
.pagination a:hover {
    background-color: #007bff;
    color: white;
}

/* Стили для текущей страницы */
.pagination .current-page {
    font-size: 14px;  /* Уменьшили размер шрифта */
    font-weight: bold;
    color: #333;
    padding: 6px 12px;  /* Уменьшили размер кнопки */
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f1f1f1;
}

/* Стили для текста, например "Страница X из Y" */
.pagination span {
    font-size: 14px;  /* Уменьшили размер шрифта */
    color: #555;
}

#updPa {
    background-color: #47b15f; /* Зеленый фон */
    color: white; /* Белый текст */
    border: none; /* Без границы */
    padding: 10px 20px; /* Отступы внутри кнопки */
    border-radius: 5px; /* Скругленные углы */
    font-size: 12px; /* Размер шрифта */
    cursor: pointer; /* Указатель при наведении */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Плавное изменение цвета и эффекта при наведении */
}

/* Эффект при наведении на кнопку */
#updPa:hover {
    background-color: #218838; /* Темно-зеленый при наведении */
    transform: scale(1.05); /* Немного увеличиваем кнопку */
}

/* Эффект при нажатии на кнопку */
#updPa:active {
    background-color: #1e7e34; /* Еще более темный зеленый при нажатии */
    transform: scale(1); /* Возвращаем кнопку к исходному размеру */
}

 #timer {
        font-size: 17px;
        font-weight: bold;
        color: #2161a6;
        margin-top: 20px;
        text-align: center;
    }







  /* Центрирование надписи по экрану */
.centered-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.centered-text h1 {
    font-size: 32px;
    color: #333;
    margin: 0;
}

/* Стили подвала */
.custom-footer {
    text-align: center;
    padding: 15px 0;
    margin-top: 50px;
    border-top: 1px solid #dcdcdc; /* Полоска-разделитель */
  /*   position: fixed;*/
    width: 100%;
    bottom: 0;
}

.custom-footer-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 14px;
    color: #333;
}

.custom-footer a {
    color: #555;
    text-decoration: none;
    margin: 0 8px;
}

.custom-footer a:hover {
    text-decoration: underline;
    color: #000;
}




/* Общий стиль блока флеш-сообщений */
.flashes {
    list-style: none;  /* Убираем маркеры у списка */
    text-align: center;
    padding: 10px;
    margin: 15px 0;
    border-radius: 5px;
    background-color: #f8f9fa; /* Светлый фон */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Легкая тень */
    font-family: Arial, sans-serif;
}

/* Сами сообщения */
.flashes li {
    padding: 8px 12px;
    margin-bottom: 5px;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background-color: #e9ecef; /* Светло-серый фон */
    border-left: 4px solid #4b8df8; /* Акцентная полоса */
}

/* Если сообщений несколько, делаем небольшой отступ */
.flashes li:last-child {
    margin-bottom: 0;
}

/* Сообщения об ошибках (если используются категории) */
.flashes .error {
    border-left-color: #e53935;
    background-color: #fce4e4;
    color: #a94442;
}

/* Сообщения об успехе */
.flashes .success {
    border-left-color: #4CAF50;
    background-color: #e8f5e9;
    color: #2e7d32;
}

/* Информационные сообщения */
.flashes .info {
    border-left-color: #2196F3;
    background-color: #E3F2FD;
    color: #1565C0;
}



.product-cell {
        position: relative;
        cursor: pointer;
    }

    .dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        border: 1px solid black;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        min-width: 120px;
        z-index: 10;
    }

    .dropdown-menu a {
        display: block;
        padding: 5px 10px;
        text-decoration: none;
        color: black;
    }

    .dropdown-menu a:hover {
        background: lightgray;
    }

    .product-cell:hover .dropdown-menu {
        display: block;
    }


table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
}

.scroll_rec {
     overflow-y: auto;
    max-height: 400px;

}


.grid {
  display: grid;
  grid-template-columns: 1fr 2fr; /* Левая: 1 часть, правая: 2 части */
  gap: 20px;
}

.left, .right {
  background: #f0f0f0;
  padding: 20px;
}
