html, body
{
	font-family: helvetica, arial, tahoma, sans-serif;
	margin: 0;
	padding: 0;
	color: black;
	min-width: 100%;
	table-layout: fixed;
	height: 100%;
	background: linear-gradient(white, #fafafa, white);
	touch-action: manipulation;
	font-size: 13px;
}

iframe
{
	border: 0;
	color: black;
	background-color: white;
}

p.error_message
{
	color: red;
	font-size: 16px;
	font-weight: bold;
}

#content
{
	border: 1px solid;
	border-color: rgb(113,185,221);
	overflow-y: auto;
	padding-bottom: 3px;
	height: 100vh;
	--padding: 5px; /* used by resize_standard() */
	display: flex;
	flex-wrap: nowrap;
}
#content > main
{
	width: 100%;
}
#content #content_left
{
	width: 40%;
	overflow-y: scroll;
	height: inherit;
	resize: horizontal;
}
#content #content_right
{
	width: 60%;
	top: 0px;
	height: inherit;
}

a.info
{
	cursor: help;
}

.dragenter
{
	border: 2px solid red !important;
}

/* 24sevenoffice */
img.profile
{
	width: 32px;
	height: 32px;
	border-radius: 50% 50%;
	box-shadow: 0 0 0 2px rgba(126, 154, 167, 0.2);
	vertical-align: middle;
	margin-left: 10px;
}

div#profile
{
	position: absolute;
	right: 0px;
	top 0px;
	height: 49px;
	font-size: 16px;
	font-weight: bold;
}

/* Menu */
.menu
{
	float: left;
	width: 200px;
	bottom: 0px;
	height: 100%;
	overflow-y: auto;
	background-color: #fafafa;
}

/* Monitors with higher resolution */
@media screen and (min-device-width: 1680px) and (orientation: landscape)
{
.menu
{
	width: 225px;
}
}

.menu nav ul ul
{
	padding: 0 0 0 15px;
}

.menu nav > ul
{
	padding-left: 6px;
}

.menu li
{
	list-style: none;
	padding: 3px 2px;
	margin: 1px;
	border-radius: 4px;
}

.menu a:hover
	, .menu li:hover
	, .even:hover
	, .odd:hover
{
	background: #d6e9ff;
}

.selected
	, .menu_selected
	, li:hover.menu_selected
	, a:hover.menu_selected
{
	background-color: rgb(40, 150, 204);
}

pre
{
	font-family: helvetica, arial, tahoma, sans-serif;
	color: black;
}

.border
{
	border: 1px solid rgb(113,185,221);
}

#userswap ul
{
	padding: 0;
}
#userswap ul li
{
	display: block;
}
#userswap ul li a
{
	color: #00628c;
}


a:hover, a:active
{
	text-decoration: underline;
}

a
{
	color: black;
	text-decoration: none;
}

th
	, .th
{
	font-weight: normal;
	text-align: left;
	background-color: rgb(215, 220, 223);
}

.odd
{
	background: white;
}
.even
{
	background: rgb(240,240,240);
}

/* input fields and buttons */
input
	, button[type=submit]
	, select
	, div.input
{
  	outline: solid 2px #007BC2;
  	border-radius: 4px;
	min-height: calc(2em + 0.3vw);
  	border: none;
	padding: 0 2px;
	margin-top: 0.2em;
	margin-bottom: 0.2em;
	vertical-align: middle;
}

input[type=range]
{
	vertical-align: middle;
}

input[type=checkbox]
	, input[type=radio]
	, input[type=image]
	, input[type=range]
	, input[type=reset]
	, input[type=file]
	, button[type=submit]
{
	outline: none;
}

select
	, input[type=checkbox]
	, input[type=password]
{
	background-color: #fafafa;
}

select
{
	height: calc(2em + 0.3vw);
}

select[multiple]
{
	height: initial;
}

textarea 
{
	outline: solid 2px #0078BD;
	border: none;
	border-radius: 4px;
}

input[type=submit]
	, button[type=submit]
{
	background-color: #0078BD;
	color: #fff;
	font-weight: bold;
	cursor: pointer;
	transition: transform 0.1s ease-in 0s;
}

input[type=submit]:hover
	, button[type=submit]:hover
{
  	transform: scale(1.05);
}

input[type=reset]
	, input[type=submit]
	, button[type=submit]
	, button
{
	padding: 0.5rem 3rem;
}

input:focus 
	, select:focus 
	, textarea:focus 
{
  	outline: solid 3px #0078BD;
}

input[type=checkbox]:focus
	, input[type=radio]:focus
	, input[type=image]:focus
	, input[type=range]:focus
{
	outline: none;
}

/* contact search */
div.contact
{
	background: rgb(222,222,255);
	padding: 2px;
	cursor: pointer;
	border-radius: 3px;
	display: inline-block;
	margin: 1px;
}


table
{
	border-spacing: 0px;
	line-height: 1.6;
}

img
	, input[type=image]
{
	border: 0;
	vertical-align: middle;
	image-orientation: from-image;
}

ul
{
	margin: 0;
}

/* Top module menubar tablist */
#tabdiv
{
	background-image: linear-gradient(to bottom, rgb(236,236,236), #fff);
	padding: 6px 0;
}

ul.tablist
{
	padding: 0;
	margin-left: 3px;
	max-width: calc(100vw - 250px);
}

ul.tablist li
{
	font-size: 15px;
	list-style: none;
	display: inline-block;
	padding: 0.3em 0.3em;
	border-radius: 4px;
}

ul.tablist li a
{
	color: #4b4b4b;
	padding: 0.3em 0.3em;
}

ul.tablist li:hover
{
	background-color: rgb(224,224,224);
}

ul.tablist li a:hover
{
	color: black;
}

ul.tablist li.selected a
{
	text-shadow: 1px 1px 1px black;
	font-weight: bold;
	color: white;
}

ul.tablist li.selected
	, ul.tablist li.selected:hover
{
	background-color: rgb(40, 150, 204);
}

/* Monitors with higher resolution */
@media screen and (min-device-width: 1680px) and (orientation: landscape)
{
ul.tablist li
{
	font-size: 20px;
}

ul.tablist
{
	max-width: calc(100vw - 350px);
}

}

/* Mobile/tablets in portrait mode */
@media screen and (max-device-width: 768px) and (orientation: portrait)
{
#tabdiv
{
	text-align: right;
	background-image: none;
}

ul.tablist
{
	list-style: initial;
	display: none;
	position: absolute;
	z-index: 100000;
	border: 1px solid grey;
	padding-top: 1px;
	background-image: linear-gradient(to bottom, rgb(236,236,236), #fff);
	width: 100%;
	max-width: 100%;
	margin-left: 0;
}

ul.tablist li
{
	padding-left: 0px;
	padding-top: 14px;
	padding-bottom: 14px;
	text-align: left;
	list-style-type: none;
	display: block;
	font-size: 80px;
	margin: 5px;
	background-color: white;
	box-shadow: 1px 2px 10px light grey;
}

ul.tablist li a
{
	padding: 0.1em 0.3em;
}

}

/* ******************* tablist ****************************** */


/* Top lower menubar */
ul.contentbar
{
	padding: 0;
	padding-bottom: 2px;
	display: table;
	width: 100%;
	background-image: linear-gradient(to top, rgb(236,236,236), #fff);
	min-height: 33px;
}

ul.contentbar li
{
	margin-right: 0px;
	padding: 0.3em 0.3em;
	list-style: none;
	white-space: nowrap;
	border-right: 1px solid white;
	display: table-cell;
	vertical-align: middle;
	width: 1%;
	color: #4b4b4b;
}

ul.contentbar > li.right
, ul.contentbar > ul.right
{
	float: right;
	width: auto;
	padding-top: 0.3em;
}


ul.contentbar li a
	, ul.contentbar li button
{
	color: #00628c;
}

ul.contentbar li button
{
	padding: 6px;
	background: transparent;
	border: 0;
	cursor: pointer;
}

ul.contentbar li a
{
	padding: 7px;
}

ul.contentbar li a:hover
	, ul.contentbar li button:hover
{
	background: rgb(209,209,209);
}

.title, h3
{
	font-weight: bold;
	font-size: 16px;
}

h5
{
	font-weight: normal;
}

.logo
{
	background: url(brand/logo.png);
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

.logo_menu
{
	background: url(/contact_image?default_icon=brand%2flogo_small.png&userdomain);
	background-position: center bottom;
	background-repeat: no-repeat;
	background-size: contain;
	width: 200px;
	height: 46px;
	text-align: center;
	position: absolute;
	bottom: 0px;
	background-color: #fafafa;
}

.notificationcounter
{
	background: rgba(255,0,0,1);
	color: white;
	font-family: arial;
	font-weight: bold;
	font-size: 11px;
	border-radius: 7px;
	padding: 1px;

	position: relative;
	left: -10px;
	top: -5px;
}

/* Popup windows */
span.popup
{
	position: relative;
	display: inline;
}

span.popup > div
{
	display: none;
	position: absolute;
	z-index: 100;
	background: white;
	border: 1px solid #007BC2;
	border-radius: 3px;
	padding: 3px;
	width: max-content;
	overflow-y: scroll;
	max-height: 90vh;
}

span.popup:hover > div
{
	display: block;
}

div.minicontact
{
	padding-right: 5px;
	padding-left: 5px;
	padding-bottom: 3px;
	list-style: none;
}

/* Searchbar */
#searchbar
{
	position: absolute;
	right: 1px;
	top: 3px;
}
#searchbar input[type=search]
{
	vertical-align: bottom;
}
#searchbar form > ul > li
{
	font-size: 15px;
	list-style: none;
	display: inline-block;
	padding-right: 0.3em;
	vertical-align: middle;
}

#searchbar span.popup div ul
{
	padding: 5px;
	list-style: none;
	display: grid;
}

#tabbutton, #menubutton
{
	display: none;
}

/* Icons */
.icon
{
	width: 16px;
	max-height: 16px;
}

.icon2
{
	width: 32px;
	max-height: 32px;
}

img.contact_image
{
	vertical-align: middle;
	width: 42px;
	height: 42px;
	object-fit: cover;
	object-position: 25%;
	border-radius: 21px;
}


/* table1 */
table.table1
{
	width: 100%;
}

table.table1 tr
{
	height: 40px;
}

table.table1 > thead th
{
	position: sticky;
	top: 0px;
	z-index: 1;
}

table.table1 tbody td input[type=text]
{
	min-width: 300px;
}

table.table1 > tbody:first-of-type > tr:nth-child(odd)
{
	background-color: rgb(240,240,240);
}


table.table1 tbody > tr:nth-child(even) table tr
	, table.table1 tbody > tr:hover table tr
{
	background-color: initial;
}

table.table1 tbody:first-of-type > tr:hover
{
	background-color: #d6e9ff;
	cursor: grabbing;
}

table.table1 tbody:first-of-type tr.selected
	, table.table1 tbody tr.selected table tr
	, table.table1 tbody tr.selected:hover
{
	background-color: rgb(40, 150, 204);
}

table.table1 > tbody tr.disabled
{
	text-decoration: line-through;
}

table.table1_grid tbody tr
{
	display: inline-block;
	height: 100%;
	min-height: 167px;
	padding-top: 5px;
	padding-bottom: 5px;
	padding-left: 15px;
	padding-right: 15px;
}
table.table1_grid tbody td
{
	display: flex;
}

table.table1_grid tfoot
	, table.table1_grid thead
{
	display: none;
}

@media (hover: hover)
{
	table.table1 tr > td:first-of-type > input[type=checkbox]
		, .tablet_only
	{
		display: none;
	}
}

@media screen and (min-device-width: 1680px) and (orientation: landscape)
{
	table.table1 tr
	{
		height: 50px;
	}
}
/* ********************* table 1 **************************** */

/* table2 */
table.table2
{
	width: 100%;
	position: relative;
}

table.table2 tr
{
	height: 40px;
}

table.table2 > thead th
{
	position: sticky;
	top: 0px;
	z-index: 1;
}

table.table2 > thead:first-child th:first-child
	, table.table2 > thead:first-child th:nth-child(3)
{
	z-index: 2;
}

table.table2 thead .selected
{
	/* search popup selected order */
	font-weight: bold;
	background: initial;
}

table.table2 > thead tr th:nth-child(3)
{
	/* search order / options */
	text-align: right;
	padding-right: 50px;
}

table.table2 > tbody > tr:nth-child(odd)
{
	background-color: rgb(240,240,240);
}

table.table2 > tbody > tr:nth-child(even) table tr
	, table.table2 > tbody > tr:hover table tr
{
	background-color: initial;
}

table.table2 > tbody:first-of-type > tr:hover
{
	background-color: #d6e9ff;
	cursor: grabbing;
}

table.table2 > tbody > tr.selected
	, table.table2 > tbody > tr.selected table tr
	, table.table2 > tbody > tr.selected:hover
{
	background-color: rgb(40, 150, 204);
}

table.table2 > tbody tr.disabled
{
	text-decoration: line-through;
}

table.table2 > thead tr th:nth-child(3) div
{
	/* search order popup */
	text-align: left;
	right: 10px;
}

table.table2 > thead .popup ul li
{
	list-style: none;
}
table.table2 > thead .popup div ul
{
	padding: 5px;
}

table.table2 > tbody tr > td
{
	padding-top: 10px;
	padding-bottom: 10px;
	padding-right: 10px;
}
table.table2 tbody tr td > ul
{
	padding-left: 10px;
}

table.table2 > tbody > tr > td:nth-child(3) > ul > li
{
	/* columns */
	display: inline-block;
}

table.table2 > tbody tr td:nth-child(3) > ul:first-child > li:first-child
{
	/* first line */
	font-size: 15px;
}

/* Monitors with higher resolution */
@media screen and (min-device-width: 1680px) and (orientation: landscape)
{
	table.table2 > tbody tr td:nth-child(3) > ul:first-child > li:first-child
	{
		/* first line */
		font-size: 17px;
	}
	table.table2 tr
	{
		height: 50px;
	}
}

@media screen and (max-device-width: 768px) and (orientation: portrait)
{
	table.table2 > tbody tr td:nth-child(3) > ul:first-child > li:first-child
	{
		/* first line */
		font-size: 37px;
	}
}

table.table2 > tbody > tr > td:nth-child(3) > ul > li:last-child
{
	/* right stuff */
	float: right;
	text-align: right;
}

table.table2 > tbody div.quote
{
	/* searched mail content */
	padding-top: 5px;
	font-size: 9px;
}

@media (hover: hover)
{
	table.table2 tr > td:first-of-type > input[type=checkbox]
	{
		display: none;
	}
}


/* ************************************************* */


/* Monitors with higher resolution */
@media screen and (min-device-width: 1680px) and (orientation: landscape)
{

body
{
	font-size: 14px;
}

}

/* Mobile/tablets in portrait mode */
@media screen and (max-device-width: 768px) and (orientation: portrait)
{

body
	, input[type=submit]
	, button[type=submit]
	, ul.contentbar li button
{
	font-size: 35px;
}

input
	, select
	, .notificationcounter
{
	font-size: 30px;
}

.notificationcounter
{
	left: -35px;
	top: 2px;
}

input[type=checkbox]
{
	width: 50px;
	height: 50px;
}

/* Webkit dont support checkbox width/height */
@supports (-webkit-appearance: none)
{
input[type=checkbox]
{
	-webkit-appearance: none;
	border: 1px solid;
	font-size: 43px;
	contain: content;
	vertical-align: middle;
	min-width: 50px;
	min-height: 50px;
}

input[type=checkbox]:checked::before
{
	content: '✔';
}
}


#content table.table1 tr
{
	height: 90px;
}

#searchbar
{
	position: absolute;
	left: 25vw;
	width: 50vw;
}

#searchbar input[type=text]
{
	width: 30vw;
}
#searchbar form ul li
{
	white-space: nowrap;
	display: table-cell;
	font-size: 30px;
	padding-right: 15px;
}

.icon
{
	width:47px;
	max-height: 47px;
}

.icon2
	, #tablist li .icon
	, #menu .icon
{
	width: 64px;
	max-height: 64px;
}

#menu
{
	display: none;
	position: absolute;
	z-index: 1000000;
	background: white;
	width: auto;
	max-width: 75vw;
	margin-left: 9px;
	border: 1px solid black;
	top: 70px;
	font-size: 60px;
	height: 85vh;

}
#tabbutton, #menubutton
{
	font-size: 50px;
	top: 0px;
	display: block;
}
#menubutton
{
	position: absolute;
}

ul.contentbar
{
	display: inline-block;
	column-count: auto;
}

ul.contentbar li
{
	display: inline-block;
	font-size: 35px;
	width: auto;
}

#tabbutton:hover + #tablist
	, #tablist:hover
	, #menubutton:hover + #menu
	, #menu:hover
{
    display: block;
}

.title, h3
{
	font-weight: bold;
	font-size: 40px;
}

#content
{
	width: 100vw;
	flex-flow: column;
}

#content #content_left
{
	width: 100%;
	height: 40vh;
	overflow-y: scroll;
}

#content #content_right
{
	height: 100%;
	width: 100%;
	overflow-x: auto;
	overflow-y: auto;
	border-top: 2px solid;
	border-color: rgb(113,185,221);
	margin-top: 0;
}

.contact_image
{
	max-height: 135px;
	max-width: 140px;
	min-height: 64px;
	min-width: 64px;
	width: auto;
	height: auto;
	vertical-align: middle;
	object-fit: contain;
}

.logo_menu
{
	position: relative;
	width: 300px;
	height: 86px;
}
}
