/*--------------------------------------
  Filename    : main.css
  Created     : NJZ 2004
  Description : Main CSS
  Copyright   : BRIDGE TECHNOLOGIES A/S
--------------------------------------*/

@import 'branding.css';

/* default everything */
html {
  height: 100%;
  --background: #f4f4f4;
  --background-dark: #d0d0d0;
  --background-light: #f0f0f0;
  --text: #000;
	--link: blue;
	--hover: hsl(var(--hue), 100%, 85%);
  --selected-text:#000;
  --selected-background: #acb;
	--table-separator: #c0c0c0;
  --header-text: #F0F0F0;
  --header-background:#808080;
}

html.dark {
  --background: #222;
  --background-dark: #000;
  --background-light: #444;
	--text: #eee;
	--hover: hsl(var(--hue), 80%, 10%);
	--link: #49f;
	--table-separator: #444;
  --header-background:#444;
}

html.color-theme-in-transition,
html.color-theme-in-transition *,
html.color-theme-in-transition *:before,
html.color-theme-in-transition *:after {
  transition: all 500ms !important;
  transition-delay: 0 !important;
}

body {
  background-color: var(--background);
  color: var(--text);
  font: 8pt/1.25em Arial, Helvetica, sans-serif;
  margin: 0;
}

#topbar {
  position:absolute;
  top:0px;
  left:0px;
  width:100%;
  height:40px;
  user-select: none;
  background-size: auto 40px;
	background: linear-gradient(180deg,
			#444 0%,
			#333 92.5%,
			hsl(var(--hue), 100%, 40%) 92.5%,
			hsl(var(--hue), 100%, 55%) 94%,
			hsl(var(--hue), 100%, 35%) 100%);
}

#topbar h1 {
  color: #EEE;
}

#topbar_logo {
  position: absolute;
  top: 0;
  right: 20px;
  width: 100%;
  height: 40px;
  background-repeat: no-repeat;
  background-position: right 50%;
  background-image: url('images/logo.svg');
  background-size: auto 50%;
}

#botbar {
  position:absolute;
  left:0px;
  bottom:0px;
  width:100%;
  height:25px;
  line-height: 25px;
  background: #dae1e9;
}

h1 {
  overflow: hidden;
  margin: 0 20px;
  font: 16px/40px 'Helvetica Neue', Helvetica, sans-serif;
  color: #555;
  font-weight: bold;
}
h1 #warning {
  margin-left:20px;
  font-size: 12px;
  font-weight: normal;
  color: #555;
}
h1 #warning strong {
  color: #000;
}

.inputtext:enabled:invalid {
  outline: 1px solid #E68A00;
}

#topcontent {
  position: absolute;
  top: 0px;
  left: 0;
  right: 0;
  bottom: 0px;
}

#topcontent.branded {
  top: 40px;
  bottom: 25px;
}
#appTabdivTabButtons {
  user-select: none;
  width: 100%;
  margin: 0;
  padding: 3px 9px 0 9px;
  border-bottom: 1px #888 solid;
	background: linear-gradient(#f4f4f4, #e4e4e4);
  box-sizing: content-box;
}
.WebTabOrganizerTabs {
  margin-bottom: -1px;
}
#appTab {
  margin-top: 4px;
  padding: 0px 9px 4px 9px;
  width: auto;
  border: 0;
}
#appTab > iframe {
  background: transparent;
}
#alarmTopgrid {
  padding: 4px 9px;
}

/******************** TABS *****************/
.tabDropdown
{
  font-size: 8pt;
  background-color: #f8f8f8;
}

.tabFrame
{
  border: 1px #888 solid;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
}

.tabOff, .tabOn {
  font: 400 9pt -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  user-select: none;
  box-sizing: border-box;
  height: 24px;
  line-height: 24px;
  margin-top: 4px;
  padding: 0 5px;
  display: inline-block;
  border: 1px #888 solid;
  cursor: pointer;
  text-align: center;
  color: var(--text);
  text-align: center;
  text-decoration: none;
}
.tabOff
{
  position: relative;
  font-weight: normal;
  background-color: var(--background-dark);
  height: 20px;
  line-height: 20px;
  position: relative;
  top: 2px;
}
.tabOff:active {
  background-color: var(--background);
}
.tabOn
{
	font-weight: bold;
  background-color: var(--background);
  border-bottom: none;
}
.tabOffBody
{
  display: none;
}
.tabOnBody
{
  border: #888888 1px solid;
  PADDING-LEFT:10PX;
  PADDING-TOP:10PX;
  PADDING-RIGHT:10PX;
  PADDING-BOTTOM:10PX;
  margin-top: -1px;
}

/******************** BUTTONS *****************/

.listTypeButton {
  font-size: 8pt;
  color: black;
  background-color: #ffffff;
  padding: 0px 0px 0px 0px; /* top right bottom left */
  border: #888888 1px solid;
  width:auto;
  padding: 0px 2px 0px 2px;
}
.normalbutton {
  font-size: 8pt;
  color: var(--text);
  background-color: var(--background-light);
  padding: 0px 0px 0px 0px;
  border: #888888 1px solid;
  width:auto;
  padding: 0px 2px 0px 2px;
}
.normalbuttonhover {
  font-size: 8pt;
  color: black;
  background-color: #e0e0e0;
  padding: 0px 0px 0px 0px;
  border: #888888 1px solid;
  width:auto;
  padding: 0px 2px 0px 2px;
}

.highlightedbutton {
  font-size: 8pt;
  color: var(--selected-text);
  background-color: var(--selected-background);
  padding: 0px 0px 0px 0px;
  border: #888888 1px solid;
  width:auto;
  padding: 0px 2px 0px 2px;
}

.ackbutton {
  font-size: 8pt;
  color: white;
  background: #30c030;
  padding: 0px 3px 0px 3px;
  border-width: 1px;
  width:auto;
  padding: 0px 2px 0px 2px;
}


/******************** TEXT *****************/

.inputtext {
  font-size: 8pt;
  font-family: Arial;
  color: var(--text);
  padding: 0px 1px 0px 1px;
  border-width: 1px;
  margin: 1px;
}

html.dark .inputtext {
  color: var(--text);
  background-color: var(--background-light);
  border: #888888 1px solid;
}

.inputcheckbox {
  color: #000000;
  margin: 1px;
}

/******************** LINKS *****************/

a {
  font-size: 8pt;
  color: #372cbd;
}

/******************** TABLES *****************/

td, th
{
  font-family: Arial;
  font-size: 8pt;
  line-height:10pt;
  text-overflow: ellipsis;
}

/* grey */
.greyTableSchemeTitle
{
  background-color: #d0d0d0;
  color: #000000;
}

.greyTableSchemeLastline
{
  background-color: #e0e0e0;
  font-weight: bold;
}

.greyTableSchemeEven
{
  background-color: #ffffff;
}

.greyTableSchemeOdd
{
  background-color: #e8e8e8;
}

.greyTableSchemeOddRedText
{
  background-color: #e8e8e8;
  color: #a00000;
}

.greyTableSchemeEvenRedText
{
  background-color: #ffffff;
  color: #a00000;
}

td.borderLeft
{
  border-color: black !important;
  border-style: none none none solid !important;
  padding: 0px 4px !important;
  border-width: 0px 0px 0px 2px !important;
}

/******************** FIELDSET *****************/

fieldset
{
  padding: 5px;
  BORDER:  #606060 1PX solid;
}

fieldset.warning
{
  BORDER:  red 2px solid;
}

legend
{
  font-weight: bold;
}

/******************** ALARMS ********************/

.EventAlarmColor
{
  background-color: #ccccaa;
}

.ClearAlarmColor
{
  background-color: #aaccaa;
}

.ActiveAlarmColor
{
  background-color: #ccaaaa;
}

/******************** ABOUT ********************/
.About
{
  font-family: Arial;
  color: gray;
  font-size: 8pt;
  text-align: center;
}

/******************** Date-Time ********************/
.DTime
{
  font-family: Arial;
  color: #303030;
  font-size: 9pt;
  position:absolute;
  bottom: 0;
  right: 20px;
}

.TStat
{
  font-family: Arial;
  color: #000000;
  font-size: 9pt;
  font-weight: bold;
  position:absolute;
  bottom: 0;
  left: 20px;
}

.topDocument {
  overflow:hidden;
  border: 0 !important;
  height: 100%;
}

/*Colors/backgrounds used by ETR functionality*/
.ewe-dialog {
  background-color:var(--background);
  height: 100%;
  overflow: auto;
}
.tableHead {
  background-color: var(--header-background);
  color: var(--header-text);
}

.tableRowEven
{
  text-overflow: ellipsis;
}

.tableRowOdd
{
  text-overflow: ellipsis;
}

.tableHover {
  background-color:var(--hover);
}

.underline {
  cursor: pointer;
  color: var(--link);
}

.underline:hover {
  text-decoration: underline;
}

.captionServiceTreeBox {
  width: 100%;
  height: 400px;
}

span.thousand:before {
  content: ' ';
}

.maptile {
	overflow: hidden;
	position: relative;
}

.maptile > * {
	position: absolute;
}

.maptile > :last-child {
	transform: scale(0.25);
	transition: transform 0.7s, opacity 0.7s;
	opacity: 0;
}

.maptile:hover > :last-child {
	transform: scale(1);
	opacity: 1;
}

.maptile > :first-child {
	transition: transform 0.7s;
}

.maptile:hover > :first-child {
	transform: scale(4);
}

html.dark img.cetrus-maptile {
	filter: invert(100%) hue-rotate(180deg);
}

.icon {
	fill: currentColor;
	cursor: pointer;
	height: 2em;
}
