/**
 * Same-day conflicts toolbar and schedule issues panel
 */
/* Same-day student conflicts — toolbar button + center panel */
.lms-sched-conflicts-btn {
  position: relative;
  border-color: rgba(244, 63, 94, 0.35);
  background: rgba(136, 19, 55, 0.22);
  color: #fecdd3;
}
.lms-sched-conflicts-btn:hover {
  background: rgba(159, 18, 57, 0.38);
  border-color: rgba(251, 113, 133, 0.55);
  color: #ffe4e6;
}
.lms-sched-conflicts-btn-icon {
  color: #fb7185;
}
.lms-sched-conflicts-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.375rem;
  height: 1.375rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: #fff1f2;
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 2px 8px rgba(225, 29, 72, 0.45);
}

.lms-sched-conflicts-panel {
  box-shadow:
    0 0 0 1px rgba(244, 63, 94, 0.15),
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 0 48px rgba(190, 18, 60, 0.12);
}
.lms-sched-conflicts-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.35rem 1.1rem;
  border-bottom: 1px solid rgba(244, 63, 94, 0.22);
  background:
    linear-gradient(180deg, rgba(136, 19, 55, 0.28) 0%, rgba(136, 19, 55, 0.08) 100%),
    var(--cui-surface);
}
.lms-sched-conflicts-header-main {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-width: 0;
}
.lms-sched-conflicts-header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 0.75rem;
  font-size: 1.05rem;
  color: #fda4af;
  background: rgba(190, 18, 60, 0.25);
  border: 1px solid rgba(251, 113, 133, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.lms-sched-conflicts-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
  color: #ffe4e6;
  letter-spacing: -0.01em;
}
.lms-sched-conflicts-subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--cui-text-muted);
}
.lms-sched-conflicts-subtitle strong {
  color: #fecdd3;
  font-weight: 600;
}
.lms-sched-conflicts-body {
  padding: 1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.lms-sched-conflicts-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.22);
}
.lms-sched-conflicts-day-date {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fda4af;
}
.lms-sched-conflicts-day-count {
  font-size: 0.6875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--cui-text-muted);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.1);
}
.lms-sched-conflicts-day-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.lms-sched-conflicts-card {
  border-radius: 0.75rem;
  border: 1px solid rgba(244, 63, 94, 0.22);
  background: linear-gradient(180deg, rgba(76, 5, 25, 0.35) 0%, rgba(76, 5, 25, 0.12) 100%);
  overflow: hidden;
}
.lms-sched-conflicts-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(244, 63, 94, 0.14);
  background: rgba(190, 18, 60, 0.08);
}
.lms-sched-conflicts-student {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.lms-sched-conflicts-student-dot {
  width: 0.5rem;
  height: 0.5rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: #fb7185;
  box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.2);
}
.lms-sched-conflicts-student-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff1f2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lms-sched-conflicts-session-badge {
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fecdd3;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(225, 29, 72, 0.28);
  border: 1px solid rgba(251, 113, 133, 0.35);
}
.lms-sched-conflicts-sessions {
  list-style: none;
  margin: 0;
  padding: 0.45rem 0.65rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.lms-sched-conflicts-session {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 0.8125rem;
  line-height: 1.35;
}
.lms-sched-conflicts-session-batch {
  font-weight: 600;
  color: var(--cui-text);
}
.lms-sched-conflicts-session-time {
  font-variant-numeric: tabular-nums;
  color: #fda4af;
  font-weight: 500;
}
.lms-sched-conflicts-session-teacher {
  color: var(--cui-text-muted);
}
.lms-sched-conflicts-session-teacher::before {
  content: "·";
  margin-right: 0.35rem;
  opacity: 0.6;
}

/* Schedule issues panel — section blocks */
.lms-sched-issues-section {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.lms-sched-issues-section + .lms-sched-issues-section {
  margin-top: 0.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}
.lms-sched-issues-section-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.lms-sched-issues-section-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 0.55rem;
  font-size: 0.875rem;
}
.lms-sched-issues-section--same-day .lms-sched-issues-section-icon {
  color: #fda4af;
  background: rgba(190, 18, 60, 0.22);
  border: 1px solid rgba(251, 113, 133, 0.3);
}
.lms-sched-issues-section--need-teacher .lms-sched-issues-section-icon {
  color: #fdba74;
  background: rgba(194, 65, 12, 0.22);
  border: 1px solid rgba(251, 146, 60, 0.35);
}
.lms-sched-issues-section--overbooked .lms-sched-issues-section-icon {
  color: #fcd34d;
  background: rgba(180, 83, 9, 0.22);
  border: 1px solid rgba(251, 191, 36, 0.35);
}
.lms-sched-issues-section-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--cui-text);
  letter-spacing: -0.01em;
}
.lms-sched-issues-section-desc {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--cui-text-muted);
}
.lms-sched-issues-section-desc strong {
  color: #fecdd3;
  font-weight: 600;
}
.lms-sched-issues-section-count {
  flex-shrink: 0;
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fecdd3;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(225, 29, 72, 0.25);
  border: 1px solid rgba(251, 113, 133, 0.3);
}
.lms-sched-issues-section--need-teacher .lms-sched-issues-section-count {
  color: #fed7aa;
  background: rgba(194, 65, 12, 0.28);
  border-color: rgba(251, 146, 60, 0.35);
}
.lms-sched-issues-section--overbooked .lms-sched-issues-section-count {
  color: #fde68a;
  background: rgba(180, 83, 9, 0.28);
  border-color: rgba(251, 191, 36, 0.35);
}

.lms-sched-issues-teacher-list,
.lms-sched-issues-overbook-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.lms-sched-issues-teacher-card,
.lms-sched-issues-overbook-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(251, 146, 60, 0.22);
  background: linear-gradient(180deg, rgba(67, 20, 7, 0.35) 0%, rgba(67, 20, 7, 0.1) 100%);
}
.lms-sched-issues-overbook-card {
  border-color: rgba(251, 191, 36, 0.22);
  background: linear-gradient(180deg, rgba(69, 26, 3, 0.35) 0%, rgba(69, 26, 3, 0.1) 100%);
}
.lms-sched-issues-teacher-card-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.lms-sched-issues-teacher-batch {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff7ed;
  line-height: 1.3;
}
.lms-sched-issues-teacher-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.45rem;
  font-size: 0.8125rem;
  color: var(--cui-text-muted);
}
.lms-sched-issues-teacher-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 0.45rem;
  opacity: 0.55;
}
.lms-sched-issues-teacher-time {
  font-variant-numeric: tabular-nums;
  color: #fdba74;
  font-weight: 500;
}
.lms-sched-issues-teacher-students {
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fed7aa;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(194, 65, 12, 0.3);
  border: 1px solid rgba(251, 146, 60, 0.35);
}
.lms-sched-issues-overbook-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fef3c7;
}
.lms-sched-issues-overbook-detail {
  font-size: 0.8125rem;
  color: var(--cui-text-muted);
  text-align: right;
}
