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

/* Debug viewlet */

.debug-viewlet {
	height: 100%;
}

.debug-view-content {
	height: 100%;
}

/* Actionbar actions */

.monaco-workbench .debug-action.configure {
	background: url('configure.svg') center center no-repeat;
}

.monaco-workbench .debug-action.start {
	background: url('start.svg') center center no-repeat;
}

.monaco-workbench .debug-action.toggle-repl {
	background: url('repl.svg') center center no-repeat;
}

.monaco-workbench .debug-action.notification:before {
	content: '';
	width: 6px;
	height: 6px;
	background-color: #CC6633;
	position: absolute;
	top: 11px;
	right: 5px;
	border-radius: 10px;
	border: 1px solid white;
}

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

.vs-dark .monaco-workbench .debug-action.toggle-repl,
.hc-black .monaco-workbench .debug-action.toggle-repl {
	background: url('repl-inverse.svg') center center no-repeat;
}

.monaco-workbench .part > .title > .title-actions .start-debug-action-item {
	display: flex;
	align-items: center;
	font-size: 11px;
	margin-right: 0.3em;
	height: 20px;
	flex-shrink: 1;
	margin-top: 7px;
}

.monaco-workbench.mac .part > .title > .title-actions .start-debug-action-item {
	border-radius: 4px;
}

.monaco-workbench .part > .title > .title-actions .start-debug-action-item .icon {
	height: 20px;
	width: 20px;
	background: url('start.svg') no-repeat;
	background-size: 16px 16px;
	background-position: center center;
	flex-shrink: 0;
	transition: transform 50ms ease;
}

.vs-dark .monaco-workbench .part > .title > .title-actions .start-debug-action-item .icon,
.hc-black .monaco-workbench .part > .title > .title-actions .start-debug-action-item .icon {
	background-image: url('start-inverse.svg');
}

.monaco-workbench .monaco-action-bar .start-debug-action-item .configuration .monaco-select-box {
	border: none;
	margin-top: 0px;
	cursor: pointer;
}

.monaco-workbench .monaco-action-bar .start-debug-action-item .configuration.disabled .monaco-select-box {
	opacity: 0.7;
	font-style: italic;
	cursor: initial;
}

.monaco-workbench .part > .title > .title-actions .start-debug-action-item .icon.active {
	transform: scale(1.272019649, 1.272019649);
}

/* Debug viewlet trees */

.debug-viewlet .line-number {
	background: rgba(136, 136, 136, 0.3);
	border-radius: 2px;
	font-size: 0.9em;
	padding: 0 3px;
	margin-left: 0.8em;
	line-height: 20px;
}

.debug-viewlet .monaco-list-row.selected .line-number,
.debug-viewlet .monaco-list-row.selected .thread > .state > .label,
.debug-viewlet .monaco-list-row.selected .session > .state > .label {
	background-color: #ffffff;
	color: #666;
}

.debug-viewlet .disabled {
	opacity: 0.35;
}

/* Call stack */

.debug-viewlet .debug-call-stack-title {
	display: flex;
	width: 100%;
}

.debug-viewlet .debug-call-stack-title > .pause-message {
	flex: 1;
	text-align: right;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
	margin: 0px 10px;
}

.debug-viewlet .debug-call-stack-title > .pause-message > .label {
	border-radius: 3px;
	padding: 1px 2px;
	font-size: 9px;
}

.debug-viewlet .debug-call-stack-title > .pause-message > .label.exception {
	background-color: #A31515;
	color: rgb(255, 255, 255);
}

.vs-dark .debug-viewlet .debug-call-stack-title > .pause-message > .label.exception {
	background-color: #6C2022;
	color: inherit;
}

.hc-black .debug-viewlet .debug-call-stack-title > .pause-message > .label.exception {
	background-color: #6C2022;
	color: inherit;
}

.debug-viewlet .debug-call-stack .thread,
.debug-viewlet .debug-call-stack .session {
	display: flex;
}

.debug-viewlet .debug-call-stack .thread > .state,
.debug-viewlet .debug-call-stack .session > .state {
	flex: 1;
	text-align: right;
	overflow: hidden;
	text-overflow: ellipsis;
	padding: 0 10px;
	text-transform: uppercase;
}

.debug-viewlet .debug-call-stack .thread > .state > .label,
.debug-viewlet .debug-call-stack .session > .state > .label {
	background: rgba(136, 136, 136, 0.3);
	border-radius: 2px;
	font-size: 0.8em;
	padding: 0 3px;
}

.debug-viewlet .debug-call-stack .stack-frame {
	overflow: hidden;
	text-overflow: ellipsis;
	padding-right: 0.8em;
	display: flex;
}

.debug-viewlet .debug-call-stack .stack-frame.label {
	text-align: center;
	font-style: italic;
}

.debug-viewlet .debug-call-stack .stack-frame .label {
	flex: 1;
	flex-shrink: 0;
	min-width: fit-content;
}

.debug-viewlet .debug-call-stack .stack-frame.subtle {
	font-style: italic;
}

.debug-viewlet .debug-call-stack .stack-frame.label > .file {
	display: none;
}

.debug-viewlet .debug-call-stack .stack-frame > .file {
	display: flex;
	overflow: hidden;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.debug-viewlet .debug-call-stack .stack-frame > .file > .line-number.unavailable {
	display: none;
}

.debug-viewlet .debug-call-stack .monaco-list-row:not(.selected) .stack-frame > .file {
	color: rgba(108, 108, 108, 0.8);
}

.debug-viewlet .debug-call-stack .stack-frame > .file > .file-name {
	overflow: hidden;
	text-overflow: ellipsis;
}

.vs-dark .debug-viewlet .debug-call-stack .monaco-list-row:not(.selected) .stack-frame > .file {
	color: rgba(204, 204, 204, 0.6);
}

.debug-viewlet .debug-call-stack .stack-frame > .file:not(:first-child) {
	margin-left: 0.8em;
}

.debug-viewlet .debug-call-stack .load-more {
	font-style: italic;
	text-align: center;
}

.debug-viewlet .debug-call-stack .show-more {
	font-style: italic;
	opacity: 0.35;
}

.monaco-workbench .debug-viewlet .monaco-list-row .expression {
	white-space: pre;
}

.debug-viewlet .debug-call-stack .error {
	font-style: italic;
	text-overflow: ellipsis;
	overflow: hidden;
}

/* Variables & Expression view */

.debug-viewlet .scope {
	font-weight: bold;
	font-size: 11px;
}

/* Animation of changed values in Debug viewlet */
@keyframes debugViewletValueChanged {
	0% { background-color: rgba(86, 156, 214, 0) }
	5% { background-color: rgba(86, 156, 214, .75) }
	100% { background-color: rgba(86, 156, 214, .3) }
}

@keyframes debugViewletValueChangedDark {
	0% { background-color: rgba(86, 156, 214, 0) }
	5% { background-color: rgba(86, 156, 214, .5) }
	100% { background-color: rgba(86, 156, 214, .2) }
}

.debug-viewlet .monaco-list-row .expression .value.changed {
	padding: 2px;
	margin: 4px;
	border-radius: 4px;
	background-color: rgba(86, 156, 214, .5);
	animation-name: debugViewletValueChanged;
	animation-duration: .75s;
	animation-fill-mode: forwards;
}

.debug-viewlet .monaco-inputbox {
	width: 100%;
	line-height: normal;
}

.debug-viewlet .inputBoxContainer {
	box-sizing: border-box;
	flex-grow: 1;
}

.debug-viewlet .debug-watch .monaco-inputbox {
	font-family: var(--monaco-monospace-font);
}

.debug-viewlet .monaco-inputbox > .wrapper {
	height: 19px;
}

.debug-viewlet .monaco-inputbox > .wrapper > .input {
	padding: 0px;
	color: initial;
}

.debug-viewlet .watch-expression {
	display: flex;
}

.debug-viewlet .watch-expression .expression {
	flex : 1;
}

.debug-viewlet .debug-action.add-watch-expression,
.debug-viewlet .debug-action.add-function-breakpoint {
	background: url('add.svg') center center no-repeat;
}

.vs-dark .debug-viewlet .debug-action.add-watch-expression,
.vs-dark .debug-viewlet .debug-action.add-function-breakpoint,
.hc-black .debug-viewlet .debug-action.add-watch-expression {
	background: url('add-inverse.svg') center center no-repeat;
}

.vs-dark .debug-viewlet .monaco-list-row .expression .value.changed {
	animation-name: debugViewletValueChanged;
}

/* Breakpoints */

.debug-viewlet .monaco-list-row {
	line-height: 22px;
}

.debug-viewlet .debug-breakpoints .monaco-list-row .breakpoint {
	padding-left: 2px;
}

.debug-viewlet .debug-breakpoints .breakpoint.exception {
	padding-left: 20px;
}

.debug-viewlet .debug-breakpoints .breakpoint {
	display: flex;
	padding-right: 0.8em;
	flex: 1;
	align-items: center;
}

.debug-viewlet .debug-breakpoints .breakpoint input {
	flex-shrink: 0;
}

.debug-viewlet .debug-breakpoints .breakpoint > .icon {
	width: 19px;
	height: 19px;
	min-width: 19px;
}

.debug-viewlet .debug-breakpoints .breakpoint > .file-path {
	opacity: 0.7;
	font-size: 0.9em;
	margin-left: 0.8em;
	flex: 1;
	text-overflow: ellipsis;
	overflow: hidden;
}

.debug-viewlet .debug-breakpoints .breakpoint .name {
	overflow: hidden;
	text-overflow: ellipsis
}

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

.debug-viewlet .debug-action.breakpoints-activate {
	background: url('breakpoints-activate.svg') center center no-repeat;
}

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

.vs-dark .debug-viewlet .debug-action.breakpoints-activate,
.hc-black .debug-viewlet .debug-action.breakpoints-activate {
	background: url('breakpoints-activate-inverse.svg') center center no-repeat;
}

/* No workspace view */

.debug-viewlet > .noworkspace-view {
	padding: 0 20px 0 20px;
}

.debug-viewlet > .noworkspace-view > p {
	line-height: 1.5em;
}
