:root {
	--sw-color-primary-d: #225B9A;
	--sw-color-negative-l: #ec8b8b;
	--sw-color-faded-1: #999999;
	--sw-color-arriva-green: #11862f;
	--sw-color-airbus-yellow: #efdf00;
	--sw-color-mixpanel-violet: #a086d3;
}
html {
	width: 100vw;
/*	height: 56.25vw;*/
	font-size: 16px;
	margin: 0;
	font-family: -apple-system,
                 BlinkMacSystemFont,
                 "Microsoft JhengHei",
				 "Microsoft YaHei",
                 "Segoe UI",
                 Roboto,
                 Oxygen-Sans,
                 Ubuntu,
                 Cantarell,
                 "Helvetica Neue",
                 sans-serif;
}

html {
	padding: 0;
	overflow: -moz-hidden-unscrollable;
}

body::-webkit-scrollbar {
/*    display: none;*/
}

body {
	-ms-overflow-style: none;
	overflow: auto;
	padding: 0;
	padding-top: env(safe-area-inset-top);
	padding-right: env(safe-area-inset-right);
	padding-bottom: env(safe-area-inset-bottom);
	padding-left: env(safe-area-inset-left);
}

#q-app {
	width: 100%;
	height: 100%;
	visibility: hidden;
	position: relative;
}

#q-app[visible="visible"] {
	visibility: visible !important;
}

div {
	box-sizing: border-box;
}

header {
	position: relative;
	background: linear-gradient(to bottom, #ccc, #fff 38%, #fff 57%, #ddd);
	font-size: 1.6rem;
	font-weight: 600;
	letter-spacing: 2px;
	height: 65px;
	line-height: 64px;
	text-align: center;
	box-shadow: 0px 0px 2px 1px rgba(20%, 20%, 40%, 0.4), 0px 0px 6px 3px rgba(20%, 20%, 40%, 0.2);
	z-index: 3;
	color: #263238;
}

header > div {
	height: 100%;
}

header > .logo {
	position: absolute;
	top: 0;
	/*left: calc(2rem + 20px);*/
	right: 10px;
	cursor: pointer;
}

header > .logo img {
	height: 80%;
	width: auto;
}

header > .menu-btn {
	position: absolute;
	top: 0;
	/*right: 10px;*/
	left: 10px;
	font-size: 2rem;
	line-height: 59px;
	cursor: pointer;
}

.h4, .h5 {
	font-size: 2rem;
	font-weight: bolder;
}

.h5 {
	font-size: 1.75rem;
}

.main-img {
	background-image: url(../img/main.png);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	position: fixed;
	width: 100%;
	height: 100%;
	z-index: 0;
	opacity: 0.75;
}

.container {
	width: 100%;
	height: 100%;
/*	background: radial-gradient(circle, #ddd, #eceff1); */
	padding: 10px;
	overflow-y: auto;
	
}

header ~ .container {
	position: absolute;
	height: calc(100% - 65px);
	transition: all 0.4s ease-in-out;
}

q-page-container ~ .container {
	position: absolute;
	height: calc(100% - 65px);
	transition: all 0.4s ease-in-out;
}

nav.menu {
	width: 300px;
	padding: 0;
	transform: translate3d(-300px, 0 , 0);
	background: #455a64;
	letter-spacing: 1px;
	border-right: 1px solid #263238;
}

nav.menu.opened ~ .container {
	transform: translate3d(300px, 0 , 0);
}

nav.container.opened {
	transform: translate3d(0, 0 , 0);
}

nav li {
	cursor: pointer;
}

nav > div, ul {
	margin: 0;
	padding: 0;
	list-style-type: none;
	font-size: 1.4rem;
	font-weight: 600;
}

nav .sys-time {
	font-size: 1.2rem;
}

nav ul > li {
	padding: 8px 15px;
	color: #eceff1;
	text-shadow: 3px 3px 0px rgb(0, 0, 0, 0.25);
}

nav > div {
	background: #eceff1;
	color: #263238;
	margin: 8px 8px 8px 7px;
    padding: 3px 8px;
	box-shadow: 0px 2px 4px 2px rgba(20%, 20%, 40%, 0.5) inset;
	border-radius: 3px;
}

nav li > ul {
	display: none;
}

nav li.opened > ul, nav li:hover > ul {
	display: block;
}

nav li.active {
	color: #18ffff;
}

nav li:not(.active):hover {
	color: #b39ddb;
}

nav ul > li:hover { 
	text-shadow: none;
}

li.active, li.opened {
	background: #263238;
}

nav .material-icons {
	font-size: 1.8rem;
    vertical-align: sub;
	margin-right: 8px;
}

.RealAlarm .q-table thead th, .RealAlarm .q-table thead td {
	font-size: 1.5rem;
	color: #fff;
	background-color: #666;
	font-weight: 600;
}

.RealAlarm .q-table tbody td {
	font-size: 1.2rem;
	color: #666;
	font-weight: 600
}

.RealAlarm .q-table-container .q-table-nodata {
	font-size: 1.2rem;
	font-weight: 600;
	justify-content: center;
}

.RealAlarm .q-table-container.Fixed_Row_Num .q-table-middle {
	height: calc(100% - 48px);
}

.RealAlarm .modal-body {
	max-height: 700px;
	padding: 0;
	padding-bottom: 2px;
}

.area-block {
	position: relative;
	width: 100%;
	height: auto;
	font-size: 1.2rem;
	font-weight: 600;
}

.area-block img {
	width: 100%;
	height: auto;
}

.area-block .soft-light {
	border-radius: 50%;
}

.area-block .soft-item [data-type='data'][data-value]:before {
	content: attr(data-value);
}

.area-block .soft-item [data-type='bool'][data-text]:before,
.area-block .soft-item [data-type='text'][data-text]:before {
	content: attr(data-text);
	letter-spacing: 1px;
}

.area-block .soft-item [data-type='data'][data-unit]:after {
	content: ' ' attr(data-unit);
}

.condition-block, .query-block {
	display: inline-block;
	vertical-align: top;
	position: relative;
	margin-top: 35px;
	margin-left: 60px;
}

.query-block {
	margin-top: 25px;
	margin-left: 40px;
}

.condition-block:nth-child(n+1) {
	margin-left: 80px;
}

.condition-block > div, .query-block > div {
	height: 45px;
	line-height: 42px;
	display: inline-block;
	vertical-align: top;
}

.condition-block .title {
	position: absolute;
	left: -45px;
    top: -15px;
	width: 135px;
	font-size: 1.25rem;
	font-weight: 600;
	text-align: center;
	letter-spacing: 2px;
	background-color: #027be3;
	border-top-right-radius: 6px;
	border-bottom-right-radius: 6px;
}

.condition-block .title:after {
	content: "";
	position: absolute;
	display: block;
	width: 0; 
	height: 0; 
	bottom: -15px;
	left: 0;
	border-top: 15px solid #01579b; 
	border-left: 15px solid transparent; 
}

.condition-block .content {
	min-width: 220px;
	padding: 1px;
	background-image: linear-gradient(to right, transparent, #78909c 100px, #78909c 100%);
	box-shadow: 8px 6px 15px -12px #607d8b;
	border-radius: 6px;
}

.condition-block .content > div {
	background: #fff;
	border-radius: 5px;
	height: 100%;
	padding: 0 10px 0 105px;
}

.condition-block .content .sub-item {
	display: inline-block;
	vertical-align: top;
	margin-right: 10px;
}

.condition-block .content .sub-item:after {
	margin-right: 0;
}

.query-block .outer-border {
	border-radius: 6px;
}

.query-block .outer-border > div {
	box-shadow: inset 0px 0px 0px 2px #fff;
    background: linear-gradient(to bottom, #027be3 38%, #01579b 100%);
    background-color: #2980B9;
	border: 2px solid #2980B9;
	min-width: 125px;
	border-radius: 6px;
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: 2px;
	text-align: center;
	color: #fff;
	cursor: pointer;
}

.query-block .outer-border > div:hover {
	background: linear-gradient(to bottom, #01579b 38%, #027be3 100%);
}

.RealAlarmIcon {
	position: fixed;
	width: 50px;
	height: 50px;
	line-height: 45px;
	text-align: center;
	border-radius: 50%;
	right: 15px;
	bottom: 12px;
	cursor: pointer;
	box-shadow: 0px 0px 2px 1px rgba(20%, 20%, 40%, 0.4) inset;
}

.RealAlarmIcon > i {
	font-size: 1.75rem;
	opacity: 0.4;
}

.RealAlarmIcon:hover > i {
	font-size: 2rem;
	opacity: 0.8;
}

.RealAlarmIcon.AlarmActive {
	color: #db2828 !important;
	animation-name: alarm_flash;
    animation-duration: 1600ms;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.RealAlarmIcon.AlarmActive > i {
	font-size: 2rem !important;
	opacity: 0.8;
}

@keyframes alarm_flash {
	from { box-shadow: 0px 0px 1px 1px rgba(20%, 20%, 40%, 0.2) inset, 0px 0px 2px 1px rgba(228, 92, 92, 0.4); }
	to { box-shadow: 0px 0px 2px 1px rgba(228, 92, 92, 0.3), 0px 0px 4px 2px rgba(228, 92, 92, 0.5), 0px 0px 6px 3px rgba(228, 92, 92, 0.7); }
}

*:focus {
    outline: none;
}

#page-loading {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99;
	background-color: rgb(64, 80, 181);
}

.loading {
    border: 3px solid rgb(64, 80, 181);
    border-right: 3px solid #fff;
    border-bottom: 3px solid #fff;
    height: 50px;
    width: 50px;
    border-radius: 50%;
    -webkit-animation: loading 2.5s infinite linear;
    -moz-animation: loading 2.5s infinite linear;
    -o-animation: loading 2.5s infinite linear;
    animation: loading 2.5s infinite linear;
}

.abgne-loading {
    position: absolute;
	top: 50%; 
	left: 50%; 
	transform: translate(-50%, -50%); 
	transform-origin: 50% 50%; 
    height: 10rem;
    width: 10rem;
	text-align: center;
}

.abgne-loading .loading {
    border: 0.6rem solid rgb(64, 80, 181);
    border-right: 0.6rem solid #fff;
    border-bottom: 0.6rem solid #fff;
    height: 100%;
    width: 100%;
    border-radius: 50%;
    -webkit-animation: loading 1.2s infinite linear;
    -moz-animation: loading 1.2s infinite linear;
    -o-animation: loading 1.2s infinite linear;
    animation: loading 1.2s infinite linear;
}

.abgne-loading .word {
    color: #fff;
    position: absolute;
	top: 50%; 
	left: 50%; 
	transform: translate(-50%, -50%); 
	transform-origin: 50% 50%;
	height: 3.5rem;
    width: 100%;
    display: inline-block;
    font-size: 1.6rem;
    line-height: 1.6rem;
    padding: 0;
	letter-spacing: 2px;
}

.middle-center {
	position: absolute;
	top: 50%; 
	left: 50%; 
	transform: translate(-50%,-50%); 
	transform-origin:50% 50%;
	text-align: center;
}

/* text-shadow */
.text-white.text-white-shadow {
	text-shadow: 0px 4px 3px rgba(0,0,0,0.4), 0px 8px 13px rgba(0,0,0,0.1), 0px 18px 23px rgba(0,0,0,0.1);
}

.bg-faded-1 {
	background: var(--sw-color-faded-1, #999999)!important;
}

.text-faded-1 {
	color: var(--sw-color-faded-1, #999999)!important;
}

.bg-primary-d {
	background: var(--sw-color-primary-d, #225B9A)!important;
}

.text-primary-d {
	color: var(--sw-color-primary-d, #225B9A)!important;
}

.bg-negative-l {
	background: var(--sw-color-negative-l, #ec8b8b)!important;
}

.text-negative-l {
	color: var(--sw-color-negative-l, #ec8b8b)!important;
}

.bg-arriva-green {
	background: var(--sw-color-arriva-green, #11862f)!important;
}

.text-arriva-green {
	color: var(--sw-color-arriva-green, #11862f)!important;
}

.bg-airbus-yellow {
	background: var(--sw-color-airbus-yellow, #efdf00) !important;
}

.text-airbus-yellow {
	color: var(--sw-color-airbus-yellow, #efdf00) !important;
	
}

.bg-mixpanel-violet {
	background: var(--sw-color-mixpanel-violet, #a086d3) !important;
}

.text-mixpanel-violet {
	color: var(--sw-color-mixpanel-violet, #a086d3) !important;
}

#q-app[visible="visible"] + #page-loading {
	display: none !important;
}
.mx-datepicker-popup {
	position: fixed !important;
	z-index: 10001;
}
.q-input-target .mx-input {
	width: 100%;
    height: auto;
    padding: 0;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    background-color: inherit;
    border: 0;
    border-radius: 0;
	box-shadow: none;
	text-align: center;
	cursor: pointer;
	letter-spacing: 1px;
}

.required-col .q-field-label .q-field-label-inner:before {
	content: '*';
	font-size: 1.05em;
    font-weight: 600;
	color: #db2828;
	margin-right: 2px;
}

@-webkit-keyframes loading {
    from {
        -webkit-transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
    }
}
@-moz-keyframes loading {
    from {
        -moz-transform: rotate(0deg);
    }
    to {
        -moz-transform: rotate(360deg);
    }
}
@-o-keyframes loading {
    from {
        -o-transform: rotate(0deg);
    }
    to {
        -o-transform: rotate(360deg);
    }
}
@keyframes loading {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media screen and (max-width:1680px) { 
	html, body {
		font-size: 14px;
	}
	header {
		height: 55px;
		line-height: 54px;
	}
	header ~ .container {
		height: calc(100% - 55px);
	}
	header > .menu-btn {
		line-height: 48px;
	}
	nav.menu {
		width: 256px;
		transform: translate3d(-256px, 0 , 0);
	}
	nav.menu.opened ~ .container {
		transform: translate3d(256px, 0 , 0);
	}
}

@media screen and (max-width:1280px) { 
	html, body {
		font-size: 12px;
	}
	header {
		height: 48px;
		line-height: 47px;
	}
	header ~ .container {
		height: calc(100% - 48px);
	}
	header > .menu-btn {
		line-height: 41px;
	}
	nav.menu {
		width: 234px;
		transform: translate3d(-234px, 0 , 0);
	}
	nav.menu.opened ~ .container {
		transform: translate3d(234px, 0 , 0);
	}
}

@media screen and (max-width: 481px) {
	html, body {
		width: 100vw;
		height: 100%;
		overflow: hidden;
	}
	header ~ .container {
		max-height: calc(100% - 48px);
		padding: 0;
	}
}
