/* The window frame, the menu bar, the menus and the dialogs. */
.window {
	position: absolute;
	width: 282px;
	background: var(--btn-face);
	border: none;
	box-shadow:
		inset -1px -1px 0 var(--btn-dkshadow),
		inset 1px 1px 0 var(--btn-hilight),
		inset -2px -2px 0 var(--btn-shadow),
		inset 2px 2px 0 var(--btn-light),
		4px 4px 0 rgba(0,0,0,0.3);
	padding: 3px 4px 3px 3px;
	display: none;
	z-index: 100;
}
.titlebar {
	background: linear-gradient(90deg, var(--active-title) 0%, var(--active-title-2) 100%);
	color: var(--title-text);
	display: flex;
	align-items: center;
	padding: 3px 3px 3px 4px;
	cursor: move;
}
.titlebar.inactive {
	background: linear-gradient(90deg, var(--inactive-title) 0%, var(--inactive-title-2) 100%);
	color: var(--inactive-title-text);
}
.title-icon {
	width: 16px;
	height: 16px;
	font-size: 14px;
	margin-right: 4px;
	margin-left: 2px;
}
.titlebar span {
	flex: 1;
	padding-left: 2px;
	font-weight: bold;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.title-btn {
	width: 19px;
	height: 19px;
	margin-left: 0;
	background: var(--btn-face);
	color: var(--btn-text);
	border: none;
	box-shadow:
		inset -1px -1px 0 var(--btn-dkshadow),
		inset 1px 1px 0 var(--btn-hilight),
		inset -2px -2px 0 var(--btn-shadow),
		inset 2px 2px 0 var(--btn-light);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
}
.title-btn:hover {
	background-color: var(--btn-face-hover);
}
.title-btn:active {
	box-shadow:
		inset 1px 1px 0 var(--btn-dkshadow),
		inset -1px -1px 0 var(--btn-hilight),
		inset 2px 2px 0 var(--btn-shadow),
		inset -2px -2px 0 var(--btn-light);
}
.title-btn.close {
	margin-left: 2px;
}
.menubar {
	height: 20px;
	background: var(--menu);
	color: var(--menu-text);
	border-bottom: 1px solid var(--btn-shadow);
	display: flex;
	align-items: center;
	padding-left: 0px;
	font-weight: bold;
}
.menu-item {
	padding: 2px 4px;
	cursor: pointer;
}
.menu-item:hover {
	background: var(--hilight);
	color: var(--hilight-text);
}

.dropdown {
	position: absolute;
	background: var(--menu);
	color: var(--menu-text);
	border: 2px solid var(--btn-hilight);
	border-bottom-color: var(--btn-shadow);
	border-right-color: var(--btn-shadow);
	display: none;
	z-index: 20000;
	min-width: 160px;
	box-shadow: 2px 2px 3px rgba(0,0,0,0.4);
}
.dropdown-item {
	padding: 4px 25px 4px 8px;
	cursor: pointer;
}
.dropdown-item:hover {
	background: var(--hilight);
	color: var(--hilight-text);
}

.menu-item.open {
	background: var(--hilight);
	color: var(--hilight-text);
}

/* Win2000 Dialog */
.dialog-window {
	position: absolute;
	background: var(--btn-face);
	border: none;
	box-shadow:
		inset -1px -1px 0 var(--btn-dkshadow),
		inset 1px 1px 0 var(--btn-hilight),
		inset -2px -2px 0 var(--btn-shadow),
		inset 2px 2px 0 var(--btn-light),
		4px 4px 0 rgba(0,0,0,0.3);
	padding: 3px 4px 3px 3px;
	min-width: 260px;
	z-index: 200;
}
.dialog-body {
	padding: 12px 16px;
}
.dialog-icon {
	font-size: 32px;
	margin-right: 12px;
	flex-shrink: 0;
}
.dialog-content {
	display: flex;
	align-items: flex-start;
}
.dialog-text {
	padding-top: 4px;
	line-height: 1.5;
}
.dialog-buttons {
	display: flex;
	justify-content: center;
	gap: 8px;
	padding: 8px 16px 12px;
}
.dialog-btn {
	min-width: 75px;
	height: 23px;
	background: var(--btn-face);
	border: none;
	box-shadow:
		inset -1px -1px 0 var(--btn-dkshadow),
		inset 1px 1px 0 var(--btn-hilight),
		inset -2px -2px 0 var(--btn-shadow),
		inset 2px 2px 0 var(--btn-light);
	cursor: pointer;
	font-family: inherit;
	font-size: 11px;
	color: var(--btn-text);
}
.dialog-btn:hover {
	background-color: var(--btn-face-hover);
}
.dialog-btn:active {
	box-shadow:
		inset 1px 1px 0 var(--btn-dkshadow),
		inset -1px -1px 0 var(--btn-hilight),
		inset 2px 2px 0 var(--btn-shadow),
		inset -2px -2px 0 var(--btn-light);
}
.dialog-input {
	width: 100%;
	padding: 2px 4px;
	border: 2px solid var(--btn-shadow);
	border-right-color: var(--btn-hilight);
	border-bottom-color: var(--btn-hilight);
	background: var(--window);
	color: var(--window-text);
	font-family: inherit;
	font-size: 11px;
	box-sizing: border-box;
	margin-top: 8px;
}

/*
 * The list of a select element. The browser paints the line under the mouse
 * with the color of the system, and a background color does not go over that
 * color. A gradient does, thus the theme also reaches this list.
 */
select option,
select optgroup {
	background: var(--window);
	color: var(--window-text);
}
select option:hover,
select option:focus,
select option:checked {
	background: var(--hilight) linear-gradient(var(--hilight), var(--hilight));
	color: var(--hilight-text);
}
