/**
 * 多预约列表：`.rc-multi-list` 滚动容器、底栏吸底 (`> .rc-next / .rc-multi-more`)、
 * 「查看全部」弹层正文 (`.rc-multi-modal-body / .rc-view-all-modal-title`) 与
 * 弹层中 compact 间距，以及 `.rc-multi-item / __info / __name / __time` 与
 * 「更多」按钮 `.rc-multi-more`。
 */

/* ==================== Multi-booking card ==================== */

.rc-multi-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 -16px;
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
}

/**
 * 多条卡：Next /「查看全部」与上方 .rc-compact 左右对齐（同 .rc-compact 的 10px 横向 padding）
 * 吸底：列表区有剩余高度时把 Next +「查看全部」压在底部
 */
.rc-multi-list > .rc-next {
  margin-top: auto;
  padding-left: 10px;
  padding-right: 10px;
}

.rc-multi-list > .rc-multi-more {
  margin-top: auto;
  padding-left: 10px;
  padding-right: 10px;
}

.rc-multi-list > .rc-next ~ .rc-multi-more {
  margin-top: 0;
}

.rc-multi-modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: min(70vh, 520px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  margin: 0 -8px;
  padding: 12px 8px 16px;
}

.rc-multi-modal-body .rc-compact {
  margin-top: 2px;
  margin-bottom: 2px;
}

.rc-multi-modal-body .rc-time-row {
  margin-top: 6px;
  margin-bottom: 6px;
}

.rc-view-all-modal-title {
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(0, 0, 0, 0.88);
}

.rc-multi-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 6px 8px;
  background: var(--c-surface-muted, #fafafa);
  border-radius: 0;
}

.rc-multi-item__info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.rc-multi-item__name {
  color: var(--c-text-1);
  font-weight: 500;
}

.rc-multi-item__time {
  color: var(--c-text-3);
  font-variant-numeric: tabular-nums;
}

.rc-multi-more {
  background: none;
  border: none;
  color: var(--c-text-3);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 0;
  text-align: center;
  font-family: inherit;
  transition: color 0.15s;
}

.rc-multi-more:hover {
  color: var(--c-text-1);
}
