/**
 * Application tool panel (#app-tool-panel) — flush right dock, full height.
 */
#app-tool-panel.modal {
	padding: 0 !important;
}

#app-tool-panel .modal-dialog {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	margin: 0;
	height: 100%;
	max-height: 100vh;
	max-height: 100dvh;
	width: 100%;
	max-width: 800px;
}

#app-tool-panel .modal-content {
	display: flex;
	flex-direction: column;
	height: 100%;
	max-height: 100vh;
	max-height: 100dvh;
	border: 0;
	border-radius: 0;
	overflow: hidden !important;
}

#app-tool-panel .dropdown-header,
#app-tool-panel .modal-footer {
	flex: 0 0 auto;
	flex-shrink: 0 !important;
	position: relative;
	z-index: 2;
}

#app-tool-panel .modal-body {
	flex: 1 1 0;
	min-height: 0;
	overflow: hidden !important;
	padding: 0 !important;
}

#app-tool-panel .modal-body > .position-relative {
	height: 100%;
	min-height: 0;
	overflow: hidden;
}

#app-tool-panel .js-tool-panel-container {
	position: relative;
	height: 100%;
	min-height: 0;
	overflow: hidden;
}

#app-tool-panel .js-tool-panel-container iframe {
	display: block;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	vertical-align: top;
}

#app-tool-panel .js-tool-panel-loading {
	position: absolute;
	inset: 0;
	z-index: 2;
	background: rgba(255, 255, 255, 0.7);
	height: auto !important;
}

#app-tool-panel .modal-footer {
	padding: 0 !important;
	border: 0;
}

#app-tool-panel .modal-footer .height-5 {
	min-height: 2.5rem;
}

#app-tool-panel .js-tool-panel-extra-actions.d-none {
	display: none !important;
}

#app-tool-panel .js-tool-panel-extra-action {
	white-space: nowrap;
	line-height: 1.2;
	padding: 0.2rem 0.55rem;
	border-color: rgba(255, 255, 255, 0.55);
	color: #fff;
	background: transparent;
}

#app-tool-panel .js-tool-panel-extra-action:hover,
#app-tool-panel .js-tool-panel-extra-action:focus {
	color: #fff;
	border-color: #fff;
	background: rgba(255, 255, 255, 0.12);
}
