/*---------------------------------------------------------------------------------------------
 *  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: 6px 9px 0 2px;
}

.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 .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;
}

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

.search-viewlet .search-widget .replace-container > * {
	display: inline-block;
}

.search-viewlet .search-widget .replace-container .monaco-action-bar {
	position: absolute;
	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 6px 17px;
}

.search-viewlet .query-details .more {
	position: absolute;
	margin-right: 0.3em;
	right: 0;
	cursor: pointer;
	width: 16px;
	height: 13px;
}

.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: 4px;
}

.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 {
	background: url('configure-inverse.svg') center center no-repeat;
}

.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 .message {
	padding-left: 22px;
	padding-right: 22px;
	padding-top: 2px;
}

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

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

.search-viewlet .linematch {
	overflow: hidden;
	text-overflow: ellipsis;
	position: relative;
	line-height: 22px;
}

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

.search-viewlet .checkbox {
	display: inline-block;
	visibility: hidden;
	border: 1px solid rgba(128, 128, 128, 0.5);
	width: 0;
	height: 12px;
	margin-right: 0;
	position: relative;
	top: 2px;
	transition:			width 150ms, margin-right 150ms ease-in;
}

.search-viewlet .linematch .checkbox.checked {
	background-position: -66px -150px;
}

.search-viewlet .select .linematch .checkbox {
	visibility: visible;
	width: 12px;
	margin-right: 4px;
}

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

.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 .monaco-count-badge,
.search-viewlet > .results > .monaco-tree.focused .monaco-tree-row.focused .content .monaco-count-badge {
	display: none;
}

.vs .search-viewlet input.disabled,
.vs .search-viewlet .file-types.disabled .monaco-inputbox {
	background-color: #E1E1E1;
}

.vs-dark .search-viewlet input.disabled,
.vs-dark .search-viewlet .file-types.disabled .monaco-inputbox {
	background-color: #333;
}

.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;
}

.search-viewlet .findInFileMatch,
.monaco-editor .findInFileMatch {
	background-color: rgba(234, 92, 0, 0.3);
	animation-duration: 0;
	animation-name: inherit !important;
}

.search-viewlet .replace.findInFileMatch {
	text-decoration: line-through;
	background-color: rgba(255, 0, 0, 0.2);
}

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

.search-viewlet .replaceMatch {
	background-color: rgba(155, 185, 85, 0.5);
}

.hc-black .monaco-workbench .search-viewlet .replaceMatch,
.hc-black .monaco-workbench .search-viewlet .findInFileMatch,
.monaco-editor.hc-black .findInFileMatch {
	background: none !important;
	border: 1px dotted #f38518;
	box-sizing: border-box;
}

.hc-black .monaco-workbench .search-viewlet .replace.findInFileMatch {
	border: 1px dashed #FF008F;
}

.hc-black .monaco-workbench .search-viewlet .replaceMatch {
	border: 1px dashed rgb(51, 255, 46);
}

/* Theming */

.search-viewlet .highlight {
	color: black;
	background-color: rgba(234, 92, 0, 0.3);
}

.vs .search-viewlet .input-box,
.vs .search-viewlet .file-types .monaco-inputbox {
	background-color: white;
}

.vs .search-viewlet .filematch .name {
	color: #1E1E1E;
}

.vs .search-viewlet .monaco-tree.focused .monaco-tree-row.selected .filematch .name {
	color: #FFF;
}

.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 .input-box,
.vs-dark .search-viewlet .file-types .monaco-inputbox {
	background-color: #3C3C3C;
}

.vs-dark .search-viewlet .monaco-tree .filematch .name {
	color: #FFF;
}

.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 {
	color: #FFF;
}

.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 .input-box,
.hc-black .monaco-workbench .search-viewlet .file-types .monaco-inputbox {
	background-color: #000;
}

.hc-black .monaco-workbench .input-box {
	border: 1px solid #6FC3DF;
}

.hc-black .monaco-workbench .input-box .monaco-inputbox.idle {
	border: none;
}

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