.calendar {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
	max-width: 600px;
	margin-top: 20px;
}

/** calendar_day wrapper to allow transparent holiday div below */
.calendar-day-wrapper {
	display: flex;
	flex-direction: column;
	align-items: stretch; /* makes red bar full width */
	width: 100%;
}

.calendar-day, .calendar-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 8px;
	border: 1px solid #ddd;
	text-align: center;
}

.calendar-header {
	background: #f3f3f3;
	font-weight: bold;
}

.calendar-day.highlight {
	background-color: #ffc107;
	font-weight: bold;
}

.calendar-day.empty {
	background-color: #f9f9f9;
	border: none;
}

.calendar-day a {
	text-decoration: none;
	color: inherit;
	display: block;
}

.calendar-day ul {
	list-style-type: none;
	margin: 4px 0;
	padding-left: 0;
}

.calendar-day li {
	list-style-type: none !important; /* ensures bullets removed for all li */
	padding-left: 0 !important;
	margin: 2px 0;
	white-space: nowrap; /* prevent time label breaking */
}

.calendar-day.today {
	border: 2px solid #007bff;
	border-radius: 6px;
}

.calendar-day.holiday {
	border: 2px solid red;
	border-radius: 4px;
	padding: 4px;
}

.holiday_text {
	color: red;
	font-size: 0.8em;
	margin-top: 4px;
}


.other-month {
	opacity: 0.6;
}


/* modal */
.modal-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 999;
	display: none;
}

.modal-container {
	position: fixed;
	top: 5%;
	left: 50%;
	transform: translateX(-50%);
	width: 90%;
	max-width: 800px;
	height: 90%;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
	z-index: 1000;
	display: none;
	flex-direction: column;
	overflow: hidden;
}

.modal-container iframe {
	border: none;
	width: 100%;
	flex: 1;
}

.modal-close {
	text-align: right;
	padding: 8px;
	background: #f3f3f3;
	border-bottom: 1px solid #ccc;
}

.modal-close button {
	background: transparent;
	border: none;
	font-size: 20px;
	cursor: pointer;
}
