.admin-drill-pie {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-drill-pie-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-drill-pie-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.admin-drill-pie-title {
  margin: 0;
  font-size: 25px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--theme-black);
}

.admin-drill-pie-lede {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--theme-gray-500);
  max-width: 42rem;
}

.admin-drill-pie-clear {
  flex-shrink: 0;
}

.admin-drill-pie-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 16px;
}

@media (max-width: 900px) {
  .admin-drill-pie-filters {
    grid-template-columns: 1fr;
  }
}

.admin-drill-pie-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--theme-gray-500);
  margin-bottom: 6px;
}

.admin-drill-pie-select {
  width: 100%;
  border: 1px solid var(--theme-gray-200);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  background: var(--theme-white);
  color: var(--theme-black);
}

.admin-drill-pie-select:focus-visible {
  outline: 2px solid var(--theme-maroon, #8b1538);
  outline-offset: 2px;
}

.admin-drill-pie-crumb {
  margin: 0;
  font-size: 13px;
  color: var(--theme-gray-600);
}

.admin-drill-pie-crumb span {
  font-weight: 600;
  color: var(--theme-black);
}

.admin-drill-pie-crumb--muted {
  color: var(--theme-gray-500);
}

.admin-drill-pie-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

@media (max-width: 820px) {
  .admin-drill-pie-body {
    grid-template-columns: 1fr;
  }
}

.admin-drill-pie-chart-wrap {
  min-width: 0;
  min-height: 280px;
  border: 1px solid var(--theme-gray-200);
  border-radius: 16px;
  padding: 10px;
  box-sizing: border-box;
  background: var(--theme-white);
}

.admin-drill-pie-chart-wrap--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.admin-drill-pie-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.admin-drill-pie-empty {
  margin: 0;
  padding: 32px 16px;
  text-align: center;
  color: var(--theme-gray-500);
  font-size: 14px;
}

.admin-drill-pie-rates {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px 20px;
  border-radius: 12px;
  background: var(--theme-white);
  border: 1px solid var(--theme-gray-100);
}

.admin-drill-pie-rate {
  display: grid;
  grid-template-columns: 10px 1fr auto auto;
  gap: 10px;
  align-items: center;
  font-size: 14px;
}

.admin-drill-pie-rate-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.admin-drill-pie-rate-label {
  color: var(--theme-gray-600);
}

.admin-drill-pie-rate strong {
  font-variant-numeric: tabular-nums;
  color: var(--theme-black);
}

.admin-drill-pie-rate-n {
  font-size: 12px;
  color: var(--theme-gray-500);
  font-variant-numeric: tabular-nums;
}

.admin-drill-pie-stat-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 520px) {
  .admin-drill-pie-stat-cards {
    grid-template-columns: 1fr;
  }
}

.admin-drill-pie-stat-card {
  border-radius: 12px;
  border: 1px solid var(--theme-gray-200);
  background: var(--theme-white);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 108%;
}

.admin-drill-pie-stat-card-title {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--theme-gray-600);
}

.admin-drill-pie-stat-card-line {
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
}

.admin-drill-pie-stat-card-k {
  color: var(--theme-gray-600);
}

.admin-drill-pie-stat-card-v {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--theme-black);
}

.admin-drill-pie-stat-card-big {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--theme-black);
}

.admin-drill-pie-stat-card-hint {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  color: var(--theme-gray-500);
}

.admin-drill-pie-tooltip {
  background: var(--theme-white);
  border-radius: 10px;
  padding: 8px 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-drill-pie-tooltip-num {
  font-variant-numeric: tabular-nums;
  color: var(--theme-gray-500);
}

.admin-drill-pie-tooltip-pct {
  font-weight: 600;
  color: var(--theme-black);
}

.admin-outline-button {
  border: 1px solid var(--theme-gray-200, #e5e7eb);
  border-radius: 10px;
  padding: 8px 12px;
  background: var(--theme-white, #fff);
  color: var(--theme-black, #0f172a);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}

.admin-outline-button:hover {
  background: var(--theme-gray-50, #f9fafb);
}
