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

.monaco-workbench .part.statusbar {
	box-sizing: border-box;
	cursor: default;
	width: 100%;
	height: 22px;
	font-size: 12px;
	display: flex;
	overflow: visible;
}

.monaco-workbench .part.statusbar.status-border-top::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	z-index: 5;
	pointer-events: none;
	background-color: var(--status-border-top-color);
	width: 100%;
	height: 1px;
}

.monaco-workbench .part.statusbar > .left-items,
.monaco-workbench .part.statusbar > .right-items {
	display: flex;
}

.monaco-workbench .part.statusbar > .right-items {
	flex-direction: row-reverse;
	flex-wrap: wrap /* ensures that the most right elements wrap last when space is little */;
}

.monaco-workbench .part.statusbar > .left-items {
	flex-grow: 1; /* left items push right items to the far right end */
}

.monaco-workbench  .part.statusbar > .items-container > .statusbar-item {
	display: inline-block;
	line-height: 22px;
	height: 100%;
	vertical-align: top;
	max-width: 40vw;
}

.monaco-workbench .part.statusbar > .items-container > .statusbar-item.has-beak {
	position: relative;
}

.monaco-workbench .part.statusbar > .items-container > .statusbar-item.has-beak:before {
	content: '';
	position: absolute;
	left: 10px;
	top: -5px;
	border-bottom-width: 5px;
	border-bottom-style: solid;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
}

.monaco-workbench .part.statusbar > .items-container > .statusbar-item > :first-child {
	margin-right: 3px;
	margin-left: 3px;
}

.monaco-workbench .part.statusbar > .items-container > .statusbar-item.left.first-visible-item {
	padding-left: 7px; /* Add padding to the most left status bar item */
}

.monaco-workbench .part.statusbar > .items-container > .statusbar-item.right.last-visible-item {
	padding-right: 7px; /* Add padding to the most right status bar item */
}

/* tweak appearance for items with background to improve hover feedback */
.monaco-workbench .part.statusbar > .items-container > .statusbar-item.has-background-color.left.first-visible-item,
.monaco-workbench .part.statusbar > .items-container > .statusbar-item.has-background-color.right.last-visible-item {
	padding-right: 0;
	padding-left: 0;
}

.monaco-workbench .part.statusbar > .items-container > .statusbar-item.has-background-color > :first-child {
	margin-right: 0;
	margin-left: 0;
	padding-left: 10px;
	padding-right: 10px;
}

.monaco-workbench .part.statusbar > .items-container > .statusbar-item > a {
	cursor: pointer;
	display: flex;
	height: 100%;
	padding: 0 5px 0 5px;
	white-space: pre; /* gives some degree of styling */
	align-items: center;
	text-overflow: ellipsis;
	overflow: hidden;
	outline-width: 0px; /* do not render focus outline, we already have background */
}

.monaco-workbench .part.statusbar > .items-container > .statusbar-item > a:hover {
	text-decoration: none;
}

.monaco-workbench .part.statusbar > .items-container > .statusbar-item > a.disabled {
	pointer-events: none;
}

.monaco-workbench .part.statusbar > .items-container > .statusbar-item  span.codicon {
	text-align: center;
	font-size: 14px;
	color: inherit;
}
