

.calendar-grid {
    display: grid;
    text-align: center;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    box-sizing: border-box;
  }
  
  /* Size variations */
  .calendar-grid--small {
    width: 400px;
    font-size: 10px;
  }
  
  .calendar-grid--medium {
    width: 600px;
    font-size: 14px;
  }
  
  .calendar-grid--large {
    width: 800px;
    font-size: 16px;
  }
  


/* the one month calendar div*/
.calendar-month {
    width: 100%;
    margin: 0;
    border: .5px solid #ccc;
    border-radius: 5px;
    padding: 5px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    /* overflow: visible; */
}
  

/* title bar (eg "Mar 2025") for a calendar month*/
.calendar-month__title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 2px;
    padding: 0 0 0 0;
}

/* container for the grid of days in the calendar month */
.calendar-month__days { 
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    width: 100%;
    gap: .5px;
}

.calendar-day,
.calendar-day--empty {
    aspect-ratio: 1/1;
    width: 100%;
    /* background: hwb(74 75% 6%); */
    justify-content: center;
    border-radius: 20%;
}

/* weekday styles */
.calendar-day[data-weekday="0"],
.calendar-day[data-weekday="6"]{
    color: #888;
}

/* weekend styles */
.calendar-day[data-weekday]:not([data-weekday="0"]):not([data-weekday="6"]) span {
    font-weight: bold;
}

/* styling for days onsite */
.calendar-day[data-onsite="true"] { background: #d1e7ff; }



.attendance-bar {
    height: 4px;
    margin-top: auto;
    background-color: #eee;
    border-radius: 1px;
    overflow: hidden;
    width: 100%;
}

.attendance-fill {
    height: 100%;
    background-color: #4caf50;
    transition: width 0.3s ease-in-out;
    position: relative;

}

.attendance-fill::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s;
    z-index: 10;
}

.attendance-fill:hover::after {
    opacity: 1;
}


