/* scistaff theme: colours from www.sci.ubu.ac.th, font Kanit (OFL, assets/theme/fonts). */

@font-face {
	font-family: "Kanit";
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url("../fonts/kanit-300.woff2") format("woff2");
}
@font-face {
	font-family: "Kanit";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/kanit-400.woff2") format("woff2");
}
@font-face {
	font-family: "Kanit";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/kanit-600.woff2") format("woff2");
}

:root {
	--sci-navy: #003366;
	--sci-navy-dark: #00264d;
	--sci-blue: #3b87be;
	--sci-gold: #ffcb2b;
	--sci-bg: #f3f6fa;
	--sci-text: #1f2a37;
	--sci-muted: #5b6b7d;
	--bs-body-font-family: "Kanit", "Segoe UI", Tahoma, sans-serif;
	--bs-body-font-weight: 300;
	--bs-body-color: var(--sci-text);
	--bs-link-color-rgb: 59, 135, 190;
	--bs-link-hover-color-rgb: 0, 51, 102;
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	background: var(--sci-bg);
	line-height: 1.7;
	word-break: normal;
	overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6, b, strong, th {
	font-weight: 600;
}

.bi {
	width: 1em;
	height: 1em;
	vertical-align: -0.125em;
	flex-shrink: 0;
}

/* Header and footer */

.site-header {
	background: var(--sci-navy);
	border-bottom: 4px solid var(--sci-gold);
	color: #fff;
	padding: 0.5rem 0;
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: #fff;
	text-decoration: none;
	line-height: 1.3;
}
.brand:hover {
	color: #fff;
}
.brand img {
	width: 40px;
	height: auto;
}
.brand-th {
	display: block;
	font-size: 1.15rem;
	font-weight: 600;
}
.brand-en {
	display: block;
	font-size: 0.8rem;
	color: var(--sci-gold);
}

.btn-login {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--sci-navy);
	background: var(--sci-gold);
	border: 0;
	font-weight: 400;
}
.btn-login:hover,
.btn-login:focus-visible {
	color: var(--sci-navy);
	background: #ffd95c;
}

.site-main {
	flex: 1 0 auto;
}

.site-footer {
	background: var(--sci-navy-dark);
	color: #c9d6e4;
	font-size: 0.9rem;
	padding: 1.5rem 0;
	text-align: center;
}
.site-footer a {
	color: var(--sci-gold);
}
.footer-name {
	color: #fff;
	font-weight: 400;
}
.footer-contact {
	margin-top: 0.5rem;
}

/* Landing page: staff directory */

.hero {
	background: var(--sci-navy);
	color: #fff;
	padding: 1.5rem 0 2.75rem;
}
.hero h1 {
	font-size: 1.5rem;
	margin-bottom: 0;
}
.hero p {
	color: #c9d6e4;
	font-size: 0.95rem;
	margin-bottom: 1rem;
}

.search-box {
	position: relative;
	max-width: 640px;
}
.search-box .bi {
	position: absolute;
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
	color: var(--sci-muted);
	pointer-events: none;
}
.search-box input {
	padding: 0.75rem 1rem 0.75rem 2.75rem;
	border: 0;
	border-radius: 2rem;
	font-size: 1.05rem;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.filters {
	display: flex;
	gap: 0.5rem;
	overflow-x: auto;
	padding: 1rem 0 0.25rem;
	margin-top: -1.75rem;
	scrollbar-width: thin;
}
@media (min-width: 992px) {
	.filters {
		flex-wrap: wrap;
		overflow: visible;
	}
}
.filter-btn {
	flex: 0 0 auto;
	border: 1px solid #d5dde7;
	background: #fff;
	color: var(--sci-navy);
	border-radius: 2rem;
	padding: 0.35rem 1rem;
	font-size: 0.95rem;
	white-space: nowrap;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.filter-btn:hover {
	border-color: var(--sci-blue);
}
.filter-btn[aria-pressed="true"] {
	background: var(--sci-navy);
	border-color: var(--sci-navy);
	color: #fff;
}
.filter-btn .count {
	opacity: 0.7;
	margin-left: 0.25rem;
}

.dept-section {
	margin-top: 2rem;
}
.dept-section h2 {
	font-size: 1.2rem;
	color: var(--sci-navy);
	border-left: 4px solid var(--sci-gold);
	padding-left: 0.75rem;
	margin-bottom: 1rem;
}
.dept-section h2 .count {
	color: var(--sci-muted);
	font-weight: 300;
	font-size: 0.95rem;
}
.dept-section h2:has(+ .dept-phone) {
	margin-bottom: 0.25rem;
}
.dept-phone {
	display: flex;
	align-items: baseline;
	gap: 0.4rem;
	margin: 0 0 1rem;
	padding-left: calc(0.75rem + 4px);
	font-size: 0.9rem;
	color: var(--sci-muted);
}
.dept-phone .bi {
	color: var(--sci-blue);
}
.track + .track {
	margin-top: 1.25rem;
}
.track h3 {
	font-size: 1rem;
	font-weight: 400;
	color: #2a6a9a;
	margin-bottom: 0.6rem;
}
.track h3 .count {
	color: var(--sci-muted);
	font-weight: 300;
	font-size: 0.9rem;
}

/* Compact rows: a small round photo, or the first letter of the name when there is no photo. */
.staff-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.5rem;
}
@media (min-width: 768px) {
	.staff-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (min-width: 1200px) {
	.staff-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.staff-card {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 0.65rem 0.9rem;
	background: #fff;
	border: 1px solid #e3e9f0;
	border-radius: 0.6rem;
	color: inherit;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}
.staff-card:hover,
.staff-card:focus-visible {
	color: inherit;
	background: #f0f6fc;
	border-color: #bcd3e8;
}

.avatar {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	object-position: center top;
	background: #e4e9f0;
	box-shadow: 0 0 0 1px #e3e9f0;
}
.avatar-initial {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1;
	color: var(--initial-text, var(--sci-navy));
	background: var(--initial-bg, #dde5ef);
	box-shadow: none;
	user-select: none;
}
.tone-1 { --initial-bg: #dde5ef; --initial-text: #003366; }
.tone-2 { --initial-bg: #dcebf6; --initial-text: #1f6497; }
.tone-3 { --initial-bg: #fff2cc; --initial-text: #7d5c00; }
.tone-4 { --initial-bg: #e2e6f6; --initial-text: #2c4a8a; }
.tone-5 { --initial-bg: #e8edf2; --initial-text: #46596d; }

.staff-card .body {
	min-width: 0;
	line-height: 1.4;
}
.staff-card .name {
	font-weight: 400;
	color: var(--sci-navy);
}
.staff-card .name-en {
	font-size: 0.8rem;
	color: var(--sci-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.staff-card .position {
	font-size: 0.85rem;
	color: #2a6a9a;
}
.staff-card .dept {
	font-size: 0.8rem;
	color: var(--sci-muted);
}
.staff-card .tel {
	font-size: 0.85rem;
	color: var(--sci-navy);
}
.staff-card .tel .bi {
	color: var(--sci-blue);
	margin-right: 0.15rem;
}

.no-result {
	text-align: center;
	color: var(--sci-muted);
	padding: 3rem 0;
}

/* Profile page */

.profile-hero {
	background: linear-gradient(135deg, var(--sci-navy) 0%, var(--sci-blue) 100%);
	color: #fff;
	padding: 2rem 0;
}
.profile-avatar {
	width: 160px;
	height: 160px;
	border-radius: 50%;
	object-fit: cover;
	object-position: center top;
	border: 4px solid #fff;
	background: #e4e9f0;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.profile-avatar.avatar-initial {
	display: inline-flex;
	font-size: 4rem;
	--initial-bg: #dde5ef;
	--initial-text: #003366;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.profile-hero h1 {
	font-size: 1.6rem;
	margin: 0;
}
.profile-hero .name-en {
	color: var(--sci-gold);
	font-size: 1.05rem;
}
.profile-hero .position {
	color: #dce8f4;
}
.contact-list {
	list-style: none;
	padding: 0;
	margin: 0.75rem 0 0;
}
.contact-list li {
	display: flex;
	gap: 0.5rem;
	align-items: baseline;
}
.contact-list .bi {
	color: var(--sci-gold);
}
.contact-list a {
	color: #fff;
}

.profile-body {
	padding: 1.5rem 0 2rem;
}
.profile-section {
	background: #fff;
	border-radius: 0.75rem;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
	padding: 1.25rem 1.5rem;
	margin-bottom: 1.25rem;
}
.profile-section h2 {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 1.15rem;
	color: var(--sci-navy);
	border-bottom: 2px solid var(--sci-gold);
	padding-bottom: 0.5rem;
	margin-bottom: 0.75rem;
}
.profile-section h2 .bi {
	color: var(--sci-blue);
}
.profile-section ul,
.profile-section ol {
	padding-left: 1.25rem;
	margin: 0;
}
.profile-section li + li {
	margin-top: 0.5rem;
}

/* HTML saved from the profile editor: wide tables scroll, images never overflow. */
.prose img {
	max-width: 100%;
	height: auto;
}
.prose table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
}
.prose p:last-child {
	margin-bottom: 0;
}

.print-bar {
	text-align: center;
	margin-top: 1rem;
}
.print-bar .btn {
	--bs-btn-color: #4a5868;
	--bs-btn-border-color: #8a97a6;
}

/* Login (backend/application/views/login.php) */

.btn-back {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.5);
	font-weight: 400;
}
.btn-back:hover,
.btn-back:focus-visible {
	color: var(--sci-navy);
	background: #fff;
	border-color: #fff;
}
.login-hero {
	text-align: center;
	padding-bottom: 4rem;
}
.login-card {
	max-width: 420px;
	margin: -2.75rem auto 3rem;
	background: #fff;
	border-radius: 0.75rem;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
	padding: 1.75rem 1.5rem 1.25rem;
}
.login-card .form-label {
	font-weight: 400;
	color: var(--sci-navy);
}
.input-icon {
	position: relative;
}
.input-icon .bi {
	position: absolute;
	left: 0.85rem;
	top: 50%;
	transform: translateY(-50%);
	color: var(--sci-muted);
	pointer-events: none;
}
.input-icon .form-control {
	padding: 0.6rem 0.75rem 0.6rem 2.5rem;
}
.login-card .btn-login {
	padding: 0.6rem;
	font-size: 1.05rem;
}
.login-note {
	margin: 1rem 0 0;
	text-align: center;
	font-size: 0.85rem;
	color: var(--sci-muted);
}

/* Backend: profile editor (backend/application/views) */

.btn-sci,
.btn-outline-sci {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 400;
	--bs-btn-hover-color: #fff;
	--bs-btn-hover-bg: var(--sci-navy-dark);
	--bs-btn-hover-border-color: var(--sci-navy-dark);
	--bs-btn-active-color: #fff;
	--bs-btn-active-bg: var(--sci-navy);
	--bs-btn-active-border-color: var(--sci-navy);
	--bs-btn-focus-shadow-rgb: 59, 135, 190;
}
.btn-sci {
	--bs-btn-color: #fff;
	--bs-btn-bg: var(--sci-navy);
	--bs-btn-border-color: var(--sci-navy);
	--bs-btn-disabled-color: #fff;
	--bs-btn-disabled-bg: #6b829a;
	--bs-btn-disabled-border-color: #6b829a;
}
.btn-outline-sci {
	--bs-btn-color: var(--sci-navy);
	--bs-btn-bg: #fff;
	--bs-btn-border-color: #9fb3c8;
	--bs-btn-hover-bg: var(--sci-navy);
	--bs-btn-hover-border-color: var(--sci-navy);
}

.backend-user {
	color: #c9d6e4;
	font-size: 0.9rem;
}

.backend-nav {
	background: #fff;
	border-bottom: 1px solid #e3e9f0;
}
.backend-nav ul {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	scrollbar-width: thin;
}
.backend-nav a,
.backend-view-cv {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.7rem 0.9rem;
	color: var(--sci-text);
	font-weight: 400;
	text-decoration: none;
	white-space: nowrap;
	border-bottom: 3px solid transparent;
}
.backend-nav a:hover {
	color: var(--sci-navy);
	background: #f0f6fc;
}
.backend-nav a[aria-current="page"] {
	color: var(--sci-navy);
	border-bottom-color: var(--sci-gold);
}
.backend-nav .bi {
	color: var(--sci-blue);
}
.backend-view-cv {
	color: var(--sci-blue);
	padding-right: 0;
}

.backend-notices {
	padding-top: 1rem;
}
.backend-notices .alert {
	margin-bottom: 0.5rem;
}

.backend-hero .avatar-edit {
	position: relative;
	display: inline-block;
	border-radius: 50%;
}
.avatar-edit-badge {
	position: absolute;
	right: 6px;
	bottom: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--sci-gold);
	color: var(--sci-navy);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
	font-size: 1.1rem;
}
.avatar-edit:hover .avatar-edit-badge,
.avatar-edit:focus-visible .avatar-edit-badge {
	background: #ffd95c;
}
.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1rem;
}

.lang-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
}
.lang-label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--sci-navy);
	font-weight: 400;
}
.lang-label .bi {
	color: var(--sci-blue);
}
.lang-help {
	font-size: 0.85rem;
	color: var(--sci-muted);
}

.section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	border-bottom: 2px solid var(--sci-gold);
	padding-bottom: 0.5rem;
	margin-bottom: 0.25rem;
}
.section-head h2 {
	border: 0;
	padding: 0;
	margin: 0;
}
.section-head .btn {
	flex: 0 0 auto;
}

.detail-list.numbered {
	counter-reset: detail;
}
.detail-row {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	padding: 0.75rem 0;
}
.detail-row + .detail-row {
	border-top: 1px solid #e9eef4;
}
.numbered .detail-row {
	counter-increment: detail;
}
.numbered .detail-row::before {
	content: counter(detail) ".";
	flex: 0 0 1.75rem;
	color: var(--sci-muted);
	text-align: right;
}
.detail-content {
	flex: 1 1 0;
	min-width: 0;
}
.detail-content ul,
.detail-content ol {
	padding-left: 1.25rem;
	margin-bottom: 0;
}
.row-actions {
	display: flex;
	flex: 0 0 auto;
	gap: 0.25rem;
}
.btn-row {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.1rem;
	height: 2.1rem;
	padding: 0;
	color: var(--sci-muted);
	background: #fff;
	border: 1px solid #d5dde7;
	--bs-btn-hover-color: var(--sci-navy);
	--bs-btn-hover-bg: #f0f6fc;
	--bs-btn-hover-border-color: var(--sci-blue);
	--bs-btn-disabled-opacity: 0.35;
}
.btn-row[data-action="delete"]:hover {
	color: #b02a37;
	background: #fbeaec;
	border-color: #e0a3aa;
}
.empty-note {
	margin: 0.75rem 0 0;
	color: var(--sci-muted);
	font-size: 0.9rem;
}
.overview-content {
	padding-top: 0.75rem;
}
.overview-content:empty {
	padding: 0;
}

#editor-modal .modal-header,
#sync-modal .modal-header,
#user-modal .modal-header {
	background: var(--sci-navy);
	color: #fff;
	border-bottom: 4px solid var(--sci-gold);
}
#editor-modal .modal-title,
#sync-modal .modal-title,
#user-modal .modal-title {
	font-size: 1.1rem;
}

.backend-page-hero {
	padding-bottom: 3.75rem;
}
.backend-page-hero p {
	margin-bottom: 0;
}
.backend-page {
	margin-top: -2.25rem;
	padding-bottom: 2rem;
}
.backend-form .form-label,
.picture-label {
	font-weight: 400;
	color: var(--sci-navy);
}
.backend-form .required {
	color: #b02a37;
}
.form-actions,
.picture-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.form-actions {
	margin-bottom: 1rem;
}
.picture-label {
	margin-bottom: 0.5rem;
}
.picture-steps {
	color: var(--sci-muted);
	padding-left: 1.25rem;
}
/* Block, not flex: a flex item canvas shrinks before Jcrop measures it. */
.crop-area {
	margin-top: 1.5rem;
	padding: 1rem;
	text-align: center;
	background: #1f2a37;
	border-radius: 0.5rem;
	overflow: hidden;
}
.crop-area .jcrop-holder {
	display: inline-block;
	text-align: left;
}

/* Staff sync (backend/application/views/update_user_info.php) */

.sync-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 0.75rem;
	margin-bottom: 1rem;
}
.sync-stat {
	display: flex;
	flex-direction: column;
	padding: 0.75rem 1rem;
	background: #fff;
	border-radius: 0.5rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	color: var(--sci-muted);
	font-size: 0.85rem;
}
.sync-stat-value {
	color: var(--sci-navy);
	font-size: 1.6rem;
	font-weight: 600;
	line-height: 1.2;
}
.sync-stat.sync-ok .sync-stat-value { color: #1e7b45; }
.sync-stat.sync-diff .sync-stat-value { color: #9a6700; }
.sync-stat.sync-minor .sync-stat-value { color: #46596d; }
.sync-stat.sync-noid .sync-stat-value { color: var(--sci-blue); }
.sync-stat.sync-missing .sync-stat-value,
.sync-stat.sync-retire .sync-stat-value { color: #b02a37; }

.sync-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	margin-bottom: 0.75rem;
}
.sync-search {
	width: 16rem;
}
.sync-dept {
	width: 18rem;
}
.sync-count,
.sync-help {
	color: var(--sci-muted);
	font-size: 0.85rem;
}
.sync-help {
	margin: 0.5rem 0;
}
.sync-table-wrap {
	max-height: 75vh;
	overflow: auto;
	border: 1px solid #e3e9f0;
	border-radius: 0.375rem;
}
.sync-table {
	margin-bottom: 0;
	font-size: 0.88rem;
}
.sync-table thead th {
	position: sticky;
	top: 0;
	z-index: 1;
	background: #f0f4f8;
	color: var(--sci-navy);
	font-weight: 400;
	white-space: nowrap;
}
.sync-en,
.sync-note {
	color: var(--sci-muted);
	font-size: 0.8rem;
}
.sync-status {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	white-space: nowrap;
	font-weight: 400;
}
.sync-status.sync-ok { color: #1e7b45; }
.sync-status.sync-diff { color: #9a6700; }
.sync-status.sync-minor { color: #46596d; }
.sync-status.sync-noid { color: var(--sci-blue); }
.sync-status.sync-missing { color: #b02a37; }
.sync-diffs {
	list-style: none;
	margin: 0.25rem 0 0;
	padding: 0;
	font-size: 0.8rem;
}
.sync-label {
	color: var(--sci-muted);
}
.sync-table del,
.sync-item del {
	color: #b02a37;
}
.sync-table ins,
.sync-item ins {
	color: #1e7b45;
	text-decoration: none;
	font-weight: 400;
}

.sync-item {
	padding: 0.75rem 0;
}
.sync-item + .sync-item {
	border-top: 1px solid #e3e9f0;
}
.sync-item-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem;
}
.sync-item-name {
	color: var(--sci-navy);
	font-weight: 400;
}
.sync-item-action {
	font-size: 0.8rem;
	padding: 0.1rem 0.5rem;
	border-radius: 1rem;
	background: #e8eef5;
	color: var(--sci-navy);
}
.sync-act-add { background: #fbeaec; color: #b02a37; }
.sync-act-retire { background: #fff2cc; color: #7d5c00; }
.sync-item-ids,
.sync-item-note {
	color: var(--sci-muted);
	font-size: 0.85rem;
	margin: 0.15rem 0 0.4rem;
}
.sync-field {
	font-size: 0.9rem;
}
.sync-summary {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0.15rem 0.75rem;
	margin: 0 0 0.5rem;
	font-size: 0.9rem;
}
.sync-summary dt {
	color: var(--sci-muted);
	font-weight: 300;
}
.sync-summary dd {
	margin: 0;
}
.sync-mail {
	max-width: 22rem;
}
.sync-mail .form-label {
	font-size: 0.85rem;
	margin-bottom: 0.25rem;
}
.sync-result {
	margin-top: 0.4rem;
	font-size: 0.85rem;
	font-weight: 400;
}
.sync-item.is-ok .sync-result { color: #1e7b45; }
.sync-item.is-failed .sync-result { color: #b02a37; }

.sync-edit {
	padding: 0.15rem 0.4rem;
	line-height: 1;
}
.user-badge {
	display: inline-block;
	padding: 0.1rem 0.5rem;
	border-radius: 1rem;
	font-size: 0.78rem;
	white-space: nowrap;
}
.user-badge.is-work { background: #e3f4ea; color: #1e7b45; }
.user-badge.is-off { background: #eceff3; color: #5f6b78; }
.user-badge.is-admin { background: #e8eef5; color: var(--sci-navy); }
.user-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
	margin-bottom: 0.75rem;
	font-size: 0.9rem;
}
.user-links:empty {
	display: none;
}
.user-group {
	margin-bottom: 1.25rem;
}
.user-group legend {
	margin-bottom: 0.5rem;
	padding-bottom: 0.25rem;
	border-bottom: 1px solid #e3e9f0;
	color: var(--sci-navy);
	font-size: 1rem;
	font-weight: 400;
}
.user-group .form-label {
	margin-bottom: 0.2rem;
	color: var(--sci-muted);
	font-size: 0.85rem;
}
.user-changes {
	list-style: none;
	margin: 0;
	padding: 0;
}
.user-changes li {
	padding: 0.5rem 0;
}
.user-changes li + li {
	border-top: 1px solid #e3e9f0;
}
.user-changes del {
	color: #b02a37;
}
.user-changes ins {
	color: #1e7b45;
	text-decoration: none;
	font-weight: 400;
}
.user-warn {
	margin-top: 0.25rem;
	color: #9a6700;
	font-size: 0.85rem;
}

@media (max-width: 575.98px) {
	.sync-search,
	.sync-dept {
		width: 100%;
	}
	.backend-nav a,
	.backend-view-cv {
		padding-left: 0.45rem;
		padding-right: 0.45rem;
		font-size: 0.9rem;
	}
	.backend-nav li:first-child a {
		padding-left: 0;
	}
	.detail-row {
		flex-wrap: wrap;
	}
	.row-actions {
		width: 100%;
		justify-content: flex-end;
	}
	.section-head h2 {
		font-size: 1.05rem;
	}
}

/* 404 */

.not-found {
	text-align: center;
	padding: 4rem 0;
}
.not-found h1 {
	color: var(--sci-navy);
}

@media print {
	.site-header,
	.site-footer,
	.print-bar {
		display: none;
	}
	body {
		background: #fff;
	}
	.profile-hero {
		background: none;
		color: #000;
		padding: 0 0 1rem;
	}
	.profile-hero .name-en,
	.profile-hero .position,
	.contact-list a,
	.contact-list .bi {
		color: #000;
	}
	.profile-avatar {
		box-shadow: none;
		border-color: #ccc;
	}
	.profile-section {
		box-shadow: none;
		padding: 0;
		break-inside: auto;
	}
}
