/* 班组履职评价系统 V1.7.6
 * 统一班组评价概览的网格、基准线、柱形与班组标签坐标。
 * 仅调整柱状图展示，不改变统计口径、排序、筛选或业务数据。
 */

.score-chart {
  --score-grid-step: 58px;
  --score-label-band: var(--score-grid-step);
  position: relative;
  padding-block: 0;
  background: repeating-linear-gradient(
    to top,
    #eef3f7 0,
    #eef3f7 1px,
    transparent 1px,
    transparent var(--score-grid-step)
  );
  background-position: left bottom;
}

.score-column {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) var(--score-label-band);
  align-items: stretch;
  gap: 0;
}

.score-plot {
  min-height: 0;
  --score-plot-baseline: 0px;
}

.score-plot.net-plot {
  --score-plot-baseline: calc(var(--score-grid-step) + var(--score-grid-step));
}

.score-plot::after,
.score-plot.positive-only::after {
  content: none;
}

.score-baseline {
  position: absolute;
  z-index: 1;
  right: 0;
  left: 0;
  height: 2px;
  background: rgba(38, 113, 153, .58);
  pointer-events: none;
}

.score-chart.net-chart .score-baseline {
  bottom: calc(var(--score-grid-step) + var(--score-grid-step) + var(--score-grid-step));
}

.score-chart.add-chart .score-baseline,
.score-chart.deduct-chart .score-baseline {
  bottom: var(--score-grid-step);
}

.score-team-label {
  position: relative;
  z-index: 3;
  min-width: 0;
  height: var(--score-label-band);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  overflow: hidden;
  padding: 3px 1px;
  text-align: center;
}

.score-team-label > strong {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  color: #243d55;
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.score-team-label > small {
  display: block;
  width: 100%;
  overflow: hidden;
  color: #8a97a6;
  font-size: 9px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-chart .zero-dot {
  border-color: rgba(38, 113, 153, .72);
}
