:root {
	/*All used fonts (except w2ui)
	----------------------------------*/
	--cool-font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

	/* The room a dialog has to lay itself out in. Not always the viewport: a
	   dialog in a window of its own has the room the document window has. */
	--dialog-available-width: 100vw;
	--dialog-available-height: 100vh;

	/* Shared color for cell and selection border */
	--cell-cursor-selection-border-color: var(--color-primary);

	--btn-size: 28px;
	--btn-padding: 2px;
	--btn-img-size: calc(var(--btn-size) - var(--btn-padding) * 2);
	--btn-color-colorpicker-size: 4px;
	--btn-img-colorpicker-size: calc(var(--btn-size) - var(--btn-padding) * 2 - var(--btn-color-colorpicker-size));

	--btn-size-m: 22px;
	--btn-img-size-m: calc(var(--btn-size-m) - var(--btn-padding) * 2);

	--btn-size-s: 20px;
	--btn-img-size-s: calc(var(--btn-size-s) - var(--btn-padding) * 2);

	--btn-arrow-size: 16px; /*dropdown arrow*/

	--border-radius-s: 2px;
	--border-radius: 4px; /* buttons, widgets, dialog windows */
	--border-radius-pill: 999px; /* chips and other fully round shapes */
	--border-radius-large: 10px; /* large surfaces: backstage, welcome screen, sidebar, popups, tab groups */

	/* Spacing scale for gap/padding/margin */
	--spacing-xs: 2px;
	--spacing-s: 4px;
	--spacing-m: 8px;
	--spacing-l: 12px;
	--spacing-xl: 16px;

	/* One row of a list the user reads down: source lists, backstage lists,
	   the sidebar's own lists. */
	--list-row-height: 40px;

	/* The smallest a slide thumbnail may be drawn, shared by the slide
	   navigator and the import pane so the two agree. */
	--slide-thumb-min-width: 160px;

	/* Black overlay tints for borders, scrims and shadow components */
	--color-black-5: rgba(0, 0, 0, 0.05);
	--color-black-10: rgba(0, 0, 0, 0.1);
	--color-black-15: rgba(0, 0, 0, 0.15);
	--color-black-20: rgba(0, 0, 0, 0.2);

	/* Box-shadow tokens */
	--shadow-subtle: 0 0 3px var(--color-box-shadow);
	--shadow-elevated: 0 -1px 2px 0 var(--color-black-15), 0 2px 2px 0 var(--color-black-10);

	/* Motion scale for transitions and animations, picked by purpose: instant for feedback while
	   the pointer is down, fast for something the user opened or toggled and for an exit that
	   animates, normal for something the system shows on its own that the user must notice, slow
	   for a panel, deliberate for a full width surface. Pick ease-standard for movement from one
	   resting state to another, ease-out for something coming in and ease-in for something going
	   away. */
	--duration-instant: 100ms;
	--duration-fast: 150ms;
	--duration-normal: 200ms;
	--duration-slow: 300ms;
	--duration-deliberate: 400ms;
	--ease-standard: cubic-bezier(0.2, 0, 0, 1);
	--ease-out: cubic-bezier(0, 0, 0.2, 1);
	--ease-in: cubic-bezier(0.4, 0, 1, 1);

	--tooltip-font-size: 0.875rem;
	--default-font-size: 0.75rem;
	--overflow-group-font-size: 8.5pt; /* do not scale labels of groups */
	--medium-font-size: 0.875rem;
	--header-font-size: 1rem;
	/* tab min font-size */
	--tb-min-fs: 0.6875rem;
	/* tab min font-size without units*/
	--tb-min-fs-u: 11;
	/* tab max font-size */
	--tb-max-fs: 1rem;
	/* tab max font-size without units*/
	--tb-max-fs-u: 16;
	/* tab font-size preferred value or scaler */
	--tb-fs-s: 1vw;
	/* notebookbar button labels, they shrink with the window like the tabs, and their smallest
	   and largest size follow the default font size of the browser like those of the tabs */
	--notebookbar-label-font-size: clamp(0.75rem, 1vw, 1rem);

	--default-height: 24px;
	--default-width: 24px;
	--header-height: 34px;
	--sidebar-header-height: 34px;

	/* Annotations */
	--annotation-input-size: 100px;
	--annotation-max-size: 1000;
	--annotation-min-size: 100;

	/* Ruler */
	--ruler-height: 20px;

	/* Notebookbar */
	--notebookbar-element-height: 64px;

	/* Dialogs */
	--dialog-tab-rail-width: 150px;

	/* Scrollbars */
	--scrollbar-width: thin;
}

/* BEGIN shared motion */
/* When the user asks the system for less motion, every transition and animation that takes its
   time from the motion scale becomes short enough to read as immediate. One millisecond keeps the
   transitionend and animationend events firing, so code that waits for them still runs. */
/* TODO: also apply on :root[data-motion=reduce], so integrators can force it without the OS setting */
@media (prefers-reduced-motion: reduce) {
	:root {
		--duration-instant: 1ms;
		--duration-fast: 1ms;
		--duration-normal: 1ms;
		--duration-slow: 1ms;
		--duration-deliberate: 1ms;
	}
}

/* Shared rotation for the round loading indicators, defined once here rather than once per
   widget stylesheet. */
@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

@keyframes fade-in {
	from { opacity: 0; }
}

@keyframes fade-out {
	to { opacity: 0; }
}

@keyframes fade-scale-in {
	from { opacity: 0; transform: scale(var(--motion-scale-from, 0.96)); }
}

@keyframes slide-up-in {
	from { opacity: 0; transform: translateY(8px); }
}
/* END shared motion */

html {
	height: 100%;
	font-size: 1rem;
}

body {
	margin: 0;
	overflow: hidden;
	overscroll-behavior-y: none; /* disable the pull to reload gesture */
	background: var(--color-main-background);
	touch-action: none;
	line-height: normal;
	height: 100%;
	display: flex;
	flex-direction: column;
	-webkit-user-select: none;
	        user-select: none;
}

input, button {
	font-family: var(--cool-font);
}

#doc-clipboard-container {
	pointer-events: none;
}

#insertgraphic, #insertmultimedia, #filepicker {
	position: fixed;
	top: -100em;
}

#selectbackground {
	position: fixed;
	top: -100em;
}

#comparedocuments {
	position: fixed;
	top: -100em;
}

.about-dialog-info-div {
	margin-inline-end: auto;
}

.focus-hidden:focus {
	outline: none;
}

.access-key {
	text-decoration: none;
}

.activate-underlines .access-key {
	text-decoration: underline;
}

.accessibility-info-box {
	width: 26px;
	height: 16px;
	font-size: 0.75rem;
	line-height: 16px;
	text-align: center;
	background-color: yellow;
	color: rgb(68, 24, 24);
	position: absolute;
	/* Above .main-nav (1001), below dialogs (1105+). */
	z-index: 1002;
	border: 1px solid black;
	display: none;
}

.activate-info-boxes .accessibility-info-box {
	display: block;
}

.activate-info-boxes .accessibility-info-box.filtered_out,
.activate-info-boxes .accessibility-info-box.scrolled_out {
	display: none;
}

/* Flexbox */
.d-flex {
	display: flex;
}
.flex-column {
	/* Initial value */
	flex-direction: column;
}
.flex-row {
	flex-direction: row;
}
.align-items-center {
	align-items: center;
}
.justify-items-center {
	justify-items: center;
}
.align-content-center {
	align-content: center;
}
.justify-content-center {
	justify-content: center;
}

/* Space */
.m-v-0 {
	margin-block: 0;
}

/* Border */
.border-0 {
	border: 0 !important;
}

/* clip technique: hide visually but keep it available to screen readers */
.visuallyhidden {
	border: 0;
	clip: rect(0 0 0 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
}
[data-docType='spreadsheet'] #document-container.readonly.mobile {
	top: 36px;
	position: fixed;
}
/* The document and anything docked under it, such as the Impress notes pane. */
#document-and-notes {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
	min-height: 0;
	position: relative;
}

#document-container {
	font-family: var(--cool-font);
	background-color: var(--color-main-background);
	position: relative;
	margin: 0;
	padding: 0;
	width: 100%;
	flex: 1;
	display: block;
	height: 100%;
}

/* With a pane below it the document takes the height flex leaves over, so the fixed height
   above would push the pane off the bottom. */
#document-and-notes.notes-visible > #document-container {
	height: auto;
	min-height: 0;
}

/* Fade used when a zoom gesture at the zoom limit switches between the Overview slide
   and a normal slide: overview-fade carries the opacity transition, overview-fade-out
   is the faded-out state. The view fades out with ease-in (it is going away) and back
   in with ease-out (it is coming in). */
#document-container.overview-fade {
	transition: opacity var(--duration-slow) var(--ease-out);
}
#document-container.overview-fade-out {
	opacity: 0;
	transition-timing-function: var(--ease-in);
}

.color-palette-selector {
	margin: 0 5px !important;
}

.color-palette-selector > select {
	width: 100% !important;
	padding: 0 14px 0 4px;
	height: 28px;
	font-size: var(--default-font-size);
	font-family: var(--cool-font);
}

#toolbar-wrapper.readonly:not(.spreadsheet) {
	display: none;
}

#toolbar-wrapper.readonly.spreadsheet #toolbar-row {
	display: none;
}


#map {
	position: absolute;
	top: 0px;
	bottom: 0px;
	left: 0px;
	right: 0px;
	z-index: 10;
	cursor: auto;
	background-color: transparent;
	margin: 0;
}

.leaflet-progress-layer {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 1000;
	background-color: var(--color-main-background);
	padding: 20px;
	border-radius: 8px;
}

.bucket-cursor {
	cursor: url('images/cursors/fill.svg') 4 18, auto !important;/*setting coordinates to align the tip of the brush icon */
}
.cool-scrollbar-show {
	opacity: 1 !important;
	filter: 'alpha(opacity=100)' !important;
}

.table-column-resize-marker {
	margin-left: 0px;
	margin-top: 0px;
	width: var(--btn-size);
	height: var(--btn-size);
	background-image: url('images/table-column-resize-marker.svg');
	background-size: 100% 100%;
	background-repeat: no-repeat;
	cursor: col-resize;
}

.table-column-resize-marker.hovered {
	margin-left: 0px;
	margin-top: 0px;
	width: var(--btn-size);
	height: var(--btn-size);
	background-image: url('images/table-column-resize-marker-hover.svg');
	background-size: 100% 100%;
	background-repeat: no-repeat;
}

.table-row-resize-marker {
	margin-left: 0px;
	margin-top: 0px;
	width: var(--btn-size);
	height: var(--btn-size);
	background-image: url('images/table-row-resize-marker.svg');
	background-size: 100% 100%;
	background-repeat: no-repeat;
}

.table-row-resize-marker.hovered {
	margin-left: 0px;
	margin-top: 0px;
	width: var(--btn-size);
	height: var(--btn-size);
	background-image: url('images/table-row-resize-marker-hover.svg');
	background-size: 100% 100%;
	background-repeat: no-repeat;
}

.table-select-marker {
	margin: 0px;
	width: var(--btn-size);
	height: var(--btn-size);
	background: url('images/table-row-or-column-select-marker.svg') no-repeat center center /12px;
}

.table-select-marker::before {
	content: '';
	position: absolute;
	z-index: 0;
}

.table-select-marker--column::before {
	bottom: 50%;
	border-bottom: 1px dashed lightgray;
	width: 100%;
}

.table-select-marker--row::before {
	left: 50%;
	border-left: 1px dashed lightgray;
	height: 100%;
}

.table-select-marker:hover {
	background: url('images/table-row-or-column-select-marker-selected.svg') no-repeat center center /12px;
}

.table-select-marker.hovered {
	background: url('images/table-row-or-column-select-marker-selected.svg') no-repeat center center /12px;
}

.table-select-marker:hover::before {
	border-color: var(--color-primary);
}

.table-move-marker {
	margin-left: 0px;
	margin-top: 0px;
	width: var(--btn-size);
	height: var(--btn-size);
	background-image: url('images/table-move-marker.svg');
	background-size: 100% 100%;
	background-repeat: no-repeat;
	cursor: move;
}

#presentation-controls-wrapper {
	background: var(--color-background-lighter);
	position: relative;
	border-top: 1px solid var(--color-border);
	display: none;
	overflow-y: auto;
	height: 100%;
}

#quickfind-dock-wrapper {
	display: none;
	position: relative;
	z-index: 990;
	max-width: 350px;
	height: 100%;
}

#sidebar-dock-wrapper, #navigator-dock-wrapper {
	display: none;
	background: var(--color-background-lighter);
	position: relative;
	overflow-x: hidden;
	z-index: 990;
	max-width: 350px;
	overflow-y: auto;
	scrollbar-width: var(--scrollbar-width);
	scrollbar-color: var(--scrollbar-color);
	height: 100%;
}

/* setup it static so we don't flicker to resize canvas */
#sidebar-dock-wrapper {
	width: 329px;
}

#sidebar-dock-wrapper.visible {
	display: block;
	/* synchronize time with Sidebar.ts setting focus */
	animation: var(--duration-normal) var(--ease-out) appear-from-right;
	border-inline-start: 1px solid var(--color-border);
}

#aichat-dock-wrapper {
	display: none;
	background: var(--color-main-background);
	position: relative;
	overflow: hidden;
	z-index: 990;
	max-width: 350px;
	height: 100%;
}

#aichat-dock-wrapper.visible {
	display: block;
	width: 350px;
	animation: var(--duration-normal) var(--ease-out) aichat-dock-open;
	border-inline-start: 1px solid var(--color-border);
}

@keyframes appear-from-right {
	from {
		transform: translateX(100%);
	}
	to {
		transform: translateX(0);
	}
}

@keyframes aichat-dock-open {
	from {
		max-width: 0;
		border-inline-start-color: transparent;
	}
}

.sidebar-panel {
	padding: 0px;
	margin: 0px;
	position: relative;
	width: auto;
	height: 100%;
	z-index: 1200;
}

.sidebar-panel::-webkit-scrollbar {
	width: 8px;
}

.sidebar-panel::-webkit-scrollbar-thumb {
	background-color: var(--color-border);
}

#toolbar-wrapper {
	table-layout: fixed;
	border-collapse: separate;
	border-spacing: 0;
	width: 100%;
	border-top: none;
	z-index: 11 !important;
	border-bottom: 1px solid var(--color-toolbar-border);
	background-color: var(--color-background-lighter);
	display: flex;
	flex-direction: column;
}
#toolbar-wrapper:not(.mobile) {
	padding: 2px 0;
}
/* Remove bottom padding in calc as it affects formulabar*/
#toolbar-wrapper.spreadsheet:not(.mobile) {
	padding-block-end: 0;
}

#toolbar-logo {
	width: 0;
}

/* Hide hamburger except on mobile phones */
#toolbar-hamburger {
	width: 0;
}

/* Hide back btn except on mobile phones */
#toolbar-mobile-back {
	width: 0;
}

#mobile-edit-button {
	justify-content: center;
	align-items: center;
	position: absolute;
	width: 56px;
	height: 56px;
	right: 16px;
	bottom: 16px;
	background-color: var(--color-primary);
	border-radius: 50%;
	box-shadow: 0 4px 8px 0 var(--color-black-20), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
	z-index: 1001;
	transform: scale(1);
	transition: transform 0.5s;
	display: none;
}

#mobile-edit-button.impress.portrait {
	bottom: 70px;
}

#mobile-edit-button-image {
	width: var(--btn-size);
	height: var(--btn-size);
	background: url('images/baseline-edit-24px.svg') no-repeat center !important;
	transform: rotate(0deg);
	transition: transform 0.5s;
}
#mobile-edit-button:active {
	transform: scale(1.2);
}
#mobile-edit-button:active > #mobile-edit-button-image {
	transform: rotate(45deg);
}

.cool-font {
	font-family: var(--cool-font) !important;
	font-size: var(--default-font-size) !important;
	font-weight: normal !important;
	padding: 3px 5px 3px 3px;
	color: var(--color-main-text);
}

#search-input {
	font-size: var(--default-font-size);
	box-sizing: border-box;
	min-width: 100px;
	width: 200px;
	height: 22px;
	background: var(--color-background-lighter);
}
#search-input:focus {
	background-color: var(--color-background);
	border-color: var(--color-primary) !important;
}
#search-input:hover {
	border: 1px solid var(--color-border-darker) !important;
}
#search-input::placeholder {
	color: var(--color-main-text);
}

@media screen and (max-width: 500px) {
	#search-input {
		width: 100px;
	}
}


.cool-character {
	table-layout: fixed;
	font: 17px/1.5 'Helvetica Neue', Arial, Helvetica, sans-serif;
	text-align: center;
}

.cool-character td {
	width: 20px;
}

.annotation-marker {
	margin-left: 0px;
	margin-top: 0px;
	width: var(--btn-size);
	height: var(--btn-size);
	background-image: url('images/note.svg');
	background-size: 100% 100%;
	background-repeat: no-repeat;
	outline: none;
}

.annotation-anchor-area {
	margin-left: 0px;
	margin-top: 0px;
	border: 1px solid var(--color-primary);
	background: color-mix(in srgb, var(--color-primary) 8%, transparent);
	box-sizing: border-box;
}

.cool-scrolled {
	overflow: auto;
}

.cool-mobile-container {
	top: 30px;
	margin: 0;
	width: 1px;
	opacity: 0;
}

.cool-context-down {
	border: 1px solid var(--color-border-dark);
	background-color: var(--color-background-dark);
}

.cool-mobile-input {
	width: 1px;
	padding: 0px;
	border: 0px;
}

/* Important to override context-menu-icon's font-family here otherwise, jquery-contextmenu.css
 * will try to load its own font file which is not available in dist/ */
.context-menu-icon::before {
	font-family: var(--cool-font) !important;
	content: '\2713';
	color: var(--color-main-text) !important;
}
.context-menu-icon-lo-checkmark:before {
	content: '\2713';
}

.context-menu-hover {
	background-color: var(--color-background-darker) !important;
	color: var(--color-text-darker) !important;
}

.context-menu-hover > span > a {
	color: var(--color-text-darker);
}
.context-menu-submenu:after {
	border-color: transparent transparent transparent var(--color-text-darker) !important;
}

/* With RTL write direction the arrow of the context menu's submenu should be flipped */

[dir='rtl'] .context-menu-submenu:after {
	right: unset;
	left: .5em;
	border-color: transparent var(--color-text-darker) transparent transparent;
	border-width: .25em .25em .25em 0;
}


#mobile-wizard {
	display: none;
}

.mobile-wizard-content .cool-annotation {
	max-width: none;
}

.cool-annotation {
	position: fixed;
	text-align: center;
	-webkit-user-select: text;
	        user-select: text;
	z-index: 12;
	width: min-content;
	min-width: 250px;
	transition: left var(--duration-normal);
}

/* Drawn below the card, down the side of its replies. It is out of the card's
   flow, so the card's own box stops where the card does. */
.cool-annotation-child-lines {
	position: absolute;
	top: 100%;
}

.comment-placement-overlay {
	position: absolute;
	pointer-events: none;
	border: 1px dashed var(--color-primary, #0078d4);
	background: rgba(0, 120, 212, 0.10);
	z-index: 11;
}

/* While picking a comment anchor, keep the crosshair regardless of the inline
   cursor MouseControl writes on hover/enter; !important beats that inline style. */
.comment-placement-cursor {
	cursor: crosshair !important;
}

.cool-annotation.annotation-pop-up {
	/* Make sure the comment card is not cropped if the window is narrow: */
	max-width: 95%;
	max-height: 95%;
	width: 66ch;
	/* Centered align comment in TS, we cannot align it here with position relative */
	z-index: 1000;
	/* Limit the card at the max-height above and let the text inside scroll. */
	display: flex;
	flex-direction: column;
}

/* The content wrapper is all of the annotation pop-up, except the margins. */
.cool-annotation.annotation-pop-up > .cool-annotation-content-wrapper {
	min-height: 0;
	flex: 1;
	overflow: hidden;
}

/* The annotation content is the actual text without the table/header and the footer. */
.cool-annotation.annotation-pop-up .cool-annotation-content {
	min-height: 0;
	flex: 1;
	max-height: none;
}
.cool-annotation.annotation-pop-up:not(.annotation-active) > .cool-annotation-content-wrapper {
	margin-right: 8px;
}
.cool-annotation.annotation-pop-up.annotation-active {
	transition: transform var(--duration-deliberate) var(--ease-standard), box-shadow var(--duration-deliberate) var(--ease-standard);
	will-change: transform, box-shadow;
	box-shadow: 0 0 0 1000px rgba(var(--doc-type),0.15);
}

/* Holds the comments of a page that has more than fit beside it, as tall
   as the page, and scrolls them. */
.cool-annotation-page-scroller {
	position: fixed;
	z-index: 12;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	/* The layout sets the scroll position of the box, so the browser's own
	   scroll anchoring is off. */
	overflow-anchor: none;
	scrollbar-color: var(--scrollbar-color);
	scrollbar-width: thin;
}

/* The cards are placed in the box, so they scroll with it. */
.cool-annotation-page-scroller > .cool-annotation {
	position: absolute;
	transition: none;
}

/* A button's tooltip in the box goes above the button, its right edge level
   with the button's, clear of the pointer. Where the box top would clip it
   there, as on the first card, it goes beside the button instead. */
.cool-annotation-page-scroller [data-title]:after {
	top: auto;
	right: 0;
	bottom: calc(100% + 4px);
	left: auto;
}
.cool-annotation-page-scroller .cool-annotation-tooltip-beside[data-title]:after {
	right: calc(100% + 4px);
	bottom: 0;
}

.cool-annotation.tracked-deleted-comment-hide {
	display: none;
}

.cool-annotation > .modalpopup {
	max-height: initial !important;
}

.cool-annotation-content-wrapper, .cool-annotation-redline-content-wrapper {
	padding: 12px 8px;
	font-family: var(--cool-font) !important;
	font-size: var(--default-font-size);
	text-align: left;
	background-color: var(--color-background-lighter);
	box-shadow: var(--shadow-subtle);
	color: var(--color-main-text);
	border: none;
	border-radius: var(--border-radius);
	width: auto;
	display: flex;
	flex-direction: column;
	row-gap: var(--spacing-m);
}

.annotation-active.annotation-pop-up .cool-annotation-content-wrapper {
	font-size: var(--medium-font-size);
}

.cool-annotation-author-header {
	display: inline-flex;
	align-items: center;
	width: 100%;
}

.cool-annotation-footer {
	display: inline-flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
}

.cool-annotation:not(.annotation-active) .cool-annotation-content-wrapper:hover,
.cool-annotation:not(.annotation-active) .cool-annotation-redline-content-wrapper:hover {
	color: var(--color-text-dark);
}
.tracked-deleted-comment-show .cool-annotation-content-wrapper:hover,
.tracked-deleted-comment-show.annotation-active .cool-annotation-content-wrapper {
	box-shadow: 0 0 3px var(--color-error);
}
.annotation-active.modify-annotation-container .cool-annotation-content-wrapper,
.annotation-active.reply-annotation-container .cool-annotation-content-wrapper {
	width: auto;
}

.cool-annotation-content {
	line-height: 1.4;
	max-height: var(--annotation-input-size);
	overflow: auto;
	scrollbar-color: var(--scrollbar-color);
	scrollbar-width: var(--scrollbar-width);
	min-width: 200px;
}

.cool-annotation-info-collapsed {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0;
	padding: 0;
	background-color: var(--color-primary);
	color: var(--color-primary-text);
	font-weight: bold;
	font-family: var(--cool-font);
	font-size: var(--default-font-size);
	border: 1px solid var(--color-primary);
	border-radius: 50%;
	z-index: 10;
	position: relative;
	width: var(--btn-size-s);
	height: var(--btn-size-s);
	left: -6px;
	top: -15px;
}

.tracked-deleted-comment-show .cool-annotation-menubar {
	display: none;
}

#main-document-content {
	z-index: 0;
	display: flex;
	flex-direction: row;
	flex: 1;
	margin: 0;
	padding: 0;
	min-height: 0;
	/* The splitter overlay and the maximized panes are placed against this
	 * box. */
	position: relative;
	/* Widths of the navigation sidebar and the slide import pane, in pixels.
	 * The import pane starts wide enough for two slide previews side by
	 * side. */
	--navigation-sidebar-width: 250px;
	--slide-import-width: 384px;
	/* The width of the navigation grid while the panels are maximized over
	 * the document area; the import grid fills the rest. The two grids start
	 * at an even split. */
	--expanded-navigation-width: 50%;
	/* The strip at the start of the maximized import pane that holds the
	 * button which reopens the navigation sidebar: the button's 28px margin,
	 * its 36px box and a 16px gap. */
	--floating-navigator-strip-width: 80px;
}

.cool-annotation-collapsed-show .cool-annotation-img {
	visibility: visible;
}

.cool-dont-break {
	/* These are technically the same, but use both */
	overflow-wrap: anywhere;
	word-wrap: anywhere;

	/* Don't eat new lines  */
	white-space: pre-wrap;

	/* Adds a hyphen where the word breaks, if supported (No Blink) */
	-webkit-hyphens: auto;
	        hyphens: auto;
}

.cool-annotation-content-resolved {
	color: var(--color-success);
	font-weight: 700;
	font-size: 0.625rem;
}

.cool-annotation-content-removed {
	color: var(--color-error);
	font-weight: 700;
	font-size: 0.625rem;
}

.cool-annotation-edit {
	line-height: 1.4;
}

.cool-annotation-edit .cool-font {
	padding: 0 !important;
}

.cool-annotation-edit p {
	margin-top: 0;
	margin-bottom: 8px;
}

.cool-annotation-textarea {
	font-family: var(--cool-font) !important;
	font-size: var(--default-font-size);
	border: 1px solid var(--color-text-light);
	background-color: var(--color-background-dark);
	color: var(--color-main-text);
	overflow-x: hidden;
	padding: var(--spacing-xs);
	max-height: var(--annotation-input-size);
	min-height: calc(var(--default-font-size) * 4);
	width: 100%;
	margin-bottom: 8px;
	box-sizing: border-box;
	border-radius: var(--border-radius-s);
	scrollbar-width: var(--scrollbar-width);
	scrollbar-color: var(--scrollbar-color);
	outline: none !important;
	overflow-wrap: anywhere;
	word-wrap: anywhere;
}

.cool-annotation-textarea a:link,
.cool-annotation-textarea a:visited,
.cool-annotation-content a:link,
.cool-annotation-content a:visited {
	color: var(--color-hyperlink);
}

#input-modal-input.cool-annotation-textarea {
	height: var(--annotation-input-size);
}

.cool-div-layer {
	position: absolute;
	left: 0;
	top: 0;
}

.cool-annotation-table {
	border-spacing: 0;
	border-collapse: separate;
	white-space: nowrap;
	width: 100%;
}

.cool-annotation-img {
	box-sizing: content-box !important;
	max-width: 32px;
	display: inline-block;
	border: solid 2px;
	border-radius: 50%;
	height: var(--default-height);
	width: var(--default-width);
	padding: 0;
	outline: 2px solid var(--color-background-lighter);
	outline-offset: -3px;
}

.cool-annotation.collapsed-comment .cool-annotation-img {
	opacity: 0.9;
}

.cool-annotation.collapsed-comment .cool-annotation-img:hover {
	cursor: pointer;
	opacity: 1;
	box-shadow: 0px 4px 10px var(--color-box-shadow);
}

.cool-annotation-img .avatar-img {
	border: none;
}
.cool-annotation-img > .avatar-img {
	display: block;
	box-sizing: border-box;
	width: var(--default-width); /* Width of new image */
	height: var(--default-height); /* Height of new image */
}

.cool-annotation-inedit {
	outline: 2px solid rgb(var(--doc-type));
	offset: -2px;
}

.cool-annotation-inedit .cool-font {
	color: var(--color-error);
}

.leaflet-container .leaflet-pane.leaflet-calc-background-pane {
	z-index: 0;
}

.leaflet-control-container {
	z-index: 12;
	width: 100%;
	position: absolute;
	height: 100%;
	-webkit-user-select: none;
	        user-select: none;
	pointer-events: none;
}

.avatar-img {
	border: solid 2px;
	border-radius: 50%;
}

/* Sits on top of the colored border around a shape whose text another user edits. The label has
   the color of that user. */
.shape-lock-label {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 28px;
	box-sizing: border-box;
	padding: 4px;
	margin-left: -1px;
	color: white;
	font-size: 13px;
	line-height: 1;
	white-space: nowrap;
	cursor: default;
}

.shape-lock-label [hidden],
.shape-lock-callout [hidden],
.button.shape-lock-button[hidden] {
	display: none;
}

/* The picture of a user, or the initials of the name, in a ring of the color of that user. */
.shape-lock-avatar {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	box-sizing: border-box;
	overflow: hidden;
	border: 2px solid;
	border-radius: 50%;
	background-color: var(--color-background-lighter);
	color: var(--color-main-text);
	font-size: 11px;
}

.shape-lock-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.shape-lock-label-buttons {
	display: flex;
	flex: 0 0 auto;
}

/* A small button with the shared button look. */
.button.shape-lock-button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: auto;
	min-width: 0;
	height: 20px;
	box-sizing: border-box;
	margin: 0;
	padding: 0 6px 0 4px;
	border: 1px solid var(--color-btn-border);
	border-radius: 2px;
	background-color: var(--color-background-dark);
	color: var(--color-main-text);
	font-size: 12px;
	line-height: 1;
	cursor: pointer;
}

.button.shape-lock-button:hover {
	border-color: var(--color-btn-border);
	background-color: var(--color-background-darker);
	color: var(--color-main-text);
}

.button.shape-lock-button:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 1px;
}

/* On the label the button shows the color of the label through it, with a faint white border. */
.shape-lock-label .button.shape-lock-button {
	padding: 0 6px;
	border-color: rgba(255, 255, 255, 0.4);
	background-color: transparent;
	color: white;
}

.shape-lock-label .button.shape-lock-button:hover {
	border-color: rgba(255, 255, 255, 0.7);
	background-color: rgba(255, 255, 255, 0.15);
	color: white;
}

.shape-lock-label .button.shape-lock-button:focus-visible {
	outline-color: white;
}

/* The time until this user gets the text, over a bar that fills up in that time. */
.shape-lock-label-wait {
	position: relative;
	min-width: 96px;
	padding-bottom: 3px;
	font-size: 12px;
}

.shape-lock-label-wait::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background-color: rgba(255, 255, 255, 0.35);
}

/* The bar grows from the left edge by a transform. */
.shape-lock-label-wait i {
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: 1;
	width: 100%;
	height: 2px;
	transform: scaleX(0);
	transform-origin: left;
	background-color: white;
}

[dir='rtl'] .shape-lock-label-wait i {
	transform-origin: right;
}

.shape-lock-callout {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 10px 11px;
	border: 1px solid var(--color-border);
	border-radius: 2px;
	box-shadow: 0 0 3px var(--color-box-shadow);
	background-color: var(--color-background-lighter);
	color: var(--color-main-text);
	font-size: 13px;
	line-height: 1.2;
	white-space: nowrap;
	cursor: default;
}

.shape-lock-callout-countdown {
	color: var(--color-text-light);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
}

/* A bar along the bottom of the callout that fills up until the countdown ends. */
.shape-lock-callout-progress {
	position: absolute;
	left: 1px;
	right: 1px;
	bottom: 1px;
	height: 3px;
	background-color: rgba(var(--orange1-txt-primary-color), 0.2);
}

/* The bar grows from the start of the line by a transform. */
.shape-lock-callout-progress i {
	display: block;
	width: 100%;
	height: 100%;
	transform: scaleX(0);
	transform-origin: left;
	background-color: rgb(var(--orange1-txt-primary-color));
}

[dir='rtl'] .shape-lock-callout-progress i {
	transform-origin: right;
}

.user-info {
	border-radius: 50%;
	width: var(--btn-size);
	height: var(--btn-size);
	overflow: auto;
	margin: auto;
}

.cool-annotation-author {
	padding-left: 8px;
	padding-right: 8px;
	vertical-align: top;
	display: table-cell;
	width: 100%;
	overflow: hidden;
	flex: 1;
}

.cool-annotation-content-author {
	white-space: normal;
	word-break: break-word;
}

.cool-annotation-menu, .cool-annotation-menu-redline, .cool-redline-accept-button, .cool-redline-reject-button, .cool-annotation-menu-edit {
	margin: 0 !important;
	padding: 0 !important;
	min-width: initial !important;
	width: var(--btn-img-size) !important;
	height: var(--btn-img-size) !important;
	vertical-align: top;
	border: 1px solid transparent !important;
	display: inline-block !important;
	cursor: inherit;
	box-sizing: border-box;
}

/* Marker added by UIManager.showCommand on elements the host has asked to
   hide via Hide_Command. !important so it wins over any non-important
   display rule on the element it is applied to. */
.hidden-by-command {
	display: none !important;
}

.cool-redline-accept-button {
	background: url('images/lc_acceptchanges.svg') no-repeat center !important;
}

.cool-redline-reject-button {
	background: url('images/lc_rejecttrackedchange.svg') no-repeat center !important;
}

.cool-annotation-menu, .cool-annotation-menu-redline {
	background: url('images/lc_more.svg') no-repeat center/contain !important;
}

[data-theme='dark'] .cool-annotation-menu, .cool-annotation-menu-redline {
	background: url('images/dark/lc_more.svg') no-repeat center/contain !important;
}

.cool-annotation-menu-edit {
	background: url('images/lc_edit.svg') no-repeat center/contain !important;
}

[data-theme='dark'] .cool-annotation-menu-edit {
	background: url('images/dark/lc_edit.svg') no-repeat center/contain !important;
}

.cool-annotation-menu:hover, .cool-annotation-menu-redline:hover, .cool-redline-accept-button:hover, .cool-redline-reject-button:hover, .cool-annotation-menu-edit:hover {
	border: 1px solid var(--color-border-darker);
	background-color: var(--color-background-hover) !important;
	border-radius: 16px;
}

.cool-annotation-date {
	font-size: 0.625rem;
	color: var(--color-date-text);
}

.annotation-button-autosaved {
	color: var(--color-primary-dark) !important;
	background-color: #e1e8f9 !important;
}

.annotation-button-delete {
	color: var(--color-error) !important;
}

.cool-annotation-menubar {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	column-gap: var(--spacing-s);
	cursor: pointer;
	padding: 0 !important;
}

.cool-annotation-child-line {
	border-style: none none dashed dashed;
	border-width: thin;
	border-color: var(--color-annotation-line);
}
/*Tooltips
----------------------------------*/
[data-title]:hover:after {
	padding: 7px 9px;
	font-size: 1em;
	line-height: 1;
	opacity: 1;
	transition: all var(--duration-instant) var(--ease-standard) 0.5s;
	visibility: visible;
}
[data-title]:after {
	content: attr(data-title);
	font-size: 1em !important;
	bottom: -1.6em;
	left: 100%;
	white-space: nowrap;
	opacity: 0;
	border-color: var(--color-border-darker);
	visibility: hidden;
}
.cool-ruler-left[data-title]:after,
.cool-ruler-right[data-title]:after {
	bottom: -2.8em;
	left: auto;
}

.cool-ruler.vruler {
	border-top: solid 1px var(--color-toolbar-border);
}

#vertical-ruler .cool-ruler-left[data-title]:after,
#vertical-ruler .cool-ruler-right[data-title]:after {
	bottom: 3em;
	left: auto;
	transform: rotate(-90deg);
}
[data-title] {
	position: relative;
}

.cool-annotation-caption {
	font-weight: bold;
}

.cool-bar {
	box-shadow: 0 1px 5px rgba(0,0,0,0.65);
	border-radius: var(--border-radius);
	display: inline-block;
	margin: 3px;
	vertical-align: middle;
}

.cool-bar a,
.cool-bar a:hover {
	background-color: var(--color-background-lighter);
	border-bottom: 1px solid var(--color-border);
	width: 30px;
	height: 30px;
	line-height: 30px;
	display: block;
	text-align: center;
	text-decoration: none;
	color: var(--color-main-text);
}

.cool-bar a:hover {
	background-color: var(--color-background-darker);
}

.cool-bar a:first-child {
	border-top-left-radius: var(--border-radius);
	border-top-right-radius: var(--border-radius);
}

.cool-bar a:last-child {
	border-bottom-left-radius: var(--border-radius);
	border-bottom-right-radius: var(--border-radius);
	border-bottom: none;
}

.cool-bar a.leaflet-disabled {
	cursor: default;
	background-color: var(--color-background-lighter);
	color: var(--color-text-light);
}

.cool-bar a {
	background-position: 50% 50%;
	background-repeat: no-repeat;
	display: block;
	width: 30px;
	height: 30px;
	line-height: 30px;
}

.cool-control-scroll-up,
.cool-control-scroll-down {
	font: bold 18px 'Lucida Console', Monaco, monospace;
	text-indent: 1px;
}

.lokdialog_container.lokdialog_notitle .ui-dialog-titlebar {
	display: none;
}

.ui-dialog-title {
	min-height: 1em;
	font-size: var(--header-font-size);
	font-family: var(--cool-font);
}

.lokdialog_container.ui-dialog.ui-widget-content {
	padding: 0px;
	width: auto;
	height: auto;
	border: none;
	background-color: transparent;
	z-index: 1105;
}

.lokdialog_container.ui-dialog.ui-widget-content.jsdialog-container,
.lokdialog_container .ui-dialog-titlebar.ui-widget-header {
	background: var(--color-main-background) !important;
}

.iframe-settings-wrap.jsdialog-container.ui-dialog.lokdialog_container.ui-widget-content {
	background: var(--settings-background, var(--color-main-background)) !important;
}

.lokdialog.ui-dialog-content.ui-widget-content {
	overflow: auto;
	border-top-left-radius: 0px;
	border-top-right-radius: 0px;
	border-bottom-left-radius: var(--border-radius);
	border-bottom-right-radius: var(--border-radius);
}

#formulaautocompletePopup .lokdialog {
	padding: 0px;
}

.lokdialog.ui-dialog-content [Id$='Page']:not(.checkbutton) {
	grid-column-gap: 24px;
}

.lokdialog_container:not(.jsdialog-container) .lokdialog.ui-dialog-content.ui-widget-content {
	padding: 0px;
}

.lokdialog_canvas {
	cursor: default;
	display: block; /* required to remove all borders around canvas element */
	caret-color: transparent; /* firefox shows a caret otherwise on top-left of the canvas */
	-webkit-user-select: none;
	        user-select: none;
}

.lokblink {
	animation: lokblink var(--duration-fast) infinite alternate;
}

@keyframes lokblink {
	from { opacity: 1; }
	to { opacity: 0; }
}

/* The blink is a flash of attention on a dialog that is already on screen, so under reduced
   motion the dialog simply stays visible. */
@media (prefers-reduced-motion: reduce) {
	.lokblink {
		animation: none;
	}
}

.form-field-frame {
	border: 1px solid;
	height: 100%;
	border-radius: var(--border-radius);
	text-align: right;
	display: block;
	min-width: auto;
	margin: auto;
}

.form-field-button-container {
	display: inline-block;
	height: 100%;
}

.form-field-button {
	background-color: var(--color-background-lighter);
	border: 1px solid;
	height: 100%;
	padding: 0px;
	width: 100%;
	border-radius: var(--border-radius);
	min-width: auto;
	margin: auto;
}

.form-field-button:hover, .form-field-button:focus {
	background-color: var(--color-background-dark);
	outline: 0;
}

.form-field-button-image {
	margin: 3px;
}

.drop-down-field-list {
	display: block;
	border: 1px solid;
	cursor: pointer;
	background: var(--color-background-lighter);
	width: fit-content;
	min-width: 100%;
	white-space: nowrap;
}

.drop-down-field-list-item {
	width: calc(100% - 10px);
	padding-left: 5px;
	padding-right: 5px;
}

.drop-down-field-list-item.selected {
	background-color: var(--color-primary-lighter);
}
.drop-down-field-list-item:hover {
	background-color: var(--color-primary);
}

.hyperlink-popup .leaflet-popup-content {
	white-space: nowrap;
	margin: 6px 8px;
	font-size: 0.875rem;
	line-height: 1;
	overflow: hidden;
}

.hyperlink-pop-up-container {
	display: inline-block;
	line-height: 1;
	background-color: var(--color-background-lighter);
	width: 18rem !important;
	overflow: visible !important;
}

.hyperlink-pop-up-link-row {
	display: flex;
	align-items: center;
	padding: 6px;
}

.hyperlink-pop-up-container a {
	flex: 1;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: #0078A8;
	font-size: 0.88rem;
	text-decoration: none;
}

.hyperlink-popup-btn {
	display: inline-block;
	margin-left: 4px;
	vertical-align: middle;
	width: 26px;
	height: 26px;
	padding: 0;
	border: none;
	background: none;
	cursor: pointer;
}

.hyperlink-popup-btn:hover,
.hyperlink-popup-btn:focus-visible {
	background-color: var(--color-background-darker);
	border-radius: 50%;
}

.functiontooltip {
	white-space: nowrap;
	max-width: fit-content !important;
}

.leaflet-canvas-container .cell-cursor-data {
	border-style: solid; /* required for ie11 */
	display: none; /* prevent cypress failure */

	border-top-color: rgba(var(--doc-type), 1); /* color */
	border-top-width: 2px; /* weight */
}

.selections-data {
	border-style: solid; /* required for ie11 */
	display: none; /* prevent cypress failure */

	background-color: rgba(var(--doc-type), 1); /* fill color */
	opacity: 0.25; /* opacity */
	border-top-width: 1px; /* weight */
}

.leaflet-canvas-container .splitters-data {
	border-style: solid; /* required for ie11 */
	display: none; /* prevent cypress failure */

	color: #b6b6b6; /* color */
	opacity: 1; /* opacity */
	border-top-width: 1px; /* weight */
}

#product-name {
	text-align: center;
	justify-content: center;
	flex-grow: 1;
}

#about-dialog {
	display: none;
}

#about-dialog-container, #about-dialog-header {
	display: flex;
	flex-flow: row nowrap;
	place-content: stretch flex-start;
	align-items: stretch;
}

#about-dialog-container .spacer {
	height: 54px;
}

#about-dialog-logos {
	flex-grow: 1;
	flex-flow: column nowrap;
	place-items: stretch;
}

#about-dialog-container *, #about-dialog-header * {
	display: flex;
	flex-wrap: wrap;
}

#integrator-logo {
	align-items: center;
	justify-content: center;
	flex-grow: 0;
}

#product-logo {
	align-items: center;
	justify-content: right;
	flex-grow: 1;
	/* Keep the box at least as tall as the logo so a short info column
	   (e.g. only Version and Copyright) cannot clip the bottom of it. */
	min-height: 82px;
	background-repeat: no-repeat;
	background-size: 82px;
	background-position: right center;
}
#about-dialog-info-container {
	align-items: center;
	justify-content: flex-start;
	flex-grow: 1;
}
#about-dialog-info {
	flex-direction: column;
}

/* ovveride some jquery css for contentcontrol datepicker */
#datepicker .ui-state-highlight {
	background: var(--color-background-dark) !important;
	font-weight: bold !important;
}

#datepicker .ui-state-default {
	background: var(--color-main-background);
	font-weight: normal;
	color: var(--color-main-text);
	border: 1px solid var(--color-border-lighter);
}

#datepicker .ui-state-active {
	border: 1px solid var(--color-border-dark);
}

#datepicker .ui-state-hover {
	border: 1px solid var(--color-border-darker);
	background: var(--color-background-lighter);
}

#date_picker .ui-datepicker-next span,
#datepicker .ui-datepicker-next span,
.ui-calendar .ui-datepicker-next span {
	background-image: url('images/lc_nextrecord.svg');
}

#datepicker .ui-icon-circle-triangle-e,
.ui-calendar .ui-icon-circle-triangle-e {
	background-position: 0;
}

#date_picker .ui-datepicker-prev span,
#datepicker .ui-datepicker-prev span,
.ui-calendar .ui-datepicker-prev span {
	background-image: url('images/lc_prevrecord.svg');
}

#datepicker .ui-icon-circle-triangle-w,
.ui-calendar .ui-icon-circle-triangle-w {
	background-position: 0;
}

#mentionPopup,
#mentionPopupList {
	min-width: 100px;
	min-height: 100px;
}

#mentionPopup .lokdialog.ui-dialog-content.ui-widget-content {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100px;
	min-width: 100px;
}

#mentionPopup .ui-dialog-content {
	padding: 0;
}

.username-pop-up {
	min-width: 40px;
	position: absolute;
	text-align: center;
	z-index: 11;
	pointer-events: none;
	font-family: var(--cool-font);
	font-size: var(--default-font-size);
	box-shadow: 0 0 2px 1px var(--color-box-shadow);
}

.username-pop-up .name-row {
	line-height: 24px;
	padding-inline: 8px;
	color: white;
	white-space: nowrap;
}

.username-pop-up .name-row.more-row {
	background-color: var(--color-main-background);
	color: var(--color-main-text);
}

.username-pop-up .arrow-div {
	width: 20px;
	height: 20px;
	transform: rotate(45deg);
	position: absolute;
	left: 0;
	right: 0;
	margin-inline: auto;
	bottom: -6px;
	z-index: -1;
}

.username-pop-up.below-cell .arrow-div {
	bottom: auto;
	top: -6px;
}

#hyperlink-pop-up-preview:not(:empty) {
	margin-bottom: 4px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
	border-radius: calc(var(--border-radius) - 2px);
}

#hyperlink-pop-up-preview img {
	max-height: 150px;
	border-radius: calc(var(--border-radius) - 2px);
	object-fit: cover;
	width: calc(100% - 10px);
	margin: 4px auto;
	border: 1px solid var(--color-border-darker);
}

#hyperlink-pop-up-preview a {
	color: var(--color-hyperlink);
	cursor: pointer;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
	font-size: 0.80rem;
	line-height: normal;
	padding: 0px 6px;
	margin-block: 12px 0px;
}

.prevent-select {
	-webkit-user-select: none;
	        user-select: none;
}

[contenteditable] { /* in old Safari, omitting this prevents editing */
	-webkit-user-select: text;
	        user-select: text;
}

.progress-bar {
	width: 100%;
	height: 2px;
	border: none;
	background-color: var(--color-background-dark);
	overflow: hidden;
	position: relative;
	display: none;
	appearance: none;
}

.progress-bar::-webkit-progress-bar {
	background-color: transparent;
}

.progress-bar::-webkit-progress-value {
	background-color: var(--color-main-text);
}

.progress-bar::-moz-progress-bar {
	background-color: var(--color-main-text);
}

#slideshow-cypress-iframe {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	z-index: 1000000;
	background-color: black;
	border: none;

	/* hairline-fix */
	width: calc(100% + 2px);
	height: calc(100% + 2px);
	transform: translate(-1px, -1px);
}

/* While presenting in a window, the iframe above covers the page at a
   very high z-index. Raise modal popups above it so confirmation dialogs such
   as the external-link warning stay visible */
body.slideshow-presenting-in-window .jsdialog-overlay {
	z-index: 1000001;
}

body.slideshow-presenting-in-window .jsdialog-window.modalpopup {
	z-index: 1000002;
}

.table-add-col-row-marker {
	border-radius: var(--border-radius);
	background-color: var(--color-insert-marker-background) !important;
	box-shadow: 1px var(--color-box-shadow);
	background: url('images/insert-plus-marker.svg') no-repeat center center /20px;
}

.table-add-col-row-marker.hovered {
	background-color: var(--color-insert-marker-background-dark) !important;
	background: url('images/insert-plus-marker-hover.svg') no-repeat center center /20px;
}

.general-select-theme {
	border-radius: var(--border-radius);
	background-color: var(--color-insert-marker-background) !important;
	box-shadow: 1px var(--color-box-shadow);
	background: url('images/lc_selecttheme.svg') no-repeat center center /20px;
}

.general-select-theme.hovered {
	cursor: pointer;
	background-color: var(--color-insert-marker-background-dark) !important;
	background: url('images/lc_selecttheme.svg') no-repeat center center /20px;
}

.group-button {
	border-radius: var(--border-radius);
	background: var(--color-insert-marker-background) no-repeat center / 20px;
	box-shadow: 1px var(--color-box-shadow);
}

.group-button.hovered {
	cursor: pointer;
	background-color: var(--color-insert-marker-background-dark);
}

.group-button-off {
	opacity: 0.4;
}

.group-button-diagram {
	background-image: url('images/lc_selecttheme.svg');
}

.group-button-enter {
	background-image: url('images/lc_entergroup.svg');
}

.group-button-leave {
	background-image: url('images/lc_leavegroup.svg');
}

.group-button-ungroup {
	background-image: url('images/lc_ungroup.svg');
}

[data-theme='dark'] .group-button-enter {
	background-image: url('images/dark/lc_entergroup.svg');
}

[data-theme='dark'] .group-button-leave {
	background-image: url('images/dark/lc_leavegroup.svg');
}

[data-theme='dark'] .group-button-ungroup {
	background-image: url('images/dark/lc_ungroup.svg');
}

.chart-save-to-new-theme {
	border-radius: var(--border-radius);
	background-color: var(--color-insert-marker-background) !important;
	box-shadow: 1px var(--color-box-shadow);
	background: url('images/lc_chartsavetonewtheme.svg') no-repeat center center /20px;
}

.chart-save-to-new-theme.hovered {
	cursor: pointer;
	background-color: var(--color-insert-marker-background-dark) !important;
	background: url('images/lc_chartsavetonewtheme.svg') no-repeat center center /20px;
}

#compare-changes-left-label {
	position: absolute;
	text-align: center;
	background-color: var(--color-main-background);
	color: rgb(var(--doc-type));
}

#compare-changes-right-label {
	position: absolute;
	text-align: center;
	background-color: rgb(var(--doc-type));
	color: var(--color-background-lighter);
}

/* Security label banner: a full-width strip above the document area. It is a
   flex item in the body column (before #main-document-content), so the document
   area reflows below it -- no overlap, and space is reclaimed when hidden.
   Colours are themeable via the --security-banner-* custom properties, which
   default to the doc-type theme colour (as the compare banner uses). */
#security-label-banner {
	flex: none; /* fixed height in the column; never grow/shrink */
	height: var(--security-banner-height, 24px);
	line-height: var(--security-banner-height, 24px);
	text-align: center;
	font-weight: bold;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	background-color: var(--security-banner-background, rgb(var(--doc-type, 3, 105, 163)));
	color: var(--security-banner-color, var(--color-background-lighter));
}

/* Debug panel */

#debug-panel {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 1000;
	background: rgba(255, 255, 255, 0.8);
	border-radius: 6px;
	box-shadow: 0 2px 12px var(--color-black-15);
	padding: 8px 12px;
	font: 12px/1.25 sans-serif;
	color: #333;
	max-height: 80vh;
	overflow-y: auto;
	pointer-events: auto;
}

#debug-panel .debug-panel-header { font-weight: 700; font-size: 13px; margin-bottom: 2px; }
#debug-panel .debug-panel-hint { font-size: 10px; color: #888; margin-bottom: 4px; }

#debug-panel .debug-panel-group {
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	padding: 2px 8px 4px;
	margin-bottom: 4px;
}
#debug-panel .debug-panel-group legend { font-weight: 600; font-size: 12px; padding: 0 3px; }

#debug-panel label { display: block; cursor: pointer; padding: 1px 0; }
/* a tool that belongs under the one above it */
#debug-panel label.debug-panel-subtool { padding-left: 18px; }
#debug-panel input[type='checkbox'] { margin-right: 5px; }
#debug-panel input[type='checkbox']:disabled + span { color: #888; }
#debug-panel .debug-panel-number { width: 5.5em; margin-left: 5px; font: inherit; }

/* the debug tile preload map, drawn above the document canvas it is a
   sibling of, and transparent to input */
#preload-map {
	position: absolute;
	z-index: 1;
	pointer-events: none;
}

/* the bar saying that a small screen is not fully accessible */
.accessibility-notice {
	position: fixed;
	left: 8px;
	right: 8px;
	bottom: 8px;
	z-index: 1100;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 4px;
	background-color: #323232;
	color: white;
	font-size: var(--header-font-size);
}

.accessibility-notice-message {
	flex: 1 1 auto;
	margin: 0;
}

.accessibility-notice-link {
	color: white;
	text-decoration: underline;
	white-space: nowrap;
}

.accessibility-notice-dismiss {
	background: transparent;
	border: none;
	color: white;
	font: inherit;
	text-decoration: underline;
	padding: 4px;
	cursor: pointer;
}

/* Present only to a screen reader. The visible message is its own element. */
.accessibility-notice-announcement {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
