﻿body {
	margin: 0;
	padding: 0;
	font-size: 12px;
	font-family: 'Trebuchet MS', Arial, "Helvetica Neue", "Lucida Grande", "Segoe UI", Helvetica, Verdana, sans-serif;
	line-height: 1.5em;
	color: white;
	/* Just for Chrome & Edge this needs to be specified so no white space with absolutely nothing is drawn under page's content.
	And also leftAside requires non-standard positioning just for whese 2 browsers :( */
	max-height: 100vh;
	overflow: hidden;
}

/* normal links and also table's links colors (all having anchor-table-cell class) */
a, a:visited, a.anchor-table-cell, a.anchor-table-cell:visited {
	color: #0d5ca3;
	outline: none; /* Chrome makes it over hyperlinks :( */
}

	a:hover, a.anchor-table-cell:hover {
		color: #79c9ec;
	}


/* === top of page <header> also navigation === */

header {
	height: 41px;
	min-height: 41px;
	max-height: 41px;
	background: white;
	display: flex;
	justify-content: space-between;
}

	header > a {
		margin-top: 1px;
	}

.userInfo {
	margin-right: 10px;
	padding: 10px;
	color: #005296;
	border-top: 4px solid #005296;
}

	.userInfo > a {
		padding: inherit;
	}

/* log-off button. Note: have to overrule properties on <input> later in this file */
#LogOffButton {
	margin-left: 15px;
}

.header-label {
	padding: 4px 0;
	color: red;
	font-weight: bold;
	font-size: 1.2em;
	text-align: center;
}

.userInfo > span {
	padding: inherit;
}

/* === main layout containers === */

#content {
	width: 100%;
	display: flex;
	padding-top: 4px;
	background: #0d5ca3;
}

/* === page layout left and right side content's containers === */

#leftAside {
	/* Chrome jumps under content to the line where button would be if we didn't size and scroll elements.
	Basically it jumps to no-content white part it "invents" for no reason.
	So non-standars position is required for overflow to even take expected effect :( */
	position: relative;
	height: 100%;
	background: transparent;
	min-width: 320px;
	max-width: 320px;
	overflow-y: auto;
}

#ecology-2-legend {
	background: grey;
}

/* This is actually left-side-visibility, "../Images/sidebarCloseButton.png" (as base64 encode). Deprecated, substituted with symbol */
#leftMenusDisplayToggler {
	width: 10px;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #333333;
	cursor: pointer;
}

#primaryContainer {
	height: 100%;
	width: 100%; /* problems with min-/max-width within flex (either login screen or after login had too much or too litle width) */
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	background: #333333;
	overflow-y: auto; /* administration page requires this */
}

#tablesDisplayToggler, #tablesHeight {
	text-align: center;
	line-height: 1em; /* symbol's line being as high as symbol itself, places it a bit higher (better visiblity) */
	overflow: hidden; /* symbols are too big and cause primaryContainer to scroll */
}

	#tablesDisplayToggler:hover, #tablesHeight:hover {
		background: #79c9ec;
	}

/* This is actually left-side-visibility, "../images/sidebarCloseButtonV-new.png" (as base64 encode). Deprecated, substituted with symbol */
#tablesDisplayToggler {
	max-height: 8px;
	cursor: pointer;
}

#tablesHeight {
	max-height: 2px;
	cursor: ns-resize;
}

#dataTableTabs {
	box-sizing: border-box;
	overflow: auto;
}

#footer {
	width: 100%;
	height: 21px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	color: black;
	background: white;
	border-top: 1px solid #d5cebe;
}

	#footer img {
		max-height: 19px;
	}

	#footer section {
		margin-left: 20px;
		margin-right: 20px;
	}

/* === left side's menus ("modules") only containing elements === */

.formTitle {
	background: white;
	font-size: 1.2em;
	color: #005296;
	padding: 4px;
	margin: 10px 10px 0; /* top side bottom */
	border-bottom: 1px solid #6b6b6b;
	cursor: pointer;
}

.formSection {
	background: #666666;
	padding: 4px;
	margin: 0 10px 10px;
	border: 5px solid #545454;
}


/* left side "module's" content styles */
.formRow {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	margin: 2px 0;
}

.centerRow {
	width: 100%;
	display: flex;
	justify-content: center;
}

.container-content-label {
	width: 40%;
}

#healthForm .container-content-label {
	width: 20%; /* this module is exception with short labels and a lot of space for input/select */
}

.container-content-rightcol {
	width: 60%;
}

#healthForm .container-content-rightcol {
	width: 80%;
}

.container-content-rightcol > input, .container-content-rightcol > select, .container-content-rightcol > button {
	width: 100%;
}

/* === general elements setup (content of modules)  === */

div, form, fieldset {
	margin: 0;
	padding: 0;
}

fieldset, img {
	border: 0;
	max-width: 100%;
}

legend, .scaps {
	font-variant: small-caps;
}

/* last one is required for jQuery UI override, so they look same as all the other buttons */
button, input[type=button], input[type=submit], label.ui-button {
	box-sizing: border-box;
	background: #0d5ca3;
	color: white;
	padding: 2px 4px;
	border: none;
	box-shadow: none; /* jQuery UI again. Adds it through .ui-visual-focus */
}

	button:hover, input[type=button]:hover, input[type=submit]:hover, label.ui-button:hover, label.ui-button.ui-state-active:hover {
		background: #79c9ec;
		/* following are required to override jQuery UI base settings on-hover :( */
		color: white;
		border: none;
	}

	button:active, input[type=button]:active, input[type=submit]:active, label.ui-button:active, label.ui-checkboxradio-checked {
		background: #4297d7;
		border: none; /* jQuery UI again :( */
	}

	button:disabled, input[type=button]:disabled, input[type=submit]:disabled {
		opacity: 0.35;
	}

input, select, textarea {
	box-sizing: border-box;
	background: #999999;
	color: white;
	padding: 2px 4px;
	border: none;
}

/* textarea stretch sets element's style in px so width limit to be respected also needs to be in px */
textarea {
	min-width: 100%;
	max-width: 255px;
	margin: 0px;
}

/* Tabs overrides because of jQuery UI :( */

article.ui-tabs ul.ui-tabs-nav {
	background: #0d5ca3;
}

	article.ui-tabs ul.ui-tabs-nav li.ui-tabs-active, article.ui-tabs ul.ui-tabs-nav li.ui-tabs-active:focus {
		margin: 1px .2em 0 0;
		padding: 0;
		border-color: #c5c5c5;
		background: #4297d7;
	}

	article.ui-tabs ul.ui-tabs-nav li.ui-tab a.ui-tabs-anchor {
		padding: 2px 4px;
	}

/* === utilities === */

.hidden {
	display: none !important;
}

.text-red {
	color: red;
}

.full-height {
	min-height: 100vh;
	max-height: 100vh;
}

.clear {
	clear: both; /* FileUpload uses this cause of floating left-right */
}

.w100 {
	min-width: 100%;
	max-width: 100%;
}

.w50 {
	min-width: 50%;
	max-width: 50%;
}

.align-items-end {
	justify-content: flex-end; /* repairs flex-row, to align items right */
}

	.align-items-end > label, .align-items-end > input {
		margin-left: 4px; /* also give space between "radios" (jQueryUI ones) */
	}

	.align-items-end i.fas {
		font-size: 1.2em; /* only icon labels should be increased, but not inputs */
	}

/* === map layers legend === */

/* buttons to show/hide layers, icon images and also canvas drawn symbols for categories should be same size */
#legendForm button {
	width: 24px;
	height: 24px;
	margin: 2px; /* buttons to toggle layer/category visibility need some space between  */
	outline: none; /* Chrome makes outline on focus, so we remove it to have no fake-second-border */
}

#legendForm svg, img.legend {
	width: 20px;
	height: 20px;
}

/* categories of main layer are listed as within <ul>/<ol> with offset */
.categories {
	padding-left: 10px;
	background: #797979;
}

	.categories .formRow:first-child label {
		font-weight: bold; /* common controls div is first one in categories list ... */
	}

.legend-label {
	width: 70%;
}

/* As 3rd level of group it must have some "distinction" */
#concession-legend {
	background: #8b8b8b;
}

/* === WORKPLACE === */

/* === pop-up container style just to add another executive of project (workplaceVZE) === */

.mfp-content, .file-upload-container {
	min-width: 200px;
	max-width: 1024px;
}

	.mfp-content .container-title {
		background: #005296;
		color: white;
	}

/* === FILE UPLOAD === */

/* This is the same as for add-executive pop-up window (as if classes don't exist already) */
.file-upload-container {
	padding: 20px;
	background: white;
}

.documenttitle {
	font-size: 1.5em;
	font-weight: bold;
	padding: 8px;
	margin: 15px 0;
	background: #005296;
	color: white;
}

/* file-uload pop-up content */
.uploader {
	padding: 20px;
	font-size: 1.5em;
	color: #92aab0;
	text-align: center;
	border: 2px dotted #a5a5c7;
	background: whitesmoke;
}

	.uploader .or {
		padding: 10px;
		font-size: 14px;
		font-weight: bold;
		color: #c0c0c0;
	}

	.uploader span {
		display: block;
		margin: 20px auto;
		padding: 5px 15px;
		font-size: 14px;
		font-weight: bold;
		color: white;
		background: #005296;
		border-radius: 2px;
		cursor: pointer;
		box-shadow: 2px 2px 2px #888888;
	}

		.uploader span:hover {
			background: #427fed;
		}

/** File list within file-uploader pop-up (container for all files) */
#file-list {
	color: dimgray;
	overflow: auto;
}

/* === DataTables style additions and overrules === */

.dataTables_wrapper {
	overflow-x: auto;
}

.dataTable {
	font-size: 12px;
	white-space: nowrap;
	text-align: end;
}

	.dataTable th, .dataTable td {
		padding: 2px 10px !important; /* overrule DataTables default with !important, more compact cells */
	}

	.dataTable td {
		cursor: pointer;
	}

/*
generaly we have form inputs on black background so mostly white text in form fields,
But within tables (DataTable instances) we do need to return text back to black color
*/
.dataTables_filter input, .dataTables_length select {
	color: black;
}

/* visual pause between buttons and and table's page rows shown selection so they don't stick together */
.dt-buttons {
	margin: 0rem 2rem;
}


th > input, td > input, th > select, td > select, th > textarea, td > textarea {
	width: 100%;
	min-width: 42px;
	background: white;
	color: black;
	border: 2px inset;
}

	th > input[type=number], th > input[type=date] {
		max-width: 42%;
	}


/* === MAP === */

#olmap {
	width: 100%;
	height: 100%;
	background: #ffffff;
	color: black;
	font-size: 14px;
}

/* tooltip set to coordinates in map's overlay, so no need to have positioning set! */
#olInfo {
	background: rgba(13, 92, 163, 0.8);
	color: white;
	font-size: 0.8em;
	text-align: center;
	padding: 0 1px;
}

.ol-mouse-position {
	right: 2em;
	background: #0d5ca3;
	color: white;
	padding: 2px;
	border-radius: 4px;
}

.ol-scale-line, .ol-scale-bar {
	left: initial;
	right: 6em;
	bottom: 4em;
}

.ol-attribution, .ol-attribution.ol-uncollapsible {
	right: initial;
	left: 6em;
	bottom: 4em;
	border-radius: 4px;
}

/* Both controls should have the same style - colors */
#projectionPicker, #mapToPdfExporter {
	background: #0d5ca3;
	color: white;
}

/* But they should be both placed differently (so they are visible not overlapping) */
#projectionPicker {
	top: 2.6em;
	right: 2em;
}

#mapToPdfExporter {
	right: 2em;
	bottom: 2.6em;
}

/* === view history buttons (bottom, left corner of map over map size indicator) === */
#viewHistory {
	left: 0.5rem;
	bottom: 0.5rem;
}

	/* next button becomes inline instead of taking whole block for itself */
	#viewHistory button {
		display: inline-block;
	}



/* making all this only especially for optical network Dialog (form jQueryUI) styling  */
#opticalNeighbourDialog button {
	padding: 0.75em 1.5em;
}

.mRight2em {
	margin-right: 2em;
}

#neighbour-sourceDevice {
	max-width: 3.8rem;
}

#neighbour-length {
	max-width: 5.2rem;
}

#neighbour-sourcePorts {
	max-width: 8.8rem;
}

#neighbour-sourcePort {
	max-width: 6.6rem;
}

#opticalNeighbourDialog table.w100 td:last-child {
	vertical-align: bottom;
}

#opticalCables {
	position: absolute;
	bottom: 1.6rem;
}

	#opticalCables button {
		display: block;
	}

#neighbour-target {
	position: absolute;
	bottom: 0rem;
	background: white;
	color: black;
	border: 4px solid black;
}

	#neighbour-target option:hover,
	#neighbour-target option:focus {
		background: gainsboro;
	}


.posRel {
	position: relative;
}

#opticDiscrimination button {
	width: 20px;
	height: 20px;
	outline: none; /* Chrome makes outline on focus, so we remove it to have no fake-second-border */
}

#fileStoreDialog {
	overflow-y: auto;
}
