/**
 * 文件职责：财务概览图表区域样式。
 */
.fo-trend-chart,
.fo-profit-chart {
  height: 260px;
}

.fo-composition-wrap {
  display: flex;
  gap: 20px;
  align-items: center;
}

.fo-composition-chart-wrap {
  position: relative;
  flex-shrink: 0;
  width: 220px;
  height: 220px;
}

.fo-composition-chart {
  width: 100%;
  height: 100%;
}

.fo-composition-center {
  position: absolute;
  inset: 71px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.fo-composition-center-value {
  font-size: 14px;
  font-weight: 700;
  color: rgb(0 0 0 / 88%);
}

.fo-composition-center-label {
  font-size: 11px;
  color: rgb(0 0 0 / 45%);
}

.fo-composition-legend {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
}

.fo-composition-legend-item {
  display: grid;
  grid-template-columns: 10px 1fr auto auto;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}

.fo-composition-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.fo-composition-name {
  color: rgb(0 0 0 / 88%);
}

.fo-composition-percent {
  min-width: 54px;
  color: rgb(0 0 0 / 55%);
  text-align: right;
}

.fo-composition-amount {
  min-width: 88px;
  font-weight: 600;
  color: rgb(0 0 0 / 88%);
  text-align: right;
}

.fo-profit-legend {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 10px;
}

.fo-profit-legend-item {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: rgb(0 0 0 / 65%);
}

.fo-profit-legend-line {
  display: inline-flex;
  width: 20px;
  height: 3px;
  border-radius: 3px;
}

.fo-profit-legend-line.is-revenue {
  background: #1677ff;
}

.fo-profit-legend-line.is-cost {
  background: repeating-linear-gradient(
    90deg,
    #ef4444 0,
    #ef4444 6px,
    rgb(239 68 68 / 10%) 6px,
    rgb(239 68 68 / 10%) 9px
  );
}

.fo-profit-legend-line.is-net {
  background: #22c55e;
}
