@font-face {
  font-family: "NunitoSans";
  src: url("../../font/NunitoSans.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

*{
  font-family: "NunitoSans", system-ui, -apple-system, sans-serif;
}

body {
  line-height: 1;
  background: #f5f6fa;
  position: relative;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

input {
  height: 38px;
}

input[type="radio"] {
  height: auto;
}

a,
button {
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

h2 {
  font-size: 32px;
  font-weight: 700;
}

h3 {
  font-size: 28px;
  letter-spacing: 0.3px;
  font-weight: 700;
}

h4 {
  font-size: 20px;
  font-weight: 700;
}

h5 {
  font-size: 24px;
  font-weight: 700;
}

.container {
  max-width: 1344px;
  margin: 0 auto;
  padding: 0 15px;
}

._header {
  height: 70px;
}

.btn {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.07px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 56px;
  padding: 0 15px;
  border-radius: 8px;
  min-width: 151px;
}

.btn.green {
  background-color: #3BA76F;
  color: #fff;
}

.btn.gray {
  background-color: #E3E3E3;
  color: #8B8B8B;
}

.domen-input {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 400px;
  margin-left: auto;
  margin-right: 40px;
}

.domen-input.report {
  margin: 0;
}

.domen-input::after {
  content: "";
  display: block;
  background-image: url(../../img/Copy.svg);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  width: 24px;
  height: 24px;
  margin-left: -37px;
}

._header button:hover {
  color: #3ba76f;
}

/* Контейнер для позиционирования */
.relative-container {
  position: relative;
  display: inline-block;
}

/* Иконка анимация */
.event-icon {
  transition: transform 0.2s ease;
}

.event-btn:hover .event-icon {
  transform: rotate(180deg);
}

/* Dropdown стили */
.event-dropdown {
  position: absolute;
  top: calc(100% + 0.8rem);
  left: 0;
  z-index: 1000;
  min-width: 280px;
  display: none;
  opacity: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0px 4px 9.8px 0px #00000040;
  transition: all 0.2s ease-out;
}

.event-dropdown.active {
  display: block;
  opacity: 1;
}

/* Навигация событий */
.event-nav {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

.event-link {
  color: #000;
  transition: all 0.15s;
  padding: 20px 0;
}

.event-link:not(:last-child) {
  border-bottom: 1px solid #e0e0e0;
}

.event-link:hover {
  color: #3ba76f;
}

.event-link-active {
  color: #3ba76f;
}

/* Анимация модалки */
.event-modal.show {
  opacity: 1;
}

.event-modal.show .event-panel {
  transform: translateY(0) scale(1);
}

.event-panel {
  transform: translateY(-20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

nav {
  position: fixed;
  left: 0;
  top: 0;
  width: 340px;
  height: 100%;
}

.progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 29px;
  background-color: #f5f6fa;
}

.progress-bar__status {
  height: 100%;
  background-color: #3ba76f;
  border-radius: 29px;
}

.tooltip {
  position: relative;
  display: none;
}

.group:hover .tooltip {
  display: block;
}

.tooltip::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  background: #e3e3e3;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(-45deg);
  z-index: 15;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.tooltip a {
  font-size: 7px !important;
}

.group:hover .tooltip::after {
  opacity: 1;
}

/* NAV accordion */
.nav-section {
  overflow: hidden;
  border-bottom: 1px solid #E0E0E0;
}

.nav-section__header {
  padding: 20px 8px 20px 57px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 16px;
  color: #8B8B8B;
  transition: background 0.2s ease;
  user-select: none;
  text-transform: uppercase;
}

.nav-section__header:hover {
  background: #F5F6FA;
}

.nav-section__icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-section__icon--open {
  transform: rotate(180deg);
}

.nav-section__content {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease;
  background: #fff;
}

.nav-section__content--open {
  max-height: 500px; /* Достаточно для контента */
  padding-bottom: 30px;
}

.nav-section__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-section__item {
  width: 100%;
  padding-left: 34px;
}

.nav-section__link {
  color: #202224;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  position: relative;
}

.nav-section__link.text-emerald-600 {
  color: #3ba76f;
}

.nav-section__item:hover {
  background-color: #F5F6FA;
}

.nav-section__link.active::before {
  content: "";
  position: absolute;
  display: block;
  width: 6px;
  height: 41px;
  background-color: #3ba76f;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
  left: -34px;
}

.nav-section__link.active {
  color: white;
  background-color: #3ba76f;
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}

.nav-section__link svg:first-child {
  flex-shrink: 0;
  width: 21px;
  height: 21px;
}

.nav-section__link.active svg,
.nav-section__link.active svg path {
  fill: #fff;
}

.nav-section__item:last-child {
  border-bottom: none;
}

.radio-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid #E3E3E3; /* gray-300 */
  cursor: pointer;
}

/* Скрываем нативный radio */
.radio-custom input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Внешний круг */
.radio-icon {
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  border: 1px solid #E3E3E3;
  background: #fff;
}

/* Внутренняя точка через ::after */
.radio-icon::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background: #3BA76F;
  transform: scale(0);
  transition: transform 0.15s ease-out;
}

.radio-custom input[type="radio"]:checked + .radio-icon {
  border-color: #3BA76F;
}

/* Когда radio выбран — показываем точку */
.radio-custom input[type="radio"]:checked + .radio-icon::after {
  transform: scale(1);
}

.datepicker-picker {
  background-color: #fff;
  border-radius: 8px;
  border-color: #E3E3E3;
}

.switch-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}

.switch-input {
  position: absolute;
  opacity: 0;
  z-index: -1;
  width: 0;
  height: 0;
}

.switch-track {
  position: relative;
  width: 48px;  /* Ширина трека */
  height: 28px; /* Высота трека */
  background: #E3E3E3; /* Выкл: светло-серый фон */
  border-radius: 9999px; /* Полностью скруглённый */
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
  transition: background 0.2s ease-in-out;
}

.switch-track::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: linear-gradient(145deg, #8B8B8B, #A0A0A0);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: all 0.2s ease-in-out;
}

.switch-input:checked + .switch-track {
  background: #CAE4DA; /* Вкл: зелёный фон */
}

.switch-input:checked + .switch-track::before {
  left: calc(100% - 25px); /* Сдвиг вправо */
  background: #3BA76F;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.switch-input:focus-visible + .switch-track {
  outline: 2px solid #CAE4DA;
  outline-offset: 2px;
}

.chosen-template {
  position: relative;
  border: 1px dashed #3BA76F;
  border-radius: 8px;
}

.chosen-template::after {
  content: "";
  background-image: url(../../img/check-circle-fill.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  width: 27px;
  height: 27px;
  display: block;
  position: absolute;
  top: 10px;
  right: 10px;
}

.report-bg {
  background-image: url(../../img/path32.svg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 54px;
}

.report-bg .number {
  line-height: 67% !important;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;              /* Chrome, Safari, Opera */
}

.no-scrollbar {
  -ms-overflow-style: none;   /* IE и Edge */
  scrollbar-width: none;      /* Firefox */
}