html,
body {
  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:before {
  content: '';
  display: block;
/*  background-image: url("../img/greenrock-bg3.jpg");*/
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: -99;
  opacity: 1;
}

#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;
  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/新東陽-電腦-登入畫面_底圖_0.png);
/*  background-position: center;*/
  background-repeat: no-repeat;
  background-size: cover;
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 0;
/*  opacity: 1;*/
}

.middle-center {
  position: absolute;
  top: 50%; 
  left: 50%; 
  transform: translate(-50%,-50%); 
  transform-origin:50% 50%; 
  text-align: center;
}

.index-container{
  background: rgb(12, 29, 73);
}

.energy-container{
  background: rgb(12, 29, 73);
}

.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,
ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
  font-size: 1.4rem;
  font-weight: 600;
}

nav .sys-time {
  font-size: 1.2rem;
}

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;
}

li > ul {
  display: none;
}

li.opened > ul,
li:hover > ul {
  display: block;
}

li.active,
li:hover {
  color: #84ffff;
}

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;
}

/* 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;
}

.return-page {
  position: absolute;
  z-index: 2;
  width: 120px;
  height: 50px;
  top: 10%;
  left: 80%;
  text-align: center;
  background-color: #003C9D; 
  color: #fff;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  transition-duration: 0.4s;
  cursor: pointer;
  border-radius: .25rem;
  border: 2px solid #003C9D;
}

.return-page:hover {
  background-color: #fff;
  color: #003C9D;
  box-shadow: 0 10px 10px 0 rgba(0,0,0,0.24),0 10px 10px 0 rgba(0,0,0,0.19);
}


@font-face {
  font-family: 'electronicFont';
  src: url(font/DS-DIGI-1.ttf);
  src: url(font/DS-DIGIB-2.ttf);
  src: url(font/DS-DIGII-3.ttf);
  src: url(font/DS-DIGIT-4.ttf);
}


/* 2024-06-13 顏廷瑜新增CSS */

/* 根據需要添加樣式 */

.q-option-label {
  font-size: 1.3rem;
}

/* 覆蓋 vue2-datepicker 的樣式 */
.mx-datepicker {
  width: 100% !important;
  height: 100%;
}

.mx-input {
  color: #000;
  font-size: 1.3rem;
  border: 1px solid transparent;
  -webkit-box-shadow: none;
  border-radius: 0px
}

.mx-input:hover {
  border-color: transparent;
}

.mx-input:hover, .mx-input:focus {
    border-color: transparent;
}

.mx-input-wrapper {
  display: flex;
  flex-flow: row wrap;
  justify-content: flex-start;
  align-items: center;
  height: 100%;
  background: #fff;
}

.mx-icon-calendar {
  font-size: 1.3rem;
  color: #000;
}


@-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;
  }
}*/
.search-field .row {
  height: 50px;
  font-size: 20px;
  font-weight: 600;
}
.search-field .q-field-label {
  margin: 0 !important;
  padding: 0 !important;
  background-color: rgb(66, 100, 208);
  color: #fff;
  font-size: 1.3em;
  height: 100%;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}
.search-field .q-field-label .q-field-label-inner {
  height: 100%;
  align-items: center;
  justify-content: space-around;
}
.search-field .q-field-content {
  padding: 0 !important;
  border: 1px solid #fff;
  height: 100%;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
  background: #fff;
}
.search-field .q-input-target {
  font-size: 20px;
  height: 100%;
}

[dir] .bg-grey-2 {
  background: #F8F9FC !important;
  border: 1px solid #F8F9FC !important;
}

[dir] .bg-grey-2.block-list-radius{
  border-radius: 10px;
  padding-bottom: 6%;
}

.block-list-radius{
  padding-top: 2%;
}

.index-flexRadius{
  border-radius: 10px;
  background-color: rgb(12, 29, 73);
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(11, 35, 73, 0.7);
  box-shadow: rgba(26, 198, 255, 0.9) 0px 0px 10px 3px inset !important
}

.energy-flexRadius{
  font-size: 20px;
  font-weight: 600;
  height: 280px;
  border-radius: 10px;
  background-color: rgb(12, 29, 73);
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(11, 35, 73, 0.7);
  box-shadow: rgba(26, 198, 255, 0.9) 0px 0px 10px 3px inset !important;
}

.energy-tableRadius{
  font-size: 20px;
  font-weight: 600;
  border-radius: 10px;
  background-color: rgb(12, 29, 73);
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(11, 35, 73, 0.7);
  box-shadow: rgba(26, 198, 255, 0.9) 0px 0px 10px 3px inset !important;
}

.flex-radius{
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px !important;
  border: none !important;
  background-color: #fff;
}

.shadow-2{
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px !important;
  border: none !important;
}

.flex-shadow{
 /* box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px !important;*/
  border: none !important;
  /*background: #fff;*/
}


[dir=ltr] .q-ml-sm{
	margin-left: 20px;
}

[dir] .q-tab-label{
  text-align: center;
  font-size: 20px;
  font-weight: 600;
}

[dir] .text-center {
  font-weight: 600;
  font-size: 20px !important;
}

.q-card-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1em;
}
