@charset "utf-8";
/* CSS Document */

/* *{  
  outline: 1px solid #f00;
} */

:root {
  --primary-050: #E1F5FE;
  --primary-100: #B3E5FC;
  --primary-200: #81D4FA;
  --primary-300: #4FC3F7;
  --primary-400: #29B6F6;
  --primary-500: #03A9F4;
  --primary-600: #039BE5;
  --primary-700: #0288D1;
  --primary-800: #0277BD;
  --primary-900: #01579B;

  --red-600: #E53935;
  --red-200: #F9D3D2;

  --Orange-200: #FFCC80;
  --Orange-700: #F57C00;
  --Orange-900: #E65100;

  --green-050: #e8f0e9;
  --green-100: #C8E6C9;
  --green-700: #388E3C;
  --green-900: #1B5E20;

  --gray-050: #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-200: #EEEEEE;
  --gray-300: #E0E0E0;
  --gray-400: #BDBDBD;
  --gray-500: #9E9E9E;
  --gray-600: #757575;
  --gray-700: #616161;
  --gray-800: #424242;
  --gray-900: #212121;

  --rem: min(1.33vw, 10px);
}

.wrapper {
  position: relative;
  display: flex;
  flex-direction: row;
  width: 100%;
  /* max-width: 133rem; */
  /* min-width: 80rem; */
  height: 100%;
  min-height: 50rem;
  line-height: 100%;
}

/* Math 標籤 CSS -------------------------------*/
mi {
  font-family: 'Noto Sans TC', Arial, "微軟正黑體", "Microsoft JhengHei", sans-serif;
  font-size: 1.4rem;
  padding-top: .4rem;
}

/* Nav-content CSS -------------------------------*/
.nav-content {
  position: relative;
  /* outline: 1px solid #F00; */

}

.container {
  display: flex;
  align-items: center;
  /*width: 100%;
  min-height: 100vh; */
}


/* -----------------------------------------------------*/
.sidebar {
  position: relative;
  width: 22rem;
  height: 100vh;
  display: flex;
  flex-direction: column;
  /* gap: 2rem; */
  background: var(--primary-100);
  transition: all 0.3s;
  z-index: 1;
}


.sidebar .header {
  display: flex;
  align-items: center;
  width: 100%;
  height: 6.5rem;
  padding: 0.5rem;
  background: var(--primary-800);
  border-bottom: 1px solid var(--primary-900);
  line-height: 6.5rem;
  transition: all 0.3s ease;
}

.sidebar .header .logo {
  width: 4rem;
  height: 4rem;
}

.sidebar .header .title {
  width: 100%;
  text-align: left;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.6rem;
  margin-left: 0.5rem;
  color: var(--primary-200);
}

.menu .title {
  font-size: 1rem;
  font-weight: 500;
  color: #757575;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.sidebar-nav {
  flex: 1;
}

.menu {
  padding: 0.5rem 1rem;
}

.menu ul li {
  position: relative;
  list-style: none;
  /* margin-bottom: 0.5rem; */
  border-bottom: 1px solid var(--gray-500);
}



.menu ul li a {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  padding: 1.2rem 0.8rem;
  /* border-radius: 8px; */
  transition: all 0.3s;
}

.menu ul li:hover {
  background: var(--primary-400);
}

.menu>ul>li.active {
  background: var(--primary-700);
  border-left: 0.4rem solid var(--primary-900);
}

.sub-menu li.active,
.sub-menu li.active:hover {
  background: var(--primary-500);
}

.menu ul li.active>a {
  color: #FFF;
}

.menu ul li .icon {
  font-size: 2.4rem;
}

.menu ul li .text {
  flex: 1;
}

.menu ul li .arrow {
  font-size: 2.4rem;
  transition: all 0.3s;
}

.menu ul li.active .arrow {
  transform: rotate(180deg);
}

.menu .sub-menu {
  display: none;
  background: var(--primary-200);
}

.menu .sub-menu li {
  border-top: 1px solid var(--primary-400);
  border-bottom: none;
  height: auto;
  min-height: 4rem;
  padding: 1rem 0.5rem 1rem 4rem;
  box-sizing: border-box;
}

.menu .sub-menu li a {
  padding: 0;
  font-size: 1.6rem;
  color: var(--gray-700);
}

.menu .sub-menu li a .text {
  line-height: 1.8rem;
}

.menu:not(:last-child) {
  border-bottom: 1px solid var(--primary-400);
}

.logout ul li:first-child {
  /* border-top: 1px solid var(--gray-500); */
  border-bottom: none;
}

/* .menu:not(:last-child) {
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid #f6f6f6;
} */

/* Main-content CSS -------------------------------*/
.main-content {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  height: 100%;
  /* padding: 1rem; */
  box-sizing: border-box;
  background: var(--gray-100);
  /* font-family: 'Noto Sans TC', Arial, "微軟正黑體", "Microsoft JhengHei", sans-serif; */
}

.main-content iframe {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: transparent;
}

/* Nav CSS -------------------------------*/
.page-nav {
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 1rem;
  list-style: none;
  font-size: 1.4rem;
}

.nav-tabs {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  font-size: 1.4rem;
  line-height: 1.6rem;
  border-bottom: 1px solid var(--gray-400);
}

.nav-tabs .nav-item {
  margin-right: 1rem;
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
  color: var(--primary-900);
  font-weight: 500;
  /* background-color: #FFF; */
  border-color: var(--gray-400) var(--gray-400) var(--gray-100);
}

.nav-tabs .nav-link {
  margin-bottom: -1px;
  background: 0 0;
  border: 1px solid transparent;
  border-top-left-radius: 0.25rem;
  border-top-right-radius: 0.25rem;
}

.nav-tabs .nav-link:hover {
  border: 1px solid var(--gray-300);
}

.nav-tabs .nav-link.active:hover {
  border-color: var(--gray-400) var(--gray-400) var(--gray-100);
}

.nav-link {
  display: block;
  padding: 1rem;
  color: var(--gray-600);
  text-decoration: none;
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}

.nav-link:hover {
  color: var(--primary-900);
}

/* 
.dropdown-toggle {
  white-space: nowrap;
}

[role=button] {
  cursor: pointer;
}

.nav-tabs .dropdown-menu {
  margin-top: -1px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.dropdown-menu {
  position: absolute;
  z-index: 1000;
  display: none;
  min-width: 10rem;
  padding: 0.5rem 0;
  margin: 0;
  font-size: 1rem;
  color: #212529;
  text-align: left;
  list-style: none;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, .15);
  border-radius: 0.25rem;
} */

/* Page CSS -------------------------------*/
.page-main {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 50rem;
  height: 100%;
  padding: 2rem;
  box-sizing: border-box;
  background: var(--gray-100);
}

.page-path {
  padding: 1rem 0;
  font-size: 1.4rem;
  font-weight: 400;
}

.page-header {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  align-items: flex-end;
  padding-bottom: .8rem;
  width: 100%;
  height: 4.5rem;
  /* background-color: var(--gray-300); */
  border-bottom: 1px solid var(--gray-500);
}

.page-title {
  display: flex;
  align-items: flex-end;
}

.page-title h4 {
  line-height: 100%;
  color: var(--primary-900);
}

.page-controller {
  display: flex;
  align-items: flex-end;
}

.page-controller button {
  margin-right: 1.4rem;
}

.page-controller button:last-child {
  margin-right: 0;
}

.page-content {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.4rem 0;
  width: 100%;
  height: 100%;
  font-size: 1.4rem;
  line-height: 1.5;
}

.page-footer {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 100%;
  height: 2rem;
  bottom: 2rem;
  color: var(--gray-500);
  font-size: 1.2rem;
}

.dataset {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: auto;
  padding: 0;
  /* border: 1px solid var(--gray-300); */
  /* border-radius: .5rem; */
}

.detail-extra {
  min-height: 40rem;
}

.detail-extra .page-main {
  padding: 0;
  background: #FFF;
}

.detail-extra .page-title {
  color: var(--primary-900);
}

.detail-extra .page-header {
  padding-bottom: 0;
  width: 100%;
  height: 4rem;
  border-bottom: none;
}

.detail-extra .page-content {
  padding: .5rem 0;

}

.data-table {
  width: 100%;
  text-align: left;
  background: #FFF;
  /* border: 1px solid var(--gray-300); */
}

.data-table .limit_title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 30rem;
}


.data-table span {
  color: var(--red-600);
}

.data-table th,
.data-table td {
  padding: .8rem .4rem;
  vertical-align: middle;
  white-space: nowrap;
  /* border-right: 1px solid var(--gray-300); */
}

.data-table th {
  font-weight: 500;
  color: var(--primary-900);
  background: var(--primary-100);
  border: 1px solid var(--primary-100);
}

.data-table td {
  min-width: 4rem;
  max-width: 30rem;
  font-weight: 400;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-300);
}

.data-table td:first-child {
  border-left: 1px solid var(--gray-300);
}

.data-table td:last-child {
  border-right: 1px solid var(--gray-300);
}

.data-table tbody tr:hover {
  background: var(--primary-050);
}

.data-table .disabled {
  background: var(--gray-300);
}

.data-table .disabled:hover {
  background: var(--gray-300);
}

.data-table .data-temp {
  background: var(--red-200);
}

.data-table .data-temp:hover {
  background: var(--red-200);
}

.data-table .data-invalid {
  background: var(--gray-300);
}

.data-table .data-invalid:hover {
  background: var(--gray-300);
}

.check-field,
.num-field,
.maintain-field {
  width: 4rem;
  /* text-align: center; */
  box-sizing: border-box;
  /* white-space: nowrap; */
}

.maintain-field button {
  margin-right: .8rem;
}

.maintain-field button:last-child {
  margin-right: 0;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 1rem 0;

}

.pagination .active {
  color: #FFF;
  background: var(--primary-800);
  cursor: default;
}

.pagination .active:hover {
  color: #FFF;
  background: var(--primary-800);
}

.pagination:disabled {
  color: #FFF;
  background: var(--primary-800);
}



.search-toggle {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  right: .4rem;
  top: 2rem;
  height: 2rem;
  width: 2rem;
  /* background: var(--gray-800); */
  color: var(--gray-500);
  border-radius: 2px;
  border: 2px solid var(--gray-500);
  box-sizing: border-box;
  cursor: pointer;
  z-index: 99;
  /* transition: all 0.3s ease; */
}

#search-toggle:checked~.search-toggle {
  /* left: 1.5rem; */
  background: none;
}

.search-toggle i {
  position: absolute;
  font-size: 2rem;
  /* transition: all 0.3s ease; */
}

.search-toggle i.bx-plus {
  opacity: 0;
}

#search-toggle:checked~.search-toggle i.bx-minus {
  opacity: 0;
}

#search-toggle:checked~.search-toggle i.bx-plus {
  opacity: 1;
}

#search-bar {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 20rem;
  height: auto;
  max-height: 100%;
  padding: .8rem;
  margin-left: 1rem;
  box-sizing: border-box;
  border: 1px solid var(--gray-300);
  border-radius: .5rem;
  background: #FFF;
  overflow: hidden;
  transition: all 0.3s ease;
}

#search-toggle:checked~#search-bar {
  width: 2.8rem;
  height: 2.8rem;
}

#search-toggle:checked~#search-bar .search-field {
  opacity: 0;
  /* transition: all 0.3s ease; */
}


.search-field {
  white-space: nowrap;
}

.search-field .note {
  color: var(--gray-500);
}

.search-item {
  padding: .4rem 0;
  margin-bottom: .4rem;
  box-sizing: border-box;
}

.search-item select {
  width: 100%;
}


.search-controller {
  display: flex;
  /* justify-content: flex-end; */
  justify-content: space-between;
  align-items: center;
  margin-top: 4rem;
}

.reset-btn {
  font-size: 2.4rem;
}

.data-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  padding: 2rem;
  box-sizing: border-box;
  background: #FFF;

}

.data-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;

}

.data-header span {
  display: inline-block;
  line-height: 2rem;
  margin: 0 .2rem;
  color: var(--red-600);
}

.data-header .title {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--primary-900);
}

/* .data-header .note {
  display: flex;
  color: var(--gray-500);
} */

.detail-table {
  width: 100%;
  border: 1px solid var(--gray-300);
  margin-bottom: 2rem;
}

.detail-table caption {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--primary-900);
  text-align: left;
}

.detail-table span {
  margin-right: .2rem;
  color: var(--red-600);
}

.detail-table th,
.detail-table td {
  vertical-align: middle;
  padding: 1.0rem;
  box-sizing: border-box;
  white-space: nowrap;
}

.detail-table th {
  width: 12rem;
  text-align: right;
  vertical-align: middle;
  color: var(--primary-900);
  background: var(--primary-100);
  border-bottom: 1px solid var(--primary-300);
}

.detail-table td {
  color: var(--gray-500);
  background: #FFF;
  border-bottom: 1px solid var(--gray-300);
}

.detail-table .thumb-list {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  width: 100%;
}

.detail-table .thumb {
  display: inline-block;
  width: 15rem;
  padding: 0.5rem;
}

.detail-table .picture {
  width: 100%;
  line-height: 100%;
  vertical-align: middle;
  box-sizing: border-box;

}

.print-table {
  width: 100%;
  background: #FFF;
  border: 2px solid #666;
  color: #000;
}

.print-table caption {
  font-size: 1.8rem;
  font-weight: 500;
  text-align: center;
  padding-bottom: 1rem;
}

.print-table span {
  margin-right: .2rem;
}

.print-table td {
  vertical-align: middle;
  padding: 0.5rem;
  box-sizing: border-box;
  /* white-space: nowrap;   */
  border: 1px solid #999;
}

.car-field {
  display: inline-flex;
  margin: 0 1rem 1rem 0;
}

.close-controller {
  width: 4rem;
}

.close-controller .icon-btn {
  position: absolute;
  top: .4rem;
  right: .4rem;
  color: var(--gray-700);
}

.page-popup,
.page-offcanvas {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, .5);
  z-index: 200;
  overflow: hidden;
}

.page-popup .content {
  position: relative;
  width: 95%;
  height: 95%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 .5rem 1rem .5rem rgba(0, 0, 0, 0.3);
}

.page-offcanvas .content {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  width: 100%;
  height: 0;
  bottom: -2rem;
  /* padding: .8rem; */
  box-sizing: border-box;
  font-size: 1.4rem;
  background: var(--gray-100);
  box-shadow: 0 -0.5rem 1rem .2rem rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  overflow: hidden;
}

.page-offcanvas .show {
  height: calc(100% - 15rem);
  bottom: 0;
}

.page-offcanvas .display {
  height: calc(100% - 2rem);
  bottom: 0;
}

.page-offcanvas .header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
}

.page-offcanvas .search-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 1rem;
  box-sizing: border-box;
}

.page-offcanvas .dataset {
  width: 90%;
  height: calc(100% - 6rem);
  margin-top: 1rem;
  box-sizing: border-box;
  overflow: auto;
}

.page-offcanvas td {
  padding: 1.4rem .6rem;
  cursor: pointer;
}


label {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--gray-700);
}

label:disabled {
  color: var(--gray-400);
  border-color: var(--gray-400);
}

input,
textarea,
select {
  padding: .3rem .2rem;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 100%;
  color: var(--gray-700);
  box-sizing: border-box;
  border-radius: .3rem;
  border: 1px solid var(--gray-400);
}

.search-field input,
.search-field select {
  min-width: 15rem;
}

input:read-only {
  color: var(--primary-800);
}

input:disabled {
  color: var(--gray-400);
}

input::placeholder {
  color: var(--gray-400);
}

input[type="text"],
textarea {
  width: 100%;
}

input.button-mode {
  cursor: pointer;
}

input.button-mode:hover {
  border: 2px solid var(--primary-700);
  padding: .3rem .7rem;
}

input.button-mode:disabled:hover {
  cursor: default;
  padding: .3rem .86rem;
  border: 1px solid var(--gray-400);
}

button {
  display: inline-flex;
  align-items: center;
  font-family: 'Noto Sans TC', Arial, "微軟正黑體", "Microsoft JhengHei", sans-serif;
  box-sizing: border-box;
  cursor: pointer;
}

/* button:not(:disabled),
[type=button]:not(:disabled),
[type=reset]:not(:disabled),
[type=submit]:not(:disabled) {
  cursor: pointer;
} */

button.control-btn {
  display: flex;
  align-items: center;
  min-width: 6rem;
  height: 2.8rem;
  padding: .3rem .6rem;
  font-size: 1.4rem;
  line-height: 2.0rem;
  color: var(--primary-900);
  background-color: var(--primary-100);
  border: 1px solid var(--primary-700);
  border-radius: .3rem;
}

button.control-btn:disabled {
  color: var(--gray-400);
  background-color: var(--gray-100);
  border: 1px solid var(--gray-300);
}

button.control-btn i.bx {
  font-size: 1.6rem;
  line-height: 2.0rem;
  margin-left: -0.2rem;
  margin-right: .3rem;
}

button.icon-btn {
  padding: 0;
  color: var(--gray-500);
  background: none;
  border: none;
}

button.icon-btn:hover {
  color: var(--primary-900);
}

button.icon-btn:disabled {
  color: var(--gray-400);
}

button.icon-btn i.bx {
  font-size: 2rem;
  line-height: 1.6rem;
}

button.title-btn {
  display: flex;
  align-items: center;
  color: var(--primary-900);
  padding: 0;

  background: none;
  border: none;
}

button.title-btn:hover {
  color: var(--Orange-700);
}

button.title-btn:disabled {
  color: var(--gray-400);
}

button.title-btn i.bx {
  font-size: 2rem;
  line-height: 1.6rem;
}

button.pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  font-size: 1.4rem;
  color: var(--gray-600);
  background: none;
  border: none;
}

button.pagination-btn:hover {
  color: #FFF;
  background: var(--primary-200);
}

button.pagination-btn:disabled:hover {
  color: var(--gray-400);
  background: none;
}

button.pagination-btn i.bx {
  font-size: 3rem;
  /* line-height: 2.4rem; */
}

button.in-search {
  margin-left: -2.4rem;
  margin-right: .4rem;
  line-height: .8rem;
  box-sizing: border-box;
}


button.i-20 i.bx {
  font-size: 2rem;
  line-height: 2rem;
}

button.i-24 i.bx {
  font-size: 2.4rem;
  line-height: 2.4rem;
}

button.i-32 i.bx {
  font-size: 3.2rem;
  line-height: 3.2rem;
}

button.orange {
  color: var(--Orange-900);
  border-color: var(--Orange-700);
  background-color: var(--Orange-200);
}

button.green {
  color: var(--green-900);
  border-color: var(--green-700);
  background-color: var(--green-100);
}

button:disabled {
  cursor: default;
  color: var(--gray-400);
}

.flex-row {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.flex-row-wrap {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
}

.flex-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.flex-end {
  justify-content: flex-end;
}

.flex-start {
  justify-content: flex-start;
}

.in-after {
  display: inline-block;
}

.ml-4 {
  margin-left: .4rem;
}

.ml-8 {
  margin-left: .8rem;
}

.ml-16 {
  margin-left: 1.6rem;
}

.mr-r10 {
  margin-right: -1rem;
}

.mr-4 {
  margin-right: .4rem;
}

.mr-8 {
  margin-right: .8rem;
}

.mr-16 {
  margin-right: 1.6rem;
}

.mt-4 {
  margin-top: .4rem;
}

.mt-8 {
  margin-top: .8rem;
}

.mt-16 {
  margin-top: 1.6rem;
}

.mb-4 {
  margin-bottom: .4rem;
}

.mb-8 {
  margin-bottom: .8rem;
}

.mb-16 {
  margin-bottom: 1.6rem;
}

.w-auto {
  width: auto !important;
}

.w-40 {
  width: 4rem !important;
}

.w-50 {
  width: 5rem !important;
}

.w-60 {
  width: 6rem !important;
}

.w-70 {
  width: 7rem !important;
}

.w-80 {
  width: 8rem !important;
}

.w-100 {
  width: 10rem !important;
}

.w-110 {
  width: 11rem !important;
}

.w-120 {
  width: 12rem !important;
}

.w-150 {
  width: 15rem !important;
}

.w-200 {
  width: 20rem !important;
}

.w-260 {
  width: 26rem !important;
}

.w-300 {
  width: 30rem !important;
}

.w-400 {
  width: 40rem !important;
}

.divider_line {
  margin: .6rem 0;
  border-bottom: 1px solid var(--gray-300);
}

.txt-center {
  text-align: center;
}

.txt-left {
  text-align: left;
}

.txt-right {
  text-align: right;
}