/* NowCMS default CSS file "screen.css"
	
   Please do not change anything here as this file will be overwritten by 
   every update.
   Customize your website either in the CSS file "/_/css/local.css"
   by setting variables in the root section and append
   a new css file like "/_/css/addendum.css" if you need to override whatever
   happened in the other CSS files before. 

   Do not forget to reference all CSS files in the
   preferences (htmlfooter and erroronavi-*) 
   
   This file uses these images:
   /_/img/calendar.png
   /_/img/pdf.png
   /_/img/external.png
   
   See also: https://nowcms.org
   
   This file is in the public domain.
   All PHP files are protected by copyright. 
   Individual, personal licenses have to be obtained for each domain and / or
   user of NowCMS.
   
   Are you interested in contributing to NowCMS? You might get a free, personal
   and perpetual license limited to 5 domains.
*/

/* --------- Generic stuff --------- */

/* Override all the default margins: */
* { 
	margin: 0px; 
	padding: 0px; 
	font-size: 99%;
}
html { height: 100%; }
body { 
   font: 96% var(--bread-font);
   line-height: 1.1;
   height: 100%;
   background-color: var(--body-background-color);
}
input, textarea, select {
   font: 96% var(--backend-font);
   line-height: 1.1;
   border: 1px solid grey;
}

/* Safari can't do the date picker in pure CSS */
[type="date"] {
  background:#fff url(/_/img/calendar.png)  80% 50% no-repeat;
  font: 96% var(--bread-font);
  width: 120px;
}
[type="date"]::-webkit-inner-spin-button {
  display: none;
}
[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 1;
}

a { color:  var(--link-color); }
a:visited { color: var(--link-visited-color); }
a:hover { background: var(--hover-color); }
/* We add a "external link icon" to the left of all links... */
a[href^="https://"]:before,
a[href^="http://"]:before {
	background: url(/_/img/external.png) left no-repeat;
	padding-left: 17px;
	content: "";
}
/* ... except links that may lead back to us: */
a[href^="http://" var(--this-domain)]:before,
a[href^="https://" var(--this-domain)]:before,
a[href^="http://www." var(--this-domain)]:before,
a[href^="https://www." var(--this-domain)]:before {
	background: inherit;
	padding-left: 0;
}
/* Automatic display of a PDF icon to the right of a link if the filename 
   ends with ".pdf" */
a[href$=".pdf"] {
	background:url(/_/img/pdf.png) right no-repeat;
	padding-right: 22px;
}

h1, h2, h3, h4, h5 { 
   font: 96% var(--title-font);
   margin-top: 10px;
   color: var(--title-color); 
}
h1 { font-size: 2.4em; }
h2 { font-size: 2.2em; }
h3 { font-size: 1.8em; }
h4 { font-size: 1.4em; }
h5 { font-size: 1.2em; }
/* margin to distinguish two paragraphs: */
p { 
	font-size: 1em; 
	margin-bottom: 0.5em;
}
/* Typewriter usually gets displayed to small */
tt {
	font-size: 1.3em;
	font-weight: bold; /* may not be visible otherwise */
	margin-bottom: 5px;
}
/* Will be used for computer stuff, monospace, must not be too small: */
pre {
	font-size: 1.2em;
	padding: 8px;
	background-color: var(--pre-background-color);
}
/* Will be used for general announcements: */
blockquote {
    background-color: var(--blockquote-background-color);
    margin: 15px 0px 15px 0px;
    padding: 8px;
    border: 1px solid var(--blockquote-border-color);
}
sup {
	font-size: 0.7em;
	vertical-align: super;
	line-height: 0;
}
/* Otherwise the dots go outside of the left line 
   (we reset all margins, remember?) */
ol, ul {	margin-bottom: 0.5em; }
ul li { margin-left: 2em; }
/* Needs enough space for numbers up to at least 19: */
ol li { margin-left: 2em; }

/* A generic table might be used just for formatting in a HTML block, so we need 
   the generic format be minimal */
table, td, th, tr {
   font: 96% var(--backend-font);
   border-collapse: collapse;
   border-width: 0;
}
td { padding: 3px; }
th { padding: 3px; }

button {
	border: none;
}

/* Checkbox as on-off slider */
.toggle {
	position: relative;
	float: left;
	width: 34px;
	-webkit-user-select:none; 
	-moz-user-select:none; 
	-ms-user-select: none;
	margin-bottom: 2px;
	margin-right: 5px;
}
.toggle-checkbox {
	display: none;
}
.toggle-label {
	display: block; 
	overflow: hidden; 
	cursor: pointer;
	border: 1px solid grey; 
	border-radius: 12px;
}
.toggle-inner {
	display: block; 
	width: 200%; 
	margin-left: -100%;
	transition: margin 0.3s ease-in 0s;
}
.toggle-inner:before, .toggle-inner:after {
	display: block; 
	float: left; 
	width: 50%; 
	height: 16px; 
	padding: 0; 
	color: white;
	font-weight: bold;
	box-sizing: border-box;
}
.toggle-inner:before {
	content: "✓";
	padding-left: 5px;
	background-color: var(--button-background-color); 
	color: var(--button-color);
}
.toggle-inner:after {
	content: "✗";
	padding-right: 5px;
	background-color: #eeeeee; 
	color: #999999;
	text-align: right;
}
.toggle-switch {
	display: block; 
	width: 16px; 
	margin: 2px;
	background: #ffffff;
	position: absolute; 
	top: 0; 
	bottom: 0;
	right: 14px;
	border: 1px solid #999999; 
	border-radius: 10px;
	transition: all 0.3s ease-in 0s; 
}
.toggle-checkbox:checked + .toggle-label .toggle-inner {
	margin-left: 0;
}
.toggle-checkbox:checked + .toggle-label .toggle-switch {
	right: 0px; 
}

/* Cookie consent banner at the bottom */
#cookieconsent {
	position: fixed;
	width: 100%;
	bottom: 0;
	right: 0;
	left: 0;
	height: 30px;
	text-align: center;
	line-height: 30px;
	background-color: #ffee66;
	font-size: 105%;
}
/* Show shorter text on narrow devices */
.cookielong {
	display: inline-block;
}
.cookieshort {
	display: none;
}
/* Switch to shorter version on narrow devices */
@media screen and (max-width: 700px) {
	.cookielong {
		display: none;
	}
	.cookieshort {
		display: inline-block;
	}
}

/* --------- Classes --------- */

.content {
	position: relative;
	width: 100%;
	padding-top: 5px;
	padding-bottom: 5px;
	line-height: 1.2;
}


/* --------- General properties --------- */

.zebra tr:nth-of-type(even) { background-color: #eef; }
.textright { text-align: right; }
.textcenter { text-align: center; }
.textleft { text-align: left; }
.nowrap { white-space: nowrap; }
.nounderline { text-decoration: none; }
.border { border: 1px solid black; }
.fullwidth { width: 100%;}
.third { width: 33%; }
.fourth { width: 25%; }
.half { width: 50%; }
.yellow { background: yellow; }
.naked {
	color: inherit;
	background: inherit;
	font-size: 1.5em;
/*	padding: 3px 3px 3px 3px;
	box-shadow: none; */
}

/* --------- Pagination --------- */
.pagination span.active {
    background-color: #5d97cd;
    border: 1px solid #303030;
    color: #ffffff;
    padding: 1px 5px 2px 5px;
}

.pagination span {
    display: block;
    float: left;
    line-height: 13px;
    margin: 2px 6px 2px 0;
}

.pagination span a {
    background-color: #ffffff;
    border: 1px solid #bbbbbb;
    color: #303030;
    display: block;
    padding: 1px 5px 2px 5px;
    text-decoration: none;
}

/* --------- Horizontal selector --------- */
.horselector {
	background-color: #dddddd;
	text-align: center;
/*	height: 20px; delete this */
	padding: 5px;
}

.horselector span.active {
    background-color: #5d97cd;
    border: 1px solid #303030;
    color: #ffffff;
}

.horselector span { line-height: 20px; }

.horselector span a {
    background-color: #ffffff;
    border: 1px solid #bbbbbb;
    color: #303030;
    text-decoration: none;
    padding: 0 3px 0 3px;
}

/* --------- Calendar --------- */
.caltable { 
	line-height: 16px; 
	width: 100%;
}
.caltable tr { vertical-align: top; }
.caltable tr:nth-of-type(odd) { background-color: #eeeeee; }
.caltable td { padding: 3px; }
}
.caltable th { 
	padding: 3px; 
	background-color: #cccccc;
}
.caltable .leftcolumn { 
	text-align: right; 
	white-space: nowrap;
}

/* td cell able to carry events that overlap into other td cells: */
.calcell {
	position: relative;
	border: 1px solid grey;
}

/* div inside .calcell carrying the colored and rounded area to display the event color: */
.event {
	position: absolute;
	/* Not 100% to be able to stack overlapping events: */
	width: 92%;
	opacity: 1;
}

/* The events are rounded, except in the calendar month view: */
.rounded {
	border: 1px solid;
	border-radius: 5px;
	padding: 3px;
	box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

/* The dataset of any event waits inside each .event (in mask form) to be displayed by hovering over the root td cell of the event */
.event .tooltip {
  visibility: hidden;
  margin-left: 5px;
  margin-top: -25px;
  padding: 3px;
  background-color: white;
  color: black;
  position: absolute;
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.6);
/*  z-index: 20; */
}

/* Display the title on white ground so it is visible, no matter what the event colors are: */
.event span {
	background-color: white;
	font-weight: bold;
	padding-left: 5px;
	padding-right: 5px;	
}

/* Make the .tooltip visible when hovering over .event: */
.event:hover .tooltip {
	visibility: visible;
	z-index: 100;
}

/* FIXME Check if necessary */
.event .tooltip table:hover {
  border-collapse: collapse;
  background-color: rgba(255, 255, 255, 1);
}
.event .tooltip td {
  white-space: nowrap;
  height: 13px;
  border: none !important;
}

/* the calendar month view has events that push the height of a cell if necessary. */
.monthlist {
	position: unset;
	padding: 3px;
	margin-bottom: 2px;
	height: auto;
}

/* --------- RoomBookingFlags --------- */
/* Only if no flags are active at all, this style will be provided: */
.normal {
	background-color: rgba(192, 192, 255, 0.5); /* bright blue */
	color: blue;
}
/* Flag 1 is set */
.book1 {
	/* Rang 1 */
	background-color: #99cc99; /* bright green */
	color: green;
}
/* Flag 2 is set */
.book2 {
	/* Nachrangig */
	background-color: rgba(230, 184, 0, 0.3); /* yellow */
	left: 10px;
}
/* Flag 4 is set */
.book4 {
	/* Reinigung */
	border: 5px blue dotted;
	background-color: rgba(0, 0, 255, 0.2); /* blue */
	opacity: 0.6;
	box-shadow: none;
}
/* Flag 8 is set */
.book8 {
	/* Yellow */
	background-color: yellow;
}
/* Flag 16 is set */
.book16 {
	/* Orange */
	background-color: #fccc3d;
}
/* Flag 32 is set */
.book32 {
	/* blue */
	background-color: #7fc7fa;
}
/* Flag 64 is set */
.book64 {
	/* blue stripes */
	background-image: repeating-linear-gradient(45deg, transparent, transparent 8px, 
   	blue 8px, blue 16px);
}
/* Flag 128 is used for collisions! */
.collision {
	/* Intersection of bookings */
	border: 4px red dashed;
	box-shadow: none;
	color: #663300;
}
/* Does it work? Make every second event move to the right so it stands out below a different event */
.collision::nth-of-type(odd) { left: 10px; }
/* --------- The hour grid for the calendar --------- */
.satsun {
	background-color: #ddf0ff !important; /* overwrite the zebra */
/* Dirty trick: https://stackoverflow.com/questions/7517127/borders-not-shown-in-firefox-with-border-collapse-on-table-position-relative-o/16337203#16337203 */
	background-clip: padding-box;
}
.today {
	background-color: #94e2fc !important;
/* Dirty trick: https://stackoverflow.com/questions/7517127/borders-not-shown-in-firefox-with-border-collapse-on-table-position-relative-o/16337203#16337203 */
	background-clip: padding-box;
}
.past {
	background-color: #dddddd;
	color: #888888;
	background-image: repeating-linear-gradient(0deg, white, white 8px, 
   	#ddd 8px, #ddd 16px);
}


/* This is to keep the options in RADIOBUTTONS and CHECKBOXES in vertical line: */
.fieldbox {
	float: left;
	margin-right: 5px;
}
.fieldbox label { display: block; }
.mandatory input, .mandatory textarea {
	border: 2px solid orange;
}

.notvalid { background-color: yellow; }

.errorspan {
	color: red; 
	padding: 1px; 
	font-size: 110%;
}

/* Do we need this? */
.errorbox {
   color: black;
   padding: 15px;
   font-size: 120%;
   background-image: repeating-linear-gradient(45deg, white, white 15px, 
   	#fdd 15px, #fdd 30px);
}

.editsymbol {
	line-height: 1;
	text-decoration: none;
	font-size: 1.3em;
}

.debug {
   color: black;
   margin: 15px;
   padding: 5px;
   background-image: repeating-linear-gradient(45deg, orange, 
   	orange 15px, black 15px, black 30px);
}

.tbl { 
   line-height: 16px; 
   background-color: var(--background-color);
}
.tbl tr { vertical-align: top; }
.tbl tr:nth-of-type(odd) { background-color: #eeeeee; }
.tbl tr:hover { background: var(--row-hover-color); }
.tbl td { padding: 3px; }
.tbl th { 
	padding: 3px; 
	background-color: #cccccc;
}
.tbl .leftcolumn { 
	text-align: right; 
	white-space: nowrap;
}
.tbltitle td {
	font-size: 2.0em;
	padding-top: 0.6em;
	padding-bottom: 0.3em;
	font-weight: bold;
	color: var(--title-color)
}
.tbltitle td a {
	font-size: 1em;
}

/* Navigation menus (horizontal)
   It is quite difficult to center them  */
.navi {
	font: 96% var(--title-font);
	width: 100%;
	overflow: hidden;
	box-shadow: inset 0 -10px 10px -10px #000000;
}
.navi ul {
   position: relative;
   float: left; /* This does the centering! */
   left: 50%;
   margin: 0;
}
.navi ul li {
   float: left;
   list-style: none;
   margin: 0;
   padding-right: 2px;
   position: relative;
   right: 50%;
}

/* Change background to yellow if we have 9 or more list elements: */
.navi ul li:first-child:nth-last-child(n + 9),
.navi ul li:first-child:nth-last-child(n + 9) ~ li {
	background-color: yellow;
}

.navi ul li a {
   display: block;
   margin: 4px 1px 3px 1px;
   padding: 2px 8px; 
   background: #eeeeee;
   text-decoration: underline;
   line-height: 1.6em;
   box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.6);
}
.navi ul li a:hover {
   background: var(--hover-color);
   color: white;
}
/* We move the active tab down a little so it covers the shadow */
.navi ul li a.active {
   color: #df5d00;
   position: relative;
   top: 5px;
   background: #ffffff;
   font-weight:bold;
}
.navi ul li .extra {
	background-color: var(--button-background-color);
	color: white;
	text-decoration: none;
}
.navi ul li a.extra {
	background-color: var(--button-background-color);
	color: white;
	text-decoration: none;
}

/* We need a span or a div around a href (link) if we want to make it a 
   button: */
.btn {
	background-color: var(--button-background-color);
	/* Longer buttons are more clickable */
	padding: 4px 15px 4px 15px;
   box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.6);
   /* So there is minimal distance to an upper span / div: */
   margin-top: 4px;
	margin-left: 4px;
	margin-right: 4px;
	/* We need these for input buttons: */
	color: white;
	text-decoration: none;
	font-weight: bold;
	/* Needed for divs: */
	display: inline-block;
	/* We need this for input fields: */
	border: none;
}

.btn a {
	/* We need these for spans around links: */
	color: white;
	text-decoration: none;
	font-weight: bold;
}
.btn:hover {
	color: white;
	background-color: orange;
	/* Looks like the button is already pressed:*/
   box-shadow: none;
}

.delete {
	background-color: #dd2222;
}

.hdrbtn {
	background-color: white;
	box-shadow: none;
	border: 1px solid grey;
	padding: 0px 8px 0px 8px;
	color: black;
	text-decoration: none;
}
input + .hdrbtn {
	padding: 2px 8px 2px 8px;
}
.hdrbtn a {
	color: black;
	text-decoration: none;
}
.hdrbtn:hover {
	background-color: orange;
}

/* Box to the right of the contect div: */
.datanode {
	position: relative;
	border: 1px solid grey;
	min-height: 25px;
	margin-bottom: 5px;
}
.btnfloat {
	position: absolute;
	overflow: hidden;
	z-index: 100;
	top: -5px;
	right: -5px;
}
/* Datanode modification button is inside to the top right 
   of the datanode frame */
.dnbtn {
	position: absolute;
	overflow: hidden;
	z-index: 100;
	top: -1px;
	right: -1px;
	padding: 2px;
	font-size: 13px;
	border: 1px solid grey;
	/* 20% transparent white */
	background-color: rgba(255,255,255,0.9); 
}

.dnbtn a {
	text-decoration: none;
	font-weight: bold;
}

/* Management bar where the node buttons are being displayed */
.mgmt {
	background-color: var(--management-background-color);
	back
	width: 100%;
	text-align: right;
	height: 21px;
	color: white;
}

.mgmt div {
	float: right;
	margin-left: 6px;
	margin-right: 1px;
	padding: 2px;
	font-size: 13px;
	border: 1px solid grey;
	/* 20% transparent white */
	background-color: rgba(255,255,255,0.9); 
	color: green;
}

/* Node edit, create, upload buttons: */
.mgmt div a {
	text-decoration: none;
	font-weight: bold;
}

.mgmt div:hover {
	background-color: orange;
} 

/* File upload buttons are a nightmare. You just can't format the "select"
   button part: */
.mgmt .upl {
	font-size: 13px;
	padding: 0;
	margin: 0;
}
.mgmt .upl input {
	padding: 0;
	margin: -4px;
	margin-left: 4px;
	margin-right: 4px;
	font-size: 13px;
	border: none;
}
.mgmt .upl label {
	padding: 0;
	margin: -4px;
	font-size: 13px;
}
.mgmt .upl input[type=submit] {
	padding: 2px;
	margin: 0;
	color: green;
	font-weight: bold;
}
.mgmt .upl input:hover {
	background-color: orange;
}

.map {
	height: 600px;
	width: 100%;
}


.glry {
	float: left; 
	background-color: #dddddd; 
	margin: 2px; 
	text-align: center;
}
/* Used with btn for dangerous actions: */
.danger:hover {
	color: white;
	/* make it jump a little before clicking */
	padding: 10px 20px 10px 20px;
	margin-top: 0px;
	background-color: red;
	/* Looks like the button is already pressed:*/
   box-shadow: none;
}
.danger a:hover {
	color: white;
	background-color: red;
	/* Looks like the button is already pressed:*/
}

/* box on the upper right, floating into the following text: */
.right {
	position: relative;
	float: right;
	margin-right: 0;
	margin-left: 8px;
	/* makes the contents of the div float right, too: */
	text-align: right;
}

/* box on the upper left, floating into the following text: */
.left {
	position: relative;
	float: left;
	margin-left: 0;
	margin-right: 8px;
	display: inline-;
}

.center {
/*	width: 100%; */
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* --------- Things that exist only once --------- */

* { box-sizing: border-box; }

/* page header has responsive layout: */
#header {
/*	max-width: 960px; */
	width: 100%;
}

#header br {
	display: block;
	margin-top: 6px;
}

.columns {
	display: flex;
	flex-flow: row wrap;
/*	justify-content: center; */
}
	
.column {
	flex: 1;
/*	border: 1px solid gray;
	margin: 2px;
	padding: 10px; */
	&:first-child { margin-left: 0; }
	&:last-child { margin-right: 0; }
}

/* it is getting too narrow: the right columns gets pushed below */
@media screen and (max-width: 800px) {
  .columns .column {
		margin-bottom: 5px;
    flex-basis: 40%;
		&:nth-last-child(2) {
			margin-right: 0;
		}
		&:last-child {
			flex-basis: 100%;
			margin: 0;
		}
	}
}
/* even narrower: switch so all header parts to vertical succession */
@media screen and (max-width: 640px) {
	.columns .column {
		flex-basis: 100%;
		margin: 0 0 5px 0;
	}
}
/* This can be a sheet of paper.. */
#outer { 
	padding: 5px 20px 0px 20px; 
	margin: 0px auto;
/*	min-height: 100%; */
	background-color: var(--outer-background-color);
}
/* no logo image, we use text: */
#logo {
   font-weight: 300;
   font-size: 40px;
   text-decoration: none;
}
/* This suppresses the automatic link image while the domain name 
   remains clickable */
#logo[href^="https://"]:before,
#logo[href^="http://"]:before { 
	background-color: yellow;
	content: none;
}

/* Yes we may click but not bothered with coloring */
#logo:hover { background-color: white; }

/* we may chose different backgrounds for different navigation levels 
   (navi0, navi1, navi2 ...) */
#navi1, #navi2, #navi3 {
	background-color: white;
}
#navi2 {
/*	background-image: url('/_/img/schaltung-1.png'); 
	background-repeat: repeat-x; 
	background-position: 0px 0px;
	background-size: 400px; */
}
/* also different formatting for each node: */
#node1 {
}

/* Progress bar for the logout button: 
See also https://codepen.io/brunjo/pen/ByjRPy
*/

.logoutbar {
    position: relative;
    font-size: 5em
}
.logoutbar:before {
    content: attr(data-text); 
    position: absolute;
    overflow: hidden;
    max-width: 7em;
    white-space: nowrap;
    background-color: red;
    animation: loading 1800s linear;
}
@keyframes loading {
    0% {
        max-width: 0;
    }
}



/* Messages, error messages and warnings fly in from below with an animation */
@keyframes slideDown {
    from { transform: translateY(-300px); }
    to { transform: translateY(0%); }
}

#messages {
   position: sticky;
   z-index: 6001;
   bottom: 15px;
   left: 20%;
   right: 20%;
   box-shadow: 3px 3px 20px rgba(0, 0, 0, 0.6);
   font-size: 1.1em;
   line-height: 1.1;
   overflow: hidden;
   animation-duration: 1.2s;
   animation-name: slideDown;
}

#errormessages {
	background-color: var(--error-background-color); 
	color: black; 
	padding: 10px;
}
#resultmessages {
	color: black;
	background-color: var(--result-background-color);
	padding: 10px;
}
#warnings {
	background-color: var(--warning-background-color);
	color: #cc0000; 
	padding: 10px;
}

#searchresults {
	background-color: #cde4fe; 
	padding: 10px; 
	margin-top: 30px; 
	margin-bottom: 30px;
}

/* The page footer */
#footer {
	text-align: center;
	margin-bottom: 5px;
	padding: 4px;
	padding-top: 10px;
	line-height: 1;
	box-shadow: inset 0 10px 10px -10px rgba(0,0,0,1);
	background-color: var(--background-color);
}

