/* Блок ig-mt. Перенесён из выгрузки 2. Дизайн/3. этап/2026-09-22 (blocks/meetings.css). */

.ig-mt {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  background: var(--surface-0);
  border: 1px solid var(--border-200);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  display: flex;
  overflow: hidden;
}

/* Левая колонка: мини-календарь, легенда, список по роли */

.ig-mt__aside {
  width: 300px;
  flex-shrink: 0;
  border-right: 1px solid var(--border-200);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px 14px var(--space-4);
  overflow: auto;
}

.ig-mt__monthrow {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ig-mt__month {
  margin: 0;
  flex: 1 1 auto;
  font-size: 16px;
  font-weight: 600;
  text-transform: capitalize;
}

.ig-mt__navbtn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-200);
  padding: 0;
  border-radius: var(--radius-md);
  background: var(--surface-0);
  color: var(--ink-900);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ig-mt__mgrid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
}

.ig-mt__wd {
  text-align: center;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-600);
}

.ig-mt__wd--weekend {
  color: var(--warning-700);
}

.ig-mt__mday {
  height: 32px;
  border: 0;
  padding: 0;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  background: transparent;
  color: var(--ink-900);
}

.ig-mt__mday--weekend {
  color: var(--warning-700);
}

.ig-mt__mday--other {
  color: #a9b4b8;
}

.ig-mt__mday--today {
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 700;
}

.ig-mt__mday--selected {
  background: var(--brand-600);
  color: var(--ink-0);
  font-weight: 700;
}

.ig-mt__mdot {
  width: 4px;
  height: 4px;
  border-radius: 2px;
  background: transparent;
}

.ig-mt__mdot--event {
  background: var(--brand-600);
}

.ig-mt__mday--selected .ig-mt__mdot--event {
  background: var(--ink-0);
}

.ig-mt__legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
  border-top: 1px solid #eef2f3;
}

.ig-mt__legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 12.5px;
}

.ig-mt__swatch {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border-radius: 4px;
}

.ig-mt__swatch--meet {
  background: var(--brand-600);
}

.ig-mt__swatch--op {
  background: var(--surface-0);
  border: 1px solid var(--brand-200);
}

.ig-mt__swatch--wait {
  background: var(--warning-50);
  border: 1px solid #f1d998;
}

.ig-mt__swatch--dead {
  background: var(--danger-50);
  border: 1px solid #f3b9b9;
}

/* Список сбоку (мои заявки / ждут решения / сегодня у директора) */

.ig-mt__sidehead {
  font-size: 13.5px;
  font-weight: 600;
}

.ig-mt__sidelist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ig-mt__siderow {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px var(--space-2);
  border: 1px solid #eef2f3;
  border-radius: var(--radius-md);
  background: var(--surface-0);
  cursor: pointer;
  text-align: left;
  color: var(--ink-900);
}

.ig-mt__siderow:hover {
  background: var(--surface-100);
}

.ig-mt__sidetime {
  width: 40px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ig-mt__sidebody {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ig-mt__sidetitle {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ig-mt__sidesub {
  font-size: 12px;
  color: var(--ink-600);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ig-mt__sidenote {
  font-size: 12px;
  line-height: 17px;
  color: var(--ink-600);
}

.ig-mt__block {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-top: 4px;
  border-top: 1px solid #eef2f3;
}

/* Сетка дня */

.ig-mt__daycol {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ig-mt__dayhead {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid #eef2f3;
}

.ig-mt__daybtn {
  height: 32px;
  padding: 0 var(--space-3);
  border: 1px solid var(--border-200);
  border-radius: var(--radius-md);
  background: var(--surface-0);
  color: var(--ink-900);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.ig-mt__daybtn--icon {
  width: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ig-mt__daytitle {
  margin: 0 0 0 6px;
  font-size: 18px;
  font-weight: 600;
}

.ig-mt__daysub {
  font-size: 13px;
  color: var(--ink-600);
}

.ig-mt__rolechip {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--brand-50);
  color: var(--brand-700);
}

.ig-mt__dayscroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: var(--space-3) var(--space-4) var(--space-4);
}

.ig-mt__grid {
  position: relative;
  height: 2244px;
}

.ig-mt__slots {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
}

.ig-mt__slot {
  display: flex;
  align-items: flex-start;
  height: 34px; /* = schedule.SLOT_PX: подписи часов совпадают с плашками (26.09.2026) */
  box-sizing: border-box;
  width: 100%;
  padding: 0;
  border: 0;
  border-top: 1px solid #f1f5f6;
  background: transparent;
  text-align: left;
  cursor: default;
}

.ig-mt__slot--hour {
  border-top-color: var(--border-200);
}

.ig-mt__slot--free {
  cursor: pointer;
}

.ig-mt__slot-label {
  width: 48px;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink-600);
  margin-top: -8px;
}

/* Полоса оперативного 16:00-18:00 */

.ig-mt__band {
  position: absolute;
  left: 56px;
  right: 0;
  box-sizing: border-box;
  border: 1px dashed var(--brand-200);
  border-radius: 10px;
  background: rgba(229, 243, 245, 0.55);
  pointer-events: none;
}

.ig-mt__band-label {
  position: absolute;
  top: -11px;
  right: var(--space-3);
  padding: 2px var(--space-2);
  border-radius: 10px;
  background: var(--brand-600);
  color: var(--ink-0);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* События в сетке дня. Позиция по времени (top/height) задаётся style-атрибутом. */

.ig-mt__event {
  position: absolute;
  left: 56px;
  right: 8px;
  box-sizing: border-box;
  padding: 5px 10px;
  border-radius: var(--radius-md);
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2px;
  overflow: hidden;
  background: var(--brand-600);
  color: var(--ink-0);
  border: 1px solid var(--brand-600);
  box-shadow: var(--shadow-sm);
}

.ig-mt__event--short {
  padding: 2px 10px;
  justify-content: center;
}

.ig-mt__event--op {
  background: var(--surface-0);
  color: var(--ink-900);
  border-color: var(--brand-200);
}

.ig-mt__event--mine {
  background: var(--brand-50);
  border-color: var(--brand-600);
}

.ig-mt__event--wait {
  background: var(--warning-50);
  color: #4a3000;
  border-color: #f1d998;
}

.ig-mt__event--dead {
  background: var(--danger-50);
  color: #5a1a1a;
  border-color: #f3b9b9;
  text-decoration: line-through;
}

.ig-mt__event--free {
  background: transparent;
  color: var(--ink-600);
  border: 1px dashed #b9dde2;
  box-shadow: none;
}

.ig-mt__event--selected {
  border: 2px solid var(--brand-700);
  box-shadow: var(--shadow-md);
}

.ig-mt__event-top {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
}

.ig-mt__event-time {
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ig-mt__event-title {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ig-mt__event-sub {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.85;
}

.ig-mt__chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 7px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.ig-mt__chip--onmeet {
  background: rgba(255, 255, 255, 0.18);
  color: var(--ink-0);
}

.ig-mt__chip--ok {
  background: var(--success-50);
  color: var(--success-600);
}

.ig-mt__chip--wait {
  background: var(--warning-50);
  color: var(--warning-700);
}

.ig-mt__chip--dead {
  background: var(--danger-50);
  color: var(--danger-600);
}

.ig-mt__chip--brand {
  background: var(--brand-50);
  color: var(--brand-700);
}

.ig-mt__chip--solid {
  background: var(--brand-600);
  color: var(--ink-0);
}

/* Правая панель: карточка записи / форма «Записаться» */

.ig-mt__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  box-sizing: border-box;
  margin: 0;
  border-left: 1px solid var(--border-200);
  background: var(--surface-0);
  box-shadow: -8px 0 24px rgba(0, 70, 80, 0.12);
  z-index: 12;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5) var(--space-5);
  overflow: auto;
}

.ig-mt__panel-chips {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ig-mt__panel-chips .ig-iconbtn {
  margin-left: auto;
}

.ig-mt__panel-when {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ig-mt__panel-time {
  font-size: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ig-mt__panel-title {
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
}

.ig-mt__panel-day {
  font-size: 13px;
  color: var(--ink-600);
}

.ig-mt__props {
  margin: 0;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px 10px;
  font-size: 13.5px;
}

.ig-mt__props dt {
  color: var(--ink-600);
}

.ig-mt__props dd {
  margin: 0;
  line-height: 19px;
}

.ig-mt__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid #eef2f3;
}

.ig-mt__actions .ig-btn {
  justify-content: center;
}

/* Вставки «Перенос» и «Отклонить» */

.ig-mt__movebox {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--space-3);
  background: var(--surface-50);
  border: 1px solid var(--border-200);
  border-radius: 10px;
}

.ig-mt__movebox--danger {
  background: var(--danger-50);
  border-color: #f3b9b9;
}

.ig-mt__movebox-title {
  font-size: 14px;
  font-weight: 600;
}

.ig-mt__movebox--danger .ig-mt__movebox-title {
  color: #5a1a1a;
}

.ig-mt__movebox .ig-btn {
  flex: 1 1 auto;
  justify-content: center;
}

.ig-mt__movebox .ig-btn--danger-solid {
  border: 0;
  background: var(--danger-600);
  color: var(--ink-0);
}

.ig-mt__moverow {
  display: flex;
  gap: var(--space-2);
}

.ig-mt__infobox {
  padding: 10px var(--space-3);
  background: var(--surface-50);
  border: 1px solid var(--border-200);
  border-radius: var(--radius-md);
  font-size: 12.5px;
  line-height: 18px;
  color: var(--ink-600);
}

/* Добавлено при переносе: заголовок формы «Записаться» в строке чипов (в выгрузке был inline-стиль) */

.ig-mt__panel-title--form {
  margin: 0;
  font-size: 17px;
}

/* Добавлено при переносе: кнопки действий в карточке - на всю ширину панели, как в выгрузке */

.ig-mt__actions form {
  display: contents;
}

/* Добавлено при переносе (очередь 5): объект записи, открытый пользователю, - ссылка на таблицу объекта */

a.ig-mt__panel-title {
  color: inherit;
}

a.ig-mt__panel-title:hover {
  color: var(--brand-700);
  text-decoration: underline;
}

/* Added 26.09.2026 (Nikita's remarks): form buttons right under the note, band label above
   the 16:00 tiles, draggable queue tiles for the director, reorder bar, notice tiles */

.ig-mt__panel .ig-sideform__actions {
  margin-top: 0;
}

.ig-mt__meetingfields {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.ig-mt__band .ig-mt__band-label {
  top: -24px;
  z-index: 3;
}

.ig-mt__event--queue {
  cursor: grab;
  touch-action: none;
  user-select: none;
  transition: top 0.18s ease;
}

/* Свободные слоты и ждущие заявки сдвигаются вместе с очередью */
.ig-mt__event--shift {
  transition: top 0.18s ease;
}

.ig-mt__event--dragging {
  cursor: grabbing;
  z-index: 5;
  box-shadow: var(--shadow-md);
  transition: none;
  opacity: 0.95;
}

.ig-mt__reorder {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #f1d998;
  border-radius: 10px;
  background: var(--warning-50);
  color: #4a3000;
  font-size: 12.5px;
  line-height: 17px;
}

.ig-mt__reorder[hidden] {
  display: none;
}

.ig-mt__reorder-text {
  flex: 1 1 auto;
}

.ig-mt__siderow--notice {
  border-color: var(--brand-200);
  background: var(--brand-50);
}
