.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 20px;
}

.cell {
    border: 1px solid #ccc;
    text-align: center;
    font-size: 0.9rem;
    padding: 2px 4px;
    line-height: 1.2;
    min-height: auto;
	cursor: default;
}

.user .cell {
    cursor: pointer;
}

.cell.unknown,
.cell.both-unknown {
    background-color: #f0f0f0;
}

.cell.available,
.cell.both-available {
    background-color: #90ee90;
}

.cell.office,
.cell.both-office {
    background-color: #90c5ff;
}

.cell.unavailable,
.cell.both-unavailable {
    background-color: #ffcccb;
}

.cell.disabled {
    background-color: #e0e0e0;
    pointer-events: none;
    opacity: 0.5;
    font-style: italic;
}

.cell.available-mismatch {
    background-color: #d7c8e1; /* light grey */
    color: #fff;
}

.cell.mismatch {
    background-color: #ccc; /* dark grey */
    color: #fff;
}


.cell.not-available {
    background-color: #e0e0e0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 20px;
}

.day-header {
    font-weight: bold;
    text-align: center;
    padding: 6px;
    background-color: #f8f9fa;
    border-bottom: 2px solid #ccc;
}

.nav-tabs .nav-link {
    font-weight: bold;
}

.tab-content {
    margin-top: 10px;
}

.legend-box {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
    border: 1px solid #ccc;
}

.legend-row {
    display: flex;
    gap: 5px 20px;
    flex-wrap: wrap;
    align-items: center;
    font-size: 0.95rem;
}

.legend-row div {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-row .countdown {
	color: var(--bs-danger);
}


.legend-box.available {
    background-color: #90ee90;
}

.legend-box.office {
    background-color: #90c5ff;
}


.legend-box.unavailable {
    background-color: #ffcccb;
}

.legend-box.unknown {
    background-color: #f0f0f0;
}

.legend-box.disabled {
    background-color: #d3d3d3;
}

.legend-box.available-mismatch {
    background-color: #d7c8e1; /* light grey */
}
.legend-box.mismatch {
    background-color: #ccc; /* dark grey */
}

