/* 请假 / 调课 / 补课 */
.leave-stats {
  margin-bottom: 16px;
}
.leave-card {
  overflow: hidden;
}
.leave-list {
  display: flex;
  flex-direction: column;
}
.leave-item {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}
.leave-item:last-child {
  border-bottom: 0;
}
.leave-item:hover {
  background: #fcfcff;
}
.leave-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.leave-item-title {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 13px;
}
.leave-item-title strong {
  font-weight: 650;
}
.leave-item-time {
  font-size: 10px;
  color: var(--muted-2);
  white-space: nowrap;
}
.leave-item-body {
  display: flex;
  gap: 18px;
  margin-top: 11px;
  align-items: flex-start;
}
.leave-item-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.leave-session {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
}
.leave-session-label {
  flex: none;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--surface-mute);
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 600;
}
.leave-session strong {
  font-weight: 600;
  color: var(--ink);
}
.leave-session span:last-child {
  font-size: 10.5px;
  color: var(--muted);
}
.leave-session.is-target .leave-session-label {
  background: var(--green-soft);
  color: #0b7a5c;
}
.leave-reason {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  font-size: 11.5px;
  color: var(--ink-2);
  line-height: 1.6;
}
.leave-reason .icon {
  margin-top: 1px;
  color: var(--muted);
}
.leave-note {
  font-size: 10.5px;
  color: var(--muted);
  padding: 7px 9px;
  border-radius: 8px;
  background: var(--surface-soft);
}
.leave-actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 280px;
}
.leave-makeup-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.leave-option-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.leave-option {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
}
.leave-option:hover {
  border-color: #c9cdf2;
  background: #fcfcff;
}
.leave-option input {
  margin-top: 3px;
  accent-color: var(--primary);
}
.leave-option-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.leave-option-main strong {
  font-size: 12.5px;
  font-weight: 600;
}
.leave-option-main span {
  font-size: 10.5px;
  color: var(--muted);
}
@media (max-width: 720px) {
  .leave-item {
    padding: 14px;
  }
  .leave-item-body {
    flex-direction: column;
    gap: 10px;
  }
  .leave-actions {
    max-width: none;
    width: 100%;
    justify-content: flex-start;
  }
  .leave-actions .btn {
    flex: 1;
    min-width: 84px;
  }
}
