/*!
 * Crown Superior form helpers - crownsuperior.com
 */

.cf-ac {
	position: absolute;
	z-index: 100000;
	max-height: 320px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #c9ced6;
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(16, 24, 40, .18);
	font-size: 14px;
	line-height: 1.35;
}

.cf-ac-item {
	padding: 8px 12px;
	cursor: pointer;
	border-bottom: 1px solid #eef0f4;
}

.cf-ac-item:last-child {
	border-bottom: 0;
}

.cf-ac-item:hover,
.cf-ac-item.is-active {
	background: #eef4ff;
}

.cf-ac-title {
	display: block;
	font-weight: 600;
	color: #16233a;
}

.cf-ac-note {
	display: block;
	margin-top: 2px;
	color: #5d6b82;
	font-size: 12px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cf-note {
	margin-top: 6px;
	padding: 6px 10px;
	background: #eaf6ec;
	border: 1px solid #b7dcbd;
	border-radius: 5px;
	color: #1f4d2a;
	font-size: 13px;
}

.cf-undo {
	margin-left: 8px;
	padding: 1px 8px;
	background: #fff;
	border: 1px solid #7fae89;
	border-radius: 4px;
	color: #1f4d2a;
	font-size: 12px;
	cursor: pointer;
}

.cf-problems {
	margin: 14px 0;
	padding: 12px 16px;
	background: #fdecec;
	border: 1px solid #e6a5a5;
	border-left: 4px solid #c0392b;
	border-radius: 5px;
	color: #7d1f16;
	font-size: 14px;
}

.cf-problems ul {
	margin: 8px 0 0;
	padding-left: 20px;
}

.cf-problems li {
	margin-bottom: 5px;
}

/* ---------- site search (employees) ---------- */

.cf-search {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 99998;
	background: #16233a;
	box-shadow: 0 1px 6px rgba(16, 24, 40, .25);
	font-size: 14px;
}

body.cf-has-search {
	padding-top: 44px !important;
}

.cf-search-form {
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: 1180px;
	margin: 0 auto;
	padding: 6px 14px;
}

.cf-search-icon {
	color: #f5c451;
	font-size: 16px;
	line-height: 1;
	transform: rotate(-45deg);
}

.cf-search-input {
	flex: 1;
	min-width: 0;
	height: 30px;
	padding: 0 10px;
	background: #fff;
	border: 1px solid #33415c;
	border-radius: 5px;
	color: #16233a;
	font-size: 14px;
}

.cf-search-input:focus {
	outline: 2px solid #f5c451;
	outline-offset: 0;
}

.cf-search-close {
	background: none;
	border: 0;
	color: #b9c4d6;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
}

.cf-search-panel {
	max-width: 1180px;
	max-height: 70vh;
	overflow-y: auto;
	margin: 0 auto;
	padding: 4px 14px 14px;
	background: #fff;
	border-top: 1px solid #e3e7ee;
	color: #16233a;
}

.cf-search-head {
	padding: 10px 2px;
	color: #5d6b82;
	font-size: 13px;
}

.cf-search-group {
	margin-bottom: 14px;
	border: 1px solid #e3e7ee;
	border-radius: 6px;
	overflow: hidden;
}

.cf-search-group-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 12px;
	background: #f3f6fb;
	border-bottom: 1px solid #e3e7ee;
	font-weight: 600;
}

.cf-search-group-head a {
	color: #16233a;
	text-decoration: none;
}

.cf-search-count {
	background: #16233a;
	color: #fff;
	border-radius: 10px;
	padding: 1px 9px;
	font-size: 12px;
}

.cf-search-hit {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 14px;
	padding: 8px 12px;
	border-bottom: 1px solid #eef0f4;
	color: #16233a;
	text-decoration: none;
}

.cf-search-hit:last-child {
	border-bottom: 0;
}

.cf-search-hit:hover {
	background: #eef4ff;
}

.cf-search-hit-name {
	font-weight: 600;
}

.cf-search-hit-meta {
	color: #5d6b82;
	font-size: 12px;
	white-space: nowrap;
}

.cf-search-more {
	display: block;
	padding: 8px 12px;
	background: #fafbfd;
	color: #2c5cc5;
	font-size: 13px;
	text-decoration: none;
}

.cf-search-empty {
	padding: 16px 2px;
	color: #5d6b82;
}

@media (max-width: 640px) {
	.cf-search-hit {
		display: block;
	}

	.cf-search-hit-meta {
		display: block;
		margin-top: 2px;
		white-space: normal;
	}
}

/* ---------- change log panel ---------- */

.cf-log {
	max-width: 1180px;
	margin: 18px auto;
	border: 1px solid #e3e7ee;
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
}

.cf-log-head {
	padding: 9px 14px;
	background: #f3f6fb;
	border-bottom: 1px solid #e3e7ee;
	color: #16233a;
	font-weight: 600;
	font-size: 14px;
}

.cf-log-body {
	margin: 0;
	padding: 12px 14px;
	max-height: 340px;
	overflow: auto;
	background: #fff;
	color: #16233a;
	font: 12px/1.6 ui-monospace, Menlo, Consolas, monospace;
	white-space: pre-wrap;
	word-break: break-word;
}

.cf-log-empty {
	padding: 12px 14px;
	color: #5d6b82;
	font-size: 13px;
}
