/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the Source EULA. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/

.search-view .search-widgets-container {
	margin: 0px 9px 0 2px;
	padding-top: 6px;
}

.search-view .search-widget .toggle-replace-button {
	position: absolute;
	top: 0;
	left: 0;
	width: 16px;
	height: 100%;
	box-sizing: border-box;
	background-position: center center;
	background-repeat: no-repeat;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.search-view .search-widget .search-container,
.search-view .search-widget .replace-container {
	margin-left: 17px;
}

.search-view .search-widget .monaco-inputbox > .wrapper {
	height: 100%;
}

.search-view .search-widget .monaco-inputbox > .wrapper > .mirror,
.search-view .search-widget .monaco-inputbox > .wrapper > textarea.input {
	padding: 3px;
	padding-left: 4px;
}

.search-view .search-widget .monaco-inputbox > .wrapper > .mirror {
	max-height: 134px;
}

.search-view .search-widget .monaco-inputbox > .wrapper > textarea.input {
	overflow: initial;
	height: 24px; /* set initial height before measure */
}

.search-view .monaco-inputbox > .wrapper > textarea.input::-webkit-scrollbar {
	display: none;
}

.search-view .search-widget .monaco-findInput {
	display: inline-block;
	vertical-align: middle;
	width: 100%;
}

.search-view .search-widget .replace-container {
	margin-top: 6px;
	position: relative;
	display: inline-flex;
}

.search-view .search-widget .replace-input {
	position: relative;
	display: flex;
	display: -webkit-flex;
	vertical-align: middle;
	width: auto !important;
}

.search-view .search-widget .replace-input > .controls {
	position: absolute;
	top: 3px;
	right: 2px;
}

.search-view .search-widget .replace-container.disabled {
	display: none;
}

.search-view .search-widget .replace-container .monaco-action-bar {
	margin-left: 3px;
}

.search-view .search-widget .replace-container .monaco-action-bar {
	height: 25px;
}

.search-view .search-widget .replace-container .monaco-action-bar .action-item .codicon {
	background-repeat: no-repeat;
	width: 20px;
	height: 25px;
}

.search-view .query-details {
	min-height: 1em;
	position: relative;
	margin: 0 0 0 17px;
}

.search-view .query-details .more {
	position: absolute;
	margin-right: 0.3em;
	right: 0;
	cursor: pointer;
	width: 16px;
	height: 16px;
	z-index: 2; /* Force it above the search results message, which has a negative top margin */
}

.search-view .query-details .file-types {
	display: none;
}

.search-view .query-details .file-types > .monaco-inputbox {
	width: 100%;
	height: 25px;
}

.search-view .query-details.more .file-types {
	display: inherit;
}

.search-view .query-details.more .file-types:last-child {
	padding-bottom: 10px;
}

.search-view .query-details.more h4 {
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
	padding: 4px 0 0;
	margin: 0;
	font-size: 11px;
	font-weight: normal;
}

.search-view .messages {
	margin-top: -5px;
	cursor: default;
}

.search-view .message {
	padding-left: 22px;
	padding-right: 22px;
	padding-top: 0px;
}

.search-view .message p:first-child {
	margin-top: 0px;
	margin-bottom: 0px;
	padding-bottom: 4px;
	user-select: text;
}

.search-view .foldermatch,
.search-view .filematch {
	display: flex;
	position: relative;
	line-height: 22px;
	padding: 0;
}

.search-view:not(.wide) .foldermatch .monaco-icon-label,
.search-view:not(.wide) .filematch .monaco-icon-label {
	flex: 1;
}

.search-view:not(.wide) .monaco-list .monaco-list-row:hover:not(.highlighted) .foldermatch .monaco-icon-label,
.search-view:not(.wide) .monaco-list .monaco-list-row.focused .foldermatch .monaco-icon-label,
.search-view:not(.wide) .monaco-list .monaco-list-row:hover:not(.highlighted) .filematch .monaco-icon-label,
.search-view:not(.wide) .monaco-list .monaco-list-row.focused .filematch .monaco-icon-label {
	flex: 1;
}

.search-view.wide .foldermatch .badge,
.search-view.wide .filematch .badge {
	margin-left: 10px;
}

.search-view .linematch {
	position: relative;
	line-height: 22px;
	display: flex;
	overflow: hidden;
}

.search-view .linematch > .match {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: pre;
}

.search-view .linematch .matchLineNum {
	margin-left: 7px;
	margin-right: 4px;
	opacity: .7;
	font-size: 0.9em;
	display: none;
}

.search-view .linematch .matchLineNum.show {
	display: block;
}

.search-view.wide .monaco-list .monaco-list-row .foldermatch .actionBarContainer,
.search-view.wide .monaco-list .monaco-list-row .filematch .actionBarContainer,
.search-view .monaco-list .monaco-list-row .linematch .actionBarContainer {
	flex: 1 0 auto;
}

.search-view:not(.wide) .monaco-list .monaco-list-row .foldermatch .actionBarContainer,
.search-view:not(.wide) .monaco-list .monaco-list-row .filematch .actionBarContainer {
	flex: 0 0 auto;
}

.search-view.actions-right .monaco-list .monaco-list-row .foldermatch .actionBarContainer,
.search-view.actions-right .monaco-list .monaco-list-row .filematch .actionBarContainer,
.search-view.actions-right .monaco-list .monaco-list-row .linematch .actionBarContainer,
.search-view:not(.wide) .monaco-list .monaco-list-row .linematch .actionBarContainer {
	text-align: right;
}

.search-view .monaco-list .monaco-list-row .monaco-action-bar {
	line-height: 1em;
	display: none;
	padding: 0 0.8em 0 0.4em;
}

.search-view .monaco-list .monaco-list-row .monaco-action-bar .action-item {
	margin: 0;
}

.search-view .monaco-list .monaco-list-row:hover:not(.highlighted) .monaco-action-bar,
.search-view .monaco-list .monaco-list-row.focused .monaco-action-bar {
	display: inline-block;
}

.search-view .monaco-list .monaco-list-row .monaco-action-bar .action-label {
	margin-right: 0.2em;
	margin-top: 4px;
	background-repeat: no-repeat;
	width: 16px;
	height: 16px;
	color: inherit;
}

/* Adjusts spacing in high contrast mode so that actions are vertically centered */
.hc-black .monaco-list .monaco-list-row .monaco-action-bar .action-label {
	margin-top: 2px;
}

.search-view .monaco-count-badge {
	margin-right: 12px;
}

.search-view:not(.wide) > .results > .monaco-list .monaco-list-row:hover .filematch .monaco-count-badge,
.search-view:not(.wide) > .results > .monaco-list .monaco-list-row:hover .foldermatch .monaco-count-badge,
.search-view:not(.wide) > .results > .monaco-list .monaco-list-row:hover .linematch .monaco-count-badge,
.search-view:not(.wide) > .results > .monaco-list .monaco-list-row.focused .filematch .monaco-count-badge,
.search-view:not(.wide) > .results > .monaco-list .monaco-list-row.focused .foldermatch .monaco-count-badge,
.search-view:not(.wide) > .results > .monaco-list .monaco-list-row.focused .linematch .monaco-count-badge {
	display: none;
}

.search-view .replace.findInFileMatch {
	text-decoration: line-through;
}

.search-view .findInFileMatch,
.search-view .replaceMatch {
	white-space: pre;
}

.hc-black .monaco-workbench .search-view .replaceMatch,
.hc-black .monaco-workbench .search-view .findInFileMatch {
	background: none !important;
	box-sizing: border-box;
}

.monaco-workbench .search-view a.prominent {
	text-decoration: underline;
}

/* Theming */

.vs .search-view .search-widget .toggle-replace-button:hover {
	background-color: rgba(0, 0, 0, 0.1) !important;
}

.vs-dark .search-view .search-widget .toggle-replace-button:hover {
	background-color: rgba(255, 255, 255, 0.1) !important;
}

.vs-dark .search-view .message {
	opacity: .5;
}

.vs-dark .search-view .foldermatch,
.vs-dark .search-view .filematch {
	padding: 0;
}

/* High Contrast Theming */

.hc-black .monaco-workbench .search-view .foldermatch,
.hc-black .monaco-workbench .search-view .filematch,
.hc-black .monaco-workbench .search-view .linematch {
	line-height: 20px;
}

.vs .search-panel .search-view .monaco-inputbox {
	border: 1px solid transparent;
}
