.chart-home{
  width:100%; 
  display:flex; 
  gap:30px; 
  padding:50px; 
  flex-direction:column;
  background:#fff; 
  box-shadow:0 10px 30px 0 #404F6814; 
  border-radius:8px;
  background-size:cover;
  background-repeat:no-repeat;
  background-position:center;

  &__row{ 
    width:100%; 
    display:flex; 
    gap:30px; 
    flex-wrap:wrap; }
  &__item{ 
    width:100%; 
    display:flex; 
    flex-wrap:wrap; 
    border:1px solid #E7E7E7;
    border-radius:30px; 
    padding:20px; 
    min-height:135px; 
    align-items:center;
  }
  &__header{ 
    width:100%; 
    margin-bottom:10px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    h2{
      font-size:32px !important; 
      font-weight:700 !important; 
      color: #222222;
      margin:0; 
      padding:0; 
    }
  }
   &__head{ 
    width:100%; 
    position: relative;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
    h2{
      font-size:20px !important; 
      font-weight:500 !important; 
      color: #6D6D6D !important;
      margin:0; 
      padding:0; 
    }
    .chart-tooltip {
      position: relative;
      display: inline-block;
      cursor: pointer;

      .tooltip__icon {
        transition: opacity .2s ease;
      }

      .tooltip__content {
        position: absolute;
        bottom: 120%;
        left: 50%;
        transform: translateX(-50%);
        opacity: 0;
        visibility: hidden;
        padding: 6px 10px;
        background: #222222CC;
        color: #fff;
        font-size: 14px;
        border-radius: 4px;
        font-weight: 400;
        width: auto;
        min-width: 200px;
        transition: opacity .25s ease, visibility .25s ease;
        pointer-events: none;
      }

      &:hover {
        .tooltip__content {
          opacity: 1;
          visibility: visible;
        }
      }
    }

  }
  &__text{ 
    max-width:200px; 
    width:100%; 
    display:flex; 
    flex-direction:column; 
    h4{ 
      font-weight:500; 
      font-size:20px; 
      color: #6D6D6D !important; 
      margin:0; 
    }
    span{ 
      margin:0; 
      font-weight:700; 
      font-size:45px;
    }
  }
  &__item-small{ 
    width: calc(33.333% - 20px); 
  }
  &__item-part{ 
    width: calc(50% - 15px); 
  }
  .chart-categories{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  .chart__part-item {
    max-width: 50%;
    width: 100%;
  }
}

.chart-line{
  position:relative; 
  width:100%; 
  max-width:176px; 
  height:50px; 
  overflow:hidden;
  background:transparent; 
  pointer-events:none;
}
.chart-big{ 
  position:relative; 
  width:100%; 
}

.chart{ 
  width:100%; 
  height:100%; 
  opacity:0; 
  transition:opacity .4s ease; 
}
.chart.is-visible{ 
  opacity:1;
}

.chart-skeleton{
  position:absolute; inset:0; border-radius:6px;
  background:linear-gradient(90deg,#fff 0%,#f2f2f2 20%,#e0e0e0 37%,#f2f2f2 63%,#fff 100%);
  background-size:400% 100%; animation:shimmer 2s infinite linear;
  z-index:1;
}
.chart-skeleton.is-hide{ 
  opacity:0; 
  transition:opacity .4s ease; 
  pointer-events:none; 
}

@keyframes shimmer{ 
  0%{
    background-position:-400px 0;
  } 
  100%{
    background-position:400px 0;
  } 
}

.highcharts-credits {
    display: none !important;
}

.solution-categories {
  font-family: inherit;
  color: #4A4A4A;
}

.solution-categories__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.solution-categories__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.solution-categories__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.solution-categories__color {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  display: inline-block;
  flex-shrink: 0;
}

.highcharts-tooltip span,
.highcharts-tooltip text { white-space: nowrap; }

.hc-tt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

.hc-tt-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;   /* саме кружечок */
  display: inline-block;
  flex: 0 0 10px;
}



.stats {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 14px;
  max-width: 600px;
  font-family: sans-serif;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  justify-content: flex-end;
  width: 100%;
}

.stat-bar {
  height: 30px;
  background-color: var(--color);
  position: relative;
  opacity: 0.8;
  width: 0%;
  max-width: calc(var(--value) * 1px);
  transition: width 1.2s ease-in-out;
}

.stat-label {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 14px;
}

.stat-value {
  font-weight: 700;
  color: #222222;
  font-size: 15px;
}

.stat-name {
  color: #222222;
  min-width: 120px;
}

.stat-percent {
  color: #B0B0B0;
  font-size: 13px;
}


.chart-home__history{
  position: absolute;
  right: 0;
  top: -5px;
  display: flex;
  flex-wrap: wrap;
  max-width: calc(33.333% - 20px);
  width: 100%;
  border-radius: 30px;
  border: 1px solid #E7E7E7;
  overflow: hidden;
  z-index: 99;
  box-shadow: 0px 5px 15px 0px #122D2D0D;
  &-list{
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
  }
  &-item{
    width: 100%;
    display: none;
    padding: 0px;
    font-size: 15px;
    font-weight:400;
    color: #4F4F4F;
    gap: 10px;
    transform: translateY(0%);
    transition: transform 0.6s ease, opacity 0.6s ease;
    &:nth-child(5) {
      opacity: 0.6;
    }
    &:nth-child(6) {
      opacity: 0.2;
    }
    &:nth-child(7) {
      opacity: 0;
    }

  }
  &-item.current{
    display: flex;
    justify-content: flex-start;
    align-items: center;
  }

  &-item.enter {
    opacity: 1;
    transform: translateY(0);
    display: flex !important;
  }

  &-item.leave {
    opacity: 0;
    transform: translateY(100%);
    display: flex !important;
  }
  &-action {
    border: none !important;
    padding: 0 !important;
    position: absolute;
    right: 20px;
    top: 15px;
  }
  &-time {
    position: relative;
    padding-left: 20px;
    color: #B0B0B0;
    font-size: 15px;
    font-weight:400;
  }
  &-name{
    width: 100%;
    display: block;
    max-width: 250px;  
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.history-pulse {
  width: 8px;
  height: 8px;
  display: block;
  background: #53B0A1;
  position: absolute;
  top: 25px;
  left: 20px;
  border-radius: 4px;
}
.history-pulse:before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  background-color: rgba(83, 176, 161, 0.2);
  animation: history-pulse 1.5s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: 50% 50%;
  filter: drop-shadow(0 0 6px rgba(83, 176, 161, 0.5));
}
@keyframes history-pulse {
  0%   { transform: scale(1);   opacity: 0; }
  50%  { transform: scale(3); opacity: 1; }
  100% { transform: scale(1);   opacity: 0; }
}

.chart-home__history.show{
  z-index: 99;
  background: white;
  box-shadow: 10px 10px 20px 0px #e7e7e7;
  height: 232px;
  overflow: hidden;
  .chart-home__history-item{
    transform: translateY(0%);
    display: flex;
    gap: 10px;
    font-weight:400;
  }
}


@keyframes marker-pulse {
  0%   { transform: scale(1); opacity: 0; }
  50%  { transform: scale(4); opacity: 1; }
  100% { transform: scale(1); opacity: 0; }
}

#chart-live .marker-pulse {
  fill: rgba(123, 98, 234, .2);
  animation: marker-pulse 1000ms ease-out forwards;
  transform-origin: center;
  transform-box: fill-box;
  pointer-events: none;
}

@media (max-width: 1440px) {
  .chart-home{
    &__header {
      flex-direction: column;
      justify-content: flex-start;
      align-items: flex-start;
    }
    .chart-home__history{
      max-width: 100%;
      position: relative;
      box-shadow:none;
      margin-top: 20px;
    }
  }
}


@media (max-width: 768px) {
  .chart-home{
    padding:20px;
    &__header {
      flex-direction: column;
      justify-content: flex-start;
      align-items: flex-start;
    }
    &__row{ 
      gap:15px;
    }
    &__item-small{ 
      width:100%;
    }
    &__item-part{ 
      width:100%;
    }
    &__text{
      max-width: 60%;
    }
    &__history{
      position: relative;
      max-width: 100%;
      margin-top: 30px;
      &-name{
        max-width: 200px;  
      }
    }
  }
}

@media (max-width: 465px) {
  .chart-home{
    &__header h2{
      text-align: center;
      width: 100%;
    }
    h2{
      font-size: 24px !important;
    }
    &__text{
      max-width: 50%;
      h4{
        font-size: 24px;
      }
      span{
        font-size: 35px;
      }
    }
    .chart-categories {
      flex-direction: column;
      width: 100%;
    }
    .chart-line {
      width: 50%;
    }
    .chart__part-item {
      max-width: 100%;
      width: 100%;
    }
  }
}

#chart-country {
  overflow-x: auto !important;
}