// Stili del calendario
.calendar {
  font-size: 12px;
  padding: 15px;
  border: 1px solid #e6e6e6;
  color: #333333;
  background-color: #ffffff;
}

.calendar-popup {
  position: absolute;
  z-index: 100;
  display: none;
  min-width: 160px;
  padding: 5px 0;
  margin: 2px 0 0;
  -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  background-clip: padding-box;
}

.calendar-header {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
}

.view-days .calendar-header {
  grid-template-columns: 1fr 5fr 1fr;
}

.view-years .calendar-header {
  grid-template-columns: 1fr 3fr 1fr;
}

.view-months .calendar-cell,
.view-years .calendar-cell {
  padding: 6px 20px;
}

.calendar-cell {
  padding: 5px 10px;
  line-height: 1.5;
  font-size: 12px;
  background-color: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 3px;
  cursor: pointer;
  -webkit-transition: all 0.1s;
  -o-transition: all 0.1s;
  transition: all 0.1s;
}

.calendar-cell:not(.disabled):not(.selected):hover {
  background-color: #e6e6e6;
}

#monthYear {
  font-weight: bold;
  flex-grow: 1;
  text-align: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}

.calendar-grid-7 {
  grid-template-columns: repeat(7, 1fr);
}

.calendar-grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

.calendar-grid .day {
  font-size: 11px;
  line-height: 1.5;
  font-weight: bold;
}

.calendar-grid .selected {
  background-color: #1797be;
  color: white;
}

.calendar-grid .selected:hover {
  background-color: #137d9f;
  border-color: #0e5d76;
}

.calendar-grid .other-month {
  color: #909fa7;
}

.calendar-grid .today {
  color: #23b7e5;
}

.calendar-grid:not(:has(.selected)) .today {
  background-color: #e6e6e6;
}

.calendar-grid .disabled {
  color: #989898;
  background-color: #edf1f2;
  border-color: #dde6e9;
  cursor: not-allowed;
}

.calendar-actions {
  padding: 10px 9px 2px;
  display: flex;
}

.calendar-actions button {
  font-size: 12px;
  padding: 5px 10px;
  line-height: 1.5;
  background-color: #eb690b;
  color: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 3px;
  cursor: pointer;
}

.calendar-actions button#todayBtn {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.calendar-actions button#clearBtn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left-width: 0;
  background-color: #fff;
  color: #eb690b;
}

.calendar-actions button#confirmBtn {
  margin-left: auto;
}

// Stili del datepicker
.datepicker-wrapper {
  position: relative;
  display: inline-flex;
}

.datepicker-input {
  padding: 5px;
  height: 22px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-right-width: 0;
  background: #fff;
  font-size: 12px;
  width: 100%;
}

.datepicker-input::placeholder {
  color: #909fa7;
}

.datepicker-input:focus {
  border-color: #66afe9;
  outline: 0;
}

.datepicker-input.input-error {
  border-color: #f05050;
  background-color: #fff0f0;
}

.datepicker-icon {
  display: inline-flex;
  align-items: center;
  font-size: 13.5px;
  padding: 0 10px;
  box-sizing: border-box;
  height: 22px;
  background: #fff;
  border: 1px solid #ccc;
  border-bottom-right-radius: 5px;
  border-top-right-radius: 5px;
  cursor: pointer;
}

.datepicker-icon:active,
.datepicker-icon:hover,
.datepicker-icon:focus {
  background-color: #e6e6e6;
  border-color: #cbcbcb;
}

.datepicker-icon:hover:active {
  background-color: #d4d4d4;
  border-color: #aaaaaa;
}
