﻿/* ==========================================================================
   Base style for application
   ========================================================================== */
*
{
	box-sizing: border-box;
}
*::-moz-selection
{
	color: #eee;
	background: rgba(55, 149, 93, 0.8);
}
*::selection
{
	color: #eee;
	background: rgba(55, 149, 93, 0.8);
}
[disabled]
{
	cursor: not-allowed;
}
[hidden]
{
	display: none !important;
}
html
{
	color: #333;
	font-family: "Open Sans", Calibri, Helvetica, Arial, sans-serif;
}
body
{
	margin: 0;
}
a
{
	color: #2f64c5;
	text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
}
a:hover
{
	color: #668fda;
}
a:visited
{
	color: #306182;
}
a[role="button"], a[role="button"]:hover, a[role="button"]:visited
{
	color: #eee;
}
button, [role="button"]
{
	-webkit-user-drag: none;
	background-color: #376f95;
	border: none;
	border-radius: 0.2rem;
	color: #eee;
	cursor: pointer;
	display: inline-block;
	font-family: inherit;
	font-size: 100%;
	line-height: normal;
	padding: 0.5em 1em;
	text-align: center;
	text-decoration: none;
	user-select: none;
	vertical-align: middle;
	white-space: nowrap;
	zoom: 1;
}
/* Firefox: Get rid of the inner focus border */
button::-moz-focus-inner
{
	padding: 0;
	border: 0;
}
button:active,
button:hover,
[role="button"]:active,
[role="button"]:hover
{
	background-image: linear-gradient(transparent,
		rgba(255, 255, 255, 0.05) 40%, rgba(255, 255, 255, 0.10));
}
button:focus,
[role="button"]:focus
{
	background-image: linear-gradient(transparent, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.10));
}
button:focus,
[role="button"]:focus
{
	outline: 0;
}
button:active,
[role="button"]:active
{
	border-color: #000\9;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) inset, 0 0 6px rgba(0, 0, 0, 0.20) inset;
}
button[disabled]
{
	background-image: none;
	border: none;
	box-shadow: none;
	opacity: 0.40;
}
/* main element of shell page should not have a margin */
header ~ main
{
	margin: 0;
}
input[type="email"],
input[type="number"],
input[type="password"],
input[type="tel"],
input[type="text"],
multi-select,
select,
textarea
{
	border: 0.15rem solid #ccc;
	border-radius: 0.2rem;
	padding: 0.3rem;
}
input[type="checkbox"]:focus
{
	outline: 0.15rem solid #37955d;
	outline-offset: 2px;
}
input[type="email"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="text"]:focus,
multi-select:focus,
textarea:focus
{
	border-color: #37955d;
	caret-color: #37955d;
	outline: none;
}
multi-select > .button:focus,
multi-select > .button:focus-within,
multi-select.active > .button
{
	border-color: #37955d !important;
}
select
{
	-moz-appearance: none;
	-webkit-appearance: none;
	appearance: none;
	background-color: #f4f4f4;
	border-right: 0;
	cursor: pointer;
	height: 2rem;
	outline: none;
	padding-right: 2rem;
}
main
{
	margin: 1rem;
}
multi-select
{
	--focus-ring-color: rgba(55, 149, 9, 0.8);
	padding: 0;
}
multi-select::part(button)
{
	border: 0;
}
/* Table styles */
table
{
	border: 1px solid #bababa;
	border-collapse: collapse;
	border-spacing: 0;
	empty-cells: show;
}
table caption
{
	color: #000;
	font: italic 85%/1 arial, sans-serif;
	padding: 1em 0;
	text-align: center;
}
table td,
table th
{
	border-left: 1px solid #bababa;
	border-width: 0 0 0 1px;
	font-size: inherit;
	margin: 0;
	overflow: visible;
	padding: 0.5em 1em;
}
table th
{
	font-weight: 700;
}
table thead
{
	background-color: #bbb;
	color: #000;
	text-align: left;
	vertical-align: bottom;
}
tbody tr
{
	background-color: #eee;
	line-height: 1.2;
}
tbody tr.even-row
{
	background-color: #ddd;
}
.account-links
{
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	position: absolute;
	right: 0.4rem;
	top: 0;
}
.account-links li:not(:last-child)::after
{
	color: #eee;
	content: "|";
	font-weight: 700;
	margin: 0 0.3rem;
}
.account-links a
{
	color: #eee;
}
.account-links a:hover
{
	color: #fff6b6;
}
.action-button
{
	min-width: 5rem;
	position: relative;
}
.action-button.processing
{
	opacity: 1;
	pointer-events: none;
}
.action-button .button-label
{
	display: inline-block;
	opacity: 1;
	transition: opacity 0.2s ease-in-out,
		transform 0.2s ease-in-out;
}
.action-button.processing .button-label
{
	opacity: 0;
	transform: scale(0);
}
.content
{
	padding-bottom: 2rem;
}
/* Shell styles */
.list-icon
{
	height: 1.4rem;
	margin-right: 1rem;
	position: relative;
	top: 0.4rem;
	width: 1.4rem;
}
.list-icon path
{
	fill: #fff;
}
.menu-button
{
	background: rgba(0, 0, 0, 0.7);
	box-sizing: content-box;
	cursor: pointer;
	display: block;
	font-size: 10px;
	height: auto;
	left: 0;
	padding: 2.1em 1.6em;
	position: fixed;
	top: 0;
	width: 2em;
	z-index: 20;
}
.menu-button span
{
	display: block;
	position: relative;
}
.menu-button span,
.menu-button span::before,
.menu-button span::after
{
	background-color: #fff;
	height: 0.2em;
	-moz-transition: all 0.3s ease-out;
	-webkit-transition: all 0.3s ease-out;
	transition: all 0.3s ease-out;
	width: 100%;
}
.menu-button span::before,
.menu-button span::after
{
	content: " ";
	margin-top: -0.6em;
	position: absolute;
}
.menu-button span::after
{
	margin-top: 0.6em;
}
.nbs-access
{
	background-color: #37955d;
	border-radius: 0;
	border-top: 1px solid #333;
	font-size: 1.3rem;
	font-weight: 700;
	text-align: left;
	width: 100%;
}
notification-area
{
	margin-top: 5rem;
}
.processing-indicator
{
	display: flex;
	flex-wrap: nowrap;
	justify-content: space-around;
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 50%;
}
.processing-indicator > .circle,
.processing-indicator::before,
.processing-indicator::after
{
	background-color: #eee;
	border-radius: 50%;
	content: "";
	height: 0.6rem;
	opacity: 0;
	transform: scale(0);
	transition: opacity 0.2s ease-in-out;
	width: 0.6rem;
}
.processing .processing-indicator > .circle,
.processing .processing-indicator::before,
.processing .processing-indicator::after
{
	animation-duration: 1s;
	animation-iteration-count: infinite;
	animation-name: processingCircle;
	opacity: 1;
}
.processing .processing-indicator > .circle
{
	animation-delay: 0.2s;
}
.processing .processing-indicator::after
{
	animation-delay: 0.4s;
}
.screen
{
	border: none;
	border-top: 1px solid #333;
	height: 100%;
	opacity: 0;
	padding: 0;
	pointer-events: none;
	position: absolute;
	transition: opacity 0.2s ease-out;
	width: 100%;
}
.screen.active
{
	opacity: 1;
	pointer-events: inherit;
}
.side-bar-active .menu-button
{
	left: 12rem;
}
.side-bar-active .menu-button span
{
	background: transparent;
}
.menu-button:hover, .menu-button:focus
{
	background: #000;
}
.open-tabs > .tab-list
{
	background-color: #222;
	border: solid rgba(255, 255, 255, 0.1);
	border-width: 1px 0;
	max-height: 100vh;
	overflow: hidden;
	transition: max-height 0.3s ease-in-out;
}
.open-tabs.collapsed > .tab-list
{
	border-width: 0;
	max-height: 0;
}
.open-tabs > .tab-list > .active-tab
{
	background-color: rgba(55, 149, 93, 0.3);
	pointer-events: none;
}
.open-tabs > .tab-list > .active-tab::before
{
	content: "↣";
	display: block;
	font-size: 1.1rem;
	font-weight: 700;
	left: 1rem;
	position: absolute;
	top: 0.3rem;
	color: #eee;
}
.open-tabs > .tab-list > li
{
	padding-left: 2rem;
	position: relative;
}
.open-tabs .accordion-arrow
{
	display: inline-block;
	margin-right: 1rem;
	transition: transform 0.3s ease-in-out;
}
.open-tabs.collapsed .accordion-arrow
{
	transform: rotate(-90deg);
}
.required-field::after
{
	content: "*";
	display: inline-block;
	color: #900;
	margin-left: 0.2rem;
	font-size: 1.2rem;
	font-weight: 700;
}
.select-label
{
	display: inline-block;
	min-height: 2rem;
	position: relative;
}
.select-label:focus-within select,
.select-label:focus-within::after
{
	border-color: #37955d;
}
.select-label select
{
	min-width: 7rem;
}
.select-label::after
{
	border: 0.15rem solid #ccc;
	border-left-width: 0;
	border-radius: 0 0.2rem 0.2rem 0;
	bottom: 0;
	color: #666;
	content: "▼";
	font-size: 60%;
	height: 1.75rem;
	line-height: 1.8rem;
	pointer-events: none;
	position: absolute;
	right: 0;
	text-align: center;
	width: 1.7rem;
}
.side-bar-active .menu-button span::before
{
	-webkit-transform: rotate(45deg) translate(0.5em, 0.4em);
	-moz-transform: rotate(45deg) translate(0.5em, 0.4em);
	transform: rotate(45deg) translate(0.5em, 0.4em);
}
.side-bar-active .menu-button span::after
{
	-webkit-transform: rotate(-45deg) translate(0.4em, -0.3em);
	-moz-transform: rotate(-45deg) translate(0.4em, -0.3em);
	transform: rotate(-45deg) translate(0.4em, -0.3em);
}
.side-bar .module-list
{
	border-bottom: 1px solid rgba(255, 255, 255, 0.3);
	padding-bottom: 1rem;
}
.side-bar .module-list:empty
{
	display: none;
}
.side-bar a
{
	color: #fff;
	display: block;
	line-height: 1.5em;
	padding: 0.4rem 1rem;
	text-decoration: none;
	white-space: nowrap;
}
.side-bar ul
{
	list-style: none;
	margin: 0;
	margin-bottom: 1rem;
	padding: 0;
	z-index: 1;
}
.side-bar li
{
	cursor: pointer;
}
.side-bar li:hover
{
	background-color: #333;
}
.side-bar
{
	-webkit-overflow-scrolling: touch;
	background: #191818;
	bottom: 0;
	left: 0;
	margin-left: -12rem;
	overflow-x: hidden;
	overflow-y: auto;
	position: fixed;
	top: 0;
	width: 12rem;
	z-index: 1000;
}
.side-bar .application-name
{
	background: #458bba;
	color: #fff6b6;
	font-size: 2.3rem;
	font-style: italic;
	font-weight: 700;
	height: 4rem;
	margin: 0;
}
.side-bar .application-name > span
{
	font-size: 2.4rem;
}
.side-bar, .menu-button
{
	-moz-transition: all 0.2s ease-out;
	-webkit-transition: all 0.2s ease-out;
	transition: all 0.2s ease-out;
}
.side-bar .search-field
{
	background-color: #fff;
	border: 0.15rem solid #ccc;
	border-radius: 1rem;
	margin: 0.8rem auto;
	padding-left: 0.5rem;
	position: relative;
	width: 90%;
}
.side-bar .search-field:focus-within
{
	border-color: #37955d;
}
.side-bar .search-field > input
{
	background-color: transparent;
	border: 0;
	font-size: 0.95rem;
	outline: none;
	padding: 0.2rem;
	padding-right: 1.7rem;
	width: 100%;
}
.side-bar .search-field .search-icon
{
	fill: #191818;
	height: 1rem;
	width: 1rem;
}
.side-bar .search-field > button
{
	background: none;
	border-radius: 50%;
	padding: 0.2rem;
	position: absolute;
	right: 0.3rem;
	top: 0.2rem;
}
.side-bar-active .side-bar
{
	box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
	left: 12rem;
	width: 12rem;
}
.side-bar + header
{
	background-color: #458bba;
	height: 4rem;
	transition: margin-left 0.2s ease-out;
	width: 100vw;
	z-index: 10;
}
.side-bar ~ main
{
	height: calc(100vh - 4rem);
	position: relative;
	transition: transform 0.2s ease-out;
	width: 100vw;
}
.system-environment
{
	background-color: #990808;
	border: 1px solid #a80505;
	border-radius: 8px;
	box-shadow: 0 0 10px #a80505;
	color: #eee;
	cursor: default;
	display: inline-block;
	font-size: 1.2rem;
	font-weight: 700;
	left: 5rem;
	opacity: 0;
	padding: 0.1em;
	pointer-events: none;
	position: absolute;
	text-align: center;
	text-shadow: 0 0 10px #eee;
	top: 1.5rem;
	transform: rotate(-7.5deg);
	-webkit-user-select: none;
	-moz-user-select: none;
	user-select: none;
	width: 4em;
	z-index: 2;
}
.system-environment.tada
{
	animation-name: tada;
	animation-delay: 1s;
	animation-duration: 1s;
	animation-fill-mode: forwards;
}
.tab-close
{
	align-items: center;
	background-color: #333;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	height: 1rem;
	justify-content: center;
	position: absolute;
	right: 0.3rem;
	top: 0.3rem;
	width: 1rem;
}
.tab-close::before
{
	color: #eee;
	content: "×";
	font-weight: 700;
}
.tab-close:hover
{
	background-color: #a62d08;
}
.tab-counter
{
	background: rgba(255, 255, 255, 0.4);
	border-radius: 0.2rem;
	display: inline-block;
	font-weight: 700;
	height: 1.4rem;
	line-height: 0.8;
	margin-left: 0.5rem;
	padding: 0.2rem;
	text-align: center;
	transform: scale(0.8);
	width: 1.4rem;
}
.tab-list-toggle
{
	background-color: transparent;
	border-radius: 0;
	color: #fff;
	display: block;
	line-height: 1.5em;
	margin-top: 0.5rem;
	padding: 0.4rem 1rem;
	text-align: left;
	white-space: nowrap;
	width: 100%;
}
.tab-list-toggle:hover
{
	background: #333;
}
.tabs
{
	height: 4.1rem;
	list-style: none;
	margin: 0;
	overflow: hidden;
	padding-left: 4rem;
	padding-top: 1.5rem;
	position: relative;
}
.tabs > li
{
	background-color: #aaa;
	border: solid #333;
	border-radius: 0.2rem 0.2rem 0 0;
	border-width: 1px 1px 0 1px;
	cursor: pointer;
	display: inline-block;
	font-size: 1.2rem;
	height: 2.5rem;
	margin: 0 0.2rem 0.2rem 0;
	max-width: 15rem;
	overflow: hidden;
	padding: 0.3rem;
	padding-right: 2rem;
	position: relative;
	text-overflow: ellipsis;
	-moz-user-select: none;
	-ms-user-select: none;
	-webkit-user-select: none;
	user-select: none; 
	white-space: nowrap;
}
.tabs > li:hover
{
	background-color: #bbb;
}
.tabs > .active-tab
{
	background: linear-gradient(to bottom, rgba(221, 221, 221, 1) 0%,
		rgba(238,238,238,1) 75%, #fff 100%);
	cursor: default;
	height: 2.55rem;
	z-index: 10;
}
.tabs > .active-tab:hover
{
	background-color: #ddd;
}
.tabs > .processing
{
	padding: 0;
	pointer-events: none;
	position: relative;
	width: 4rem;
}
.tabs > .processing .processing-indicator
{
	width: 3rem;
}
.tabs > .processing .processing-indicator > .circle,
.tabs > .processing .processing-indicator::before,
.tabs > .processing .processing-indicator::after
{
	background-color: #666;
}
.user-link
{
	display: flex;
}
.user-link .list-icon
{
	margin-right: 0.4rem;
	top: 0.1rem;
}
.user-link .list-icon circle
{
	fill: #2a4979;
}
@keyframes processingCircle
{
	0%
	{
		transform: scale(0);
	}
	50%
	{
		transform: scale(1);
	}
	100%
	{
		transform: scale(0);
	}
}
@keyframes tada
{
	0%
	{
		opacity: 0;
		-webkit-transform: scale(1);
		transform: scale(1);
	}
	10%, 20%
	{
		opacity: 1;
		-webkit-transform: scale(0.9) rotate(-10.5deg);
		transform: scale(0.9) rotate(-10.5deg);
	}
	30%, 50%, 70%, 90%
	{
		-webkit-transform: scale(1.2) rotate(-4.5deg);
		transform: scale(1.2) rotate(-4.5deg);
	}
	40%, 60%, 80%
	{
		-webkit-transform: scale(1.2) rotate(-10.5deg);
		transform: scale(1.2) rotate(-10.5deg);
	}
	100%
	{
		opacity: 1;
	}
}
@media (min-width: 48em)
{
	.header, .content
	{
		padding-left: 2em;
		padding-right: 2em;
	}
	.menu-button
	{
		display: none;
		left: 12rem;
		position: fixed;
	}
	.side-bar
	{
		left: 12rem;
	}
	.side-bar-active .side-bar
	{
		box-shadow: none;
	}
	.side-bar + header
	{
		margin-left: 12rem;
		width: calc(100vw - 12rem);
	}
	.side-bar ~ main
	{
		transform: translateX(12rem);
		width: calc(100vw - 12rem);
	}
	.tabs
	{
		padding-left: 2rem;
	}
}