/* WD Datepicker – lightweight */
.wd-datepop {
  position: absolute;
  z-index: 9999;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .06);
  width: 33%;
  font: 14px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.wd-datepop * {
  box-sizing: border-box;
}

.wd-dp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-bottom: 1px solid #f1f5f9;
}

.wd-dp-nav {
  display: flex;
  gap: 6px;
}

.wd-dp-month-switch {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wd-dp-month-switch select {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 4px 10px !important;
  background: #fff;
  font: inherit;
  min-width: fit-content;
}

.wd-dp-btn {
  appearance: none;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 8px;
  padding: 4px 8px;
  cursor: pointer;
}

.wd-dp-btn:hover {
  background: #f8fafc;
}

.wd-dp-title {
  font-weight: 600;
}

.wd-dp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 8px;
}

.wd-dp-cell {
  text-align: center;
  padding: 6px 0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
}

.wd-dp-dow {
  color: #64748b;
  font-size: 12px;
  cursor: default;
}

.wd-dp-day {
  border: 1px solid transparent;
}

.wd-dp-day:hover {
  background: #f1f5f9;
}

.wd-dp-out {
  color: #cbd5e1;
}

.wd-dp-today {
  border-color: #60a5fa;
}

.wd-dp-selected {
  background: #2563eb;
  color: #fff;
}

.wd-dp-day {
  background: transparent;
  border: 1px solid transparent;
  padding: 6px 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
}

.wd-dp-day:focus {
  outline: 2px solid rgba(37, 99, 235, .5);
  outline-offset: 1px;
}
