@charset "UTF-8";
body {
  font-family: "Montserrat", sans-serif;
  padding-left: 270px;
}

a {
  text-decoration: none;
}

.center {
  padding-left: calc(50% - 900px);
  padding-right: calc(50% - 900px);
}

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 220px;
  height: 100vh;
  /* Высота по высоте экрана */
  overflow-y: auto;
  /* Вертикальная прокрутка */
  padding: 12px 20px;
  z-index: 1000;
}

.sidebar ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
  margin: 8px 0;
}

.sidebar a {
  text-decoration: none;
  color: #3D4555;
  display: block;
  padding: 5px;
}

.sidebar a:hover {
  color: #96C22B;
  background-color: #ffffff;
  border-radius: 4px;
}

.sidebar a:active {
  color: #96C22B;
  background-color: #ffffff;
  border-radius: 4px;
}

.content {
  padding: 5px;
}

h1 {
  font-size: 21px;
  color: #3D4555;
  text-transform: uppercase;
  padding-bottom: 20px;
}

h3 {
  font-size: 14px;
  color: #3D4555;
  margin-top: 20px;
  margin-bottom: 8px;
}

.filter-block {
  margin-top: 11px;
  padding: 5px;
  border-top: 1px solid #ddd;
}

.range-slider {
  position: relative;
  width: 100%;
  height: 30px;
  margin: 8px 0;
}

.range-slider input[type=range] {
  position: absolute;
  width: 100%;
  height: 30px;
  pointer-events: none;
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  background: transparent;
  z-index: 2;
}

.range-slider input[type=range]::-webkit-slider-thumb {
  pointer-events: all;
  width: 8px;
  height: 8px;
  border-radius: 5%;
  background: #96C22B;
  cursor: pointer;
  -webkit-appearance: none;
  z-index: 3;
}

.range-slider input[type=range]::-moz-range-thumb {
  pointer-events: all;
  width: 15px;
  height: 15px;
  border-radius: 5%;
  background: #96C22B;
  cursor: pointer;
}

.range-track {
  position: absolute;
  top: 15px;
  left: 0;
  width: 100%;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
  z-index: 1;
}

.range-values {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  margin-bottom: 15px;
}

.range-values input[type=number] {
  width: 60px;
  padding: 3px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.range-values span {
  margin: 0 4px;
}

.product-tooltip {
  position: absolute;
  top: 0px;
  right: 0px;
  background: rgba(0, 0, 0, 0.03);
  color: rgb(105, 104, 104);
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 10px;
  z-index: 1100;
  text-align: right;
  line-height: 1;
}

.product-tooltip-detailed {
  display: none;
  position: absolute;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px;
  border-radius: 8px;
  font-size: 11px;
  text-align: left;
  z-index: 1200;
  pointer-events: none;
  width: 270px;
  left: 50%;
  margin-left: 35px;
  top: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  line-height: 1.3;
}

.product-card:hover .product-tooltip-detailed {
  display: block;
}

.analytics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.analytics-header h2 {
  margin: 0;
  color: var(--dark-main-color);
}

.toggle-button {
  background: #96C22B;
  color: #fff;
  border: none;
  padding: 5px 8px;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 20px;
}

.analytics-content {
  width: 100%;
  transition: max-height 0.3s ease-out, opacity 0.2s ease-out;
  display: block;
}

.analytics-content.hidden {
  display: none;
}

#overallChart {
  width: 100%;
  height: 600px;
}

.product-card {
  position: relative;
  transition: max-height 0.3s ease-out, opacity 0.2s ease-out;
}

.checkbox-group {
  margin-bottom: 2px;
}

.checkbox-group label {
  display: flex;
  margin: 0.5px 0;
  cursor: pointer;
  font-size: 11px;
  align-items: center;
  gap: 5px;
}

.checkbox-group input[type=checkbox] {
  width: 12px;
  height: 12px;
  accent-color: #96C22B;
  /* Цвет галочки по умолчанию */
  -moz-appearance: none;
       appearance: none;
  /* Убираем стандартный вид */
  -webkit-appearance: none;
  border: 1px solid #ccc;
  border-radius: 3px;
  position: relative;
  cursor: pointer;
  outline: none;
}

.checkbox-group input[type=checkbox]:checked {
  background-color: #96C22B;
  border-color: #96C22B;
}

.checkbox-group input[type=checkbox]:checked::after {
  content: "✓";
  position: absolute;
  color: #fff;
  /* Белый цвет галочки */
  font-size: 8px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  pointer-events: none;
}

/* Блок поиска */
.search-block {
  margin-top: 15px;
}

.search-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

#searchInput {
  padding-right: 30px;
  /* Отступ для иконки */
  width: 100%;
  font-size: 11.3px;
}

.search-tooltip {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 10.5px;
  color: #333;
  white-space: normal;
  /* Разрешаем перенос строк */
  word-wrap: break-word;
  /* Переносим длинные слова */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 9000;
  display: none;
  width: 200px;
  line-height: 1.3;
  max-height: 700px;
  overflow: auto;
}

.search-input-container:hover .search-tooltip {
  display: block;
}

.search-icon {
  position: absolute;
  right: 8px;
  color: #999;
  font-size: 14px;
  top: 50%;
  transform: translateY(-50%);
  /* Центрирование по вертикали */
  pointer-events: none;
  /* Чтобы клики проходили сквозь иконку */
}

.search-input-container input {
  width: 100%;
  padding: 6px 20px 6px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 12px;
  box-sizing: border-box;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toggle-filter {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #3D4555;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-content {
  transition: max-height 0.3s ease-out, opacity 0.2s ease-out;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  /* Начальное состояние: прозрачность 0 */
}

#diameter-filter-content {
  margin-bottom: 100px;
}

.filter-content.expanded {
  opacity: 1;
  /* Видимое состояние */
}

#products {
  margin-bottom: 170px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

.product-card .open-card-modal {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  color: #3D4555;
  text-decoration: none;
  outline: none;
  display: flex;
  align-items: center;
  /* Центрирование по вертикали */
  justify-content: center;
  /* Центрирование по горизонтали */
  height: 40px;
  /* Фиксированная высота для кнопки */
  width: 90%;
  /* Ширина на всю карточку */
  margin: 10px auto 0;
  /* Отступ сверху и по бокам */
  bottom: 10px;
  /* Прижимаем кнопку к низу карточки */
  margin-bottom: 10px;
}

.product-card .open-card-modal:hover,
.product-card .open-card-modal:focus {
  background: none;
  text-decoration: none;
  outline: none;
}

.modal-content {
  position: relative;
  margin: 5% auto;
  width: 80%;
  height: 80%;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close-modal {
  position: absolute;
  right: 20px;
  top: 10px;
  font-size: 30px;
  cursor: pointer;
  color: #555;
}

.close-modal:hover {
  color: #96C22B;
}

.lost-indicator {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 12px;
  height: 12px;
  background-color: red;
  border-radius: 50%;
  z-index: 1000;
}

.limit-indicator {
  position: absolute;
  top: 5px;
  left: 25px; /* Смещаем вправо, чтобы не перекрывал красный кружок */
  width: 12px;
  height: 12px;
  background-color: #96C22B; /* Салатовый цвет */
  border-radius: 50%;
  z-index: 1000;
}

.del-indicator {
  position: absolute;
  top: 5px;
  left: 45px; /* Смещаем вправо, чтобы не перекрывал красный кружок */
  width: 12px;
  height: 12px;
  background-color: #652bc2; /* Салатовый цвет */
  border-radius: 50%;
  z-index: 1000;
}

.missing_in_json {
  position: fixed;
  width: 300px;
  color: #a6a7a8;
  font-size: 10px;
  text-decoration: none;
  outline: none;
  top: 5px;
  right: -25px;
  z-index: 1050; /* Чтобы блок был поверх других элементов */
  background: white; /* Фон для читаемости */
  border-radius: 4px; /* Скругление углов */
  padding: 10px; /* Внутренние отступы */
}/*# sourceMappingURL=style_menu_main.css.map */