/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

html {
  font-size: 15px;
  background-color: white;
}

@view-transition {
  navigation: auto;
}

.tooltip {
  z-index: 9999;
  background-color: black;
  width: max-content;
  max-width: 50vw;
  color: white;
  border-radius: 4px;
  padding: 8px;
  font-size: .75rem;
  line-height: 1rem;
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: 0 4px 6px -1px #1018281a, 0 2px 4px -2px #1018281a
}

.tooltip.open {
  display: block
}

.absence-date-range calendar-month {
  --color-accent: #e86545;
  --color-text-on-accent: #ffffff;
}

.absence-date-range :is(calendar-range, calendar-date)::part(months) {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.absence-date-range :is(calendar-range, calendar-date)::part(button) {
  border: 1px solid #e7e5e4;
  border-radius: .5rem;
  background: white;
  padding: .35rem .65rem;
  color: #44403c;
}

.absence-date-range calendar-month::part(button) {
  border-radius: .375rem;
}

.absence-date-range calendar-month::part(range-inner) {
  border-radius: 0;
  background-color: #f8c7bc;
  color: #9f2d17;
}

.absence-date-range calendar-month::part(range-start) {
  border-start-end-radius: 0;
  border-end-end-radius: 0;
}

.absence-date-range calendar-month::part(range-end) {
  border-start-start-radius: 0;
  border-end-start-radius: 0;
}

.absence-date-range calendar-month::part(range-start range-end) {
  border-radius: .375rem;
}

.absence-date-range calendar-month::part(free-day) {
  background-color: #f5f5f4;
  color: #a8a29e;
}

.absence-date-range calendar-month::part(special-day) {
  background-color: #fef3c7;
  color: #92400e;
  font-weight: 600;
}

.absence-date-range calendar-month::part(blackout-period) {
  background-color: #fee2e2;
  color: #b91c1c;
  font-weight: 600;
}

.absence-date-range calendar-month::part(absence-day) {
  background-color: #a8a29e;
  color: #ffffff;
  text-decoration: line-through;
}

.tooltip .arrow {
  background-color: black;
  z-index: -1;
  pointer-events: none;
  width: 8px;
  height: 8px;
  position: absolute;
  transform: rotate(45deg)
}
