.table-wrapper {
	overflow-x: auto;
	overflow-y: auto;
	margin: 0px 0;
}

.rwdtable {
	border-collapse: collapse;
	width: 100%;
	min-width: 800px;
}

/* 固定第一列（表頭） */
.rwdtable thead th {
	border: 1px solid #ccc;
	background-color: #7C9A99;
	color: white;
	font-weight: bold;
	position: sticky;
	top: 0;
	z-index: 10;
}

/* 固定第一欄 */
.rwdtable tbody td:first-child,
.rwdtable thead th:first-child {
	position: sticky;
	left: 0;
	background-color: #7C9A99;
	z-index: 5;
}

/* 左上角的儲存格（第一列第一欄交集） */
.rwdtable thead th:first-child {
	z-index: 15; /* 最高層級 */
}

.rwdtable th, .rwdtable td {
	border: 1px solid #ccc;
	padding: 12px 8px;
	text-align: center;
}

.time-header {
	background-color: #45a049;
	font-weight: bold;
	min-width: 120px;
	position: sticky;
	left: 0;
	z-index: 11;
}

.date-header {
	background-color: #e8f5e9;
	font-weight: bold;
	min-width: 100px;
	font-size: 14px;
}

.time-cell {
	background-color: #e8f5e9;
	font-weight: bold;
	position: sticky;
	left: 0;
	z-index: 5;
}

.available {
	background-color: #e8f5e9;
	cursor: pointer;
}

.available:hover {
	background-color: #c8e6c9;
}

.booked {
	background-color: #ffebee;
	color: #c62828;
	font-weight: bold;
}

.unavailable {
	background-color: #f5f5f5;
	color: #999;
}

.color-available {
	background-color: #e8f5e9;
}

.color-booked {
	background-color: #ffebee;
}

.color-unavailable {
	background-color: #f5f5f5;
}
