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

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

.search-viewlet .search-widget .toggle-replace-button {
	position: absolute;
	top: 0;
	left: 0;
	width: 16px;
	height: 100%;

	-webkit-box-sizing: border-box;
	-o-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-ms-box-sizing: border-box;
	box-sizing: border-box;

	background-position: center center;
	background-repeat: no-repeat;
	cursor: pointer;
}

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

.search-viewlet .search-widget .input-box,
.search-viewlet .search-widget .input-box .monaco-inputbox {
	height: 25px;
}

.search-viewlet .search-widget .monaco-findInput {
	display: inline-block;
	vertical-align: middle;
}

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

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

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

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

.search-viewlet .query-clear {
	width: 20px;
	height: 20px;
	position: absolute;
	top: 3px;
	right: 3px;
	cursor: pointer;
}

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

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

.hc-black .monaco-workbench .search-viewlet .query-details .more,
.vs-dark .monaco-workbench .search-viewlet .query-details .more {
	background: url('ellipsis-inverse.svg') top center no-repeat;
}

.vs .monaco-workbench .search-viewlet .query-details .more {
	background: url('ellipsis.svg') top center no-repeat;
}

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

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

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

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

.search-viewlet .query-details .search-pattern-info {
	width: 16px;
	height: 16px;
}

.search-viewlet .query-details .search-configure-exclusions {
	width: 16px;
	height: 16px;
}

.monaco-action-bar .action-label.search-configure-exclusions {
	margin-right: 2px;
}

.vs-dark .monaco-workbench .search-configure-exclusions,
.hc-black .monaco-workbench .search-configure-exclusions {
	background: url('configure-inverse.svg') center center no-repeat;
	opacity: .7;
}

.vs .monaco-workbench .search-configure-exclusions {
	background: url('configure.svg') center center no-repeat;
	opacity: 0.7;
}

.search-viewlet .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-viewlet .messages {
	margin-top: -5px;
	cursor: default;
}

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

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

.search-viewlet > .results > .monaco-tree .sub-content {
	overflow: hidden;
}

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

.search-viewlet .foldermatch .monaco-icon-label,
.search-viewlet .filematch .monaco-icon-label {
	flex: 1;
}

.search-viewlet .foldermatch .directory,
.search-viewlet .filematch .directory {
	opacity: 0.7;
	font-size: 0.9em;
	margin-left: 0.8em;
}

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

.search-viewlet .linematch > .match {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
}

.search-viewlet .linematch.changedOrRemoved {
	font-style: italic;
}

.search-viewlet .query-clear {
	background: url("action-query-clear.svg") center center no-repeat;
}

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

.search-viewlet .monaco-tree .monaco-tree-row .monaco-action-bar .action-item {
	margin: 0;
}

.search-viewlet .monaco-tree .monaco-tree-row.focused .monaco-action-bar {
	width: 0; /* in order to support a11y with keyboard, we use width: 0 to hide the actions, which still allows to "Tab" into the actions */
	display: block;
}

.search-viewlet .monaco-tree .monaco-tree-row:hover:not(.highlighted) .monaco-action-bar,
.search-viewlet .monaco-tree .monaco-tree-row.focused .monaco-action-bar {
	width: inherit;
	display: block;
}

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

.search-viewlet .action-remove {
	background: url("action-remove.svg") center center no-repeat;
}

.search-viewlet .action-replace {
	background-image: url('replace.svg');
}

.search-viewlet .action-replace-all {
	background: url('replace-all.svg') center center no-repeat;
}

.hc-black .search-viewlet .action-replace,
.vs-dark .search-viewlet .action-replace {
	background-image: url('replace-inverse.svg');
}

.hc-black .search-viewlet .action-replace-all,
.vs-dark .search-viewlet .action-replace-all {
	background: url('replace-all-inverse.svg') center center no-repeat;
}

.search-viewlet .label {
	font-style: italic;
}

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

.search-viewlet > .results > .monaco-tree .monaco-tree-row:hover .content .filematch .monaco-count-badge,
.search-viewlet > .results > .monaco-tree .monaco-tree-row:hover .content .foldermatch .monaco-count-badge,
.search-viewlet > .results > .monaco-tree .monaco-tree-row:hover .content .linematch .monaco-count-badge,
.search-viewlet > .results > .monaco-tree.focused .monaco-tree-row.focused .content .filematch .monaco-count-badge,
.search-viewlet > .results > .monaco-tree.focused .monaco-tree-row.focused .content .foldermatch .monaco-count-badge,
.search-viewlet > .results > .monaco-tree.focused .monaco-tree-row.focused .content .linematch .monaco-count-badge {
	display: none;
}

.search-viewlet .focused .monaco-tree-row.selected:not(.highlighted) > .content.actions .action-remove,
.vs-dark .monaco-workbench .search-viewlet .focused .monaco-tree-row.selected:not(.highlighted) > .content.actions .action-remove {
	background: url("action-remove-focus.svg") center center no-repeat;
}

.monaco-workbench .search-action.refresh {
	background: url('Refresh.svg') center center no-repeat;
}

.vs-dark .monaco-workbench .search-action.refresh,
.hc-black .monaco-workbench .search-action.refresh {
	background: url('Refresh_inverse.svg') center center no-repeat;
}

.monaco-workbench .search-action.collapse {
	background: url('CollapseAll.svg') center center no-repeat;
}

.vs-dark .monaco-workbench .search-action.collapse,
.hc-black .monaco-workbench .search-action.collapse {
	background: url('CollapseAll_inverse.svg') center center no-repeat;
}

.monaco-workbench .search-action.clear-search-results {
	background: url('clear-search-results.svg') center center no-repeat;
}

.vs-dark .monaco-workbench .search-action.clear-search-results,
.hc-black .monaco-workbench .search-action.clear-search-results {
	background: url('clear-search-results-dark.svg') center center no-repeat;
}

.vs .monaco-workbench .search-viewlet .query-details .file-types .controls > .custom-checkbox.pattern {
	background: url('pattern.svg') center center no-repeat;
}

.vs-dark .monaco-workbench .search-viewlet .query-details .file-types .controls > .custom-checkbox.pattern,
.hc-black .monaco-workbench .search-viewlet .query-details .file-types .controls > .custom-checkbox.pattern {
	background: url('pattern-dark.svg') center center no-repeat;
}

.vs .monaco-workbench .search-viewlet .query-details .file-types .controls>.custom-checkbox.useIgnoreFiles {
	background: url('gitignore.svg') center center no-repeat;
	background-size: 18px 18px;
}

.vs-dark .monaco-workbench .search-viewlet .query-details .file-types .controls>.custom-checkbox.useIgnoreFiles,
.hc-black .monaco-workbench .search-viewlet .query-details .file-types .controls>.custom-checkbox.useIgnoreFiles {
	background: url('gitignore-dark.svg') center center no-repeat;
	background-size: 18px 18px;
}

.vs .monaco-workbench .search-viewlet .query-details .file-types .controls>.custom-checkbox.useExcludeSettings {
	background: url('excludeSettings.svg') center center no-repeat;
}

.vs-dark .monaco-workbench .search-viewlet .query-details .file-types .controls>.custom-checkbox.useExcludeSettings,
.hc-black .monaco-workbench .search-viewlet .query-details .file-types .controls>.custom-checkbox.useExcludeSettings {
	background: url('excludeSettings-dark.svg') center center no-repeat;
}

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

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

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

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

/* Theming */

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

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

.vs .search-viewlet .search-widget .toggle-replace-button.collapse {
	background-image: url('expando-collapsed.svg');
}

.vs .search-viewlet .search-widget .toggle-replace-button.expand {
	background-image: url('expando-expanded.svg');
}

.vs-dark .search-viewlet .query-clear {
	background: url("action-query-clear-dark.svg") center center no-repeat;
}

.vs-dark .search-viewlet .action-remove,
.hc-black .search-viewlet .action-remove {
	background: url("action-remove-dark.svg") center center no-repeat;
}

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

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

.vs-dark .search-viewlet .search-widget .toggle-replace-button.expand,
.hc-black .search-viewlet .search-widget .toggle-replace-button.expand {
	background-image: url('expando-expanded-dark.svg');
}

.vs-dark .search-viewlet .search-widget .toggle-replace-button.collapse,
.hc-black .search-viewlet .search-widget .toggle-replace-button.collapse {
	background-image: url('expando-collapsed-dark.svg');
}

/* High Contrast Theming */

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