* {
	box-sizing: border-box;
	-moz-box-sizing: border-box;
}

body {
	background: #FFF;
}

#debug, #menu, #login, #view {
	margin-right: auto;
	padding: 0px;
}

#view {
	min-height: 600px;
}

input, select {
	border: 1px solid #88F;
}

form.ng-dirty input.ng-invalid, form.ng-dirty select.ng-invalid {
	border-color: #F88;
}

form.ng-dirty input.ng-invalid:focus, form.ng-dirty select.ng-invalid:focus {
	background-color: #FEE;
}

form.ng-dirty input.ng-valid, form.ng-dirty select.ng-valid {
	border-color: #8F8;
}

form.ng-dirty input.ng-valid:focus, form.ng-dirty select.ng-valid:focus {
	background-color: #EFE;
}

form.ng-pristine input, form.ng-pristine select {
	border-color: #88F;
}

button.is-pending {
	background-color: #CCE;
}

button.is-failure {
	background-color: #ECC;
}

button.is-success {
	background-color: #CEC;
}

#view, #role, #menu {
	margin: 10px;
	border: none;
}

// TODO 3 remove profile-form CSS

#profile-form * {
	margin: 1px 0px;
	display: inline-block;
	min-height: 22px;
}

#profile-form div {
	margin: 5px auto;
	width: 410px;
	display: block;
	clear: both;
}

#profile-form label {
	float: left;
	padding-left: 5px;
}

#profile-form input, #profile-form select {
	float: right;
	width: 200px;
}

#profile-form input[type=checkbox] {
	width: auto;
}

#profile-form button {
	width: 100%;
	margin-bottom: 10px;
}

button.delete {
	color: #F00;
}

table {
	border-collapse: collapse;
	table-layout: fixed;
	text-align: center;
	word-break: break-all;
}

th {
	word-break: normal;
}

table th select {
	background-color: #FFF;
}

table.search {
	width: 100%;
}

table td.img {
	width: 20px;
}

.head.pending th div.name {
	color: #A22;
}

.head.pending ._row .no-search {
	visibility: hidden;
}

.head .name {
	color: #333;
	cursor: pointer;
}

._row .search {
	display: none;
}

span.no-search {
	display: none;
}

._row span.no-search {
	display: inline;
}

#debug {
	background-color: #F8C;
	padding:  5px;
	margin: 0px;
}

.debug {
	background-color: #F8C;
}

#view-Logging table {
	table-layout: fixed;
	background-color: #EEE;
	width: 100%;
}

#view-Logging td {
	padding: 1px 5px 1px 5px;
}

#view-Logging #view .name {
	min-width: 450px;
	text-align: left;
}

#view-Logging #view .collapse {
	width: 40px;
}

#view-Logging #view .select {
	width: 90px;
}

.float-right {
	float: right;
}

a, a:visited {
	display: inline-block;
	text-decoration: none;
	color: #00A;
}

.bold {
	font-weight: bold;
}

.transparent {
	visibility: hidden;
}

button.not-implemented {
	border: 1px solid #A00 !IMPORTANT;
}

#impressum li {
	display: list-item;
	list-style: none;
	padding: 5px 0px;
	text-align: center;
}

#impressum * {
	margin: 1px 0px;
	display: inline-block;
}

body > div.toast {
	position: absolute;
	min-height: auto;
	z-index: 10;
	text-align: center;
	vertical-align: middle,
	margin: 0px;
	padding: 0px;
	border-radius: 7px;
	background: #CA8;
	border: 2px solid #440;
}

body > div.toast.is-success {
	background: #8F8;
	border: 2px solid #080;
}

body > div.toast.is-failure {
	background: #FAA;
	border: 2px solid #C00;
}

button.forward {
	background-image: url(img/forward.png);
}

button.fast-forward {
	background-image: url(img/fast-forward.png);
}

.flip-x {
	transform: scaleX(-1);
}

#modal {
	position: fixed;
	width: 100%;
	height: 100%;
	background: rgba(150, 150, 150, 0.90);
	margin: 0;
	padding: 0;
	border: 0;
	z-index: 999;
	top: 0px;
	left: 0px;
	font-size: 16px;
}

#modal > form {
	position: relative;
	margin: 0;
	width: 80%;
	height: 80%;
	background: #EEEEEE;
	padding: 15px;
	top: 10%;
	left: 10%;
}

#modal row {
	display: flex;
	flex-direction: row;
	width: 100%;
	padding: 5px;
}

#modal row .grow {
	flex-grow: 1;
}

#modal h1 {
	height: 80px;
	text-align: center;
}

#modal button {
	height: 40px;
	width: 100%;
	background: #44CC44;
	text-align: center;
	border: 1px solid #00AA00;
	margin-top: 50px;
}

#modal button.failure {
	background: #CC4444;
}

#modal .ng-invalid button {
	color: #888888;
	border-color: #888888;
}

.text-left {
	text-align: left !IMPORTANT;
}

.text-center {
	text-align: center !IMPORTANT;
}

.text-right {
	text-align: right !IMPORTANT;
}

button:disabled {
	color: #F00;
}

#body-header {
	border: 1px dotted #C0C;
	padding: 0px 5px;
	text-align: center;
	font-weight: bold;
	font-size: 16px;
	margin: 10px 0px;
	color: #C0C;
}

#body-header > div {
	display: inline-block;
	margin: auto;
	padding: 5px 20px;
}

body.is-admin #body-header > div {
	background: #FFBA10;
	color: #FFF;
}

body.is-admin.is-productive #body-header > div {
	background: #FF0A10;
}

body.is-localhost #body-header {
	background: linear-gradient(to right, #0F0, transparent 50%, transparent 50%, #0F0);
}

body.is-dev #body-header {
	background: linear-gradient(to right, #FF0, transparent 50%, transparent 50%, #FF0);
}
