@import url("gridstack.min.css");
@import url("jquery.fancybox.min.css");

/* dashboard additional styles
------------------------- */

.grid-stack {
  width: auto;
  margin: -5px -5px 0;
}

.grid-stack-item.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.grid-stack-item:not(.ui-draggable-disabled) .grid-stack-item-content {
  overflow: visible;
}

.grid-stack-item:not(.ui-draggable-disabled)
  .grid-stack-item-content
  .dashboard-unit {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  cursor: move;
}

.grid-stack-item-content {
  height: 100%;
}

.grid-stack-item-content .dashboard-unit {
  height: calc(100% - 10px);
}

.grid-stack-item-content .dashboard-unit_title {
  color: #fff;
}

.grid-stack-item-content .dashboard-unit_btn {
  background: transparent;
}

.grid-stack-item-content .dashboard-unit_btn:before {
  filter: brightness(0) invert();
}

.ui-draggable-dragging > .grid-stack-item-content {
  box-shadow: none;
}

.dashboard-unit_header {
  position: relative;
  z-index: 1;
}

.dashboard-unit_chart [id*="-license-text"] {
  display: none;
}

.zc-menu {
  display: none !important;
}

.dashboard-unit_option {
  user-select: none;
}

.dashboard-unit_list a {
  display: block;
}

.dashboard-unit img {
  -webkit-user-drag: none;
  user-select: none;
}

.widget-type-agePeriod {
  transform: translateY(15%);
}

.dashboard-unit_chart .zc-rel.zc-main > [id$="-tools"] {
  display: none;
}

/* @media (max-width: 1729px) {

  .widget-type-trainingStructure .zc-rel.zc-main {
    transform-origin: center bottom;
    transform: scale(0.85);
  }

} */

@media (max-width: 1649px) {
  .widget-type-fmsSSS .zc-rel.zc-main {
    transform-origin: center;
    transform: scale(0.8);
  }
}

/* @media (max-width: 1499px) {

  .widget-type-trainingStructure .zc-rel.zc-main {
    transform: scale(0.8);
  }

} */

@media (max-width: 1399px) {
  .grid-stack {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0 10px;
    position: static;
    height: auto !important;
    margin: 0;
  }

  .grid-stack > .grid-stack-item {
    position: static !important;
    width: 100% !important;
    height: 400px !important;
    flex: 1;
    min-width: 45%;
  }

  .grid-stack > .grid-stack-item.hidden {
    display: none;
  }

  .grid-stack > .grid-stack-item[gs-locked="true"] {
    order: -1;
  }

  .grid-stack > .grid-stack-item > .grid-stack-item-content {
    position: static !important;
  }

  .dashboard-unit_option ul.dashboard-unit_list li:last-child {
    display: none;
  }
}

@media (max-width: 768px) {
  .dashboard-unit {
    margin-bottom: 0;
  }
}

@media (max-width: 992px) {
  .grid-stack > .grid-stack-item {
    min-width: 100%;
  }
}

@media (max-width: 578px) {
  .dashboard-unit_horizontal {
    grid-row: span 32;
  }

  /* .widget-type-trainingStructure .zc-rel.zc-main {
    transform-origin: center;
    transform: scale(0.6);
  } */

  .widget-type-trainingStructure .zc-rel.zc-main > [id$="-legend"] {
    display: none;
  }
}

/* scroller-status
------------------------- */

.scroller-status {
  display: none;
  margin: 20px 0;
}

/* loader-ellipse
------------------------- */

.loader-ellipse {
  font-size: 20px;
  position: relative;
  width: 4em;
  height: 1em;
  margin: 10px auto;
}

.loader-ellipse__dot {
  display: block;
  width: 1em;
  height: 1em;
  border-radius: 0.5em;
  background: #555;
  position: absolute;
  animation-duration: 0.5s;
  animation-timing-function: ease;
  animation-iteration-count: infinite;
}

.loader-ellipse__dot:nth-child(1),
.loader-ellipse__dot:nth-child(2) {
  left: 0;
}
.loader-ellipse__dot:nth-child(3) {
  left: 1.5em;
}
.loader-ellipse__dot:nth-child(4) {
  left: 3em;
}

@keyframes reveal {
  from {
    transform: scale(0.001);
  }
  to {
    transform: scale(1);
  }
}

@keyframes slide {
  to {
    transform: translateX(1.5em);
  }
}

.loader-ellipse__dot:nth-child(1) {
  animation-name: reveal;
}

.loader-ellipse__dot:nth-child(2),
.loader-ellipse__dot:nth-child(3) {
  animation-name: slide;
}

/* stylelint-disable-next-line no-duplicate-selectors */
.loader-ellipse__dot:nth-child(4) {
  animation-name: reveal;
  animation-direction: reverse;
}

/* regular modal styling
------------------------- */

html {
  overflow: visible;
}

.regular-modal-fancybox.fancybox-is-open .fancybox-bg {
  opacity: 0.7;
}

.regular-modal-fancybox .fancybox-slide--html {
  padding: 15px;
}

.regular-modal {
  width: 100%;
  max-width: 600px;
  display: none;
}

.regular-modal__title {
  margin-bottom: 36px;
  font-size: 20px;
  line-height: 1.2em;
  font-weight: bold;
}

@media (max-width: 767px) {
  .regular-modal {
    padding: 25px;
  }
}

/* togglers styling
------------------------- */

.widgets-toggler {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 18px;
  line-height: 1.2em;
}

.widgets-toggler:last-child {
  margin-bottom: 0;
}

.widgets-toggler__switcher {
  width: 90px;
  flex: 0 0 90px;
  height: 45px;
  border-radius: 30px;
  background-color: #ebf7fc;
  position: relative;
  cursor: pointer;
  transition: 0.3s;
}

.widgets-toggler__switcher span {
  position: absolute;
  width: 35px;
  height: 35px;
  left: 50px;
  top: 5px;
  transition: 0.3s;
  border-radius: 50%;
  background-color: #03a9f4;
  overflow: hidden;
}

.widgets-toggler__switcher span:before {
  content: "ON";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding-top: 1px;
  color: #fff;
  font-size: 12px;
  line-height: 1em;
}

.widgets-toggler__switcher.disabled {
  background-color: #fcebeb;
}

.widgets-toggler__switcher.disabled span {
  background-color: #f44336;
  left: 5px;
}

.widgets-toggler__switcher.disabled span:before {
  content: "OFF";
}

.dashboard-children_img .children-unit_setting,
.children-unit_img .children-unit_setting {
  z-index: 2;
  position: absolute;
  top: unset;
  left: 10px;
  bottom: 10px;
  width: auto;
  height: fit-content;
  border-radius: 5px;
  background-color: #ebf7fc;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-children_img .children-unit_setting svg,
.children-unit_img .children-unit_setting svg {
  width: 20px;
  height: 20px;
}

.main-btn {
  max-width: 355px;
  width: 100%;
  border-radius: 4px;
  color: #fff;
  font: 500 18px/1 "Montserrat", sans-serif;
  text-align: center;
  border: none;
  outline: none;
  padding: 10px 20px;
  background: #00db5b;
}

.personal-menu__item {
  font: 400 18px/1.2 "Montserrat", sans-serif;
  color: #28304d;
}

.pesonal-title {
  font: 400 22px/1.2 "Montserrat", sans-serif;
  color: #28304d;
  margin-top: 20px;
}

.personal-menu {
  margin: 100px 15px 50px;
}

.personal-menu__item:not(:last-child) {
  margin-bottom: 10px;
}

.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

.text-404 {
  margin-top: 40px;
  text-align: center;
  font: 500 20px/1.2 "Montserrat", sans-serif;
}

.text-404 a {
  color: #0098a4;
}

/*
#dashboard-unit_info-about-text_agePeriod.blur-effect {
    filter: blur(4px);
    pointer-events: none;
}

#dashboard_info-popup__agePeriod .blur-effect {
    filter: blur(4px);
    pointer-events: none;
}

#spinner_agePeriod.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}
*/

/* Анимация вращения */
@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.spiner__body {
  position: relative;
}

.is-loading {
  position: relative;
  z-index: -1;
  filter: blur(4px); /* Размытие на 4 пикселя */
  pointer-events: none; /* Отключение взаимодействия */
}

.loader-spiner {
  position: absolute;
  z-index: 100;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border: 5px solid #555555;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.cookies-info {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ffffff;
  color: #000000;
  padding: 15px 10px;
  z-index: 100000;
  box-shadow: 0 0 15px #000000;
}
.cookies-info__text {
  text-align: center;
  font-size: 16px;
  margin-bottom: 10px;
}
.cookies-info__btn-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.cookies-btn {
  display: inline-block;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  opacity: 1;
  border: none;
  color: #000000;
}
.cookies-btn--fill {
  background: rgba(0, 152, 164, 0.1);
  padding: 10px 20px;
  border-radius: 10px;
}
.cookies-btn--small {
  color: grey;
  font-size: 14px;
}

.cookies-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ffffff;
  padding: 20px;
  max-width: 300px;
  width: 100%;
  color: #000000;
  border-radius: 5px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
  z-index: 10000;
}
.cookies-popup.active {
  display: block;
}
.cookies-form {
  margin-top: 10px;
}
.cookies-form__row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
}
.cookies-form__input {
  display: unset !important;
}
.cookies-form__label {
  margin-bottom: 5px !important;
}
.cookies-form__text {
  font-size: 14px;
  margin-bottom: 10px;
}
.cookies-form__input--default {
  pointer-events: none;
  accent-color: grey;
}
.cookies-form__label--default {
  pointer-events: none;
}

.cookies-form__btn {
  margin-top: 10px;
}

.info-dushboard__titel {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}

.info-dushboard__btn-wrap {
  display: flex;
  justify-content: flex-end;
}

.info-dushboard__btn {
  border: none;
  background: none;
  margin-top: 20px;
  font-size: 16px;
  font-weight: 600;
}

.info-dushboard__btn.hidden {
  display: none;
}

.info-dushboard__list-item {
  display: none;
}

.info-dushboard__list-item.active {
  display: block;
}

.demo-kids-link {
  display: inline-block;
  /* padding: 5px 10px; */
  /* background: #00DB5B; */
  /* border-radius: 4px; */
  /* color: #ffffff; */
  /* font-weight: 600; */
  /* font-size: 16px; */
}

.info-dushboard .fancybox__backdrop {
  background: rgb(24 24 27 / 0%);
}

.border-acent {
  padding: 5px !important;
  border: 5px solid #00db5b;
  animation: blim-opasity 1s linear infinite;
  border-radius: 4px;
}

@keyframes blim-opasity {
  0% {
    border-color: transparent;
  }
  50% {
    border-color: #00db5b;
  }
  100% {
    border-color: transparent;
  }
}

.title-dashboard-info {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  color: #28304d;
  margin-bottom: 20px;
}

.dashbord-video-info__video {
  max-width: 100%;
}


.title-report {
  display: none;
  font-size: 28px;
  font-weight: 700;
}

.section-report:has(.chart--container:not(:empty)) .title-report {
  display: block;
}

.hidden_rows {
  display: none !important;
}

.not_hidden_rows {
  display: table-row !important;
}

.error {
  margin: 20px auto;
  padding: 20px;
  border: 1px solid #ff9797;
  font-weight: 600;
  border-radius: 4px;
  color: #e96565;
}

.error--inform {
  border: 1px solid #a1aba1;
  background: #f9f9f9;
}

.error--success {
  border: 1px solid #a3d9a3;
  color: #2e7d32;
}

.api-block {
  padding-top: 40px;
}

.api-block__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.api-block__list li {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.api-block__list b {
  font-weight: 700;
}

.api-block__form {
  margin-top: 20px;
}

.api-block__btn {
  max-width: 300px;
}
#select-format-date {
  max-width: 400px;
  width: 100%;
}

#select-format-date .fixed-param-form__label {
  margin: 0;
}

#select-format-date .fixed-param-form__row:not(:last-child) {
  margin-bottom: 10px;
}

#select-format-date .fixed-param-form__row {
  display: flex;
  align-items: center;
  column-gap: 8px;
}

.custom-radio {
  position: relative;
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #0098a4;
}

.custom-radio:disabled:hover,
.custom-radio:disabled {
  background-color: transparent;
}

.custom-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  background-color: #0098a4;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.custom-radio:not(:checked) {
  border-color: #636777;
}

.custom-radio:not(:checked)::after {
  display: none;
}

.input-def-cust {
  width: 100%;
  height: 50px;
  padding: 15px;
  font-size: 16px;
  min-width: 300px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #0098a4;
}

.air-datepicker-cell.selected-week {
  background: #4a90e2;
  color: #fff;
  border-radius: 0;
}

.air-datepicker-cell.selected-week.-day-1- {
  border-radius: 6px 0 0 6px;
}

.air-datepicker-cell.selected-week.-day-0- {
  border-radius: 0 6px 6px 0;
}

.table-standart {
  width: 100%;
  text-align: center;
  font-size: 14px;
}

.table-standart th,
.table-standart td {
  padding: 5px 3px;
  border: 1px solid grey;
  vertical-align: middle;
}

/* .red-text {
  color: red;
} */

.ivn-dinamic-wrapper,
.wrap-table {
  overflow: auto;
}

@media (max-width: 767px) {
  .setup-report {
    grid-template-columns: 1fr;
  }
}

.ivn-wrapper {
  width: 100%;
  position: relative;
  aspect-ratio: 1.8;
}

#result-ivn-wrapper {
  z-index: 10;
}

.select-messuri:disabled,
.is-editing .input_dan2:disabled {
  border: none;
  background: none;
  color: #000000;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.width-full {
  width: 100% !important;
}

button.link-header__btn {
  padding: 5px;
  border-radius: 5px;
  border: none;
}

.disable-trigger-submit:not(.active) {
  display: none !important;
}

.data-table-wrap {
  padding-bottom: 40px;
}

.data-table-wrap:not(.active) {
  display: none;
}

.diary-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  gap: 8px;
}

.diary-pagination__item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  max-width: 40px;
  width: 100%;
  height: 40px;
  border: 1px solid #0098a4;
}

.diary-pagination__item.active {
  background-color: #0098a4;
  color: #ffffff;
}

.name-mass-add {
  width: 180px !important;
}

.input-comment {
  width: unset !important;
}

.link-header__btn--no-fill {
  background-color: transparent !important;
}


/* ===== AI report / ИИ-отчёт (панель data-type-container="ai" в single-report.php)
   Нужны из-за глобального reset.css: он обнуляет отступы, font-weight и маркеры списков.
   Все селекторы ограничены атрибутами [data-js-ai-*] и за пределы панели не выходят.
-------------------------- */

[data-js-ai-report] p {
  margin: 0 0 1em;
  line-height: 1.6;
}

[data-js-ai-report] ul,
[data-js-ai-report] ol {
  margin: 0 0 1em 1.5em;
}

[data-js-ai-report] ul {
  list-style: disc;
}

[data-js-ai-report] ol {
  list-style: decimal;
}

[data-js-ai-report] li {
  margin: 0 0 0.5em;
  line-height: 1.6;
}

[data-js-ai-report] h3,
[data-js-ai-report] h4,
[data-js-ai-report] h5 {
  font-weight: 700;
  margin: 1.6em 0 0.7em;
}

[data-js-ai-report] h3 {
  font-size: 1.3em;
}

[data-js-ai-report] h4 {
  font-size: 1.15em;
}

[data-js-ai-report] h5 {
  font-size: 1.05em;
}

[data-js-ai-report] > *:first-child {
  margin-top: 0;
}

[data-js-ai-report] > *:last-child {
  margin-bottom: 0;
}

[data-js-ai-progress] {
  margin: 0 0 2em;
}

[data-js-ai-progress-text] {
  margin: 0 0 0.5em;
  font-weight: 700;
}

[data-js-ai-steps] {
  margin: 0 0 0 1.5em;
  list-style: decimal;
}

[data-js-ai-steps] li {
  margin: 0 0 0.3em;
}

[data-js-ai-message] ul {
  margin: 0 0 0 1.5em;
  list-style: disc;
}

[data-js-ai-report-title] {
  margin: 0 0 1.2em;
  font-weight: 700;
  color: #555555;
}

[data-js-ai-report],
[data-js-ai-report-title] {
  transition: opacity 0.25s ease;
}

[data-js-ai-show-previous] {
  margin: 0 0 1.2em;
}

[data-js-ai-limit] {
  margin: 0.6em 0 0;
  font-size: 0.85em;
  color: #777777;
}

[data-js-ai-email-label] {
  display: block;
  margin: 0.9em 0 0;
  font-size: 0.9em;
  line-height: 1.4;
  cursor: pointer;
}

[data-js-ai-email-label] input {
  margin: 0 0.4em 0 0;
  vertical-align: middle;
}

/* ===== AI report end
-------------------------- */

.personal-btn-wrap {
  padding-top: 40px;
}

.content-inner {
  padding-bottom: 30px;
}

.seporate-team-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seporate-team-navigation__link {
  font-size: 18px;
  font-weight: 500;
  display: block;
  padding: 3px 15px;
  color: #fff;
  background-color: #0098a4;
}

.team-select {
  width: 260px;
}

.team-select-reset {
  width: 30px;
  height: 30px;
  background: #cfcfcf;
  border: none;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
}

.team-select-reset:not(.active) {
  display: none;
}

.table td .input_dan2.is-restday {
  background-color: #e9f1f3;
}