/* Filtered Business Analysis Styles */
.filtered-analysis {
  background-color: var(--white);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-top: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.filtered-analysis-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.filtered-analysis-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--blue-700);
  color: var(--white);
  border-radius: 50%;
  margin-right: 1rem;
  font-size: 1.25rem;
}

.filtered-analysis-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--slate-800);
}

.filtered-analysis-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.filtered-total {
  display: flex;
  align-items: center;
  padding: 1rem;
  background-color: var(--slate-50);
  border-radius: 0.5rem;
  border-left: 4px solid var(--blue-700);
}

.filtered-total-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--blue-700);
  color: var(--white);
  border-radius: 50%;
  margin-right: 1rem;
  font-size: 1.5rem;
}

.filtered-total-content {
  flex: 1;
}

.filtered-total-label {
  font-size: 0.875rem;
  color: var(--slate-600);
  margin-bottom: 0.25rem;
}

.filtered-total-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--slate-800);
}

.filtered-chart-container {
  background-color: var(--slate-50);
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.filtered-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.filtered-chart-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate-700);
}

.filtered-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.legend-item {
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  color: var(--slate-600);
}

.legend-color {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  margin-right: 0.25rem;
}

.chart-container {
  height: 250px;
  position: relative;
}

.donut-chart {
  position: relative;
  width: 100%;
  height: 100%;
}

.donut-segment {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.2s;
}

.donut-segment:hover {
  transform: scale(1.05);
}

.donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--white);
  border-radius: 50%;
  width: 60%;
  height: 60%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.donut-center-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--slate-800);
}

.donut-center-label {
  font-size: 0.75rem;
  color: var(--slate-500);
}

.category-bars {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.category-bar-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.category-bar-icon {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  font-size: 0.875rem;
}

.category-bar-content {
  flex: 1;
}

.category-bar-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.category-bar-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-700);
}

.category-bar-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-800);
}

.category-bar-container {
  height: 0.5rem;
  background-color: var(--slate-200);
  border-radius: 9999px;
  overflow: hidden;
}

.category-bar-progress {
  height: 100%;
  border-radius: 9999px;
}

.category-bars-container {
  background-color: var(--slate-50);
  border-radius: 0.5rem;
  padding: 1.5rem;
}
