html, body {
	width: 100vw;
	/* height: 56.25vw; */
	height: 100vh;
	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: 10px;
	cursor: pointer;
}

header > .logo img {
	height: 80%;
	width: auto;
}

header > .header-right {
	position: absolute;
	top: 0;
	right: 10px;
}

.header-time {
	font-size: 1rem;
	text-align: right;
	line-height: normal;
	padding: 0 10px;
}

.menu-btn {
	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;
}

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 li {
	cursor: pointer;
}

nav > div, .w3-sidebar ul {
	margin: 0;
	padding: 0;
	list-style-type: none;
	font-size: 1.4rem;
	font-weight: 600;
}

nav .sys-time {
	font-size: 1.2rem;
}

.w3-sidebar ul > li {
	padding: 8px 15px;
	color: #fff;
}

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;
}

.w3-sidebar li > ul {
	display: none;
}

/*, .w3-sidebar li:hover > ul*/
.w3-sidebar li.opened > ul {
	display: block;
}

.w3-sidebar li.active, .w3-sidebar li:hover {
	color: #84ffff;
}

.w3-sidebar li.active, .w3-sidebar 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;
}

/* 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);
}

#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);
	}
}

@media screen and (max-width: 481px) {
	html, body {
		width: 100vw;
		height: 100%;
		overflow: hidden;
	}
	header ~ .container {
		max-height: calc(100% - 48px);
		padding: 0;
	}
}



/*統一樣式*/

.q-table-container {
  background-color: #fff;
}

.q-table > thead > tr > th {
  background-color: #0273d4;
  font-size: 18px;
  font-family: Microsoft JhengHei;
  font-weight: bold;
  color: white;
  border: solid 1px lightgrey !important;
}

.q-table > tbody > tr > td {
  font-size: 1.1em;
  border: solid 1px lightgrey !important;
}

.q-table-top {
  background: #fff !important;
}

.q-if-standard {
  padding: 8px !important;
  background: #fff !important;
}

.form {
  position: relative;
  margin-bottom: 20px;
}

.label {
  background-color: #0273d4;
  position:relative !important;
  display: inline-block !important;
  border-radius: 0px 8px 8px 0px;
  padding-top: 5px;
  width: 6em;
  height: 2.2em;
  font-size: 1.2em;
  color: white;
  top:0;
  left:7px;
  z-index: 1;
}

.label-20 {
	background-color: #0273d4;
	position:relative !important;
	display: inline-block !important;
	border-radius: 0px 8px 8px 0px;
	padding-top: 5px;
	width: 6em;
	height: 2.2em;
	font-size: 20px;
	color: white;
	top:0;
	left:7px;
	z-index: 1;
}

.label::after{
  content: "" !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
  left: 0px !important;
  width: 0 !important;
  height: 0 !important;
  bottom: -11px;
  border-style: solid;
  border-width: 0 11px 11px 0;
  border-color: transparent #000 transparent transparent;
}

.label-20::after{
	content: "" !important;
	width: 0 !important;
	height: 0 !important;
	position: absolute !important;
	left: 0px !important;
	width: 0 !important;
	height: 0 !important;
	bottom: -11px;
	border-style: solid;
	border-width: 0 11px 11px 0;
	border-color: transparent #000 transparent transparent;
  }

.field {
  position: absolute;
  height: 50px;
  left: 16px;
  top:15px;
  width: 90%; 
  padding-left: 5px;
  background-color: #fff;
  padding-right: 5px;
}

.q-field-label-inner {
	color: #000;
}

.custom-table {
	box-shadow: -6px 3px 10px 0px #a9a9a9;
  }
  
  .custom-table-header {
	font-size: 20px !important;
  }
  .custom-table-pagination {
	border-bottom: 1px solid #eee;
	border-left: 1px solid #eee;
	border-right: 1px solid #eee;
	padding: 10px 0px;
	background-color: #fff;
  }
  
  .custom-table td.ve-table-body-td {
	padding: 5px !important;
  }
  /* 因應特規需求產生 */
  .f-20{
	font-size: 20px!important;
  }

  .pointer-events-none{
	pointer-events: none;
  }

  .flex-1{
	flex: 1;
  }