@charset "UTF-8";

:root {
	--notice-accent: var(--sv-accent, #2f6f52);
	--notice-ink: var(--sv-ink, #202622);
	--notice-muted: var(--sv-muted, #68716b);
	--notice-line: var(--sv-line, #e2e7e3);
	--notice-paper: var(--sv-paper, #ffffff);
	--notice-paper-alt: var(--sv-paper-alt, #f6f8f6);
	--notice-danger: var(--sv-berry, #b94c5b);
}

.notice-page {
	width: min(100%, 960px);
	margin: 0 auto 28px;
}

.notice-shell {
	color: var(--notice-ink);
}

.notice-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 14px;
	padding: 2px 2px 0;
}

.notice-heading h1 {
	margin: 0;
	font-size: 24px;
	font-weight: 780;
	line-height: 1.3;
}

.notice-heading p {
	margin: 3px 0 0;
	color: var(--notice-muted);
	font-size: 12px;
}

.notice-actions,
.notice-row-actions {
	display: flex;
	align-items: center;
	gap: 7px;
}

.notice-action,
.notice-row-actions button {
	min-height: 32px;
	padding: 0 11px;
	color: var(--notice-muted);
	background: transparent;
	border: 1px solid var(--notice-line);
	border-radius: 5px;
	font-size: 12px;
}

.notice-action:hover,
.notice-row-actions button:hover {
	color: var(--notice-accent);
	background: var(--notice-paper-alt);
	border-color: #cbd8d0;
}

.notice-action-danger:hover,
.notice-row-actions .deletebtn:hover {
	color: var(--notice-danger);
	background: #fff7f7;
	border-color: #e9c7cc;
}

.notice-tabs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-bottom: 10px;
	padding: 4px;
	background: #edf2ee;
	border-radius: 6px;
}

.notice-tabs a {
	display: flex;
	min-width: 0;
	min-height: 38px;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 0 8px;
	color: #59635d;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 650;
}

.notice-tabs a:hover {
	color: var(--notice-ink);
	background: rgba(255, 255, 255, 0.56);
}

.notice-tabs a.active {
	color: #234c3d;
	background: var(--notice-paper);
	box-shadow: 0 1px 3px rgba(28, 54, 42, 0.08);
}

.notice-tabs small {
	min-width: 20px;
	padding: 1px 5px;
	color: inherit;
	background: rgba(47, 111, 82, 0.09);
	border-radius: 4px;
	font-size: 10px;
	font-variant-numeric: tabular-nums;
	text-align: center;
}

.noticelist {
	margin: 0;
	background: var(--notice-paper);
	border: 1px solid var(--notice-line);
	border-radius: 6px;
}

.noticelist > .notice {
	position: relative;
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr);
	gap: 12px;
	padding: 15px 16px;
}

.noticelist > .notice::before {
	position: absolute;
	top: 19px;
	left: 8px;
	width: 5px;
	height: 5px;
	background: var(--notice-danger);
	border-radius: 50%;
	content: "";
}

.noticelist > .notice.isread::before {
	display: none;
}

.noticelist > .notice + .notice {
	border-top: 1px solid var(--notice-line);
}

.notice-avatar-wrap,
.notice-avatar {
	width: 42px;
	height: 42px;
}

.notice-avatar {
	display: block;
	object-fit: cover;
	background: var(--notice-paper-alt);
	border: 1px solid var(--notice-line);
	border-radius: 5px;
}

.notice-content {
	min-width: 0;
}

.notice-meta {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 5px;
}

.notice-meta > div:first-child {
	display: flex;
	min-width: 0;
	align-items: baseline;
	gap: 8px;
}

.notice-meta strong {
	color: var(--notice-ink);
	font-size: 13px;
	font-weight: 720;
}

.notice-meta span,
.notice-read-label {
	color: var(--notice-muted);
	font-size: 11px;
}

.notice-row-actions button {
	min-height: 27px;
	padding: 0 8px;
	font-size: 11px;
}

.notice .message {
	color: #424b45;
	font-size: 13px;
	line-height: 1.72;
}

.notice .message a {
	color: var(--notice-accent);
}

.notice .message .comment-info,
.notice .message .single-comment {
	display: inline;
}

.notice .message .quote-comment {
	margin-top: 5px;
	color: var(--notice-muted);
}

.notice .message .reply-comment {
	margin-top: 7px;
	padding: 8px 10px;
	background: var(--notice-paper-alt);
	border-left: 3px solid #b8cbc0;
	border-radius: 0 4px 4px 0;
}

.notice-empty {
	display: flex;
	min-height: 190px;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 4px;
	color: var(--notice-ink);
	text-align: center;
}

.notice-empty span {
	color: var(--notice-muted);
	font-size: 12px;
}

.notice-pagination {
	margin-top: 14px;
}

.sv-notice-nav {
	position: relative;
	list-style: none;
}

.sv-notice-nav-badge {
	position: absolute;
	top: 4px;
	right: 3px;
	min-width: 15px;
	height: 15px;
	padding: 0 4px;
	color: #fff;
	background: #c94d5d;
	border: 2px solid var(--sv-header, #123b3d);
	border-radius: 8px;
	font-size: 9px;
	font-weight: 700;
	line-height: 11px;
	text-align: center;
}

.notice-unread-badge {
	background-color: var(--notice-danger) !important;
}

@media (max-width: 575.98px) {
	.notice-page {
		width: calc(100% + 4px);
		margin-left: -2px;
	}

	.notice-heading {
		align-items: flex-start;
		margin-bottom: 10px;
	}

	.notice-heading h1 {
		font-size: 20px;
	}

	.notice-actions {
		gap: 4px;
	}

	.notice-action {
		min-height: 30px;
		padding: 0 8px;
		font-size: 11px;
	}

	.notice-tabs {
		gap: 2px;
		padding: 3px;
	}

	.notice-tabs a {
		min-height: 36px;
		gap: 3px;
		padding: 0 3px;
		font-size: 12px;
	}

	.notice-tabs small {
		min-width: 17px;
		padding-right: 3px;
		padding-left: 3px;
	}

	.noticelist > .notice {
		grid-template-columns: 36px minmax(0, 1fr);
		gap: 9px;
		padding: 13px 10px;
	}

	.noticelist > .notice::before {
		top: 17px;
		left: 4px;
	}

	.notice-avatar-wrap,
	.notice-avatar {
		width: 36px;
		height: 36px;
	}

	.notice-meta {
		gap: 6px;
	}

	.notice-row-actions {
		gap: 3px;
	}

	.notice-row-actions button {
		min-height: 25px;
		padding: 0 5px;
	}

	.notice-read-label {
		display: none;
	}
}
