/* Phone activity chart */
.phone-activity-chart-shell {
  position: relative;
  height: 308px;
  margin-left: -1rem;
  margin-right: -1rem;
}

.phone-activity-chart {
  width: 100%;
  height: 100%;
  touch-action: pan-y;
}

.phone-activity-panel-label {
  position: absolute;
  left: 1rem;
  z-index: 2;
  font-size: .75rem;
  line-height: 1rem;
  font-weight: 600;
  pointer-events: none;
}

.phone-activity-panel-label--visits {
  top: 0;
  color: #2563eb;
}

.phone-activity-panel-label--reports {
  top: auto;
  bottom: .375rem;
  color: #7e22ce;
}

@media (min-width: 768px) {
  .phone-activity-chart-shell {
    height: 328px;
    margin-left: 0;
    margin-right: 0;
  }

  .phone-activity-panel-label {
    left: 0;
  }
}


/* Reported categories */
.reported-categories {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.reported-category {
  display: grid;
  grid-template-columns: minmax(0, 6.5rem) minmax(2rem, 1fr) 4.75rem;
  gap: .5rem;
  align-items: center;
}

.reported-category__label {
  min-width: 0;
  color: #111827;
  font-size: .875rem;
  line-height: 1.25rem;
  font-weight: 500;
}

.reported-category__track {
  width: 100%;
  height: .75rem;
  overflow: hidden;
  border-radius: 9999px;
  background: #e5e7eb;
}

.reported-category__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.reported-category__fill--red {
  background: #ef4444;
}

.reported-category__fill--yellow {
  background: #eab308;
}

.reported-category__fill--blue {
  background: #3b82f6;
}

.reported-category__fill--green {
  background: #22c55e;
}

.reported-category__fill--gray {
  background: #6b7280;
}

.reported-category__value {
  white-space: nowrap;
  text-align: right;
  color: #374151;
  font-size: .875rem;
  line-height: 1.25rem;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 480px) {
  .reported-category {
    grid-template-columns: minmax(0, 9rem) minmax(3rem, 1fr) 5rem;
    gap: .75rem;
  }
}

@media (min-width: 768px) {
  .reported-category {
    grid-template-columns: minmax(10rem, 12rem) minmax(6rem, 1fr) 5.5rem;
    gap: 1rem;
  }

  .reported-category__label,
  .reported-category__value {
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .reported-category__track {
    height: .875rem;
  }
}
