/* NMars Notice Board — front-end styles */

.nnb-notice-board-wrap {
	width: 100%;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.nnb-table-scroll {
	width: 100%;
	overflow-x: auto;
}

.nnb-notice-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
}

.nnb-notice-table thead th {
	background: #2f2f91;
	color: #fff;
	text-align: left;
	padding: 16px 20px;
	font-size: 16px;
	font-weight: 700;
}

.nnb-notice-table td {
	padding: 16px 20px;
	font-size: 15px;
	color: #333;
	border-bottom: 1px solid #eceef2;
	vertical-align: middle;
}

.nnb-notice-table tbody tr:nth-child(even) {
	background: #f7f8fb;
}

.nnb-notice-table tbody tr:hover {
	background: #eef2fa;
}

.nnb-col-date {
	white-space: nowrap;
	width: 12%;
}

.nnb-col-preview {
	white-space: nowrap;
	width: 12%;
	text-align: left;
}

.nnb-download-btn {
	display: inline-block;
	padding: 8px 22px;
	background: #eef0f4 !important;
	color: #1c2b45 !important;
	font-weight: 700;
	font-size: 14px;
	border-radius: 999px;
	text-decoration: none;
	border: 1px solid #dfe3ea;
	transition: background .15s ease, color .15s ease;
}

.nnb-download-btn:hover {
	background: #274a8f !important;
	color: #fff !important;
	border-color: #274a8f !important;
}

.nnb-no-file {
	color: #9aa0ab;
}

.nnb-empty {
	padding: 20px;
	color: #666;
}

.nnb-pagination {
	margin-top: 18px;
}

.nnb-pagination ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 0;
	margin: 0;
}

.nnb-pagination li {
	display: inline-block;
}

.nnb-pagination a,
.nnb-pagination span {
	display: inline-block;
	padding: 8px 14px;
	border-radius: 6px;
	border: 1px solid #dfe3ea;
	color: #274a8f;
	text-decoration: none;
	font-size: 14px;
}

.nnb-pagination a:hover {
	background: #274a8f;
	color: #fff;
	border-color: #274a8f;
}

.nnb-pagination span.current {
	background: #274a8f;
	color: #fff;
	border-color: #274a8f;
	font-weight: 700;
}

@media (max-width: 640px) {
	.nnb-notice-table thead {
		display: none;
	}

	.nnb-notice-table,
	.nnb-notice-table tbody,
	.nnb-notice-table tr,
	.nnb-notice-table td {
		display: block;
		width: 100%;
	}

	.nnb-notice-table tr {
		margin-bottom: 12px;
		border: 1px solid #eceef2;
		border-radius: 8px;
		overflow: hidden;
	}

	.nnb-notice-table td {
		border-bottom: none;
		padding: 10px 16px;
	}

	.nnb-col-date::before {
		content: "Date: ";
		font-weight: 700;
		color: #274a8f;
	}

	.nnb-col-title::before {
		content: "Title: ";
		font-weight: 700;
		color: #274a8f;
		display: block;
		margin-bottom: 4px;
	}
}
