@charset "UTF-8";
/* 全域設定 */
body {
  /*font-family: 'Open Sans', sans-serif;*/
  font-family: "微軟正黑體", "Open Sans", "sans-serif";
  display: none; /* 初始隱藏 body */
}

h3 {
  font-family: "Microsoft JhengHei", "微軟正黑體", "Open Sans", "sans-serif";
  font-weight: 800;
}

h4 {
  font-family: "Microsoft JhengHei", "微軟正黑體", "Open Sans", "sans-serif";
  font-weight: 600;
}

a {
  color: inherit;
  text-decoration: none;
  background-color: transparent;
}

.nav-link:hover {
  background-color: lightgray;
}

/* 使表頭（thead）和表身（tbody）中的所有單元格（td）和表頭單元（th）文字水平居中 */
Table th,
Table td {
  text-align: center;
}

/* 使表頭（thead）和表身（tbody）中的所有單元格（td）和表頭單元（th）文字垂直居中 */
Table th,
Table td {
  vertical-align: middle;
}

/* ------------------------ */
/* footer */
.footer {
  position: fixed;
  background-color: #fff;
  width: 100%;
  bottom: 0px;
  text-align: center;
}

.footer .swiper-next {
  position: fixed;
  width: 40px;
  height: 51px;
  left: 0px;
  bottom: 0px;
  color: #fff;
  background-color: #207cca;
  border-radius: 0;
  cursor: pointer;
}

.footer .swiper-next .fa {
  font-size: 30px;
  padding-top: 12px;
  margin-right: 5px;
}

.footer .swiper-prev {
  position: fixed;
  width: 40px;
  height: 51px;
  right: 0px;
  bottom: 0px;
  color: #fff;
  background-color: #207cca;
  border-radius: 0;
  cursor: pointer;
}

.footer .swiper-prev .fa {
  font-size: 30px;
  padding-top: 12px;
  margin-left: 5px;
}

.footer .swiper-wrapper::-webkit-scrollbar {
  display: none;
}

.footer .swiper-wrapper {
  display: -moz-flex;
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  padding: 0;
  list-style: none;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  margin-left: 48px;
  margin-right: 45px;
  overflow: auto;
  overflow-y: hidden;
}

.footer .swiper-wrapper > .btn:first-child:not(:last-child):not(.dropdown-toggle) {
  border-radius: 0;
}

.footer .swiper-wrapper > .btn:last-child:not(:first-child),
.btn-group > .dropdown-toggle:not(:first-child) {
  border-radius: 0;
}

.footer .swiper-wrapper a {
  color: #fff;
  font-family: "Microsoft JhengHei", "微軟正黑體", "Open Sans", "sans-serif";
  font-weight: bold;
  font-size: 22px;
  width: 300px;
  margin-right: 3px;
}

.footer .swiper-wrapper .btn-primary {
  color: #fff;
  background-color: #207cca;
  border-color: #207cca;
}

.footer .swiper-wrapper .btn-primary.active {
  color: #fff;
  background-color: #29b8e5;
  border-color: #29b8e5;
  width: 100vw;
}

/* ------------------------ */
/* header */
.header-height {
  height: 81px;
}

.header-width {
  width: 99vw;
}

.alert-success {
  margin: 0;
}

.img-height {
  max-height: 65px;
}

/* ------------------------ */
.align-self-stretch {
  align-self: stretch;
}

/* 彈跳視窗 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 375px;
  height: 100%;
  /* background-color: rgba(0, 0, 0, 0.4); */
  z-index: 9999;
}

.modal-content {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  padding: 16px;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 30px;
  cursor: pointer;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9998;
}

.invisible {
  visibility: hidden;
}

/* ------------------------ */
/* 預設邊界線 */
.asdf {
  border: 1px solid green;
}

/* ------------------------ */
/* 病房統計 */
/* 小於 992 開始 */
.lg-down {
  /* height: 82.83vh; */
}

/* 上下欄高度 */
.up-down-column {
  height: 6.7vh;
}

/* 圓餅圖高度 */
.pie-chart-height {
  height: 34.41vh;
}

/* 長條圖高度 */
.bar-chart-height {
  height: 69vh;
}

/* 左右欄高度 */
.right-left-high {
  height: 150px;
}

/* 小於 992 結束 */
/* 大於 992 開始 */
.lg-up {
  /* height: 73.86vh; */
}

/* 上下欄高度 */
.up-down-column-lg {
  height: 6.7vh;
}

/* 圓餅圖高度 */
.pie-chart-height-lg {
  height: 29.88vh;
}

/* 長條圖高度 */
.bar-chart-height-lg {
  height: 60vh;
}

/* 左右欄高度 */
.right-left-high-lg {
  height: 150px;
}

/* 大於 992 結束  */
/* 圍繞標籤顏色 */
/* .occupied-bed {
  border: 5px solid black;
  border-radius: 10px;
}
.total-bed {
  border: 5px solid teal;
  border-radius: 10px;
}
.empty-bed {
  border: 5px solid grey;
  border-radius: 10px;
}
.male-patient {
  border: 5px solid blue;
  border-radius: 10px;
}
.female-patient {
  border: 5px solid red;
  border-radius: 10px;
}
.ndr-patient {
  border: 5px solid magenta;
  border-radius: 10px;
}
.total-patient {
  border: 5px solid gold;
  border-radius: 10px;
}
.examination {
  border: 5px solid yellow;
  border-radius: 10px;
}
.surgery {
  border: 5px solid pink;
  border-radius: 10px;
}
.dialysis {
  border: 5px solid brown;
  border-radius: 10px;
}
.intubation {
  border: 5px solid cyan;
  border-radius: 10px;
}
.high-fall-risk {
  border: 5px solid green;
  border-radius: 10px;
}
.restraint {
  border: 5px solid purple;
  border-radius: 10px;
}
.isolation {
  border: 5px solid orange;
  border-radius: 10px;
} */
.occupied-bed {
  border: 5px solid #007bff;
  border-radius: 10px;
}

.total-bed {
  border: 5px solid #007bff;
  border-radius: 10px;
}

.empty-bed {
  border: 5px solid #007bff;
  border-radius: 10px;
}

.male-patient {
  border: 5px solid #007bff;
  border-radius: 10px;
}

.female-patient {
  border: 5px solid #007bff;
  border-radius: 10px;
}

.ndr-patient {
  border: 5px solid #007bff;
  border-radius: 10px;
}

.total-patient {
  border: 5px solid #007bff;
  border-radius: 10px;
}

.examination {
  border: 5px solid #007bff;
  border-radius: 10px;
}

.surgery {
  border: 5px solid #007bff;
  border-radius: 10px;
}

.dialysis {
  border: 5px solid #007bff;
  border-radius: 10px;
}

/* .intubation {
  border: 5px solid #007bff;
  border-radius: 10px;
} */
.high-fall-risk {
  border: 5px solid #007bff;
  border-radius: 10px;
}

.restraint {
  border: 5px solid #007bff;
  border-radius: 10px;
}

/* .isolation {
  border: 5px solid #007bff;
  border-radius: 10px;
} */
/* ------------------------ */
/* 病床資訊 */
.summary-info {
  background-color: #fff;
  border: 2px solid #e9e9e9;
  height: 46.5px;
}

.group-text {
  margin: auto 0;
}

.group {
  border-top: 3px solid #007bff;
}

.fire-marshaling {
  background-color: #fff;
  border: 2px solid #e9e9e9;
  height: 70px;
}

/* 當螢幕寬度小於1200像素時的樣式 */
@media (max-width: 1200px) {
  .fire-marshaling {
    height: 77.5px;
  }
}
.img-cover {
  display: inline-block;
  object-fit: contain;
  width: 40%;
}

.card-icon {
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bg2 {
  background: #e9e9e9;
}

.patient-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, 185px); /* 根據 .bed 的寬度來設定 */
  justify-content: space-around;
}

.bed {
  width: 185px; /* 或其他您想要的寬度 */
  height: 185px; /* 或其他您想要的高度 */
  background: #fff;
  margin-bottom: 1px;
  border: 1px solid #e9e9e9;
  border-radius: 7px;
  position: relative;
}

.bed:hover {
  cursor: pointer;
}

/* 當寬度小於或等於 992px */
@media (max-width: 992px) {
  .patient-container {
    grid-template-columns: repeat(auto-fill, 31vw); /* 改變寬度 */
  }
  .bed {
    width: 31vw; /* 改變寬度 */
  }
}
/* 當寬度小於或等於 577px */
@media (max-width: 625px) {
  .patient-container {
    grid-template-columns: repeat(auto-fill, 100%);
  }
  .bed {
    width: 100%; /* 改變寬度 */
    margin-bottom: 10px;
  }
}
.ward-bed-empty {
  display: flex;
  justify-content: center;
  text-align: center;
  border: 3px solid rgba(0, 204, 255, 0);
  border-radius: 7px 7px 0 0;
  background-color: rgba(193, 194, 194, 0.8352941176);
  color: #fff;
}

.ward-bed-male {
  display: flex;
  justify-content: center;
  text-align: center;
  border: 3px solid rgba(0, 204, 255, 0);
  border-radius: 7px 7px 0 0;
  background-color: rgba(29, 176, 212, 0.8352941176);
  color: #fff;
}

.ward-bed-female {
  display: flex;
  justify-content: center;
  text-align: center;
  border: 3px solid rgba(0, 204, 255, 0);
  border-radius: 7px 7px 0 0;
  background-color: rgba(254, 33, 88, 0.5215686275);
  color: #fff;
}

.age-empty {
  border-radius: 5px;
  background-color: #9b9b9b;
  border: 1px solid rgba(4, 45, 158, 0.0352941176);
}

.age-male {
  border-radius: 5px;
  background-color: #007bff;
  border: 1px solid rgba(4, 45, 158, 0.0352941176);
}

.age-female {
  border-radius: 5px;
  background-color: rgba(255, 0, 8, 0.7019607843);
  border: 1px solid rgba(4, 45, 158, 0.0352941176);
}

.header-color-empty {
  background-color: rgba(193, 194, 194, 0.8352941176);
}

.header-color-male {
  background-color: rgba(29, 176, 212, 0.8352941176);
}

.header-color-female {
  background-color: rgba(254, 33, 88, 0.5215686275);
}

.details {
  padding: 0 0 0 5px;
  text-align: left;
}

.details p {
  margin: 0px;
}

.details p samp {
  font-size: 25px; /* 中文 */
}

.label {
  background-color: rgba(2, 159, 10, 0.6509803922);
  width: 31px;
  height: 31px;
  color: #fff;
  margin: 0 1px 0 0;
  border-radius: 5px;
  padding: 0 1px 0 0;
}

.label-2 {
  background-color: rgba(2, 159, 10, 0.6509803922);
  width: 45px;
  height: 45px;
  color: #fff;
  margin: 0 1px 0 0;
  border-radius: 5px;
  padding: 0 1px 0 0;
}

.patient-details {
  width: 100vw;
  /* height: 100%; */
  transform: translateX(-50%);
  margin-inline: 50%;
}

.red-dot {
  background-color: red;
  width: 10px;
  height: 10px;
  border-radius: 50px;
  position: absolute;
  top: 10px;
  left: 6px;
}

.nav-link:hover {
  color: rgb(0, 0, 0);
}

.nav-link {
  color: rgb(0, 0, 0);
}

/* 空床 */
.nav-link.empty-bed.active {
  background-color: grey;
  color: white;
}

/* 男性 */
.nav-link.male.active {
  background-color: blue;
  color: white;
}

/* 女性 */
.nav-link.female.active {
  background-color: red;
  color: white;
}

/* 護理站 */
.card {
  display: block;
  background: #ffffff;
  /* color: #30506c; */
  border-radius: 0px;
  height: 20vh;
  cursor: pointer;
  transition: background 0.3s ease-in-out, color 0.3s ease-in-out; /* 添加此行 */
}

.card:hover,
.card:focus {
  color: #ffffff;
  background: #1977cc;
}

.text-color {
  color: #30506c;
}

.logout-button {
  position: fixed; /* 固定位置 */
  right: 5%; /* 距離右側邊界10px */
  bottom: 10%; /* 初始設定在頁面垂直中間 */
  transform: translateY(-60%); /* 使用轉換向上移動按鈕的一半高度，以精確定位到中間 */
  z-index: 1000; /* 確保按鈕在最上層 */
}

.floating-button {
  display: grid;
  font-family: monospace;
  width: 50px;
}

.btn-epic {
  border: 1px solid gray;
  position: relative;
  margin: auto;
  border-radius: 50px;
  width: 50px;
  height: 50px;
  background: #fff;
  transform: translate3d(0px, 0%, 0px);
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.05em;
  transition-delay: 0.6s;
  overflow: hidden;
}

.btn-epic:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #29b8e5;
  /* background: #1977cc; */
  border-radius: 50% 50% 0 0;
  transform: translateY(100%) scaleY(0.5);
  transition: all 0.6s ease;
}

.btn-epic:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #1977cc;
  /* background: #fff; */
  border-radius: 0;
  transform: translateY(0) scaleY(1);
  transition: all 0.6s ease;
}

.btn-epic div {
  position: relative;
  top: 8px;
  left: 2px;
  width: 100%;
  height: 50px;
  text-transform: uppercase;
  overflow: hidden;
}

.btn-epic span {
  position: absolute;
  z-index: 1;
  top: 0;
  width: 100%;
  text-align: center;
  transition: transform 0.5s ease;
}

.btn-epic span:first-child {
  color: #fff;
  transform: translateY(50px);
}

.btn-epic span:last-child {
  color: #fff;
  transform: translateY(0);
}

.btn-epic:hover {
  background: #29b8e5;
  transition: background 0.2s linear;
  transition-delay: 0.6s;
}

.btn-epic:hover:after {
  border-radius: 0 0 50% 50%;
  transform: translateY(-100%) scaleY(0.5);
  transition-delay: 0;
}

.btn-epic:hover:before {
  border-radius: 0;
  transform: translateY(0) scaleY(1);
  transition-delay: 0;
}

.btn-epic:hover span:first-child {
  transform: translateY(0);
}

.btn-epic:hover span:last-child {
  transform: translateY(-50px);
}

.modal-height {
  height: 600px;
}

/* ------------------------ */
/* 團隊照護 */
.green-border {
  border: 1px solid green;
  padding: 2px 5px;
  margin: 2px;
  display: inline-block; /* 確保每個框框都會換行顯示 */
}

/* ------------------------ */
.marquee {
  width: 100%; /* 設定容器寬度 */
  overflow: hidden; /* 隱藏超出容器的內容 */
  white-space: nowrap; /* 使內容在一行顯示 */
  border: 1px solid #a3cfbb;
  border-radius: 0.375rem;
  background: #d1e7dd;
}

.marquee-content {
  display: inline-block;
  padding-left: 100%; /* 開始時將內容移出視圖範圍 */
  animation: marquee 20s linear infinite; /* 動畫: 名稱 持續時間 動畫方式 重複次數 */
  padding-top: 18px;
  padding-bottom: 20px;
}

.announcement {
  font-size: 22px;
  font-weight: bold;
  color: #0a3622;
}

/* 定義動畫 */
@keyframes marquee {
  from {
    transform: translateX(10%);
  }
  to {
    transform: translateX(-100%);
  }
}
.responsive-text {
  font-size: 15.5px; /* 預設字體大小 */
}

/* 當視窗寬度大於 1247 */
@media screen and (min-width: 1247px) {
  .responsive-text {
    font-size: 20px;
  }
}
.flex-container {
  display: flex;
  justify-content: space-evenly;
}

.block-to-move {
  margin-top: 12px;
  position: relative;
  padding: 0 12px;
}

@media (min-width: 992px) {
  .block-to-move {
    margin-top: 0px;
    position: fixed;
    top: 4px;
    right: 0px;
    z-index: 1031;
    width: 33.5%;
  }
}
@media (max-width: 992px) {
  .firefighting {
    margin-top: 12px;
  }
  .statistics {
    margin-top: 15px;
  }
}