/* styles-plan.css — Тулбар Плана: кнопки, «Режим запуска», отправка на производство, обёртка таблицы.
   Выделено из styles-plan.css (937 строк, за BLOCK-заслоном 900) 2026-07-28.
   ПОРЯДОК ЗАГРУЗКИ ВАЖЕН: styles-plan.css → -table → -status → -cells.
   Каскад рассчитан на исходную последовательность правил — не переставлять,
   не подключать по одному. План: .claude/tasks/zadacha-product-health.md */
.plan-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.plan-toolbar #planDuplicateBtn {
  margin-left: 24px;
}

.plan-toolbar-meta {
  margin: -2px 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.plan-toolbar-note {
  color: #b7c7dc;
  font-size: 11px;
  line-height: 1.35;
}

.plan-inline-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(138, 167, 206, 0.28);
  background: rgba(10, 28, 52, 0.45);
  color: #dce8fb;
  font-size: 11px;
  font-weight: 650;
}

.plan-inline-status.is-ok {
  color: #d8fbe6;
  border-color: rgba(128, 206, 145, 0.34);
  background: rgba(53, 114, 79, 0.32);
}

.plan-inline-status.is-warn {
  color: #ffe2a8;
  border-color: rgba(243, 198, 117, 0.42);
  background: rgba(123, 89, 38, 0.3);
}

.plan-inline-status.is-error {
  color: #fde5f2;
  border-color: rgba(220, 161, 190, 0.42);
  background: rgba(121, 70, 100, 0.35);
}

.plan-btn {
  border: 1px solid rgba(125, 158, 209, 0.26);
  color: #dce8fb;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  padding: 5px 12px;
  min-width: 118px;
  min-height: 29px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(10, 28, 52, 0.62);
  /* contain:paint — против НАКОПИТЕЛЬНОГО «съедания» скруглённых углов кнопок (тёмный квадрат):
     при работе SPA (автообновление таблицы каждые ~10с + переходы по листам) Chrome под нагрузкой
     ронял обрезку угла у полупрозрачной кнопки над прокручиваемой таблицей; F5 лечил до следующего
     накопления (минуты). contain:paint = «рисуй кнопку самостоятельным блоком» → браузер держит её
     клип стабильным. Лёгкая подсказка (вид кнопки НЕ меняет, слабым ПК не вредит — наоборот).
     ⛔ НЕ слой/transform: translateZ на кнопку (d9949412) на части GPU САМ рисует тёмный угол;
     translateZ на кнопку/таблицу (попытки 2-3) и backdrop-filter (попытка 1) — мимо, НЕ возвращать. */
  contain: paint;
}

.plan-btn.green {
  border-color: rgba(128, 206, 145, 0.38);
  color: #d7f5e2;
  background: rgba(53, 114, 79, 0.4);
}

.plan-btn.blue {
  border-color: rgba(122, 171, 240, 0.4);
  color: #daebff;
  background: rgba(47, 87, 143, 0.42);
}

.plan-btn.blue.is-active {
  border-color: rgba(177, 213, 255, 0.72);
  background: rgba(60, 109, 175, 0.62);
}

.plan-btn.red {
  border-color: rgba(220, 161, 190, 0.42);
  color: #fde5f2;
  background: rgba(121, 70, 100, 0.43);
}

.plan-btn.purple {
  border-color: rgba(170, 149, 222, 0.42);
  color: #efe8ff;
  background: rgba(93, 74, 142, 0.44);
}

/* Мастер-режим отправки «+ СЗ на производство (МР)» — насыщенный фиолет под тему пометки
   «(МР)» (#7c3aed), отличается от purple-«Дублировать». */
.plan-btn.violet {
  border-color: rgba(167, 139, 250, 0.55);
  color: #ede9fe;
  background: rgba(109, 92, 178, 0.5);
}

/* «Режим запуска» — компактная выпадашка в тулбаре Плана (вместо отдельной МР-кнопки).
   В стиле системы: высота/скругление как у .plan-btn, но это select. */
.plan-launch-wrap {
  display: inline-flex;
  align-items: center;
  font-family: "Manrope", "Segoe UI", sans-serif;
}
/* Компактная выпадашка (без подписи, чуть меньше .plan-btn — чтобы не перегружать тулбар). */
.plan-launch-select {
  font-family: inherit;
  font-size: 9.5px;
  font-weight: 700;
  color: #ede9fe;
  background: rgba(109, 92, 178, 0.5);
  border: 1px solid rgba(167, 139, 250, 0.55);
  border-radius: 8px;
  padding: 3px 7px;
  min-height: 24px;
  cursor: pointer;
}
.plan-launch-select:focus { outline: none; border-color: rgba(177, 213, 255, 0.72); }
.plan-launch-select option { color: #1f2937; background: #fff; }

.plan-btn.yellow {
  margin-left: auto;
  border-color: rgba(243, 198, 117, 0.5);
  color: #ffe2a8;
  background: rgba(123, 89, 38, 0.35);
}

.plan-sheet {
  border: 1px solid #7ea2c4;
  border-radius: 10px;
  background: #e8edf5;
  overflow: hidden;
}


.plan-sheet-title {
  display: inline-flex;
  align-items: center;
  margin: 8px 0 0 8px;
  border-radius: 7px;
  background: #29557c;
  color: #ebf3ff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
}

.plan-table-wrap {
  margin-top: 0;
  overflow: auto;
}

.page-shell.accounting-mode {
  display: flex;
  flex-direction: column;
  height: var(--accounting-shell-height, calc(100vh - 172px));
  min-height: var(--accounting-shell-height, calc(100vh - 172px));
  overflow: hidden;
}

.page-shell.production-mode {
  display: flex;
  flex-direction: column;
  height: var(--production-shell-height, calc(100vh - 172px));
  min-height: var(--production-shell-height, calc(100vh - 172px));
  overflow: hidden;
}

.page-shell.employees-mode {
  display: flex;
  flex-direction: column;
  height: var(--employees-shell-height, calc(100vh - 172px));
  min-height: var(--employees-shell-height, calc(100vh - 172px));
  overflow: hidden;
}

.page-shell.report-employees-mode {
  display: flex;
  flex-direction: column;
  height: var(--report-employees-shell-height, calc(100vh - 172px));
  min-height: var(--report-employees-shell-height, calc(100vh - 172px));
  overflow: hidden;
}

.page-shell.dashboard-mode {
  display: flex;
  flex-direction: column;
  height: var(--dashboard-shell-height, calc(100vh - 172px));
  min-height: var(--dashboard-shell-height, calc(100vh - 172px));
  overflow: hidden;
}

.page-shell.dashboard-mode.panel {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.production-sheet {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.employees-sheet {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.report-employees-sheet {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

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