/* «Отчёты → Потери → Споры» (pages-reports-disputes.js, 07.10.2026; 08.10.2026 — механика
   «Потерь» / «В переработку»). Таблица — общие классы листа (.report-employees-table);
   здесь только своё: цвет шапок трёх блоков («Справочник бригад», styles-brigade-grid.css),
   серые решённые строки (как закрытые задания Факта, styles-fact-acceptance.css), точки итогов. */

/* Цифра «ждут решения» на кнопке «Споры» переключателя и «!» со справкой рядом. */
.report-acc-view-switch .disputes-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 9px;
  background: #e5484d;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.report-accounting-toolbar .disputes-tip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #d8e6fa;
  font-weight: 700;
  font-size: 13px;
  margin: 0 6px;
}

/* Три блока колонок — цвет шапки: синий — сотрудник, янтарь — кто записал брак, сирень — решение. */
#reportDisputesTable thead th.dg-h-w { background: linear-gradient(180deg, #2f6aa3, #28588a); }
#reportDisputesTable thead th.dg-h-o { background: linear-gradient(180deg, #8a6420, #6f4f17); }
#reportDisputesTable thead th.dg-h-d { background: linear-gradient(180deg, #5e4a8c, #4d3c74); }

/* Решено / отозвано — делать больше нечего: строка серая, глаз находит яркие «ждёт решения».
   Те же цвета, что у закрытого задания в Факте. Отмеченная строка — подсветка выбора. */
#reportDisputesTable tbody tr.dispute-row-closed td { background: #eceff4; color: #97a2b3; }
#reportDisputesTable tbody tr.dispute-row-closed td > .status-pill { opacity: 0.6; }
#reportDisputesTable tbody tr.is-picked td { background: #e3edf8; }

/* Комментарий «Оставить брак» — всплывашка «Отпрашиваний» (.roster-pop), ошибка — красным. */
.disputes-keep-pop .disputes-keep-err { color: #a3355e; font-weight: 700; }

/* Точки итогов внизу — цвета тех же плашек. */
.dispute-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 2px; }
.dispute-dot.acc-pending { background: #7a5ba8; }
.dispute-dot.acc-accepted { background: #2f9268; }
.dispute-dot.acc-rejected { background: #c05a81; }
.dispute-dot.status-remainder { background: #6e7b88; }

/* Кнопка неприменима к отмеченному — полупрозрачная, как «Сохранить» в «Графике смен». */
#disputesRemoveBtn[data-clean],
#disputesKeepBtn[data-clean],
#disputesDeleteBtn[data-clean] { opacity: 0.55; }
