.calendar-day-cell {
    cursor: pointer;
    transition: background-color 0.15s;
    /* Use flex layout so the inner .day-content can grow/shrink reliably
       and provide a stable scroll container without relying on the
       parent's explicit height. Keep min-height:0 so flex children can
       shrink correctly. Positioning kept for the "+ Add Count" pill. */
    display: flex;
    flex-direction: column;
    min-height: 0;
    position: relative;
}

.calendar-day-cell:hover {
    background-color: rgba(0,0,0,0.02);
}

/* Floating "+ Add Count" pill - pinned to the top-right of the cell.
   Hidden by default; revealed on cell hover. Always lives in the same
   fixed spot regardless of whether the cell has schedules or not, and
   overlays any ScheduleCards via z-index. */
.add-count-btn {
    position: absolute !important;
    top: 6px !important;
    right: 8px !important;
    z-index: 20 !important;
    display: none;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border: 0;
    border-radius: 6px;
    background-color: var(--count-btn-bg, #2F68A8);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.hover-show-btn:hover .add-count-btn {
    display: inline-flex !important;
}

.add-count-btn:hover {
    background-color: var(--count-btn-hover-bg, #265687);
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.16);
}

.add-count-btn .add-count-plus {
    font-size: 0.9rem;
    line-height: 1;
    font-weight: 700;
}

/* Day content - shows the limited schedule cards */
.day-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

/* Reserve space for the "view more" footer below the schedule cards */
.day-footer {
    flex-shrink: 0;
    margin-top: 4px;
}

/* Ensure no scrollbar appears anywhere inside calendar cells */
.calendar-day-cell,
.calendar-day-cell * {
    scrollbar-width: none; /* Firefox */
}

.calendar-day-cell::-webkit-scrollbar,
.calendar-day-cell *::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}