:root {
  --widgety-primary-color: #162f4d;
  --widgety-secondary-color: #158250;
  --widgety-neutral-color: #fbf8f2;
}

/* daterange text input */
/* #dateRangeInput {
  min-width: 300px;
  border-color: black;
} */

/* Calendar Popup Container */
#calendarPopup {
  position: absolute;
  top: 0;
  z-index: 9999;
  background-color: white;
  border: 1px solid #ccc;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  padding: 10px;
  flex-flow: column;
  display: none;
  cursor: pointer;
  /* max-width: 45rem; */
  width: 100%;
}

.select-container {
  display: flex;
  gap: 10px;
  justify-content: space-evenly;
  flex-direction: row-reverse;
}

.select-container select {
  padding: 8px;
  margin-bottom: 4px;
  /* min-width: 135px; */
  /* max-width: 13rem; */
  color: var(--widgety-primary-color) !important;
  border-color: var(--widgety-primary-color) !important;
  border-radius: 0 !important;
}

#calendarContainer .button-container {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 0;
}

#calendarContainer .button-container button {
  width: 100%;
  background-color: var(--widgety-secondary-color);
  font-size: 14px;
  color: white;
  padding: 4px 6px;
  border: none;
  cursor: pointer;
  margin-block: 5px;
  border-radius: 0;
  min-width: 100px;

  &:hover {
    opacity: 0.9;
  }
}

#applyDates {
  width: 100%;
  background-color: var(--widgety-secondary-color);
  color: white;
  font-size: 16px;
  padding: 8px 12px;
  border: none;
  cursor: pointer;
  margin-block: 5px;
  border-radius: 0;
  min-width: 100px;

  &:hover {
    opacity: 0.9;
  }
}

/* Calendar Table */
.calendar {
  width: 100%;
  border-collapse: collapse;
}

.calendar th,
.calendar td {
  padding: 4px;
  text-align: center;
  border: 1px solid #eee;
}

.calendar th {
  font-weight: bold;
}

tbody td {
  cursor: pointer;
}

/* Selected Dates */
.selected {
  background-color: var(--widgety-primary-color) !important;
  color: white !important;
}

/* Today's Date */
.today {
  font-weight: bold;
  background-color: beige;
}

.hover {
  cursor: pointer;
  color: #999;
  background-color: #e0f2ff;
}

/* Other Month Days */
.other-month {
  color: #ccc;
}

.past-day {
  color: #999;
  pointer-events: none;
}

/* Month/Year Header */
.calendar h4 {
  font-size: 16px !important;
  line-height: 1;
  margin: 0;
  padding: 0;
}
