/************* Panel with title bar ************/
.dock-fullscreen-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 25px;
    height: 25px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    pointer-events: auto;
}
.dock-fullscreen-button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.25;
}
.dock-fullscreen-button:hover { background: #c9def5; }
.dock-fullscreen-button:focus-visible { outline: 1px solid #007acc; outline-offset: -2px; }
.panel-titlebar-button-fullscreen { position: absolute; right: 25px; top: 0; }
.dockspan-tab-handle-fullscreen-button { position: absolute; right: 19px; top: 2px; width: 18px; height: 18px; }
.dockspan-tab-handle.dockspan-tab-can-fullscreen { padding-right: 36px; }
.panel-titlebar-can-fullscreen .panel-titlebar-text { width: calc(100% - 60px); }
.panel-titlebar-can-fullscreen .panel-titlebar-button-auto-hide { right: 50px; }
.panel-titlebar-can-fullscreen.panel-titlebar-can-auto-hide .panel-titlebar-text { width: calc(100% - 85px); }
.dock-fullscreen-overlay {
    position: absolute;
    inset: 0;
    z-index: 2147483647;
    overflow: hidden;
    background: white;
    color: #444;
    pointer-events: auto;
    font: 12px "Segoe UI", Arial, sans-serif;
}
.dock-fullscreen-header { position: relative; }
.dock-fullscreen-header .panel-titlebar-button-fullscreen { right: 0; }
.panel-element-content-container {
	/* Content lives outside the layout tree, which docking can append after it. */
	z-index: 1;
}

.panel-titlebar-button-auto-hide {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    position: absolute;
    right: 25px;
    top: 0;
    width: 25px;
    height: 25px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    pointer-events: auto;
}
.panel-titlebar-can-auto-hide .panel-titlebar-button-close { width: 25px; }
.panel-titlebar-can-auto-hide .panel-titlebar-text { width: calc(100% - 60px); }
.panel-titlebar-button-auto-hide svg {
    display: block;
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.25;
}
.panel-titlebar-button-auto-hide[aria-pressed="true"] svg { transform: rotate(90deg); }
.panel-titlebar-button-auto-hide:hover { color: black; }
.dock-auto-hide-rail {
    position: absolute;
    z-index: 9001;
    gap: 2px;
    overflow: auto;
    background: #eee;
    pointer-events: auto;
}
.dock-auto-hide-left, .dock-auto-hide-right { width: 26px; flex-direction: column; }
.dock-auto-hide-top, .dock-auto-hide-bottom { height: 26px; flex-direction: row; }
.dock-auto-hide-left { left: 0; }
.dock-auto-hide-right { right: 0; }
.dock-auto-hide-top { top: 0; }
.dock-auto-hide-bottom { bottom: 0; }
.dock-auto-hide-tab {
    flex-shrink: 0;
    border: 1px solid #aaa;
    background: #eee;
    color: #222;
    font: inherit;
    cursor: pointer;
}
.dock-auto-hide-left .dock-auto-hide-tab, .dock-auto-hide-right .dock-auto-hide-tab {
    writing-mode: vertical-rl;
    padding: 8px 2px;
}
.dock-auto-hide-tab[aria-expanded="true"] { background: #cce4ff; }
.dock-auto-hide-overlay { box-shadow: 0 2px 8px #0005; }
.dock-auto-hide-resize-handle {
    position: absolute;
    z-index: 9002;
    pointer-events: auto;
    touch-action: none;
    user-select: none;
}

.panel-base {
	pointer-events: none;
}

.panel-base:focus {
	outline: 0;
}

.panel-titlebar {
	width: 100%;
	overflow: hidden;
	height: 25px;
	pointer-events: auto;
}

.panel-titlebar-icon {
	height: 16px;
	margin-right: 3px;
}

.panel-titlebar-text {
	float: left;
	padding-left: 10px;
	padding-top: 5px;
	text-overflow: ellipsis;
	overflow: hidden;
	width: calc(100% - 30px);
	white-space: nowrap;
}

.panel-titlebar-text > span {
	vertical-align: top;
}

.panel-titlebar-button-close {
	cursor: pointer;
	display: flex;
    justify-content: flex-end;
    align-items: center;
	width: 25px;
    height: 25px;
    position: absolute;
    right: 0;
    top: 0;
}

.panel-titlebar-button-close::after {
	content: '';
	position: absolute;
	width: 10px;
	height: 10px;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	background: linear-gradient(45deg, transparent 44%, currentColor 46%, currentColor 54%, transparent 56%),
		linear-gradient(-45deg, transparent 44%, currentColor 46%, currentColor 54%, transparent 56%);
	pointer-events: none;
}

.panel-titlebar-button-close:hover {
	color: black;
}

.panel-content {
	width: 100%;
	overflow: hidden;
}

.panel-content * {
	/* margin: 0px; */
}

.panel-content-wrapper {
	width: 100%;
	height: 100%;
	position: relative;
}

.panel-grayout {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgb(0 0 0 / 50%);
	z-index: 10;
	pointer-events: all;
}

.panel-has-changes {
    font-style: italic;
}

.panel-has-changes::before {
    content: '* ';
}

/***************** Floating dialog box ****************/

.dialog-floating {
	position: absolute;
}

.dialog-floating:focus {
	outline: 0;
}

/************ Resize decorator ************/

.resize-handle {
	position: absolute;
	width: 6px;
	height: 6px;
	z-index: 10;
}

.resize-handle-corner {
	position: absolute;
	width: 12px;
	height: 12px;
	z-index: 10;
}

.resize-handle-e {
	cursor: e-resize;
}

.resize-handle-w {
	cursor: w-resize;
}

.resize-handle-s {
	cursor: s-resize;
}

.resize-handle-n {
	cursor: n-resize;
}

.resize-handle-ne {
	cursor: ne-resize;
}

.resize-handle-nw {
	cursor: nw-resize;
}

.resize-handle-se {
	cursor: se-resize;
}

.resize-handle-sw {
	cursor: sw-resize;
}

/******************* Dock Manager ********************/

.dock-container {
	position: relative;
}

.dock-container-fill {}

/******************* Document Manager ********************/

.document-manager {}

/******************* Dock Wheel ********************/

.dock-wheel-base {
	position: absolute;
}

.dock-wheel-item {
	position: absolute;
	width: 32px;
	height: 32px;
}

.dock-wheel-fill {
	margin-left: -16px;
	margin-top: -16px;
}

.dock-wheel-left {
	margin-left: -48px;
	margin-top: -16px;
}

.dock-wheel-right {
	margin-left: 16px;
	margin-top: -16px;
}

.dock-wheel-top {
	margin-left: -16px;
	margin-top: -48px;
}

.dock-wheel-down {
	margin-left: -16px;
	margin-top: 16px;
}

.dock-wheel-panel-preview {
	position: absolute;
	background-color: rgba(128, 128, 255, 0.5);
}

.dock-wheel-fill-icon {
	background: url(../images/dock_fill.png) 0 0;
}

.dock-wheel-left-icon {
	background: url(../images/dock_left.png) 0 0;
}

.dock-wheel-right-icon {
	background: url(../images/dock_right.png) 0 0;
}

.dock-wheel-top-icon {
	background: url(../images/dock_top.png) 0 0;
}

.dock-wheel-down-icon {
	background: url(../images/dock_bottom.png) 0 0;
}

.dock-wheel-fill-icon-hover {
	background: url(../images/dock_fill_sel.png) 0 0;
}

.dock-wheel-left-icon-hover {
	background: url(../images/dock_left_sel.png) 0 0;
}

.dock-wheel-right-icon-hover {
	background: url(../images/dock_right_sel.png) 0 0;
}

.dock-wheel-top-icon-hover {
	background: url(../images/dock_top_sel.png) 0 0;
}

.dock-wheel-down-icon-hover {
	background: url(../images/dock_bottom_sel.png) 0 0;
}

/**************************** Splitter *********************************/

.splitter-container-horizontal {
	float: left;
	position: relative;
	pointer-events: none;
}

.splitter-container-vertical {
	position: relative;
	pointer-events: none;
}

.splitbar-horizontal {
	width: 100%;
	height: 5px;
	cursor: n-resize;
	position: relative;
	pointer-events: auto;
}

.splitbar-vertical {
	width: 5px;
	height: 100%;
	float: left;
	cursor: e-resize;
	position: relative;
	pointer-events: auto;
}

.splitbar-horizontal-ghoust {
	width: 100%;
	height: 5px;
	cursor: n-resize;
	position: absolute;
}

.splitbar-vertical-ghoust {
	width: 5px;
	height: 100%;
	position: absolute;
	cursor: e-resize;
}

/*************************** Tab Host ********************************/

.dockspan-tab-host {
	display: inline-block;
	position: absolute;
}

.dockspan-tab-content {
	position: relative;
}

.dockspan-tab-content:focus {
	outline: 0;
}

.dockspan-tab-content * {}

.dockspan-tab-handle {
	position: relative;
	height: 22px;
	float: left;
	overflow: hidden;
	cursor: pointer;
	padding-right: 16px;
}

.dockspan-tab-handle:hover {
	cursor: pointer;
}

.dockspan-tab-handle-selected {}

.dockspan-tab-handle-text {
	margin-top: 3px;
	margin-left: 6px;
	margin-right: 6px;
	white-space: nowrap;
	overflow: hidden;
	float: left;
	text-overflow: ellipsis;
	width: calc(100% - 3px);
	display: block;
}

.dockspan-tab-handle-text > span {
	vertical-align: top;
}

.dockspan-tab-handle-close-button {
	position: absolute;
	right: 1px;
	top: 2px;
	width: 18px;
	height: 18px;
	cursor: pointer;
}

.dockspan-tab-handle-close-button::after {
	position: absolute;
	content: '';
	width: 10px;
	height: 10px;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	background: linear-gradient(45deg, transparent 44%, currentColor 46%, currentColor 54%, transparent 56%),
		linear-gradient(-45deg, transparent 44%, currentColor 46%, currentColor 54%, transparent 56%);
	pointer-events: none;
}

.dockspan-tab-handle-close-button:hover {
	color: black;
}

.dockspan-tab-handle-marked {
    box-shadow: inset 0 -3px 0 #4b9fea;
    outline: 1px solid #4b9fea;
    outline-offset: -1px;
}

.dock-tab-group-drop-target {
    outline: 3px solid #4b9fea;
    outline-offset: -3px;
}

.dockspan-tab-handle-list-container {
	height: 22px;
	overflow: hidden;
	display: none;
	pointer-events: auto;
}

.dockspan-tab-handle-list-container-visible {
	display: flex;
}

.dockspan-tab-handle-list-container {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}
.dockspan-tab-handle-list-container::-webkit-scrollbar { display: none; }
.dockspan-tab-handle-list-container > .dockspan-tab-handle {
    flex: 0 0 auto;
    box-sizing: border-box;
    min-width: 48px;
    max-width: 240px;
}
.dockspan-tab-handle-list-container.dockspan-tab-strip-wrap {
    height: auto;
    flex-wrap: wrap;
    overflow-y: auto;
    align-content: flex-start;
}
.dockspan-tab-strip-wrap > .dockspan-tab-handle { max-width: 100%; }
.dockspan-tab-strip-controls {
    position: absolute;
    right: 0;
    display: flex;
    width: 56px;
    height: 22px;
    pointer-events: auto;
}
.dockspan-tab-strip-controls[hidden] { display: none; }
.dockspan-tab-strip-controls > * {
    width: 28px;
    height: 22px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    font: inherit;
    color: inherit;
    background: #eeeef2;
    cursor: pointer;
}
.dockspan-tab-strip-controls > :hover { background: #c9def5; }
.dockspan-tab-strip-controls > :focus-visible { outline: 1px solid #007acc; outline-offset: -1px; }
.dockspan-tab-strip-controls > [aria-pressed="true"] { background: #a8c9ed; }
.dockspan-tab-strip-controls > select { text-indent: 100%; }
.dockspan-tab-strip-controls option { background: white; color: #222; text-indent: 0; }

.dockspan-tab-handle-content-seperator {
	height: 4px;
	display: none;
}

.dockspan-tab-handle-content-seperator-visible {
	display: block;
}

.dockspan-tab-handle-content-seperator-selected {}

.dockspab-tab-handle-context-menu {
	position: absolute;
	z-index: 10000000;
	background-color: white;
	border: white;
	border: black solid 2px;
	padding: 5px;
}

.dockspab-tab-handle-context-menu>div {
	cursor: pointer;
	padding: 2px;
}

.dockspab-tab-handle-context-menu>div:hover {
	background-color: gray;
	cursor: pointer;
	padding: 2px;
}

/*************************** Text Selection **************************/

.disable-selection {
	user-select: none;
	-moz-user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;
	cursor: default;
}
