@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100;300;400;500;700;900&display=swap");

:root {
  --surface-100: #FFFFFF;
  --surface-200: #F8F8F8;
  --surface-300: #E0E0E0;
  --surface-400: #D0D0D0;
  --surface-500: #7E7E7E;
  --surface-900: #1F1F1F;

  --surface-100-rgb: 255 255 255;

  --navbar-bg: rgb(var(--navbar-bg-color-rgb) / 80%);
  --navbar-title: var(--theme-hover-border);
  --navbar-text: var(--primary-700);
  --search-bar-bg: rgb(var(--search-bar-bg-rgb) / 50%);
  --dg-header-bg: rgb(var(--primary-700-rgb) / 90%);
  --table-header-bg: var(--primary-700);
  --table-tbody-bg: rgb(var(--primary-200-rgb) / 90%);
  --table-th-bg: var(--primary-300);
}

/*login*/
.login-background {
  background: var(--login-bg) no-repeat center center / cover;
  height: 100vh;
}

.login-background .logo {
  text-align: center;
}

.login-background .logo img {
  width: 180px;
  max-width: 180px;
}

.login-background h1 span {
  color: #314263;
  font-size: 46px;
  padding-right: 2px;
  font-family: Arial;
}

.login-background h1 {
  color: #314263;
  margin-top: 4px;
  margin-bottom: 12px;
  font-size: 40px;
  font-style: italic;
}

.login-background .login {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.login-background .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.login-background .form-group {
  padding: 15px 40px;
  width: 340px;
  color: #295083;
}

.login-background form {
  background-color: rgba(243, 247, 254, 0.4);
  margin-top: 25px;
}

.login-background .form-control {
  height: 42px;
  font-weight: 400;
}

.login-background form h2 {
  margin-top: 1.4em;
  margin-bottom: 0.5em;
  text-align: center;
  color: #295083;
  font-weight: 400;
}

.login-background .form-group .group {
  margin-bottom: 50px;
}

.login-background .form-group label {
  line-height: 1.5;
}

.login-background .form-group input {
  width: 100%;
  border: none;
  padding-left: 15px;
  border-radius: 0;
}

.login-background ::placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #4c596f;
  opacity: 1;
  /* Firefox */
}

.login-background :-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: #4c596f;
}

.login-background ::-ms-input-placeholder {
  /* Microsoft Edge */
  color: #4c596f;
}

.login-background .form-check {
  padding-left: 40px;
  padding-top: 6px;
}

.login-background .form-check input[type="checkbox"] {
  border-radius: 0;
}

.login-background .form-check input[type="checkbox"]:focus {
  outline: none;
}

.login-background .form-check-label {
  margin-bottom: 20px;
  color: #4c596f;
  font-size: 16px;
  font-weight: 400;
}

.login-background .btn-group {
  width: 100%;
  padding-bottom: 3.4em;
  text-align: center;
  padding-left: 40px;
  padding-right: 40px;
}

.login-background form .btn {
  width: 100%;
  color: #e8f2fa;
  font-size: 18px;
  border: none;
  background: rgb(40, 93, 139);
  background: -moz-linear-gradient(left, rgba(40, 93, 139, 1) 0%, rgba(63, 127, 187, 1) 100%);
  /* FF3.6-15 */
  background: -webkit-linear-gradient(left, rgba(40, 93, 139, 1) 0%, rgba(63, 127, 187, 1) 100%);
  /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(to right, rgba(40, 93, 139, 1) 0%, rgba(63, 127, 187, 1) 100%);
  /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#285d8b', endColorstr='#3f7fbb', GradientType=1);
  /* IE6-9 */
  border-radius: 0;
  font-weight: 400;
  padding: 8px 0;
}

.login-background form .btn:hover {
  background: rgb(16, 74, 112);
  background: -moz-linear-gradient(left, rgba(16, 74, 112, 1) 0%, rgba(51, 111, 168, 1) 100%);
  /* FF3.6-15 */
  background: -webkit-linear-gradient(left, rgba(16, 74, 112, 1) 0%, rgba(51, 111, 168, 1) 100%);
  /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(to right, rgba(16, 74, 112, 1) 0%, rgba(51, 111, 168, 1) 100%);
  /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#104a70', endColorstr='#336fa8', GradientType=1);
  /* IE6-9 */
}

.login-background form .btn:focus {
  border-radius: 0;
  border: none;
  outline: none;
}

@media (max-width: 320px) {
  .login-background .logo img {
    width: 150px;
  }

  .login-background h1 {
    font-size: 30px;
  }

  .login-background .logo span {
    font-size: 33px;
  }

  .login-background form {
    margin-top: 15px;
  }

  .login-background .form-group {
    width: 290px;
    padding: 15px 25px;
  }

  .login-background .btn-group {
    padding-left: 25px;
    padding-right: 25px;
  }

  .login-background .form-check {
    padding-left: 25px;
  }
}

/*login*/


/* well */
body {
  font-family: "Siemens Sans Roman", "Noto Sans TC", sans-serif;
  background: var(--body-bg) no-repeat center center / cover;
}

.well {
  height: auto !important;
}

.navbar .navbar-header {
  display: flex;
  align-items: center;
}

.navbar .navbar-header .navbar-brand {
  width: 100px;
  height: auto;
  padding: 0 0 0 20px;
}

.navbar .navbar-header .navbar-brand img {
  width: 100%;
}

.body-content {
  margin-bottom: 60px;
}

.body-content .page-title {
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 2.88em;
  line-height: 52px;
  color: #2d373c;
}

.body-content .well {
  padding: 30px 30px 30px 0;
  border: 0;
  background-color: var(--search-bar-bg);
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 0;
}

.body-content .well hr {
  border: 0;
  clear: both;
  display: block;
  width: 100%;
  background-color: #cdd9e1;
  height: 1px;
  margin: 0 0 30px 0;
}

.body-content .well .form-group {
  color: #788791;
  font-size: 14px;
  width: 100%;
}

.body-content .well .form-group div {
  padding-right: 0;
  white-space: nowrap;
}

.body-content .well .form-group label {
  color: #2d373c;
  text-align: right;
  padding-top: 2px;
}

.body-content .well .form-group .form-control {
  width: 100%;
  margin-bottom: 20px;
}

.form-control[disabled],
.form-control[readonly] {
  background-color: var(--surface-300);
}

.body-content table {
  text-align: center;
}

.body-content table thead tr {
  background-color: #dfe6ed;
}

.body-content table thead tr th {
  text-align: center;
}

.body-content table thead tr .th-min {
  width: 12%;
}

.body-content table thead tr .th-first {
  width: 15%;
}

.body-content table thead tr .th-second {
  width: 35%;
}

.body-content table thead tr .th-25 {
  width: 25%;
}

.body-content table tbody tr th {
  background-color: var(--table-th-bg);
  border: 1px solid #a0b1c1;
  text-align: center;
}

table h3 {
  color: var(--primary-600);
  margin: 0;
  font-size: 23px;
}

.body-content .btn:disabled {
  opacity: 0.3;
}

.body-content .btn:disabled:hover {
  background-color: var(--btn-bg);
  color: var(--btn-bg-hover);
  border: solid 2px var(--btn-border);
}

.body-content .btn-main {
  font-size: 19px;
  line-height: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 6px 15px;
  color: #f1a54b;
  border: solid 2px #f1a54b;
  text-align: center;
  margin-right: 10px;
  text-decoration: none;
  border-radius: 0;
}

.body-content .btn-main:hover {
  background-color: #cf8e42;
  color: #ffffff;
  border: solid 2px #cf8e42;
}

.body-content .btn-sub {
  font-size: 19px;
  line-height: 20px;
  background-color: #f1a54b;
  padding: 6px 15px;
  color: #ffffff;
  border: solid 2px #f1a54b;
  text-align: center;
  text-decoration: none;
  border-radius: 0;
  margin-right: 10px;
}

.body-content .btn-sub:hover {
  background-color: #cf8e42;
  color: #ffffff;
  border: solid 2px #cf8e42;
}

.body-content .btn-third {
  font-size: 19px;
  line-height: 20px;
  background-color: #8f8b87;
  padding: 6px 15px;
  color: #fff;
  border: solid 2px #8f8b87;
  text-align: center;
  text-decoration: none;
  border-radius: 0;
  margin-right: 10px;
}

.body-content .btn-third:hover {
  background-color: #777471;
  border: solid 2px #777471;
}

.btn.isEnabled {
  font-size: 16px;
  line-height: 20px;
  background-color: #f9efef;
  padding: 5px 8px;
  color: #db4c42;
  border: solid 2px #db4c42;
  text-align: center;
  margin: 4px;
  text-decoration: none;
}

.btn.isEnabled:hover {
  background-color: #d3574f;
  border: solid 2px #6d2621;
  color: #fff;
}

.body-content .btn-ingrid {
  font-size: 16px;
  line-height: 20px;
  background-color: var(--btn-bg);
  padding: 5px 8px;
  color: var(--btn-bg-hover);
  border: solid 2px var(--btn-border);
  text-align: center;
  margin: 4px;
  text-decoration: none;
}

.body-content .btn-ingrid:hover {
  background-color: var(--btn-bg-hover);
  border: solid 2px var(--btn-border-hover);
  color: #fff;
}

.body-content .panel {
  margin: 40px 0 0 0;
  border-radius: 0;
}

.body-content .datagrid table tbody tr td a {
  font-weight: 500;
  font-size: 18px;
  line-height: 20px;
  padding: 6px 15px;
  color: #2387aa;
  text-align: center;
  text-decoration: none;
  border-radius: 0;
  margin: 0;
  cursor: pointer;
}

.body-content .datagrid table tbody tr td a:hover {
  color: #005578;
  text-decoration: underline;
  border: none;
  background-color: rgba(256, 256, 256, 0.2);
  padding-bottom: 10px;
  padding-top: 5px;
}

.body-content .alert-danger {
  text-align: center;
}

.body-content .custom-container .table>thead:first-child>tr:first-child>th {
  color: #fff;
  background-color: var(--table-header-bg);
}

.datagrid-header .datagrid-cell {
  height: auto !important;
}

@media (min-width: 320px) {
  .custom-container {
    width: 92.5%;
    margin-right: auto;
    margin-left: auto;
  }

  .body-content .well {
    padding: 30px;
  }
}

@media (min-width: 400px) {
  .custom-container {
    width: 92.5%;
    margin-right: auto;
    margin-left: auto;
  }
}

@media (min-width: 768px) {
  .custom-container {
    width: 700px;
    margin-right: auto;
    margin-left: auto;
  }

  .navbar-collapse ul {
    width: auto;
  }
}

@media (min-width: 992px) {
  .custom-container {
    width: 700px;
    margin-right: auto;
    margin-left: auto;
  }

  body .body-content .well .form-group label {
    font-size: 16px;
  }
}

@media (min-width: 1200px) {
  .custom-container {
    width: 700px;
    margin-right: auto;
    margin-left: auto;
  }
}

@media (min-width: 1400px) {
  .custom-container {
    width: 700px;
    margin-right: auto;
    margin-left: auto;
  }
}

body {
  font-family: "Noto Sans TC", sans-serif;

}

.nav li {
  text-align: center !important;
}

body .navbar {
  font-size: 16px !important;
  background-color: var(--navbar-bg);
  border-radius: 0 !important;
  padding: 0px;
  z-index: 10000;
}

body .navbar .navbar-header .navbar-brand .mirle-logo {
  height: 36px;
}

body .navbar .navbar-header .navbar-text {
  font-weight: 500;
  color: var(--navbar-title);
  font-size: 20px;
  line-height: 25px;
  padding: 15px;
  margin: 0;
}

body .navbar .navbar-nav li a {
  font-weight: 500;
  color: var(--navbar-text);
  padding: 15px 10px 10px 10px;
  line-height: 25px;
  border-bottom: 5px solid rgba(243, 247, 254, 0.1);
}

body .navbar .navbar-nav li a:hover {
  color: #c5883f;
  border-bottom: 5px solid #dfb329;
  background-color: transparent;
}

body .navbar .navbar-nav li a:focus {
  color: #c5883f;
  border-bottom: 5px solid #dfb329;
  background-color: transparent;
}

body .navbar .navbar-nav .dropdown-menu {
  border-radius: 0px;
  border: 0px;
  background-color: rgba(256, 256, 256, 0.95);
}

body .navbar .navbar-nav .dropdown-menu li a {
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
  color: var(--navbar-text);
  padding: 4px 26px;
  border-bottom: none;
}

body .navbar .navbar-nav .dropdown-menu li a:hover {
  text-decoration: none;
  border-bottom: none;
  background-color: #cfe1f5;
}

body .navbar-toggle {
  background-color: #eaa048;
  border: 1px solid #eaa048;
  border-radius: 0;
  margin-left: auto;
}

body .navbar-toggle .icon-bar {
  background-color: #fff;
}

body .container {
  width: 92.5%;
  padding: 0 !important;
}

body .body-content .page-title {
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 48px;
  line-height: 54px;
  color: white;
  text-align: center;
}

body .body-content .well .form-group label {
  color: white;
  font-size: 18px;
  font-weight: 400;
}

body .no-print {
  color: #ebebeb;
  font-size: 18px;
}

.datagrid-header td.datagrid-header-over {
  background: var(--btn-border-hover) !important;
}

.datagrid-header-row td:hover {
  background-color: #0e3650;
}

.table-hover tbody {
  background-color: #b7c7d8;
}

.top-well {
  margin-bottom: 30px !important;
}

.check-box {
  background-color: #0e3650;
}

.form-control-mb0 {
  margin-bottom: 0 !important;
}

.body-content .panel .datagrid-toolbar,
.body-content .panel .datagrid-pager,
.body-content .panel .datagrid-header-inner {
  background-color: var(--dg-header-bg);
  border-radius: 0;
}

@media (min-width: 992px) {
  body .body-content .well .form-group label {
    font-size: 16px;
  }
}

@media (min-width: 1660px) {
  .body-content .well {
    padding: 30px 30px 30px 0px;
  }

  body .body-content .well .form-group label {
    font-size: 18px;
  }
}

.fix_info {
  overflow: auto;
}

.fix_info .table-hover tbody {
  background-color: var(--table-tbody-bg);
  border: 1px solid #a0b1c1;
}

.fix_info .table-hover tbody tr:hover {
  background-color: #c3d0dc;
}

.fix_info .table-bordered tbody tr td,
.fix_info .table thead th,
.fix_info .table-bordered {
  border: 1px solid #a0b1c1;
}

.fix_info .table-hover a:hover {
  text-decoration: none;
}

.fix_info table {
  table-layout: auto;
}


/*�@�����*/
.repairModal {
  z-index: 10001;
}

.repairModal .modal-title {
  font-size: 2.4rem;
  text-align: center;
}

.repairModal .modal-header {
  background: #e9f2fc;
}

.repairModal .modal-dialog {
  margin-top: 8rem;
  max-width: 500px;
}

.repairModal .modal-body .d-flex {
  display: flex;
  border-bottom: 1px dashed #cfd7e0;
  padding: 5px 0;
  flex-wrap: wrap;
}

.repairModal .modal-body label,
.repairModal .modal-body span {
  font-size: 18px;
}

@media (max-width: 979px) {
  .dropdown-menu {
    position: static;
    float: none;
    width: 100% !important;
  }
}

body .btn:focus,
body .btn:active:focus {
  outline: none;
}

body .btn:active {
  box-shadow: none;
}

/* worker_setting */
.worker_setting {
  margin-top: 25px;
}

.worker_info .well {
  background-color: rgba(56, 74, 111, 0.7);
}

.body-content .worker_setting .well {
  border: 1px solid #fff;
  margin-bottom: 4rem;
  max-width: 1200px;
  padding: 30px;
}

.worker_setting,
.worker_info {
  width: 100%;
}


/*群組管理checkbox*/
.group-permission .well {
  padding: 30px;
}

.group-permission .g-setting {
  border: 1px solid #fff;
  margin-bottom: 30px;
}

.group-permission .g-setting .list-group {
  background-color: rgba(76, 109, 156, 0.6);
  margin-bottom: 0;
}

.group-permission .g-setting .form-check {
  padding: 14px;
}

.body-content .group-permission .well .form-group .form-control {
  width: auto;
  display: inline-block;
}

/* 權限管理 */
.building-header {
  padding: 0.75rem 1.25rem 0.75rem 1.25rem;
  margin-bottom: 0;
  color: #000;
  background-color: rgba(76, 109, 159, 0.6);
  border-bottom: 1px solid rgba(149, 184, 231, 0.3);
}

.upload-btn .building-header {
  border: none;
  background-color: transparent;
  padding: 0;
  margin-bottom: 2rem;
}

.space-header {
  padding: 0.75rem 1.25rem 0.75rem 3.5rem;
  margin-bottom: 0;
  background-color: rgba(112, 144, 193, 0.5);
  border-bottom: 1px solid rgba(149, 184, 231, 0.3);
}

.body-content .accordion table {
  text-align: left;
}

.body-content .accordion table tbody tr td {
  padding-left: 5.75rem;
  border-bottom: 1px solid rgba(160, 187, 224, 0.3);
  border-top: none;
}

.body-content .accordion .table-hover tbody {
  background-color: rgba(174, 198, 230, 0.4);
}

.accordion {
  margin-bottom: 1rem;
  background-color: transparent;
  border-color: #bfddff;
}

.body-content .setList {
  border: 1px solid #7993b7;
}

.body-content .setList ul {
  background-color: #f7faff;
  padding: 0px;
  margin-bottom: 0px;
  border-bottom: 1px solid #7993b7;
}

.body-content .setList ul h5 {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  padding: 12px;
  color: #2c4f81;
  background-color: #d6e4f7;
}

.body-content .setList ul li {
  background-color: white;
  color: #333;
  font-size: 15px;
  padding: 5px 10px;
  list-style: none;
  border-top: 1px dashed #c4d0e0;
  white-space: pre-wrap;
}

.table-hover>tbody>tr:hover {
  background-color: transparent;
}

/* 上傳審核 */
.well .form .uploadModel .file {
  position: relative;
  display: inline-block;
  text-decoration: none;
  overflow: hidden;
  text-indent: 0;
  cursor: pointer;
}

.well .form .uploadModel .file input {
  position: absolute;
  font-size: 50px;
  right: 0;
  top: 0;
  opacity: 0;
  cursor: pointer;
}

.well .form .uploadModel .clean {
  color: #fff;
  padding: 5px 10px;
  background-color: #0000007d;
  font-size: 12px;
  border-radius: 20px;
  margin-left: 1rem;
}

.well .form .uploadModel .uploadImage {
  margin-top: 10px;
}

.well .form .uploadModel .uploadImage img {
  max-width: 300px;
}

.well .form .uploadModel .uploadImage ul {
  list-style: none;
  padding: 0px;
  display: flex;
  flex-wrap: wrap;
}

.well .form .uploadModel .uploadImage ul li {
  padding-bottom: 10px;
  margin-right: 25px;
  margin-top: 25px;
  position: relative;
}

.well form .uploadModel .uploadImage .clean {
  color: #fff;
  padding: 5px 10px;
  background-color: #9f3b23;
  font-size: 12px;
  border-radius: 20px;
  margin-left: 1rem;
  position: absolute;
  right: -15px;
  top: -15px;
  border: none;
}

.uploadModel .uploadImage .clean:focus {
  border: none;
  outline: none;
}

/* bell */
.eventBellContainer {
  position: absolute;
  right: 15px;
}

.eventBell {
  width: 32px;
  height: 30px;
  margin: 10px;
  cursor: pointer;
}

.eventBell .eventCount {
  display: block;
  position: absolute;
  text-align: center;
  min-width: 20px;
  padding: 0 4px 3px 3px;
  background-color: red;
  line-height: 17px;
  border-radius: 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  top: 10%;
  left: 57%;
}

.eventBell .event-info {
  display: none;
  position: absolute;
  z-index: 3000;
  max-height: 400px;
  overflow-y: auto;
  list-style: none;
  left: -254px;
  padding: 0px;
  font-size: 18px;
  width: 300px;
  font-weight: 500;
  border-radius: 5px 0px 5px 5px;
  color: #0a3e7c;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  background-color: #a9c5ef;
  background: linear-gradient(135deg, #c5d5ff -6%, #e7eefd 83%);
}

.eventBell .event-info li {
  padding: 10px 15px;
  border-bottom: dotted #4f7a93 1px;
}

.eventBell .event-info .subColor {
  font-size: 16px;
  color: #607190;
  font-weight: 400;
}

.eventBell .event-info .Title {
  display: inline-block;
  padding-top: 5px;
  color: #262660;
  font-size: 19px;
}

@media (max-width: 992px) {
  .eventBellContainer {
    right: 80px;
  }
}

@media (max-width: 390px) {
  body .navbar .navbar-header .navbar-text {
    display: none;
  }
}

/* navbar修正 */
@media (min-width: 1031px) {
  .navbar-right {
    margin-right: 0px;
  }
}

/* tailwind 寫法 (避免與之前class衝突) */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.w-full {
  width: 100%;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.hidden {
  display: none;
}