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

/* File icons in trees */

.file-icon-themable-tree.align-icons-and-twisties .monaco-tl-twistie:not(.force-twistie):not(.collapsible),
.file-icon-themable-tree .align-icon-with-twisty .monaco-tl-twistie:not(.force-twistie):not(.collapsible),
.file-icon-themable-tree.hide-arrows .monaco-tl-twistie:not(.force-twistie),
.file-icon-themable-tree .monaco-tl-twistie.force-no-twistie {
	background-image: none !important;
	width: 0 !important;
	padding-right: 0 !important;
	visibility: hidden;
}

/* Misc */

.file-icon-themable-tree .monaco-list-row .content .monaco-highlighted-label .highlight,
.monaco-tl-contents .monaco-highlighted-label .highlight {
	color: unset !important;
	background-color: var(--vscode-list-filterMatchBackground);
	outline: 1px dotted var(--vscode-list-filterMatchBorder);
	outline-offset: -1px;
}

.monaco-workbench .tree-explorer-viewlet-tree-view {
	height: 100%;
}

.monaco-workbench .tree-explorer-viewlet-tree-view .message {
	display: flex;
	padding: 4px 12px 4px 18px;
	user-select: text;
	-webkit-user-select: text;
}

.monaco-workbench .tree-explorer-viewlet-tree-view .message p {
	margin-top: 0px;
	margin-bottom: 0px;
	padding-bottom: 4px;
}

.monaco-workbench .tree-explorer-viewlet-tree-view .message ul {
	padding-left: 24px;
}

.monaco-workbench .tree-explorer-viewlet-tree-view .message.hide {
	display: none;
}

.monaco-workbench .tree-explorer-viewlet-tree-view .customview-tree {
	height: 100%;
}

.monaco-workbench .tree-explorer-viewlet-tree-view .customview-tree.hide {
	display: none;
}

.monaco-workbench .pane > .pane-body > .welcome-view {
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
}

.monaco-workbench .pane > .pane-body:not(.welcome) > .welcome-view,
.monaco-workbench .pane > .pane-body.welcome > :not(.welcome-view) {
	display: none;
}

.monaco-workbench .pane > .pane-body .welcome-view-content {
	display: flex;
	flex-direction: column;
	padding: 0 20px 1em 20px;
	box-sizing: border-box;
	align-items: center;
}

.monaco-workbench .pane > .pane-body .welcome-view-content > .button-container {
	width: 100%;
	max-width: 300px;
}

.monaco-workbench:not(.reduce-motion) .pane > .pane-body .welcome-view-content > .button-container {
	transition: 0.2s max-width ease-out;
}

.monaco-workbench .pane > .pane-body .welcome-view-content.wide > .button-container {
	max-width: 100%;
}

.monaco-workbench .pane > .pane-body .welcome-view-content > .button-container > .monaco-button {
	max-width: 300px;
}

.monaco-workbench .pane > .pane-body .welcome-view-content > p {
	width: 100%;
}

.monaco-workbench .pane > .pane-body .welcome-view-content > * {
	margin-block-start: 1em;
	margin-block-end: 0;
	margin-inline-start: 0px;
	margin-inline-end: 0px;
}

.customview-tree .monaco-list-row .monaco-tl-contents.align-icon-with-twisty::before {
	display: none;
}

.customview-tree .monaco-list-row .monaco-tl-contents:not(.align-icon-with-twisty)::before {
	display: inline-block;
}

.customview-tree .monaco-list .monaco-list-row {
	padding-right: 12px;
	padding-left: 0px;
}

.customview-tree .monaco-list .monaco-list-row .custom-view-tree-node-item {
	display: flex;
	height: 22px;
	line-height: 22px;
	flex: 1;
	text-overflow: ellipsis;
	overflow: hidden;
	flex-wrap: nowrap;
	padding-left: 3px;
}

.customview-tree .monaco-list .monaco-list-row.selected .custom-view-tree-node-item .custom-view-tree-node-item-checkbox {
	background-color: var(--vscode-checkbox-selectBackground);
	border: 1px solid var(--vscode-checkbox-selectBorder);
}

.customview-tree .monaco-list .monaco-list-row .custom-view-tree-node-item .custom-view-tree-node-item-checkbox {
	width: 16px;
	height: 16px;
	margin: 3px 6px 3px 0px;
	padding: 0px;
	border: 1px solid var(--vscode-checkbox-border);
	opacity: 1;
	background-color: var(--vscode-checkbox-background);
}

.customview-tree .monaco-list .monaco-list-row .custom-view-tree-node-item .custom-view-tree-node-item-checkbox.codicon {
	font-size: 13px;
	line-height: 15px;
}
.customview-tree .monaco-list .monaco-list-row .custom-view-tree-node-item .monaco-inputbox {
	line-height: normal;
	flex: 1;
}

.customview-tree .monaco-list .monaco-list-row .custom-view-tree-node-item .custom-view-tree-node-item-resourceLabel {
	flex: 1;
	text-overflow: ellipsis;
	overflow: hidden;
}

.customview-tree .monaco-list .monaco-list-row .custom-view-tree-node-item .monaco-icon-label-container::after {
	content: '';
	display: block;
}

.timeline-tree-view .monaco-list .monaco-list-row .custom-view-tree-node-item > .custom-view-tree-node-item-icon,
.customview-tree .monaco-list .monaco-list-row .custom-view-tree-node-item > .custom-view-tree-node-item-resourceLabel > .custom-view-tree-node-item-icon {
	background-size: 16px;
	background-position: left center;
	background-repeat: no-repeat;
	padding-right: 6px;
	width: 16px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.customview-tree .monaco-list .monaco-list-row .custom-view-tree-node-item > .custom-view-tree-node-item-resourceLabel > .custom-view-tree-node-item-icon.disabled {
	opacity: 0.6;
}
/* makes spinning icons square */
.customview-tree .monaco-list .monaco-list-row .custom-view-tree-node-item > .custom-view-tree-node-item-resourceLabel > .custom-view-tree-node-item-icon.codicon.codicon-modifier-spin {
	padding-left: 6px;
	margin-left: -6px;
}

.customview-tree .monaco-list .monaco-list-row.selected .custom-view-tree-node-item > .custom-view-tree-node-item-resourceLabel > .custom-view-tree-node-item-icon.codicon {
	color: currentColor !important;
}

.customview-tree .monaco-list .monaco-list-row .custom-view-tree-node-item .custom-view-tree-node-item-resourceLabel .monaco-icon-label-container > .monaco-icon-name-container {
	flex: 1;
}

.customview-tree .monaco-list .monaco-list-row .custom-view-tree-node-item .custom-view-tree-node-item-resourceLabel::after {
	padding-right: 0px;
	margin-right: 4px;
}

.customview-tree .monaco-list .monaco-list-row .custom-view-tree-node-item .actions {
	display: none;
}

.customview-tree .monaco-list .monaco-list-row .custom-view-tree-node-item .actions .action-label {
	padding: 2px;
}

.customview-tree .monaco-list .monaco-list-row:hover .custom-view-tree-node-item .actions,
.customview-tree .monaco-list .monaco-list-row.selected .custom-view-tree-node-item .actions,
.customview-tree .monaco-list .monaco-list-row.focused .custom-view-tree-node-item .actions {
	display: block;
}

/* filter view pane */

.viewpane-filter-container {
	cursor: default;
	display: flex;
}

.viewpane-filter-container.grow {
	flex: 1;
}

.viewpane-filter-container > .viewpane-filter {
	display: flex;
	align-items: center;
	flex: 1;
	position: relative;
}

.viewpane-filter-container > .viewpane-filter .monaco-inputbox {
	height: 24px;
	font-size: 12px;
	flex: 1;
}

.pane-header .viewpane-filter-container > .viewpane-filter .monaco-inputbox .monaco-inputbox {
	height: 20px;
	line-height: 18px;
}

.monaco-workbench.vs .viewpane-filter-container > .viewpane-filter .monaco-inputbox {
	height: 25px;
}

.viewpane-filter-container > .viewpane-filter > .viewpane-filter-controls {
	position: absolute;
	top: 0px;
	bottom: 0;
	right: 0px;
	display: flex;
	align-items: center;
}

.viewpane-filter-container > .viewpane-filter > .viewpane-filter-controls > .viewpane-filter-badge {
	margin: 4px 0px;
	padding: 0px 8px;
	border-radius: 2px;
}

.viewpane-filter > .viewpane-filter-controls > .viewpane-filter-badge.hidden,
.viewpane-filter.small > .viewpane-filter-controls > .viewpane-filter-badge {
	display: none;
}

.viewpane-filter > .viewpane-filter-controls > .monaco-action-bar .action-item .action-label.codicon.filter {
	padding: 2px;
}

.panel > .title .monaco-action-bar .action-item.viewpane-filter-container {
	max-width: 400px;
	min-width: 150px;
	margin-right: 10px;
}

.pane-body .viewpane-filter-container:not(:empty) {
	flex: 1;
	margin: 10px 20px;
	height: initial;
}

.pane-body .viewpane-filter-container > .viewpane-filter > .viewpane-filter-controls .monaco-action-bar .action-item {
	margin-right: 4px;
}

.viewpane-filter > .viewpane-filter-controls .monaco-action-bar .action-label.codicon.codicon-filter.checked {
	border-color: var(--vscode-inputOption-activeBorder);
	color: var(--vscode-inputOption-activeForeground);
	background-color: var(--vscode-inputOption-activeBackground);
}
