html, body {
	width: 100vw;
	height: 56.25vw;
	font-size: 16px;
	margin: 0;
	padding: 0;
	font-family: "Microsoft JhengHei" !important;
}

html {
	overflow: -moz-hidden-unscrollable;
}

body::-webkit-scrollbar {
    display: none;
}

body {
	 -ms-overflow-style: none;
	overflow: auto;
}

#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: 10px;
	cursor: pointer;
}

header > .logo img {
	height: 80%;
	width: auto;
}

header > .menu-btn {
	position: absolute;
	top: 0;
	right: 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.8;
}

.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;
}

nav.menu {
	width: 296px;
	padding: 0;
	transform: translate3d(-296px, 0 , 0);
	background: #455a64;
	letter-spacing: 1px;
	border-right: 1px solid #263238;
}

nav.menu.opened ~ .container {
	transform: translate3d(296px, 0 , 0);
}

nav.container.opened {
	transform: translate3d(0, 0 , 0);
}


nav > div {
	margin: 0;
	padding: 0;
	list-style-type: none;
	font-size: 1.4rem;
	font-weight: 600;
}

.sys-time {
	position: absolute;
	top: 0;
	right: 0;
	font-weight: bold;
	font-size: 1.4rem;
}


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 .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;
}

.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;
}

#q-app[visible="visible"] + #page-loading {
	display: none !important;
}

@-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);
	}
}