.cattle-semen-card.content-card {
	overflow: hidden;
	padding: 0 0 40px;
}

.cattle-semen-card .content-head {
	align-items: center;
	margin: 0;
	padding: 34px 38px 24px;
	border-bottom: 1px solid #e0ebe5;
}

.cattle-semen-card .portal-body {
	padding: 26px 38px 0;
}

.semen-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
}

.semen-caption {
	color: #64748b;
	font-size: 14px;
	line-height: 1.5;
}

.semen-search {
	display: flex;
	gap: 8px;
	align-items: center;
	justify-content: flex-end;
	margin: 0;
}

.semen-search label {
	color: #334155;
	font-weight: 700;
}

.semen-search input {
	width: 180px;
	height: 38px;
	padding: 0 11px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	background: #fff;
	color: #1f2937;
	box-sizing: border-box;
}

.semen-search input:focus {
	border-color: #22814f;
	box-shadow: 0 0 0 3px rgba(34, 129, 79, 0.12);
	outline: 0;
}

.semen-search button,
.semen-search a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 38px;
	padding: 0 14px;
	border: 1px solid #22814f;
	border-radius: 6px;
	background: #22814f;
	color: #fff;
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
	box-sizing: border-box;
}

.semen-search a {
	border-color: #cbd5e1;
	background: #fff;
	color: #334155;
}

.semen-table-wrap {
	overflow-x: auto;
	border: 1px solid #d8e3ee;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.semen-table {
	width: 100%;
	min-width: 0;
	border-collapse: separate;
	border-spacing: 0;
	table-layout: fixed;
}

.semen-table caption {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.semen-table th {
	padding: 10px 5px;
	border-right: 1px solid #dfe8f1;
	border-bottom: 1px solid #d4e1ec;
	background: #f4f9f5;
	color: #17442b;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.32;
	text-align: center;
	word-break: keep-all;
}

.semen-table th span {
	color: #4f6f5c;
	font-size: 11px;
	font-weight: 700;
}

.semen-table td {
	padding: 10px 5px;
	border-right: 1px solid #edf2f7;
	border-bottom: 1px solid #edf2f7;
	color: #334155;
	font-size: 13px;
	line-height: 1.45;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.semen-table th:last-child,
.semen-table td:last-child {
	border-right: 0;
}

.semen-table tbody tr:last-child td {
	border-bottom: 0;
}

.semen-table tbody tr:nth-child(even) {
	background: #fbfdff;
}

.semen-table tbody tr:hover {
	background: #f7fbf8;
}

.semen-table .kpn {
	color: #163b25;
	font-weight: 900;
}

.semen-table .stock {
	color: #c62828;
	font-weight: 900;
}

.semen-table .price {
	font-weight: 700;
}

.semen-empty {
	padding: 34px 16px;
	color: #64748b;
	text-align: center;
}

.semen-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 22px;
	padding: 0;
	text-align: center;
}

.semen-pagination ul {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.semen-pagination li {
	display: inline-flex;
	margin: 0;
	padding: 0;
	list-style: none;
}

.semen-pagination a,
.semen-pagination strong,
.semen-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 11px;
	border: 1px solid #cbd9d1;
	border-radius: 7px;
	background: #fff;
	color: #294338;
	font-size: 14px;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
	box-sizing: border-box;
	transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.semen-pagination a:hover,
.semen-pagination a:focus {
	border-color: #22814f;
	background: #f1faf5;
	color: #12683a;
	box-shadow: 0 0 0 3px rgba(34, 129, 79, .12);
	outline: 0;
}

.semen-pagination .current a,
.semen-pagination .current strong,
.semen-pagination strong.current {
	border-color: #22814f;
	background: #22814f;
	color: #fff;
	box-shadow: 0 6px 14px rgba(34, 129, 79, .18);
	cursor: default;
}

.semen-pagination img {
	display: none;
}

.semen-pagination a:has(img[alt="처음"])::before {
	content: "처음";
}

.semen-pagination a:has(img[alt="이전"])::before {
	content: "이전";
}

.semen-pagination a:has(img[alt="다음"])::before {
	content: "다음";
}

.semen-pagination a:has(img[alt="마지막"])::before {
	content: "마지막";
}

.semen-pagination a:has(img) {
	min-width: auto;
	padding: 0 13px;
	font-size: 13px;
}

@media (max-width: 900px) {
	.cattle-semen-card.content-card {
		padding-bottom: 32px;
	}

	.cattle-semen-card .content-head {
		padding: 28px 22px 20px;
	}

	.cattle-semen-card .portal-body {
		padding: 22px 22px 0;
	}

	.semen-toolbar {
		align-items: stretch;
		flex-direction: column;
	}

	.semen-search {
		justify-content: flex-start;
		flex-wrap: wrap;
	}

	.semen-search input {
		flex: 1 1 180px;
		width: auto;
	}

	.semen-table {
		min-width: 1080px;
		table-layout: auto;
	}

	.semen-table th {
		padding: 13px 9px;
		font-size: 13px;
		white-space: nowrap;
	}

	.semen-table th span {
		font-size: 12px;
	}

	.semen-table td {
		padding: 11px 9px;
	}

	.semen-pagination {
		flex-wrap: wrap;
		gap: 5px;
	}

	.semen-pagination ul {
		flex-wrap: wrap;
		gap: 5px;
	}

	.semen-pagination a,
	.semen-pagination strong,
	.semen-pagination span {
		min-width: 34px;
		height: 34px;
		padding: 0 10px;
		font-size: 13px;
	}
}

@media (max-width: 640px) {
	.cattle-semen-card .portal-body {
		padding-right: 8px;
		padding-left: 8px;
	}
}
