/* 抽屉与编辑表单样式（新增时段、编辑时段、节假日抽屉）。 */
.add-slot-drawer-wrap,
.day-edit-drawer-wrap,
.holiday-drawer-wrap {
  .ant-drawer-content-wrapper {
    box-shadow:
      0 8px 24px rgb(0 0 0 / 8%),
      0 2px 6px rgb(0 0 0 / 4%);
  }

  .ant-drawer-header {
    min-height: 56px;
    padding: 0 24px;
    border-bottom: 1px solid #f0f0f0;
  }

  .ant-drawer-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f1f1f;
  }

  .ant-drawer-close {
    margin-inline: auto 0;
    color: #999;
    border-radius: 6px;
    transition: all 0.2s ease;
  }

  .ant-drawer-close:hover {
    color: #1f1f1f;
    background: #f5f5f5;
  }

  .ant-drawer-body {
    padding: 20px 24px;
  }

  .ant-drawer-footer {
    padding: 14px 24px;
    border-top: 1px solid #f0f0f0;
  }
}

.add-slot-drawer-wrap .drawer-footer,
.day-edit-drawer-wrap .drawer-footer,
.holiday-drawer-wrap .drawer-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.add-slot-drawer-wrap .drawer-footer .ant-btn,
.day-edit-drawer-wrap .drawer-footer .ant-btn,
.holiday-drawer-wrap .drawer-footer .ant-btn {
  min-width: 96px;
  height: 40px;
  padding: 0 24px;
  font-size: 15px;
  border-radius: 10px;
}

.add-slot-drawer-wrap .form-block {
  margin-bottom: 16px;
}

.add-slot-drawer-wrap .form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #1f1f1f;
}

.add-slot-drawer-wrap .form-label.required::before {
  margin-right: 3px;
  color: #f5222d;
  content: '*';
}

.add-slot-drawer-wrap .type-pill-group {
  display: flex;
  gap: 8px;
}

.add-slot-drawer-wrap .type-pill {
  padding: 6px 16px;
  font-size: 13px;
  color: #4b5563;
  cursor: pointer;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.add-slot-drawer-wrap .type-pill.active.tp-biz {
  font-weight: 600;
  color: #389e0d;
  background: #f6ffed;
  border-color: #b7eb8f;
}

.add-slot-drawer-wrap .type-pill.active.tp-del {
  font-weight: 600;
  color: #1890ff;
  background: #e6f7ff;
  border-color: #91d5ff;
}

.add-slot-drawer-wrap .type-pill.active.tp-pick {
  font-weight: 600;
  color: #d46b08;
  background: #fff7e6;
  border-color: #ffd591;
}

.add-slot-drawer-wrap .day-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.add-slot-drawer-wrap .day-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 34px;
  font-size: 12px;
  color: #4b5563;
  cursor: pointer;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.add-slot-drawer-wrap .day-pill.selected {
  color: #fff;
  background: #1677ff;
  border-color: #1677ff;
}

.add-slot-drawer-wrap .quick-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.add-slot-drawer-wrap .quick-btn {
  padding: 0;
  font-size: 11px;
  color: #1677ff;
  cursor: pointer;
  background: transparent;
  border: none;
}

.add-slot-drawer-wrap .quick-btn:hover {
  text-decoration: underline;
}

.add-slot-drawer-wrap .time-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 12px;
}

.add-slot-drawer-wrap .native-picker,
.day-edit-drawer-wrap .native-picker,
.holiday-drawer-wrap .native-picker {
  width: 100%;
}

.add-slot-drawer-wrap .native-picker.ant-picker,
.day-edit-drawer-wrap .native-picker.ant-picker,
.holiday-drawer-wrap .native-picker.ant-picker {
  box-sizing: border-box;
  width: 100%;
  height: 34px;
  padding: 0 11px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.add-slot-drawer-wrap .native-picker.ant-picker:hover,
.day-edit-drawer-wrap .native-picker.ant-picker:hover,
.holiday-drawer-wrap .native-picker.ant-picker:hover {
  border-color: #1677ff;
}

.add-slot-drawer-wrap .native-picker.ant-picker-focused,
.day-edit-drawer-wrap .native-picker.ant-picker-focused,
.holiday-drawer-wrap .native-picker.ant-picker-focused {
  border-color: #1677ff;
  box-shadow: 0 0 0 3px rgb(22 119 255 / 10%);
}

.add-slot-drawer-wrap .native-picker .ant-picker-input > input,
.day-edit-drawer-wrap .native-picker .ant-picker-input > input,
.holiday-drawer-wrap .native-picker .ant-picker-input > input {
  font-size: 13px;
  color: #1f1f1f;
  cursor: pointer;
}

.add-slot-drawer-wrap .native-picker .ant-picker-suffix,
.day-edit-drawer-wrap .native-picker .ant-picker-suffix,
.holiday-drawer-wrap .native-picker .ant-picker-suffix {
  color: #9ca3af;
}

.add-slot-drawer-wrap .native-input {
  box-sizing: border-box;
  width: 100%;
  height: 34px;
  padding: 0 11px;
  font-size: 13px;
  color: #1f1f1f;
  outline: none;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.add-slot-drawer-wrap .native-input:focus {
  border-color: #1677ff;
  box-shadow: 0 0 0 3px rgb(22 119 255 / 10%);
}

.add-slot-drawer-wrap .native-textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 8px 11px;
  font-size: 13px;
  color: #1f1f1f;
  resize: vertical;
  outline: none;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.add-slot-drawer-wrap .native-textarea:focus {
  border-color: #1677ff;
  box-shadow: 0 0 0 3px rgb(22 119 255 / 10%);
}

.add-slot-drawer-wrap .capacity-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.add-slot-drawer-wrap .capacity-input {
  max-width: 120px;
}

.add-slot-drawer-wrap .capacity-hint {
  margin-top: 4px;
  font-size: 11px;
  color: #999;
}

.day-edit-drawer-wrap .day-open-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.day-edit-drawer-wrap .day-open-text {
  font-size: 13px;
  color: #1f1f1f;
}

.day-edit-drawer-wrap .day-open-toggle {
  position: relative;
  width: 40px;
  height: 22px;
  margin: 0;
  cursor: pointer;
}

.day-edit-drawer-wrap .day-open-toggle input {
  width: 0;
  height: 0;
  opacity: 0;
}

.day-edit-drawer-wrap .day-open-slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 11px;
  transition: all 0.2s ease;
}

.day-edit-drawer-wrap .day-open-slider::before {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  content: '';
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgb(0 0 0 / 15%);
  transition: transform 0.2s ease;
}

.day-edit-drawer-wrap .day-open-toggle input:checked + .day-open-slider {
  background: #1677ff;
}

.day-edit-drawer-wrap
  .day-open-toggle
  input:checked
  + .day-open-slider::before {
  transform: translateX(18px);
}

.day-edit-drawer-wrap .day-close-hint {
  font-size: 12px;
  color: #ef4444;
}

.day-edit-drawer-wrap .slot-edit-list.disabled {
  pointer-events: none;
  opacity: 0.45;
}

.day-edit-drawer-wrap .slot-edit-card {
  padding: 12px 14px;
  margin-bottom: 10px;
  background: #f8f9fb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.day-edit-drawer-wrap .slot-edit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.day-edit-drawer-wrap .slot-type-pill-group {
  display: flex;
  gap: 8px;
}

.day-edit-drawer-wrap .slot-type-pill {
  padding: 4px 10px;
  font-size: 12px;
  color: #4b5563;
  cursor: pointer;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.day-edit-drawer-wrap .slot-type-pill.active.tp-biz {
  font-weight: 600;
  color: #389e0d;
  background: #f6ffed;
  border-color: #b7eb8f;
}

.day-edit-drawer-wrap .slot-type-pill.active.tp-del {
  font-weight: 600;
  color: #1890ff;
  background: #e6f7ff;
  border-color: #91d5ff;
}

.day-edit-drawer-wrap .slot-type-pill.active.tp-pick {
  font-weight: 600;
  color: #d46b08;
  background: #fff7e6;
  border-color: #ffd591;
}

.day-edit-drawer-wrap .slot-remove-btn {
  padding: 0;
  font-size: 12px;
  color: #ef4444;
  cursor: pointer;
  background: transparent;
  border: none;
}

.day-edit-drawer-wrap .slot-remove-btn:hover {
  text-decoration: underline;
}

.day-edit-drawer-wrap .time-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 12px;
}

.day-edit-drawer-wrap .form-block {
  margin-bottom: 12px;
}

.day-edit-drawer-wrap .form-sub-label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  color: #9ca3af;
}

.day-edit-drawer-wrap .native-input {
  box-sizing: border-box;
  width: 100%;
  height: 34px;
  padding: 0 11px;
  font-size: 13px;
  color: #1f1f1f;
  outline: none;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.day-edit-drawer-wrap .native-input:focus {
  border-color: #1677ff;
  box-shadow: 0 0 0 3px rgb(22 119 255 / 10%);
}

.day-edit-drawer-wrap .capacity-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.day-edit-drawer-wrap .delivery-capacity-block {
  margin-top: 2px;
}

.day-edit-drawer-wrap .capacity-title {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
}

.day-edit-drawer-wrap .capacity-input {
  max-width: 120px;
}

.day-edit-drawer-wrap .capacity-unit {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
}

.day-edit-drawer-wrap .capacity-tip {
  margin-top: 6px;
  font-size: 11px;
  color: #94a3b8;
}

.day-edit-drawer-wrap .add-dashed-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  margin-top: 4px;
  font-size: 13px;
  color: #9ca3af;
  cursor: pointer;
  background: transparent;
  border: 1px dashed #d1d5db;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.day-edit-drawer-wrap .add-dashed-btn:hover {
  color: #1677ff;
  border-color: #1677ff;
}

.holiday-drawer-wrap .form-block {
  margin-bottom: 16px;
}

.holiday-drawer-wrap .form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #1f1f1f;
}

.holiday-drawer-wrap .form-label.required::before {
  margin-right: 3px;
  color: #f5222d;
  content: '*';
}

.holiday-drawer-wrap .type-pill-group {
  display: flex;
  gap: 8px;
}

.holiday-drawer-wrap .type-pill {
  padding: 6px 16px;
  font-size: 13px;
  color: #4b5563;
  cursor: pointer;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.holiday-drawer-wrap .type-pill.active.ht-closed {
  font-weight: 600;
  color: #ef4444;
  background: #fff2f0;
  border-color: #ffa39e;
}

.holiday-drawer-wrap .type-pill.active.ht-special {
  font-weight: 600;
  color: #f59e0b;
  background: #fff7e6;
  border-color: #ffd591;
}

.holiday-drawer-wrap .date-mode-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.holiday-drawer-wrap .date-mode-pill {
  padding: 4px 12px;
  font-size: 12px;
  color: #4b5563;
  cursor: pointer;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.holiday-drawer-wrap .date-mode-pill.active {
  color: #fff;
  background: #1677ff;
  border-color: #1677ff;
}

.holiday-drawer-wrap .date-range-row {
  display: block;
}

.holiday-drawer-wrap .native-range-picker.ant-picker {
  width: 100%;
}

.holiday-drawer-wrap .time-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 12px;
}

.holiday-drawer-wrap .form-sub-label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  color: #9ca3af;
}

.holiday-drawer-wrap .native-input {
  box-sizing: border-box;
  width: 100%;
  height: 34px;
  padding: 0 11px;
  font-size: 13px;
  color: #1f1f1f;
  outline: none;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.holiday-drawer-wrap .native-input:focus {
  border-color: #1677ff;
  box-shadow: 0 0 0 3px rgb(22 119 255 / 10%);
}

.holiday-drawer-wrap .native-textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 8px 11px;
  font-size: 13px;
  color: #1f1f1f;
  resize: vertical;
  outline: none;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.holiday-drawer-wrap .native-textarea:focus {
  border-color: #1677ff;
  box-shadow: 0 0 0 3px rgb(22 119 255 / 10%);
}

.holiday-drawer-wrap .time-hint {
  margin-top: 4px;
  font-size: 11px;
  color: #999;
}

.page-hours {
  .type-pill-group {
    display: flex;
    gap: 8px;
  }

  .type-pill {
    padding: 6px 16px;
    font-size: 13px;
    color: #4b5563;
    cursor: pointer;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
  }

  .type-pill.active.tp-biz {
    font-weight: 600;
    color: #389e0d;
    background: #f6ffed;
    border-color: #b7eb8f;
  }

  .type-pill.active.tp-del {
    font-weight: 600;
    color: #1890ff;
    background: #e6f7ff;
    border-color: #91d5ff;
  }

  .type-pill.active.tp-pick {
    font-weight: 600;
    color: #d46b08;
    background: #fff7e6;
    border-color: #ffd591;
  }

  .type-pill.active.ht-closed {
    font-weight: 600;
    color: #ef4444;
    background: #fff2f0;
    border-color: #ffa39e;
  }

  .type-pill.active.ht-special {
    font-weight: 600;
    color: #f59e0b;
    background: #fff7e6;
    border-color: #ffd591;
  }

  .day-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .day-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 34px;
    font-size: 12px;
    color: #4b5563;
    cursor: pointer;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
  }

  .day-pill.selected {
    color: #fff;
    background: #1677ff;
    border-color: #1677ff;
  }

  .quick-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
  }

  .quick-btn {
    padding: 0;
    font-size: 12px;
    color: #1677ff;
    cursor: pointer;
    background: transparent;
    border: none;
  }

  .quick-btn:hover {
    text-decoration: underline;
  }

  .time-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
  }

  .capacity-row {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .capacity-input {
    max-width: 150px;
  }

  .drawer-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
  }

  .day-open-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
  }

  .day-close-hint {
    font-size: 12px;
    color: #ef4444;
  }

  .slot-edit-list.disabled {
    pointer-events: none;
    opacity: 0.5;
  }

  .slot-edit-card {
    padding: 12px 14px;
    margin-bottom: 10px;
    background: #f8f9fb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
  }

  .slot-edit-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
  }

  .slot-type-select {
    width: 140px;
  }

  .add-dashed-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    background: transparent;
    border: 1px dashed #d1d5db;
    border-radius: 10px;
  }

  .add-dashed-btn:hover {
    color: #1677ff;
    border-color: #1677ff;
  }

  .date-mode-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
  }

  .date-mode-pill {
    padding: 4px 12px;
    font-size: 12px;
    color: #4b5563;
    cursor: pointer;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
  }

  .date-mode-pill.active {
    color: #fff;
    background: #1677ff;
    border-color: #1677ff;
  }

  .date-range-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: center;
  }
}
