/* styles-sz-window.css — окно «+ Новое СЗ» (app-sz-window.js, 12.10.2026).
   Вид — как карточка станка «Оборудование» (styles-equipment.css: .eq-cardpage):
   полоса кнопок, белая карточка, блоки полей. Внутри — те же ячейки строки Плана,
   здесь им только даётся вид полей формы (крупнее, с рамкой), логика не меняется. */

.szw-toolbar .plan-btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.szw-toolbar #szwDeleteBtn { margin-left: 0; }
 /* Лист окна — на всю высоту экрана: у обычного .plan-sheet высота по содержимому и
   обрезка по краю, выпадашка сотрудника срезалась (владелец, 12.10.2026). */
.szw-sheet { flex: 1 1 auto; min-height: 0; overflow: auto; border: 0; background: transparent; }
.szw { background: #fff; border-radius: 12px; padding: 18px 22px 22px; color: #1f2937; min-height: 100%; box-sizing: border-box; font-size: 13px; }
.szw-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.szw-title { font-size: 18px; font-weight: 700; color: #111827; }
.szw-head .plan-status-static { flex: 0 0 auto; width: auto; }
.szw-head .status-pill { font-size: 11px; }

/* Блоки полей — как форма записи журнала станка (.eq-cardpage-form). */
.szw-blk { border: 1px solid #bcd3f1; background: #f4f8fe; border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.szw-blk-t { font-size: 12px; font-weight: 700; color: #1d4d8a; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.szw-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 12px; }
.szw-f { display: flex; flex-direction: column; gap: 3px; min-width: 0; position: relative; }
.szw-f.w2 { grid-column: span 2; }
.szw-lab { font-size: 11px; color: #4b5a70; }
.szw-auto { min-height: 32px; border: 1px dashed #cfd8e5; border-radius: 7px; padding: 6px 10px; background: #eef2f7; color: #52627a; box-sizing: border-box; }
.szw-box { min-height: 32px; border: 1px solid #cfd8e5; border-radius: 7px; background: #fff; display: flex; align-items: center; gap: 4px; padding: 0 8px; box-sizing: border-box; }
.szw-actions { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.szw-actions .plan-btn { min-height: 30px; padding: 0 16px; font-size: 12.5px; }
.szw-actions .szw-save { background: #2e9e5b; border-color: #2e9e5b; color: #fff; }
.szw-actions .szw-cancel { background: #fff; color: #1f2937; border: 1px solid #cfd8e5; }

/* Ячейки Плана внутри окна — вид поля формы. */
.szw .plan-cell-wrap { position: relative; }
.szw .plan-cell-button { min-height: 32px; border: 1px solid #cfd8e5; border-radius: 7px; background: #fff; padding: 0 10px; font-size: 13px; }
.szw .plan-cell-button .cell-select { min-height: 30px; background: transparent; border-radius: 0; padding: 0; font-size: 13px; }
.szw .plan-cell-button .cell-caret { font-size: 9px; }
.szw .plan-cell-menu { min-width: 100%; max-height: 340px; font-size: 12px; z-index: 30; }
.szw .plan-inline-editable { min-height: 30px; font-size: 13px; text-align: left; }
.szw .szw-box .plan-inline-editable { flex: 1 1 auto; }
.szw .plan-planned-date { width: 100%; min-height: 28px; border: 0; font-size: 13px; background: transparent; }
.szw .plan-assign-suggested { display: block; }
.szw-files { min-height: 32px; display: flex; align-items: center; }

/* Неактивное поле: операция одиночная — бригады нет, бригадная — сотрудника нет. */
.szw-inact { width: 100%; min-height: 32px; border: 1px dashed #cfd8e5; border-radius: 7px; background: #f1f4f8; color: #9aa6b6; padding: 0 10px; display: flex; align-items: center; justify-content: space-between; font: inherit; font-size: 13px; cursor: not-allowed; }

@media (max-width: 900px) {
  .szw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .szw-f.w2 { grid-column: 1 / -1; }
}

/* «!» у «Несколько сотрудников…» в выпадашке сотрудника (plan-assign-hint.js) —
   на белом меню значок синий, как ссылки кабинета. */
.plan-assign-option .plan-assign-hint { margin-left: 0; color: #2563eb; background: #fff; flex: 0 0 auto; }
.plan-assign-option .plan-assign-hint:hover { color: #fff; background: #2563eb; border-color: #2563eb; }
.fact-tnorm-tip.plan-assign-hint-tip { max-width: 320px; min-width: 300px; }
.plan-assign-hint-tip .plan-assign-hint-list { margin: 2px 0 0; padding-left: 16px; line-height: 1.5; }
.plan-assign-hint-tip .plan-assign-hint-list li { margin: 2px 0; }
