body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f8f8;
    color: #333;
    text-align: center;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 20px auto 120px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 24px;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

table th, table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: center;
    font-size: 2vh;
}

table th {
    background: #007aff;
    color: white;
}

table td {
    background: #f8f8f8;
}

/* Контейнер для кнопок, чтобы они шли в один ряд */
.button-container {
    display: flex;
    flex-wrap: nowrap;  /* Запрещаем перенос кнопок */
    justify-content: center;  /* Выравниваем кнопки по центру */
    gap: 5px; /* Расстояние между кнопками */
}

/* Улучшаем кнопки */
.update-product {
    flex: 1; /* Равномерно распределяем ширину кнопок */
    max-width: 60px; /* Ограничиваем ширину кнопок */
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease-in-out, transform 0.1s ease-in-out;
    border: none;
}

/* Кнопки увеличения (+1, +5) */
.update-product[data-change="1"],
.update-product[data-change="5"] {
    background-color: #28a745 !important;
    color: white !important;
}

.update-product[data-change="1"]:hover,
.update-product[data-change="5"]:hover {
    background-color: #218838 !important;
}

/* Кнопка уменьшения (-1) */
.update-product[data-change="-1"] {
    background-color: #dc3545 !important;
    color: white !important;
}

.update-product[data-change="-1"]:hover {
    background-color: #c82333 !important;
}

/* Эффект нажатия */
.update-product:active {
    transform: scale(0.95);
}


/* 🔹 Медиазапрос для телефонов */
@media (max-width: 600px) {
    .button-container {
        flex-wrap: nowrap; /* Гарантируем, что кнопки остаются в один ряд */
        gap: 3px; /* Минимальный отступ между кнопками */
    }

    .update-product {
        max-width: 50px; /* Уменьшаем кнопки для маленьких экранов */
        font-size: 14px;
        padding: 8px;
    }
}


form input {
    width: 70%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

a {
    display: inline-block;
    margin: 10px;
    color: #007aff;
    text-decoration: none;
    font-size: 18px;
}

a:hover {
    text-decoration: underline;
}

.navigation {
    margin-top: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    gap: 15px;
}

#date-form {
  margin: 20px auto;
}

.export-btn {
  margin: 30px;
  background-color: #28a745 !important;
  color: white !important;
  border: none;
  padding: 12px 22px;
  border-radius: 5px;
  cursor: pointer;
}