body[data-page=search] #content {
	padding: 0 32px 64px 32px;
}

/* -------------------------------- New SearchHead Start ------------------------ */

.searchForm {
	display: flex;
	flex-direction: column;
	background: var(--base-cont-top);
}

.searchForm.searchForm-last {
	border-bottom: var(--screen-px) solid var(--base-line-secondary);
	z-index: 859;
}

.searchForm .hidden {
	display: none;
}

.searchForm__row {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.searchForm__row-search {
	padding: 2px 14px;
	flex-wrap: nowrap;
	background: var(--base-cont-top);
	position: relative;
	z-index: 2;
}

.searchForm__row-search .searchInput {
	max-width: clamp(40%, 503px, 100%);

	.delete {
		display: flex;
		height: 20px;
		min-width: 16px;
		padding: 0 6px;
		justify-content: center;
		align-items: center;
		gap: 10px;
		border-radius: 12px;
		border: 1px solid var(--base-txt-muted);
		overflow: hidden;
		color: var(--base-txt-tertiary);
		text-align: center;
		text-overflow: ellipsis;
		font-size: 12px;
		font-style: normal;
		font-weight: 400;
		margin-right: 7px;
	}

	.flex_content:has(.search_fld:placeholder-shown) + .delete {
		display: none;
	}
}

.searchForm__row-search .searchInput ws-btn { margin-right: 2px; }
.searchForm__row-search .searchInput ws-btn button { border-radius: 6px 14px 14px 6px; }
.searchForm__row-search .searchInput ws-btn button span { font-weight: 400; }

.searchForm__row-buttons {
	padding: 4px 14px;
	position: relative;
	z-index: 1;
}

.searchForm-last .searchForm__row-buttons {
	margin-bottom: 8px;
}

.searchForm__row-buttonsProj ws-btn button:first-child {
	padding-left: 1px;
}

.searchForm__row-buttonsProj ws-btn button:first-child .btn-left-icon {
	height: 30px;
	border-radius: 4px 0 0 4px;
	padding: 0 2px 0 2px;
}

.searchForm__row-buttonsProj.proj-activity ws-btn button:first-child .btn-left-icon {
	background: var(--projcond-active-bg);
	box-shadow: 0 -1px 0 0 var(--projcond-active-bg),
	-1px 0 0 0 var(--projcond-active-bg),
	0 1px 0 0 var(--projcond-active-bg);
}

.searchForm__row-buttonsProj.proj-activity ws-btn .btn-left-icon svg use {
	fill: var(--projcond-active-txt);
}

.searchForm__row-buttonsProj.proj-archive ws-btn button:first-child .btn-left-icon {
	background: var(--projcond-archive-bg);
	box-shadow: 0 -1px 0 0 var(--projcond-archive-bg),
	-1px 0 0 0 var(--projcond-archive-bg),
	0 1px 0 0 var(--projcond-archive-bg);
}

.searchForm__row-buttonsProj.proj-archive ws-btn .btn-left-icon svg use {
	fill: var(--projcond-archive-txt);
}
.searchForm__row-buttonsProj ws-btn ws-icon svg use:nth-of-type(2) {
	display: none;
}
.searchForm__row-buttonsProjSel span.space .proj_color {
	width: 20px;
	height: 20px;
	border-radius: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.searchForm__row-buttonsProjSel span.space span.proj_color ws-emoji { width: 16px; height: 16px; }
.searchForm__row-buttonsProjSel span.space ws-icon.proj_color ws-emoji { width: 20px; height: 20px; }

.searchForm__row-setupLine {
	padding: 8px 14px 8px 14px;
	gap: 0;

	ws-btn.setupLine-trigger.ws-mobile-only button span {
		padding-left: 0;
	}
}

.setupLine-matches {
	font: var(--font-ui-13-small-semi);
	padding-right: 6px;
}

.searchForm__row-setupLine ws-icon[name=vertical_bar] {
	--icon-color: var(--base-txt-ghost);
	--icon-size: 12px;
	margin: 0 -2px;
}

.searchForm__row-setupLine ws-icon.vbar {
	width: 12px;
	height: 12px;
	margin: 0 -2px;
}

.searchForm__row-setupLine ws-icon.vbar svg path {
	stroke: var(--base-txt-ghost);
}

.setupLine-trigger:not(.act) button.btn-plain .btn-right-icon {
	display: none;
}

.searchForm__row-setupLine ws-btn:last-of-type {
	margin-left: auto;
}

body[data-page=search] div.menu[data-cache-trigger=project] {
	width: 380px;
}

body[data-page=search] .proj_color ws-emoji[rel="project"][id=""] {
	opacity: 0.5;
}
/* -------------------------------- New SearchHead End -------------------------- */

/* -------------------------------- New SearchBlock Start ------------------------ */

.searchBlock {
	border-radius: 12px;
	padding: 8px 12px 8px 8px;
	box-shadow: var(--shadow-cont-minor-outline);
	background: var(--base-cont-top);
	display: flex;
	gap: 4px;
	max-width: 100%;
	color: var(--base-txt-primary);
}

.searchBlock:not(.searchBlock-taskDone):not(.searchBlock-commentDone):hover {
	box-shadow: var(--shadow-cont-major-outline);
	background: var(--base-cont-top-elevated);
}

.searchBlock-taskDone,
.searchBlock-commentDone {
	background: var(--base-cont-low);

	.searchBlock__title a:nth-of-type(1) {
		text-decoration: line-through;
		text-decoration-thickness: 0.5px;
		text-underline-offset: 3px;
		text-decoration-color: var(--base-txt-primary);
	}
}

.searchBlock__icons {
	display: flex;
	flex-direction: column;
}

.searchBlock__icons-primary > * {
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	box-sizing: border-box;
}

.searchBlock__icons-primary task-stage ws-icon {
	transform-origin: center;
	transform: scale(120%);
}

.searchBlock__icons-secondary span {
	display: block;
	padding: 2px 6px 6px 6px;
	height: 26px;
	box-sizing: border-box;
}

.searchBlock-archive .searchBlock__icons-primary span {
	background: var(--colorize-lbl-brown-bg);
	--icon-color: var(--colorize-lbl-txt-primary);
}

.searchBlock__icons-primary span > * {
	width: 20px;
	height: 20px;
}

.searchBlock__content {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	min-width: 0;
}

.searchBlock__title {
	display: flex;
	gap: 4px;
	align-items: center;
	height: 32px;
	box-sizing: border-box;
}

.searchBlock__title a:nth-of-type(1) {
	display: inline-block;
	font: var(--font-ui-18-title-2-semi);
	color: var(--base-txt-primary);
	padding: 2px 4px;
	border-radius: 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.searchBlock__title span {
	margin: 0;
	min-width: 20px;
}

.searchBlock__title a:nth-of-type(1):hover {
	color: var(--base-txt-btn-a);
	background: var(--base-hlt-hover);
}

.searchBlock-taskDone_err {
	--icon-color: var(--colorize-red);
}

.searchBlock__text {
	padding: 0 12px 8px 4px;
	font: var(--font-txt-15-large-reg);

	.fileItem {
		padding-left: 0;
		padding-bottom: 0;
	}
}

.searchBlock__text-short ws-icon[name=more_sm-horiz] {
	cursor: pointer;
	background: var(--base-hlt-hover);
	display: inline-flex;
	justify-content: center;
	align-items: center;
	padding: 0 6px;
	border-radius: 10px;
	margin-left: 2px;
	--icon-color: var(--base-txt-btn-a);
}

.searchBlock__text-hidden {
	display: none;
}

.searchBlock__info {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 32px;
	padding-left: 4px;
	flex-wrap: wrap;
	gap: 4px;
}

.searchBlock__info-left {
	display: flex;
	gap: 8px;
}

.searchBlock__info-user {
	display: flex;
	align-items: center;
	gap: 8px;
	font: var(--font-ui-13-small-med);
	margin-left: -36px;

	span:first-child {
		margin-right: 4px;
	}

	.ws-mobile-only { text-wrap: nowrap; }
}

.searchBlock__info-user img {
	border-radius: 25%;
}

.searchBlock__info-user ws-icon[name="arrows/chevron_sm-right"] {
	--icon-color: var(--base-txt-tertiary);
	margin: 0 -8px;
}

.searchBlock__info-action {
	display: flex;
	align-items: center;
	font: var(--font-ui-11-micro-reg);
	color: var(--base-txt-tertiary);
}

.searchBlock__info-time {
	display: flex;
	align-items: center;
	font: var(--font-ui-11-micro-reg);
	padding-left: 2px;
}

.searchBlock__info-right {
	display: flex;
	max-width: 100%;
}

.searchBlock__info-path {
	display: flex;
	align-items: center;
	gap: 4px;
	max-width: 100%;
	padding-left: 4px;
	padding-bottom: 4px;
}

.searchBlock__info-pathGroup,
.searchBlock__info-pathProj {
	padding: 0 4px 0 0;
	display: flex;
	align-items: center;
	gap: 4px;
	max-width: 100%;
}

.searchBlock-archive .searchBlock__info-path {
	background: var(--colorize-lbl-brown-bg);
	border-radius: 6px;
	font: var(--font-ui-12-mini-reg);
	color: var(--colorize-lbl-txt-primary);
	padding: 2px 4px;
	--icon-color: var(--colorize-lbl-txt-primary);
	width: fit-content;
}

.searchBlock__info-path ws-icon[name="arrows/chevron_sm-right"] {
	--icon-color: var(--base-txt-tertiary);
}

.searchBlock__info-pathGroup {
	--icon-color: var(--folder-color);
	font: var(--font-ui-12-mini-reg);
}

.searchBlock__info-pathProj .proj_color {
	width: 16px;
	height: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
}

.searchBlock__info-pathProj .proj_color ws-emoji {
	width: 12px;
	height: 12px;
}

.searchBlock__info-pathProj a,
.searchBlock__info-pathProj a:hover,
.searchBlock__info-pathTree a,
.searchBlock__info-pathTree a:hover {
	color: var(--base-txt-primary);
	white-space: nowrap;
}

.searchBlock__info-pathProj a:hover,
.searchBlock__info-pathTree a:hover {
	text-decoration: underline;
}

.searchBlock__info-pathTree {
	display: flex;
	align-items: center;
	min-width: 0;
}

.searchBlock__info-pathTree ws-icon {
	padding-right: 4px;
}

.searchBlock__info-pathTree a {
	overflow: hidden;
	text-overflow: ellipsis;
}

@media (max-width: 480px) {
	.footerMobile, #taskPanel, #mobileMenu__wrapper { display: none !important; height: 0 !important; }
	.vbar { display: none; }
	.searchForm.mobile-head__wrapper {
		box-shadow: unset;
		.mobile-head.mobile-head--search {
			/* transition: margin-top .15s ease; */
			position: relative;
			z-index: 2;
			background: var(--mobile-head-bg-color);
		}
		&.searchForm-searchFullscreen {
			.mobile-head.mobile-head--search {
				margin-top: -44px;
			}
			.mobile-head__btn--cancelFullscreen {
				display: block;
			}
		}
		.mobile-head__btnWrapper--toggleFilter {
			width: 0;
			transition: width .15s ease;
		}
		&.searchForm-withFilter .searchForm__row-buttons {
			margin-top: unset !important;
		}
		&.searchForm-withoutFilter:not(.searchForm-searchFullscreen) {
			.mobile-head__btnWrapper--toggleFilter {
				width: 44px;
			}
		}
		.mobile-head--searchPanel {
			overflow: hidden; /* fix ios filter icon & scroll-x */
			position: relative;
			z-index: 2;
			background: var(--mobile-head-bg-color);
			.searchForm__row-search {
				flex-shrink: 1;
				flex-grow: 1;
				padding: 0;
				height: 48px;
				overflow: hidden;
				box-sizing: border-box;
				.searchInput {
					height: 36px;
					padding: 2px;
					margin: 1px;
					box-sizing: border-box;
					input::placeholder {
						color: var(--base-txt-tertiary);
						font: var(--font-ui-14-regular-reg);
					}
					input::-webkit-input-placeholder {
						color: var(--base-txt-tertiary);
						font: var(--font-ui-14-regular-reg);
					}
					a.delete.withIcon,
					a.delete.withIcon {
						--icon-color: var(--base-txt-tertiary);
						border: unset;
						padding: 0;
					}
				}
			}
		}
		.searchForm__row-buttons {
			padding: 8px 12px;
			gap: 0;
			&> div {
				padding: 2px;
			}
			.ws-btn {
				padding: 0 8px;
			}
		}
		.searchForm__row-buttonsProj ws-btn button:first-child {
			padding-left: 4px;
		}
		.searchForm__row-buttonsProj ws-btn button:first-child .btn-left-icon {
			width: auto;
			height: auto;
			padding: 0;
			width: 20px;
			height: 20px;
			border-radius: 2px;
			box-shadow: unset;
		}
	}
	.searchForm.searchForm-last {
		border-bottom: unset;
		box-shadow: var(--mobile-head-hairline);
	}
	.searchBlock {
		overflow: hidden;
	}
}

/* -------------------------------- New SearchBlock End --------------------------- */

#searchResults {width:66%;margin: 12px auto 15px auto;min-width: 800px;display: flex;flex-direction: column;gap: 8px;}
@media (max-width: 900px) {
	#searchResults {min-width:0; width:auto;}
}

span.highlight0, span.highlight1, span.highlight2, span.highlight3 {padding:2px; margin:-2px; border-radius:6px;}
