/* ===== ОКНО ОТКЛИКА ===== */
#applyModal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 1200 !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(0,0,0,0.6) !important;
}

.apply-modal-content {
  width: 600px;
  max-width: 95%;
  background: white;
  border-radius: 28px;
  padding: 24px;
  position: relative;
  box-shadow: 0 25px 45px rgba(0,0,0,0.3);
}

/* Крестик закрытия в окне отклика */
.apply-modal-content .close-modal {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 28px;
  color: #310a6b;
  background: rgba(49, 10, 107, 0.1);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.apply-modal-content .close-modal:hover {
  background: rgba(49, 10, 107, 0.2);
}

.apply-group {
  margin-bottom: 20px;
}

.apply-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  cursor: pointer;
}

.apply-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #310a6b;
}

.apply-group .filter-input,
.apply-group textarea {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  padding: 10px 14px;
  border-radius: 12px;
  width: 100%;
  box-sizing: border-box;
  font-size: 14px;
  margin-top: 8px;
}

.apply-group .filter-input::placeholder {
  color: #94a3b8;
  font-style: italic;
}

.apply-group .filter-input:focus {
  border-color: #310a6b;
  box-shadow: 0 0 0 3px rgba(49, 10, 107, 0.1);
  outline: none;
}

/* Кнопка "Отправить" внутри окна отклика */
#submitApplyBtn {
  background: #310a6b;
  color: white;
  border: none;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}
#submitApplyBtn:disabled {
  background: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
}
#submitApplyBtn:not(:disabled):hover {
  background: #4a1d8c;
}

/* ===== ТИКЕТНОЕ МОДАЛЬНОЕ ОКНО ЧАТА ===== */
#ticketChatContainer { flex: 1; display: flex; flex-direction: column; }
.ticket-chat-layout {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#ticketChatContainer .chat-container { height: 100% !important; }
#ticketChatContainer .chat-messages-modern { flex: 1 1 auto !important; }
#ticketChatContainer .chat-input-panel { flex-shrink: 0 !important; }

/* modals.css – добавляем */
.ticket-chat-layout {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#ticketChatContainer {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#ticketChatContainer .chat-container {
  height: 100% !important;
}

#ticketChatContainer .chat-messages-modern {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  min-height: 0 !important;
}

#ticketChatContainer .chat-input-panel {
  flex-shrink: 0 !important;
}