/* ===== RS Annyeong Clinic 前台門診表 ===== */

.rs-annyeongclinic-wrapper {
	width: 100%;
	max-width: 1124px;
	margin: 1em auto;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.rs-annyeongclinic-table {
	width: 100%;
	min-width: 800px;
	border-collapse: collapse;
	background: #fff;
	font-size: 16px;
	line-height: 1.6;
	table-layout: fixed;
}

.rs-annyeongclinic-table th,
.rs-annyeongclinic-table td {
	text-align: center;
	vertical-align: middle;
	padding: 8px;
	border: none;
}

/* 標題列 */
.rs-annyeongclinic-title {
	background: #ca8fa3;
	color: #fff;
	line-height: 2;
	font-family: "Lato", sans-serif;
	font-weight: 400;
	font-size: 16px;
	letter-spacing: 1px;
}

/* 一~日 表頭列 */
.rs-annyeongclinic-headrow td {
	background: rgb(202 143 163 / 30%);
	color: #111;
	font-family: "Lato", sans-serif;
	font-weight: 400;
	font-size: 16px;
}
/* 「診別」那格:底色跟一~日一樣 */
.rs-annyeongclinic-headrow .rs-annyeongclinic-corner {
	background: rgb(202 143 163 / 30%);
	color: #111;
	font-family: "Lato", sans-serif;
	font-weight: 400;
	font-size: 16px;
}

/* 早診 / 午診 / 晚診(每列最左格) */
.rs-annyeongclinic-session {
	color: #111;
	font-family: "Lato", sans-serif;
	font-weight: 400;
	font-size: 16px;
}

/* 斑馬紋(thead 之後的 tr,從 tbody 第一列開始) */
.rs-annyeongclinic-table tbody tr:nth-child(odd) {
	background: #f2f2f2;
}
.rs-annyeongclinic-table tbody tr:nth-child(odd) td {
	background: rgb(202 143 163 / 10%);
}
.rs-annyeongclinic-table tbody tr:nth-child(even) td {
	background: rgb(202 143 163 / 30%);
}

/* 列間白色分隔線(所有列之間都要有) */
.rs-annyeongclinic-table tr + tr td,
.rs-annyeongclinic-table tr + tr th {
	border-top: 2px solid #fff;
}

/* 資料列:每格等高(以兩位醫生的高度為準) */
.rs-annyeongclinic-table tbody tr {
	height: 72px;
}

/* cell 文字色 */
.rs-annyeongclinic-cell {
	color: #333;
}

/* 休診 */
.rs-annyeongclinic-cell-closed {
	color: #999;
}

/* 醫生連結 */
.rs-annyeongclinic-doctor-link {
	color: #ae4469;
	text-decoration: none;
	transition: color 0.2s ease;
}
.rs-annyeongclinic-doctor-link:hover,
.rs-annyeongclinic-doctor-link:focus {
	color: #f2a5a6;
	text-decoration: none;
}

/* 醫生純文字(無連結) */
.rs-annyeongclinic-doctor-text {
	color: #333;
}

/* ===== RWD ===== */
@media (max-width: 1024px) {
	.rs-annyeongclinic-table {
		font-size: 15px;
	}
	.rs-annyeongclinic-table tbody tr {
		height: 68px;
	}
}

@media (max-width: 768px) {
	.rs-annyeongclinic-table {
		font-size: 14px;
	}
	.rs-annyeongclinic-table th,
	.rs-annyeongclinic-table td {
		padding: 6px 4px;
	}
	.rs-annyeongclinic-title {
		font-size: 15px;
		line-height: 1.8;
	}
	.rs-annyeongclinic-table tbody tr {
		height: 64px;
	}
}

@media (max-width: 499px) {
	.rs-annyeongclinic-table {
		font-size: 14px; /* 維持最小 14px */
	}
	.rs-annyeongclinic-table th,
	.rs-annyeongclinic-table td {
		padding: 6px 3px;
	}
}
