/* 座位表：在班/请假状态标记 + 教室行列布局调整（2026-11-18） */

.seat .st {
  margin-top: 3px;
  font-size: 10px;
  line-height: 15px;
  padding: 0 6px;
  border-radius: 8px;
  white-space: nowrap;
}
.seat .st.in { background: #e8f7ee; color: #1f9d55; }
.seat .st.leave { background: #fff1e0; color: #d98800; }
.seat .st.out { background: #fdecea; color: #d4453a; }

.seat.onleave { background: #fffaf2; border-color: #f3c98b; }
.seat.onleave .nm { color: #9a6516; }
.seat.onleave.highlight { background: var(--el-color-primary); border-color: var(--el-color-primary); }
.seat.onleave.highlight .nm,
.seat.onleave.highlight .pos { color: #fff; }
.seat.onleave.highlight .st { background: rgba(255, 255, 255, 0.24); color: #fff; }

.seat.outleave { background: #fdecea; border-color: #f0a8a0; }
.seat.outleave .nm { color: #9a2a22; }
.seat.outleave.highlight { background: #d4453a; border-color: #d4453a; }
.seat.outleave.highlight .nm,
.seat.outleave.highlight .pos { color: #fff; }
.seat.outleave.highlight .st { background: rgba(255, 255, 255, 0.24); color: #fff; }

.seat-layout-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 4px 0 12px;
  padding: 10px 12px;
  background: #f6f8fd;
  border: 1px solid #e2e8f5;
  border-radius: 10px;
}
.seat-layout-bar .lb { font-weight: 700; color: #22325a; }
.seat-layout-bar .k { font-size: 12.5px; color: #6b7a99; }
.seat-layout-bar .tip { font-size: 12px; color: #93a0b8; }

.seat-hidden-tip {
  margin: 0 0 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff7e6;
  border: 1px solid #f3d9a4;
  color: #a26a00;
  font-size: 12.5px;
}

/* 手机端座位格状态 */
.m-seat-cell .st {
  margin-top: 1px;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  font-size: 9px;
  line-height: 13px;
  padding: 0 4px;
  border-radius: 7px;
}
.m-seat-cell .st.in { background: #e8f7ee; color: #1f9d55; }
.m-seat-cell .st.leave { background: #fff1e0; color: #d98800; }
.m-seat-cell .st.out { background: #fdecea; color: #d4453a; }
.m-seat-cell.onleave { background: #fffaf2; border: 1px solid #f3c98b; color: #9a6516; }
.m-seat-cell.onleave.filled { font-weight: 600; }
.m-seat-cell.outleave { background: #fdecea; border: 1px solid #f0a8a0; color: #9a2a22; }
.m-seat-cell.outleave.filled { font-weight: 600; }

@media (max-width: 480px) {
  .seat-layout-bar .tip { display: none; }
  .seat .st { font-size: 9px; line-height: 14px; padding: 0 5px; }
}
