.chart-canvas-wrap {
  position: relative;
  width: 100%;
  min-height: 210px;
  height: 100%;
}

.chart-canvas-wrap--donut {
  min-height: 220px;
  max-width: 250px;
  margin: 0 auto;
}

.analytics-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  margin-top: 24px;
}

.analytics-card {
  background: var(--grey-0);
  border: 1px solid var(--grey-100);
  border-radius: 16px;
  box-shadow: 0 2px 4px -1px rgba(13, 13, 18, 0.06);
  overflow: hidden;
}

.analytics-card__header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--grey-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.analytics-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.analytics-card__body {
  padding: 16px 20px 18px;
}

.category-rank {
  display: grid;
  gap: 10px;
}

.category-rank__item {
  display: grid;
  grid-template-columns: 36px 1fr 72px;
  align-items: center;
  gap: 10px;
}

.category-rank__num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--grey-25);
  border: 1px solid var(--grey-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--grey-500);
}

.category-rank__name {
  display: block;
  font-size: 13px;
  color: var(--grey-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-rank__bar {
  margin-top: 6px;
  height: 6px;
  background: var(--grey-50);
  border-radius: 999px;
  overflow: hidden;
}

.category-rank__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-500), #42c9a5);
}

.category-rank__count {
  text-align: right;
  font-size: 12px;
  color: var(--grey-500);
  font-weight: 600;
}

.status-matrix {
  width: 100%;
  border-collapse: collapse;
}

.status-matrix th,
.status-matrix td {
  font-size: 13px;
  padding: 10px 6px;
  border-bottom: 1px solid var(--grey-100);
  text-align: left;
}

.status-matrix th {
  color: var(--grey-500);
  font-weight: 500;
}

.status-matrix td:last-child {
  text-align: right;
  color: var(--grey-700);
  font-weight: 600;
}

@media (max-width: 1180px) {
  .analytics-grid {
    grid-template-columns: 1fr;
  }
}
