/* === Mendoza Datepicker Styling === */
#ui-datepicker-div {
  font-family: inherit;
  border: 1px solid #8B1A1A;
  border-radius: 4px;
  background: #fff;
  padding: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  width: 270px !important;
}

/* Header */
.ui-datepicker-header {
  background: #fff !important;
  border: none !important;
  border-bottom: 1px solid #e0e0e0 !important;
  border-radius: 0 !important;
  padding: 10px 8px !important;
}

/* Monat/Jahr Selects */
.ui-datepicker-title select {
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: #222;
  cursor: pointer;
}

/* Prev/Next Buttons */
.ui-datepicker-prev, .ui-datepicker-next {
  background: none !important;
  border: none !important;
  cursor: pointer;
  top: 8px !important;
}
.ui-datepicker-prev { left: 4px !important; }
.ui-datepicker-next { right: 4px !important; }
.ui-datepicker-prev span, .ui-datepicker-next span {
  background-image: none !important;
  color: #8B1A1A;
  font-style: normal;
  font-size: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ui-datepicker-prev span::after { content: "←"; font-size: 14px; color: #8B1A1A; }
.ui-datepicker-next span::after { content: "→"; font-size: 14px; color: #8B1A1A; }

/* Tabelle */
.ui-datepicker-calendar {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}
.ui-datepicker-calendar thead th {
  color: #999;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  padding: 8px 4px 4px;
  text-transform: uppercase;
}
.ui-datepicker-calendar td {
  text-align: center;
  padding: 2px;
}
.ui-datepicker-calendar td a,
.ui-datepicker-calendar td span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: auto;
  border-radius: 50%;
  font-size: 13px;
  color: #222;
  text-decoration: none;
  border: none !important;
  background: transparent !important;
  transition: background 0.15s;
}
.ui-datepicker-calendar td a:hover {
  background: #f5e6e6 !important;
  color: #8B1A1A;
}

/* Heutiger Tag */
.ui-datepicker-today a,
.ui-datepicker-today a.ui-state-highlight {
  background: #f5e6e6 !important;
  color: #8B1A1A !important;
  font-weight: 700;
}

/* Ausgewählter Tag */
.ui-state-active,
.ui-datepicker-calendar td a.ui-state-active {
  background: #8B1A1A !important;
  color: #fff !important;
  font-weight: 700;
}

/* Gesperrte / nicht wählbare Tage */
.ui-datepicker-unselectable span,
.ui-state-disabled span,
.ui-datepicker-week-end span,
.ui-datepicker-week-end a {
  color: #ccc !important;
  cursor: default !important;
  background: transparent !important;
}
.ui-datepicker-week-end {
  pointer-events: none;
  opacity: 0.4;
}
.ui-datepicker-unselectable,
.ui-state-disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* Button-Leiste */
.ui-datepicker-buttonpane {
  background: #f9f9f9;
  border-top: 1px solid #e0e0e0 !important;
  padding: 8px !important;
  display: flex;
  justify-content: space-between;
}
.ui-datepicker-buttonpane button {
  background: transparent;
  border: 1px solid #8B1A1A;
  color: #8B1A1A;
  border-radius: 3px;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
  font-weight: 600;
}
.ui-datepicker-buttonpane button.ui-datepicker-close {
  background: #8B1A1A;
  color: #fff;
}
.ui-datepicker-buttonpane button:hover {
  opacity: 0.85;
}