/*
 * material
 */
:root {
	--button-color: var(--auriga-blue-dark-30);
	--button-low-active-color: var(--auriga-blue-dark-5);
	--button-medium-active-color: var(--auriga-blue-dark-10);
	--button-color-inverted: var(--light-color);
	--button-color-disabled: #aeaeae;
	--button-color-disabled-inverted: #eaeaea;
	--button-text-color: var(--darkmode-text-color);
	--button-text-color-inverted: var(--darkmode-text-color);
	--button-text-color-disabled: #efefef;
	--button-text-color-disabled-inverted: #aeaeae;
	--button-border-width: 2px;
	--button-border-radius: 8px;
	--button-font-size: 13px;
}

.display_none {
	display: none !important;
}

/*
 * material: icons
 */
.material-icons,
.material-icons-outlined {
	font-weight: normal;
	font-style: normal;
	/* Preferred icon size */
	font-size: 24px;
	display: inline-block;
	line-height: 1;
	text-transform: none;
	letter-spacing: normal;
	word-wrap: normal;
	white-space: nowrap;
	direction: ltr;

	/* Support for all WebKit browsers. */
	-webkit-font-smoothing: antialiased;

	/* Support for Safari and Chrome. */
	text-rendering: optimizeLegibility;

	/* Support for Firefox. */
	-moz-osx-font-smoothing: grayscale;

	/* Support for IE. */
	font-feature-settings: 'liga';
}
.material-icons {
	font-family: 'Material Icons';
}
.material-icons-outlined {
	font-family: 'Material Icons Outlined';
}

/*
 * material: symbols
 */
.material-symbols,
.material-symbols-outlined {
	font-family: 'Material Symbols Outlined';
	font-weight: 300;
	font-style: normal;
	font-size: 24px;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	display: inline-block;
	white-space: nowrap;
	word-wrap: normal;
	direction: ltr;
	-webkit-font-feature-settings: 'liga';
	-webkit-font-smoothing: antialiased;
}


/*
 * material: menu
 */
div.material_menu {
	position: relative;
}
div.app_bar > div.material_menu {
	display: none;
}
div.material_menu a {
	text-decoration: none;
}
button.material_menu_ellipsis {
	display: inline-block;
	padding: 7px;
	margin: 0;
	cursor: pointer;
	text-align: center;
	border: 1px solid transparent;
	line-height: 21px;
	border-radius: 100%;
	background-color: transparent;
}
button.material_menu_ellipsis:hover {
	/* background-color: #ececec; */
}
button.material_menu_ellipsis i {
	vertical-align: bottom;
}
.material_menu nav.material_menu_nav {
	position: absolute;
	right: 0;
	background: #ffffff;
	border-radius: 4px;
	box-shadow: 0px 3px 5px 1px var(--material-menu-shadow);

	padding: 0.5rem 0;
	min-width: 112px;
	max-width: 280px;
	width: max-content;

	display: flex;
	flex-direction: column;

	opacity: 0;
	transition: opacity 200ms linear 0ms;
	z-index: 8;

	font-size: 16px;
}
.material_menu.open nav.material_menu_nav {
	opacity: 1;
	transition: opacity 100ms linear 0ms;
}

.material_menu_button {
	display: flex;
	justify-items: center;
	align-items: center;
	background-color: transparent;
	border: 0;
	cursor: pointer;
	height: 48px;
	padding: 0.5rem 1rem;
}
.material_menu_button:hover {
	background-color: #ececec;
}
button.material_menu_button i {
	font-size: 20px;
}
.material_menu_button > div:empty {
	display: none;
}
.material_menu_button > div {
	font-size: inherit;
	display: flex;
}
.material_menu_button div.col_icon {
	padding: 0 8px 0 0;
	text-align: center;
}
.material_menu_button div.col_text {
	text-align: left;
}
.material_menu_button div.col_trailing {
}

/*
 * material: snackbar
 */
div.material_snackbar {
	position: fixed;
	color: #ffffff;
	width: 100%;
	z-index: 1000;
	bottom: 16px;
	font-family: var(--material-font-family);
}
div.material_snackbar > div {
	display: flex;
	background-color: #323232;
	color: #ffffff;
	width: max-content;
	width: 344px;
	max-width: calc(100% - 32px - 32px);
	word-wrap: break-word;
	word-break: break-all;
	padding: 16px;
	border-radius: 4px;
	margin: 0 auto;
	align-items: center;
	justify-content: space-between;

	box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.14),
				0 1px 18px 0 rgba(0, 0, 0, 0.12),
				0 3px 5px -1px rgba(0, 0, 0, 0.20);

	user-select: none;
	-ms-user-select: none;
	-moz-user-select: none;
	-webkit-user-select: none;
}
div.material_snackbar div.text {
	font-size: 15px;
	line-height: 20px;
	max-height: 40px;
	overflow: hidden;
}
div.material_snackbar button.close {
	margin-left: 16px;
}

/*
 * material: tooltip
 */
.material_tooltip {
	position: absolute;
	display: flex;
	align-items: center;
	top: 0;
	left: 50%;
	z-index: 1000;
	background-color: #6d6d6d;
	color: #ffffff;
	min-height: 20px;
	padding: 4px 8px;
	margin: 16px 0;
	border-radius: 4px;
	text-align: center;
}


/*
 * material: dialog
 */
#material_dialog.scrim {
	--padding: 16px;

	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-color: var(--dimmer-color);

	display: flex;
	align-items: center;
	justify-items: center;
	align-content: center;
	justify-content: center;
	z-index: 650;
}
#material_dialog .dialog {
	position: relative;
	width: 100%;
	max-width: 450px;
	min-height: 200px;
	background-color: #ffffff;
	margin: 0 auto;
	padding: var(--padding);
	border-radius: calc(var(--padding) / 2);

	color: var(--text-color-dark);
	font-family: var(--material-font-family);
}
#material_dialog .content {
	border: 0 none !important;
}
#material_dialog .content .header {
	font-size: 18px;
	margin: 0 0 0.8em 0;
	font-weight: bold;
}
#material_dialog .content .text {
	color: #606060;
}

#material_dialog .actions {
	position: absolute;
	right: var(--padding);
	bottom: var(--padding);
	display: flex;
	justify-content: flex-end;
}
#material_dialog .actions:empty {
	display: none;
}
#material_dialog .actions > a.action {
	display: block;
}


/*
 * material: chip
 */
div.chip_container {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 8px 0;
}
div.chip_container:empty {
	display: none;
}
div.material_chip {
	display: flex;
	align-items: center;
	line-height: 20px;
	background-color: #eaeaea;
	justify-content: space-between;
	padding: 4px 8px 4px 8px;
	border-radius: 16px;
}
div.material_chip.remove_button_show {
	padding: 4px 4px 4px 8px;
}
div.material_chip a.material_chip_remove {
	display: none;
	line-height: inherit;
	height: 20px;
	overflow: hidden;
	margin-left: 4px;
}
div.material_chip.remove_button_show a.material_chip_remove {
	display: block;
}

div.material_chip a.material_chip_remove i {
	line-height: inherit;
}

/*
 * material: app_bar
 */
div.app_bar {
	box-sizing: border-box;
	min-height: 49px;

	margin-top: -8px;
	margin-bottom: 12px;
	padding-bottom: 12px;
}
div.app_bar > div:empty {
	display: none;
}
div.app_bar,
div.app_bar > div:nth-child(1) {
	display: flex;
	justify-content: space-between;
	align-items: center;
	line-height: 24px;
}
div.app_bar a.app_bar_nav {
	height: 16px;
	margin-right: 1em;
}
div.app_bar a.app_bar_nav .material-icons {
	font-size: 16px;
}
div.app_bar > div:nth-child(1) {
	font-size: 16px;
	color: #006db5;
	font-weight: bold;
}
div.app_bar > div:nth-child(1) a {
	color: #006db5;
}
div.app_bar .actions_bar {
	display: flex;
	align-items: center;
}
div.app_bar .actions_bar a,
div.app_bar .actions_bar button {
	margin-left: 3px;
}

/*
 * Templates
 */
.templates {
	width: 100%;
	max-width: 480px;
	color: var(--darkmode-text-color);
}
.templates .fail {
	display: flex;
	align-items: center;

	color: #000000;
	background-color: #ffffff;
	padding: 8px;
	margin: 16px 0;
	padding-left: 44px;
	font-size: 15px;
}
.templates .fail::after {
	content: '';
	display: block;
	clear: both;
}
.templates .fail i.material-icons,
.templates .fail i.material-icons-outlined {
	font-size: 28px;
	vertical-align: top;
	margin-right: 8px;
	margin-left: -36px;
	color: var(--text-color-dark);
}
.templates .fail span.message {
	display: inline-block;
	vertical-align: sub;
}
.templates .header {
	font-size: 13px;
	margin-bottom: 6px;
	text-transform: uppercase;
}
.templates h1 {
	display: flex;
	align-items: center;
	font-size: 24px;
	margin-bottom: 16px;
	padding: 0;
	line-height: 36px;
}
.templates h1 i.material-icons,
.templates h1 i.material-icons-outlined {
	font-size: inherit;
	margin-right: 4px;
}

.templates div.row {
	margin-bottom: 10px;
}
.templates div.row.extra_space {
	margin-bottom: 14px;
}
.templates div.row.extra_extra_space {
	margin-bottom: 1.25em;
}

.templates div.row.extra_space_top {
	margin-top: 16px;
}

.templates label {
	display: block;
	font-size: 11.5px;
	line-height: 1.43;
}
.templates label.checkbox {
	display: inline-block;
	margin-right: 16px;
	font-size: 130%;
}
.templates .required_text {
	display: none;
}
.templates label.required > .required_text {
	display: block;
	text-align: right;
	font-size: 10.5px;
	font-style: italic;
	padding-right: 3px;
}

.templates div.label {
	width: calc(100% - 2px);
	font-size: 130%;
	padding: 5px 0;
	box-sizing: border-box;
}

.templates select,
.templates input,
.templates textarea {
	font-family: var(--material-font-family);
}

.templates select,
.templates input[type="text"],
.templates input[type="password"],
.templates input[type="email"],
.templates input[type="number"],
.templates textarea,
.templates div[contenteditable="true"] {
	width: calc(100% - 2px);
	font-size: 13px;
	margin: 1px;
	padding: 8px 8px;
	box-sizing: border-box;
	color: var(--dark-color);
}
div.view_edit.content.player .templates textarea[name='text_2'] {
	font-family: monospace;
	font-size: 13px;
}
.templates textarea {
	resize: none;
}
.templates div[contenteditable="true"] {
	max-height: 300px;
	overflow-y: auto;
}
.templates div[contenteditable="true"][placeholder]:empty:before {
	content: attr(placeholder);
	color: #555;
}
.templates input[type="text"]:disabled {
	background-color: #f2f2f2;
}
.templates select:disabled {
	color: #878787;
	background-color: #cbcbcb;
	border-color: #cbcbcb;
}
.templates label.image_selection {
}
.templates label.image_selection div.container {
	display: flex;
	align-items: center;
	overflow: hidden;
	flex-wrap: wrap;
}
.templates label.image_selection div.container img {
	margin-right: 8px;
	margin-bottom: 8px;
}
.templates label.image_selection div.container button {
	margin-bottom: 8px;
}

.templates .required.has_error input[type="text"],
.templates .required.has_error select,
.templates input[type="text"].has_error,
.templates input[type="email"].has_error,
.templates input[type="password"].has_error {
	width: calc(100% - 2px);
	border: 2px solid #cc0000;
	margin: 0px;
}

.templates a.list {
	display: inline-block;
	text-decoration: none;
	font-size: 18px;
	padding: 8px 0;
	background-image: url(/images/layout/li.svg);
	padding-left: 20px;
	background-repeat: no-repeat;
	background-position: center left;
	line-height: 19px;
	outline: 0 none;
}
.templates a.list.current {
	background-image: url(/images/layout/li_selected.svg);
}
.templates a.list.current > img {
	height: 19px;
	vertical-align: top;
}


/*
 * Material: button
 */
a.button .material-icons,
a.button .material-icons-outlined,
a.button .material-symbols-outlined,
a.button .material-symbols,
button.button .material-icons,
button.button .material-icons-outlined,
button.button .material-symbols,
button.button .material-symbols-outlined {
	vertical-align: bottom;
	line-height: inherit;
	font-size: 20px;
	margin-right: 0.25em;
}

a.button,
button.button {
	display: inline-block;
	padding: 5px 10px;
	margin: 0;
	cursor: pointer;
	text-transform: uppercase !important;
	text-decoration: none !important;
	text-align: center;
	font-family: var(--material-font-family);
	font-size: var(--button-font-size);
	font-weight: normal;
	color: var(--button-text-color);
	background-color: transparent;
	border: var(--button-border-width) solid transparent;
	border-radius: var(--button-border-radius);
	line-height: 20px;
	white-space: nowrap;
	vertical-align: bottom;
}

a.button.high,
button.button.high,
input.button.high {
	color: var(--button-text-color-inverted);
	border-color: var(--button-color);
	background-color: var(--button-color);
}

a.button:hover,
button.button:hover,
input.button:hover {
	filter: brightness(125%);
}
a.button.high:focus,
button.button.high:focus,
input.button.high:focus {
	filter: brightness(125%);
}
a.button.low:active,
button.button.low:active,
input.button.low:active {
	background-color: var(--button-low-active-color);
}
a.button:active,
button.button:active,
input.button:active {
	filter: brightness(150%);
}

a.button.medium,
button.button.medium,
input.button.medium {
	border-color: var(--button-color);
}

a.button.disabled,
button.button:disabled,
input.button:disabled,
a.button.disabled:hover,
button.button:disabled:hover,
input.button:disabled:active,
a.button.disabled:active,
button.button:disabled:active,
input.button:disabled:active {
	color: var(--button-text-color-disabled);
	cursor: default;
	background-color: transparent;
	filter: none;
}
a.button.high.disabled,
button.button.high:disabled,
input.button.high:disabled {
	color: var(--button-text-color-disabled);
	background-color: var(--button-color-disabled);
	border-color: var(--button-color-disabled);
}
a.button.medium.disabled,
button.button.medium:disabled,
input.button.medium:disabled {
	border-color: var(--button-color-disabled);
}
