/* Open-class rescheduling: scoped to the existing dialog; no workflow changes. */
#teacher-app #modalOcMove { padding: 24px; }
#teacher-app #modalOcMove[hidden] { display: none !important; }
#teacher-app #modalOcMove .modal-panel {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  width: min(680px, 100%);
  max-width: 680px !important;
  max-height: calc(100dvh - 48px);
  padding: 20px 24px;
  margin: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  border: 1px solid #e0e6ef;
  border-radius: 16px;
  background: #fff;
  color: #334155;
  box-shadow: 0 24px 80px #18274626, 0 4px 16px #1827460d;
}
#teacher-app #modalOcMove .modal-head,
#teacher-app #modalOcMove .form-hint,
#teacher-app #modalOcMove .modal-actions,
#teacher-app #modalOcMove .duty-publish-field:has(#ocMoveSlot, #ocMoveLocation, #ocMoveReason) {
  grid-column: 1 / -1;
}
#teacher-app #modalOcMove .modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 0 0 14px;
  border-bottom: 1px solid #edf0f6;
}
#teacher-app #modalOcMove .modal-head h2 {
  margin: 0;
  color: #26334a;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}
#teacher-app #modalOcMove .form-hint {
  margin: 0;
  padding: 0;
  color: #63738a;
  font-size: 13px;
  line-height: 1.7;
}
#teacher-app #modalOcMove #ocMoveFrom {
  padding: 8px 14px;
  border: 1px solid #e1e7f8;
  border-radius: 9px;
  background: #f3f5fd;
  color: #465bc7;
  font-weight: 500;
}
#teacher-app #modalOcMove #ocMoveFrom + .form-hint { margin-top: -6px; }
#teacher-app #modalOcMove .duty-publish-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  min-width: 0;
  margin: 0 !important;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}
#teacher-app #modalOcMove .duty-publish-field > span { display: block; }
#teacher-app #modalOcMove :is(input, select, textarea) {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #d5deeb;
  border-radius: 8px;
  background-color: #fff;
  color: #334155;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  box-shadow: none;
  transition: border-color .15s, box-shadow .15s;
  color-scheme: light;
}
#teacher-app #modalOcMove select {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2363738a' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
  cursor: pointer;
  text-overflow: ellipsis;
}
#teacher-app #modalOcMove textarea { min-height: 72px; resize: vertical; }
#teacher-app #modalOcMove :is(input, textarea)::placeholder { color: #94a0b2; opacity: 1; }
#teacher-app #modalOcMove :is(input, select, textarea):hover { border-color: #aab8d2; }
#teacher-app #modalOcMove :is(input, select, textarea):focus {
  outline: none;
  border-color: #586bd2;
  box-shadow: 0 0 0 3px #586bd21a;
}
#teacher-app #modalOcMove .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 2px 0 0 !important;
  padding: 14px 0 0;
  border-top: 1px solid #edf0f6;
}
#teacher-app #modalOcMove .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid #d5deeb;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  box-shadow: none;
}
#teacher-app #modalOcMove .btn-ghost { background: #fff; color: #475569; }
#teacher-app #modalOcMove .btn-ghost:hover { background: #f7f9fc; border-color: #aab8d2; }
#teacher-app #modalOcMove .btn-primary { background: #485bd2; border-color: #485bd2; color: #fff; }
#teacher-app #modalOcMove .btn-primary:hover { background: #3d4fbc; border-color: #3d4fbc; }
#teacher-app #modalOcMove .btn:focus-visible { outline: 3px solid #aab8f5; outline-offset: 3px; }
#teacher-app #modalOcMove .btn:disabled { opacity: .55; cursor: not-allowed; }
#teacher-app #modalOcMove .modal-head .btn { min-height: 34px; padding: 6px 12px; font-size: 12px; }
@media (max-width: 600px) {
  #teacher-app #modalOcMove { padding: 12px; }
  #teacher-app #modalOcMove .modal-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    max-height: calc(100dvh - 24px);
    padding: 20px 18px;
    border-radius: 14px;
  }
  #teacher-app #modalOcMove .modal-head h2 { font-size: 18px; }
  #teacher-app #modalOcMove :is(input, select, textarea) { font-size: 16px; }
  #teacher-app #modalOcMove .modal-actions { flex-wrap: nowrap; }
  #teacher-app #modalOcMove .modal-actions .btn { flex: 1; padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  #teacher-app #modalOcMove :is(input, select, textarea) { transition: none; }
}
