/* CSS for Bears and Friends intranet */
/* 2004 - 2020 written by Olaf Wodrich, www.entrics.de */

:root {
	--color-neutral-90: hsl(0, 0%, 90%);
	--color-neutral-95: hsl(0, 0%, 95%);
	--color-red-mark: hsl(0, 100%, 80%);
	--color-green-mark: #CCFFCC;
}

body {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 14px;
	color: black;
	background-color: #FFFFFF;
}

h1 {
	font-size: 24pt;
	color: #808080;
	font-weight: normal;
}

h2 {
	font-size: 16pt;
	color: #808080;
}

h3 {
	margin-top: 0;
	padding-top: 0;
	font-size: 12pt;
	color: black;
}

td {
	font-size: 14px;
	vertical-align: top;
}

th, td.footer {
	vertical-align: top;
	background-color: #CCCCCC;
	font-size: 14px;
	font-weight: bold;
	text-align: left;
	padding: 3px 10px 10px 10px;
}

form {
	padding: 0;
	margin: 0;
}

.form {
	font-family: Courier New, Courier, mono;
	font-size: 10pt;
}

/* form table */

.formTable {
	border-collapse: collapse;
}

.formTable td, .formTable th {
	padding-left: 5px;
	padding-right: 5px;
	border: 1px solid #fff;
}
.formTable > tbody > tr > td {
	background-color: #E7E7E7;
}

.formTable > tbody > tr.multiCol > td {
	padding-right: 20px;
}

table.formTable .formSubHead {
	background-color: transparent;
	font-size: 12px;
	font-weight: bold;
	padding-top: 10px;
	padding-bottom: 5px;
}

.formTable > tbody > tr > td.headerActions {
	text-align: right;
	padding-bottom: 10px;
	background-color: transparent;
}

.submitArea {
	text-align: center;
	background-color: #E7E7E7;
	padding: 20px 5px 2px 5px;
	/*line-height: 2em;*/
}

.unprinted {
	text-align: left;
}

.unprinted > * {
	margin-right: 0.5em;
}

.error {
	border: 1px solid red;
}

.errormsg {
	background-color: #FF6666;
	width: 100%;
	margin: 3px;
}

.infomsg {
	background-color: #CCFFCC;
	width: 100%;
	margin: 3px;
}

/* list table */

/* deprecated */
tr.listOdd {
	background-color: #E7E7E7;
}

/* deprecated */
tr.listEven {
	background-color: #f3f3f3;
}

.listTable.alternate tr:nth-of-type(odd) {
	background-color: var(--color-neutral-90);
}

.listTable.alternate tr:nth-of-type(even) {
	background-color: var(--color-neutral-95);
}

table.listTable td {
	padding-left: 10px;
	padding-right: 10px;
}

tr.inactive {
	opacity: 0.7;
}

.inactive, .inactive td {
	opacity: 0.5;
}

.explanation {
	font-style: italic;
	font-size: 8pt;
}

input {
	margin: 0;
	padding: 0;
	padding-right: 1px;
}

input.longField {
	width: 400px;
	padding-left: 1px;

}

.currentPage, .pagCurrentStep {
	padding-left: 1px;
	padding-right: 1px;
	border: 1px solid #333333;
	font-weight: bold;
}

/* startpage */

.linkBlock {
	border-top: 2px solid #808080;
	border-left: 6px solid #808080;
	padding: 10px;
	margin-bottom: 20px;
}

.linkBlock p {
	margin-top: 0;
	padding: 0;
	margin-bottom: 5px;
}

.linkBlock a {
	color: blue;
}

table.formTable td.head {
	background-color: #ffffff;
}

td.head h2 {
	font-size: 14pt;
	margin-top: 15pt;
	margin-bottom: 7pt;
}

.topFormActions {
	text-align: right;
	margin-top: 0;
	margin-bottom: 30px;
}

.dateLabel {
	text-align: center;
	padding-top: 10px;
}

.newsItem {
	padding-bottom: 15px;
}

.newsTimestamp {
	text-align: right;
	font-size:smaller;
	color: grey;
}

/* form tabs */

.tabs-container {
	margin-top: 0.75em;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	border-bottom: 2px solid grey;
}

.tab {
	padding: 3px 10px 3px 10px;
	font-weight: bold;
	font-size: 11pt;
	color: #000;
	background-color: #CCCCCC;
	border-bottom: 1px solid #ffffff;
	border-radius: 4px 4px 0 0;
}

.tab.active {
	background-color: #808080;
	border-bottom: 1px solid #808080;
	color: #fff;
}

.tab a {
	color: blue;
}

.tab.active a {
	text-decoration: none;
	color: inherit;
}

.tabContent {
	padding: 10px;
	border: 2px solid grey;
	border-top: none;
}

/* misc */

.arrow-bar {
	position:relative;
	display:inline-block;
	margin-left:5px;
	vertical-align: baseline;
}

.partOfIngredient {
	margin-left: 20px;
	font-style: italic;
}

.allergen {
	font-weight: bold;
	text-decoration: underline;
}

.signalWrap {
	border: 1px solid #fff;
	border-radius: 50%;
	display: inline-block;
	font-size: 0;
}

.signal {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: #fff;
	display: inline-block;
}

.signal.active {
	background-color: rgb(40, 168, 40);
}

.signal.inactive {
	background-color: red;
}

.combinedInventory td {
	font-style: italic;
}
/*
tr:target {
	outline: 1px solid blue;
}
*/

.ordersTable [id^=order_], .invoicesTable [id^=invoice_] {
	scroll-margin-top: 50vh;
}

.ingredientsGroupDelimiter {
	border-left: 1px solid black;
}

.colorDemo {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 1px solid black;
}

.redMark {
	background-color: var(--color-red-mark);
}

.greenMark {
	background-color: var(--color-green-mark);
}

.word-break {
	hyphens: auto;
	overflow-wrap: break-word;
	word-break: break-word;
}
