/* styles-plan-table.css — Таблица Плана: GPU-изоляция скролл-контейнеров, sticky-шапка, оболочки статусов.
   Выделено из styles-plan.css (937 строк, за BLOCK-заслоном 900) 2026-07-28.
   ПОРЯДОК ЗАГРУЗКИ ВАЖЕН: styles-plan.css → -table → -status → -cells.
   Каскад рассчитан на исходную последовательность правил — не переставлять,
   не подключать по одному. План: .claude/tasks/zadacha-product-health.md */
/* GPU-изоляция: скролл-контейнеры таблиц — в собственный композитный слой.
   Скролл/перерисовка sticky-шапок и строк живёт внутри слоя таблицы и больше не
   инвалидирует тайлы тулбара над ней — у кнопок (.plan-btn) не «съедаются» углы
   тёмным квадратом (GPU-артефакт клиппинга border-radius, лечим первоисточник).
   Контейнеры прямоугольные (без border-radius) — собственных угловых артефактов
   слой не даёт. position:fixed-потомков внутри нет (тултип живёт в body). */
.production-table-wrap,
.employees-table-wrap,
.accounting-table-wrap,
.report-employees-table-wrap {
  transform: translateZ(0);
}

.employees-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.employees-table-wrap #empListTable thead th {
  position: sticky;
  top: 0;
  z-index: 6;
}

.employees-table-wrap #empListTable thead th.report-emp-gear-col {
  z-index: 7;
}

.employees-table-wrap #empLeadTable thead th {
  position: sticky;
  top: 0;
  z-index: 6;
}

.employees-table-wrap #empLeadTable thead th.report-emp-gear-col {
  z-index: 7;
}

.production-table-wrap .plan-table thead th {
  position: sticky;
  top: 0;
  z-index: 6;
}

.production-table-wrap .plan-table thead th.report-emp-gear-col {
  z-index: 7;
}

.accounting-table-wrap #reportAccountingTable thead th {
  position: sticky;
  top: 0;
  z-index: 6;
}

.accounting-table-wrap #reportAccountingTable thead th.report-acc-gear-col {
  z-index: 7;
}

.report-employees-table-wrap #reportEmployeesTable thead th,
.report-employees-table-wrap #reportLossesTable thead th {
  position: sticky;
  top: 0;
  z-index: 6;
}

.report-employees-table-wrap #reportEmployeesTable thead th.report-emp-gear-col,
.report-employees-table-wrap #reportLossesTable thead th.report-emp-gear-col {
  z-index: 7;
}

.report-employees-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.production-sheet .plan-pagination {
  flex: 0 0 auto;
}

.employees-sheet .plan-pagination {
  flex: 0 0 auto;
}

.report-employees-sheet .plan-pagination {
  flex: 0 0 auto;
}


.plan-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: #1d2a3b;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 10px;
}


.plan-table th,
.plan-table td {
  border-right: 1px solid #c6d2df;
  border-bottom: 1px solid #c6d2df;
  padding: 3px 5px;
  white-space: nowrap;
}

.plan-table th {
  position: relative;
  background: linear-gradient(180deg, #2f5f8a, #284d72);
  color: #ebf3ff;
  font-weight: 650;
  font-size: 10px;
  line-height: 1.15;
  white-space: normal;
  text-transform: none;
}

.plan-table td {
  position: relative;
  background: #f9fbfe;
  font-size: 10px;
  line-height: 1.25;
  overflow: visible;
}

.plan-table tbody tr:nth-child(even) td {
  background: #f2f6fb;
}

.plan-table .t-center {
  text-align: center;
}

.plan-check {
  width: 12px;
  height: 12px;
  cursor: pointer;
}

.plan-table tbody tr.plan-empty-row td,
.plan-table tbody tr.archive-empty-row td,
.plan-table tbody tr.brigade-empty-row td {
  height: 26px;
}

.plan-empty-check,
.archive-empty-check,
.brigade-empty-check,
.employee-empty-check,
.employee-lead-empty-check {
  opacity: 0.35;
}

.brigade-empty-row .brigade-lead-check {
  opacity: 0.35;
}

.col-resizer {
  position: absolute;
  top: 0;
  right: -3px;
  width: 7px;
  height: 100%;
  cursor: col-resize;
  z-index: 2;
}

.col-resizer:hover {
  background: rgba(255, 255, 255, 0.24);
}

.cell-select {
  min-height: 16px;
  border-radius: 999px;
  padding: 0 6px;
  background: #e9eef5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}

.cell-value {
  font-size: 10px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cell-select.empty {
  color: #9aa7b9;
}

.plan-empty-cell {
  min-height: 22px;
  border-radius: 8px;
  background: #eef3f9;
}

.plan-select-shell {
  display: flex;
  align-items: center;
  min-width: 0;
  width: 100%;
  min-height: 22px;
  border: 1px solid #c7d3e2;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fbff, #ebf1f8);
  overflow: hidden;
}

.plan-select-shell.is-disabled {
  background: linear-gradient(180deg, #eef2f7, #e4eaf1);
  opacity: 0.78;
}

.plan-status-shell {
  border-color: transparent;
}

.plan-status-shell.status-new {
  background: #6d58aa;
}

.plan-status-shell.status-work {
  background: #3d73b2;
}

.plan-status-shell.status-failed {
  background: #c05a81;
}

.plan-status-shell.status-partial {
  background: #e6cc78;
}

.plan-status-shell.status-done {
  background: #2f9268;
}

.plan-status-shell.status-overfulfilled {
  background: #2191a6;
}

.plan-status-shell.status-wait {
  background: #de9a52;
}
