.pisell-reservation-page {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 480px;
  box-sizing: border-box;
  position: relative;
}

.pisell-reservation-schedule-start-merge {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pisell-reservation-body-view-segmented.ant-segmented {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 2px;

  .ant-segmented-item {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
  }

  .ant-segmented-item-selected {
    color: #141824;
  }
}

/**
 * 低代码前缀：选中项与「编辑平面图」同为 antd primary（colorPrimary / --color-primary）
 * thumb 同步主色，避免与 item 背景错位
 */
.pisell-reservation-body-view-segmented.pisell-lowcode-segmented {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 2px;

  .pisell-lowcode-segmented-item {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
  }

  .pisell-lowcode-segmented-item-selected {
    background: var(--color-primary,
    var(--ant-color-primary, #5d3f9f)) !important;
    color: var(--ant-color-text-light-solid, #fff) !important;
    font-weight: 600;
  }

  .pisell-lowcode-segmented-thumb {
    background: var(--color-primary,
    var(--ant-color-primary, #5d3f9f)) !important;
  }
}

/** 深色顶栏右侧：编辑/完成编辑（与新建并列） */
.pisell-reservation-topbar-edit-btn {
  min-width: 0;
  height: auto;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 10px;
  border: none;
  box-shadow: 0 8px 20px rgba(22, 119, 255, 0.35),
  0 2px 8px rgba(16, 24, 40, 0.2);

  &:hover,
  &:focus {
    box-shadow: 0 10px 24px rgba(22, 119, 255, 0.4),
    0 2px 8px rgba(16, 24, 40, 0.2);
  }
}

.pisell-reservation-new-btn {
  padding: 10px 18px;
  font-size: 15px;
}

.pisell-reservation-page-title {
  font-size: 17px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 42vw;
}

.pisell-reservation-new-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: #141824;
  background: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;

  &:hover {
    background: #f0f0f0;
  }

  &:active {
    transform: scale(0.98);
  }
}

.pisell-reservation-schedule-end-slots {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/** 日期右侧：状态说明 + 切换动作按钮 */
.pisell-reservation-follow-time-slot {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  min-width: 0;
}

.pisell-reservation-follow-time-hint {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.pisell-reservation-follow-time-hint--off-current {
  color: #ff6b6b;
}

.pisell-reservation-follow-time-hint--at-current {
  color: #3ddc84;
}

/** 与顶栏 #141824 同系：参考「Current」胶囊 — 细边、开启时左侧绿点 + 白字 */
.pisell-reservation-follow-current-btn {
  flex-shrink: 0;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s,
  border-color 0.2s,
  color 0.2s,
  box-shadow 0.2s;

  &:hover {
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.32);
  }

  &:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.45);
    outline-offset: 2px;
  }

  &--on {
    color: #fff;
    background: rgba(0, 0, 0, 0.22);
    border-color: rgba(255, 255, 255, 0.28);

    &:hover {
      color: #fff;
      background: rgba(0, 0, 0, 0.28);
      border-color: rgba(255, 255, 255, 0.36);
    }
  }

  /** 非当前时间：与 --off-current 提示同色 */

  &--go-current {
    color: #ff6b6b;

    &:hover {
      color: #ff8787;
    }
  }

}

.pisell-reservation-follow-current-btn-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.pisell-reservation-follow-current-btn-label {
  white-space: nowrap;
}

.pisell-reservation-fab {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  pointer-events: auto;
}

.pisell-reservation-new-modal-placeholder {
  margin: 0px -24px;
}

.pisell-reservation-new-modal-route-list {
  display: flex;
  flex-direction: column;
}

.pisell-reservation-new-modal-route-item {
  width: 100%;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: none;
  border-top: 1px solid #f0f0f0;
  background: #fff;
  cursor: pointer;
  transition: background-color 0.2s;
  text-align: left;

  &:hover {
    background: #fafafa;
  }
}

.pisell-reservation-new-modal-route-name {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  color: #141824;
}

.pisell-reservation-new-modal-route-arrow {
  flex-shrink: 0;
  margin-left: 16px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.pisell-reservation-new-modal-empty {
  margin: 24px;
  font-size: 28px;
  line-height: 1.5;
  color: #8c8c8c;
}

.pisell-reservation-new-modal-wrap {
  .pisell-lowcode-modal-body {
    border-radius: 0 0 12px 12px;
  }
}

/**
 * 场控画布资源：左下固定「抽屉」——统计与操作在标题栏内；
 * 收起时仅标题栏高度，展开时同一标题栏仍在上方，下列表区增高。
 */
.pisell-reservation-hud-dock {
  position: fixed;
  z-index: 1000;
  /** 左缘留白（略偏右，避免贴边） */
  left: 96px;
  bottom: 0;
  /** 原 min(92vw, 720px) 缩小 1/4 → min(69vw, 540px) */
  width: min(69vw, 540px);
  max-width: calc(100vw - 96px - 24px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.14);
  overflow: hidden;

  &--expanded {
    height: calc(100vh - 88px);
    max-height: calc(100vh - 88px);
  }
}

.pisell-reservation-hud-dock-header {
  flex-shrink: 0;
  padding: 12px 16px 10px;
  border-bottom: 1px solid transparent;
}

.pisell-reservation-hud-dock--expanded .pisell-reservation-hud-dock-header {
  border-bottom-color: #f0f0f0;
}

.pisell-reservation-hud-dock-title-inner {
  width: 100%;
  border: none;
  outline: none;
  box-shadow: none;
  border-radius: 0;
  background: transparent;
}

.pisell-reservation-hud-dock-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-top: 8px;
  overflow: hidden;
  animation: pisell-reservation-hud-dock-body-enter 0.28s ease-out;
}

/** 展开时列表区从标题栏下方略偏上滑入（与自下而上相反，避免「反了」的体感） */
@keyframes pisell-reservation-hud-dock-body-enter {
  from {
    opacity: 0.92;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pisell-reservation-hud-dock-record-board {
  flex: 1;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pisell-reservation-hud-dock-record-board .pisell-record-board-root {
  flex: 1;
  min-height: 0;
}

.pisell-reservation-hud-dock-record-board .pisell-record-board-scroll-body {
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

/** HUD 内嵌表：壳层工具栏与表格再贴紧一点 */
.pisell-reservation-hud-dock .pisell-shell-frame-toolbar {
  margin-bottom: 4px;
}