/* ============================================================
 * 区间日历组件样式（range-datepicker.js 配套）
 * 蓝色主题：选中日主蓝实底、区间浅蓝、周六蓝字
 * ============================================================ */

/* -------- 输入框 -------- */
.rdp-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 208px;
  height: 38px;
  padding: 0 10px 0 12px;
  background: var(--panel, #fff);
  border: 1px solid var(--border, #dde3ec);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: border-color .15s, box-shadow .15s;
}
.rdp-field:hover { border-color: #5c8aff; }
.rdp-field:focus-visible,
.rdp-field.is-open { border-color: #2f6bff; box-shadow: 0 0 0 3px rgba(47, 107, 255, .15); outline: none; }
.rdp-field.is-disabled { opacity: .55; cursor: not-allowed; background: var(--bg-soft, #f5f7fa); }

.rdp-field__text {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text, #1f2937);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
}
.rdp-v.is-empty { color: var(--text-muted, #9aa4b2); }
.rdp-sep { color: var(--text-muted, #9aa4b2); font-size: 12px; }
.rdp-icon { flex: none; color: var(--text-muted, #9aa4b2); }
.rdp-field:hover .rdp-icon { color: #2f6bff; }

/* -------- 弹出面板 -------- */
.rdp-panel {
  position: fixed;
  z-index: 3000;
  width: 540px;
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(17, 24, 39, .14);
  padding: 12px 14px 8px;
}
.rdp-panel__head { padding: 2px 4px 8px; }
.rdp-panel__title { font-size: 12.5px; color: #2f6bff; font-weight: 600; font-variant-numeric: tabular-nums; }
.rdp-panel__body { position: relative; display: flex; gap: 18px; }
.rdp-panel__body::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 30px;
  bottom: 4px;
  width: 1px;
  background: #f1f3f7;
}

.rdp-month { flex: 1 1 0; min-width: 0; }
.rdp-month__title { text-align: center; font-size: 14px; font-weight: 650; color: #1f2937; padding: 2px 0 8px; }
.rdp-week { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 2px; }
.rdp-week span { text-align: center; font-size: 12px; color: #6b7280; line-height: 26px; }

.rdp-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
.rdp-day {
  position: relative;
  height: 34px;
  margin: 0 auto;
  width: 34px;
  border: none;
  background: none;
  border-radius: 50%;
  font-size: 13px;
  color: #1f2937;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .1s, color .1s;
}
.rdp-day.is-dim { color: #c9cfd8; cursor: default; }
.rdp-day.is-out { color: #d3d8e0; cursor: not-allowed; }
.rdp-day:not(.is-out):not(.is-dim):hover { background: #eef3ff; }
.rdp-day.is-inrange { background: #eef3ff; border-radius: 0; }
.rdp-day.is-selected {
  background: #2f6bff;
  color: #fff;
  font-weight: 650;
  border-radius: 50%;
}
.rdp-day.is-today:not(.is-selected) { box-shadow: inset 0 0 0 1.5px #2f6bff; }

/* -------- 左右翻月 -------- */
.rdp-nav {
  position: absolute;
  top: 4px;
  width: 26px;
  height: 26px;
  border: none;
  background: none;
  border-radius: 6px;
  color: #9aa4b2;
  font-size: 18px;
  line-height: 24px;
  cursor: pointer;
  z-index: 1;
}
.rdp-nav:hover { background: #f5f7fa; color: #2f6bff; }
.rdp-nav--prev { left: -6px; }
.rdp-nav--next { right: -6px; }

/* -------- 底部清除 -------- */
.rdp-panel__foot { display: flex; justify-content: flex-end; padding: 6px 2px 2px; }
.rdp-clear {
  border: none;
  background: none;
  color: #9aa4b2;
  font-size: 12.5px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
.rdp-clear:hover { color: #2f6bff; background: #eef3ff; }

/* -------- 管理后台 filter-item 场景的宽度适配 -------- */
.filter-item .rdp-field { min-width: 208px; }
