/* DAŇOVÁ STRATÉGIA – VLASTNÝ KALENDÁR */

.dp-calendar-field {
  position: relative;
}

.dp-calendar-field > .dp-input {
  cursor: pointer;
  padding-right: 42px;
}

.dp-calendar-field > .dp-input:focus {
  border-color: #e28be6;
  box-shadow: 0 0 0 3px rgba(226,139,230,.17);
}

.dp-calendar-icon {
  position: absolute;
  right: 13px;
  top: 14px;
  pointer-events: none;
  color: #e8a0f3;
}

.dp-calendar-popup {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  width: min(330px, 90vw);
  padding: 16px;
  background: #15183f;
  border: 1px solid rgba(190,150,255,.45);
  border-radius: 15px;
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
  z-index: 1000;
  color: #f5f1ff;
}

.dp-calendar-popup[hidden] {
  display: none !important;
}

.dp-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}

.dp-calendar-header button {
  border: 1px solid rgba(190,150,255,.3);
  border-radius: 8px;
  background: #10183f;
  color: #fff;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.dp-calendar-month {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dp-calendar-month select,
.dp-calendar-month input {
  background: #10183f;
  border: 1px solid rgba(190,150,255,.3);
  border-radius: 7px;
  color: #fff;
  height: 32px;
  padding: 0 5px;
  min-width: 0;
}

.dp-calendar-month select {
  width: 112px;
}

.dp-calendar-month input {
  width: 65px;
}

.dp-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0,1fr));
  gap: 4px;
}

.dp-calendar-weekday {
  text-align: center;
  color: #b9b6d8;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 0;
}

.dp-calendar-day {
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #f5f1ff;
  min-height: 36px;
  padding: 0;
  cursor: pointer;
  font-size: 13px;
}

.dp-calendar-day:hover:not(:disabled) {
  background: rgba(231,90,201,.2);
  border-color: #e75ac9;
}

.dp-calendar-day.is-selected {
  background: linear-gradient(110deg,#e75ac9,#8350ed);
  color: white;
  font-weight: 800;
}

.dp-calendar-day.is-today:not(.is-selected) {
  border-color: #e75ac9;
  font-weight: 800;
}

.dp-calendar-day:disabled {
  opacity: .25;
  cursor: not-allowed;
}

.dp-calendar-empty {
  min-height: 36px;
}

.dp-calendar-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.dp-calendar-footer button {
  border: 1px solid rgba(190,150,255,.35);
  border-radius: 8px;
  background: rgba(133,80,237,.15);
  color: #f5f1ff;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 12px;
}

@media (max-width: 570px) {
  .dp-calendar-popup {
    width: min(330px, calc(100vw - 55px));
  }
}
