/* Тултип */

.tooltip-container {
  position: relative;
  display: inline-block;
  cursor: help;
}

.tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background-color: var(--primary-color, #4361ee);
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: bold;
  line-height: 1;
  transition: background-color 0.3s ease;
  margin-left: 2px;
}

.tooltip-container:hover .tooltip-icon {
  background-color: var(--primary-color-hover, #3651c9);
}

.tooltip-text {
  visibility: hidden;
  opacity: 0;
  width: 240px;
  background-color: #333;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 8px 10px;
  position: absolute;
  z-index: 10;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.3s ease;
  font-size: 0.85rem;
  line-height: 1.3;
  white-space: normal;
}

.tooltip-container:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Селект */

.custom-select {
  position: relative;
  width: 100%;
  font-family: inherit;
}

.custom-select__trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--background-color);
  color: var(--text-color);
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.custom-select__trigger:hover {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(98, 0, 255, 0.1);
}

.custom-select__arrow {
  display: inline-block;
  width: 0; 
  height: 0; 
  margin-left: 8px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--subtext-color);
  transition: transform 0.3s ease;
}

.custom-select.open .custom-select__arrow {
  transform: rotate(-180deg);
}

.custom-select__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  margin-top: 4px;
  display: none;
  z-index: 999;
  overflow: hidden;
}

.custom-select__option {
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  color: var(--text-color);
}

.custom-select__option:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.custom-select__option:first-child:hover {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.custom-select__option:last-child:hover {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.custom-select.open .custom-select__dropdown {
  display: block;
}

.custom-select.is-disabled {
  pointer-events: none;
  opacity: 0.5;
  user-select: none;
}

/* Инфобокс */

.statistics__alert {
  display: flex;
  align-items: baseline;
  background-color: #fff7f0;
  border-left: 4px solid #ff9900;
  padding: 12px 16px;
  border-radius: 6px;
  gap: 12px;
  font-size: 14px;
  margin-bottom: 24px;
  width: fit-content;
  max-width: 100%;
}

.statistics__alert-icon {
  color: #ff9900;
  font-size: 18px;
  flex-shrink: 0;
}

.statistics__alert-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.statistics__alert-title {
  font-weight: 600;
  color: #ff9900;
  margin: 0;
}

.statistics__alert-list {
  margin: 0;
  padding-left: 18px;
  color: #444;
}

.statistics__alert-list li {
  margin-bottom: 2px;
}

/* Пагинация */
.pagination {
  margin-top: 24px;
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

.pagination a,
.pagination .current,
.pagination .arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  font-size: 0.875rem;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid #e5e7eb;
  color: #1f2937;
  background-color: #ffffff;
  min-width: 36px;
  height: 36px;
  transition: background-color 0.2s ease;
}

.pagination a:hover,
.pagination .arrow:hover {
  background-color: #f1f5f9;
}

.pagination .current {
  font-weight: 600;
  background-color: var(--primary-color);
  color: var(--white-color);
  cursor: pointer;
}

.pagination .arrow.disabled {
  pointer-events: none;
  opacity: 0.5;
}