:root {
  --mr-recharts-grid: rgba(148, 163, 184, 0.22);
  --mr-recharts-axis: var(--bs-secondary-color);
}

.mr-server-chart-shell {
  overflow: hidden;
}

.mr-server-chart-shell .nav.nav-underline {
  gap: 0.35rem;
}

.mr-server-chart-shell .nav-link {
  padding: 0.28rem 0.55rem;
  font-size: 0.82rem;
  line-height: 1.15;
}

.mr-server-chart-shell .mt-3 {
  margin-top: 0.85rem !important;
}

.mr-recharts-line {
  position: relative;
  width: 100%;
  min-height: 128px;
  height: 148px;
  overflow: hidden;
}

.mr-analytics-copy-chart {
  height: 260px;
  min-height: 230px;
  margin-top: 0.6rem;
}

.mr-analytics-server-copy-chart {
  height: 246px;
  min-height: 220px;
}

.mr-analytics-copy-summary {
  margin-top: 0.45rem;
  color: var(--bs-secondary-color);
  font-size: 0.86rem;
  line-height: 1.35;
}

.mr-recharts-canvas {
  width: 100%;
  height: 100%;
}

.mr-recharts-skeleton {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    rgba(148, 163, 184, 0.12) 0%,
    rgba(148, 163, 184, 0.2) 45%,
    rgba(148, 163, 184, 0.12) 90%
  );
  background-size: 220% 100%;
  animation: mr-recharts-shimmer 1.15s linear infinite;
}

.mr-recharts-line.is-loaded .mr-recharts-skeleton {
  display: none;
}

.mr-recharts-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 128px;
  color: var(--bs-secondary-color);
  font-size: 0.86rem;
  text-align: center;
}

.mr-recharts-tooltip {
  border: 1px solid var(--bs-border-color-translucent);
  border-radius: 8px;
  padding: 0.42rem 0.55rem;
  background: var(--bs-body-bg);
  background: color-mix(in srgb, var(--bs-body-bg) 92%, transparent);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
  color: var(--bs-body-color);
  font-size: 0.78rem;
  line-height: 1.25;
}

.mr-recharts-tooltip__value {
  font-weight: 700;
}

.mr-recharts-tooltip__time {
  margin-top: 0.18rem;
  color: var(--bs-secondary-color);
}

@keyframes mr-recharts-shimmer {
  from {
    background-position: 120% 0;
  }

  to {
    background-position: -120% 0;
  }
}

@media (max-width: 575.98px) {
  .mr-recharts-line {
    height: 132px;
    min-height: 122px;
  }

  .mr-analytics-copy-chart {
    height: 200px;
    min-height: 180px;
  }

  .mr-analytics-server-copy-chart {
    height: 210px;
    min-height: 190px;
  }

  .mr-server-chart-shell .nav-link {
    padding: 0.24rem 0.45rem;
    font-size: 0.78rem;
  }

  .mr-recharts-tooltip {
    font-size: 0.74rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mr-recharts-skeleton {
    animation: none;
  }
}
