/* Отчёты: КПИ и табель. Стили модуля, а не общая простыня. */
/* ---------- Отчёты: КПИ и табель ---------- */

.kpi-bad { color: var(--danger); }
.kpi-extra { color: var(--accent); }

.kpi-table th,
.kpi-table td { padding: 8px 10px; }

.kpi-row--bad { background: #fff8f7; }

.kpi-bar {
  display: inline-block;
  vertical-align: middle;
  width: 54px;
  height: 6px;
  margin-right: 6px;
  border-radius: 3px;
  background: var(--border);
  overflow: hidden;
}

.kpi-bar__fill {
  display: block;
  height: 100%;
  background: var(--ok);
}

.kpi-bar--bad .kpi-bar__fill { background: var(--danger); }
.kpi-pct { font-variant-numeric: tabular-nums; }

.tabel { font-size: 12px; }

.tabel th,
.tabel td { padding: 4px 5px; }

.tabel__name { min-width: 150px; }

.tabel__day {
  text-align: center;
  font-weight: 500;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.tabel__day--weekend { color: #b42318; }

.tabel__cell {
  text-align: center;
  min-width: 30px;
  border-left: 1px solid var(--border);
  line-height: 1.2;
  vertical-align: middle;
}

.tabel__cell--green { background: #e7f2e7; }
.tabel__cell--yellow { background: #fdf6dd; }
.tabel__cell--orange { background: #fdf0e3; }
.tabel__cell--blue { background: #e7f0fd; }
.tabel__cell--violet { background: #f1e9fd; }
.tabel__cell--grey { background: #f1f3f7; }

.tabel__cell--miss { box-shadow: inset 0 0 0 2px #e0a0a0; }
.tabel__cell--extra { box-shadow: inset 0 0 0 2px var(--accent); }

.tabel__kind {
  display: block;
  font-size: 10px;
  color: #475467;
}

.tabel__good,
.tabel__hours {
  display: block;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.tabel__hours { font-weight: 500; color: #475467; }

.legend__swatch--miss { background: #fff; box-shadow: inset 0 0 0 2px #e0a0a0; }
.legend__swatch--extra { background: #fff; box-shadow: inset 0 0 0 2px var(--accent); }
