@charset "UTF-8";
.text-olive {
  color: #8e8e36 !important;
}

body {
  background-color: #fff;
}

.bg-primary {
  background-color: #3a8489 !important;
}

.text-primary {
  color: #3a8489 !important;
}

.text-dark {
  color: #212529 !important;
}

.nav-link {
  color: #212529;
}
.nav-link:hover, .nav-link:focus, .nav-link.active {
  color: #3a8489;
  font-weight: bold;
}

.offcanvas {
  --bs-offcanvas-width: 280px;
}

.z-index--1 {
  z-index: -1;
}

.p-relative {
  position: relative;
}

.p-absolute {
  position: absolute;
}

.p-img-right {
  right: 0px;
  top: 0px;
}

.p-img-left {
  left: 0px;
  top: 530px;
}

.department-group-title {
  color: #f8f9fa;
  font-size: 1.2rem;
  background-color: #3a8489;
  border-radius: 10px 3px 10px 3px;
}

.department-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.8rem;
  background-color: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 20px 5px 20px 5px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #212529;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.department-card i {
  font-size: 1.1rem;
  color: #fff;
  transition: all 0.2s ease-in-out;
  border-radius: 16px 0px 16px 0px;
  background-color: #3a8489;
}
.department-card svg {
  font-size: 1.1rem;
  color: #fff;
  transition: all 0.2s ease-in-out;
  border-radius: 16px 0px 16px 0px;
  background-color: #3a8489;
}
.department-card:hover, .department-card:focus, .department-card.active {
  background-color: #e5f2f2;
  border-color: #3a8489;
  color: #3a8489;
  font-weight: 550;
}
.department-card:hover i, .department-card:focus i, .department-card.active i {
  color: #e5f2f2;
}
@media (max-width: 991.98px) {
  .department-card {
    font-size: 0.9rem;
    padding: 8px 10px;
    border-radius: 16px 6px 16px 6px;
  }
  .department-card i {
    font-size: 0.6rem;
    border-radius: 10px 0px 10px 0px;
  }
  .department-card svg {
    font-size: 0.6rem;
    border-radius: 10px 0px 10px 0px;
    width: 18px;
    height: 21px;
  }
}

.row-cols-2 .col {
  display: flex;
}

.nav-pills {
  border-radius: 0;
}
.nav-pills .nav-item .nav-link {
  color: #212529;
  background-color: #f8f9fa;
  border-radius: 0;
  border: none;
}
.nav-pills .nav-item .nav-link.active {
  color: #3a8489;
  background-color: #fff;
  position: relative;
  font-weight: bold;
}
.nav-pills .nav-item .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: #3a8489;
}

.tab-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tab-wrapper::-webkit-scrollbar {
  display: none;
}
.tab-wrapper .nav-pills {
  flex-wrap: nowrap;
}
.tab-wrapper .nav-pills .nav-item {
  flex-shrink: 0;
  margin-right: 0.5rem;
  /* margin-right: 8px; // Space between tabs
  .nav-link {
      color: $dark;
      background-color: transparent;
      border: 1px solid $gray-300;
      padding: 0.5rem 1rem;
      &.active {
          background-color: $primary;
          color: #fff;
          border-color: $primary;
      }
  } */
}

.nav-link .badge {
  font-size: 0.75rem;
  font-weight: normal;
}

/*
.table-container {
    border: 1px solid $gray-300;
    display: flex;
    .table-wrapper {
        display: flex;
        width: 100%;
        .time-column {
            background-color: #f8f9fa;
            flex-shrink: 0; // 防止時段欄被壓縮
            .cell {
                border-right: 1px solid $gray-300;
            }
        }
        .scroll-table {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            width: 100%; // 讓它可以填滿剩餘空間
            &::-webkit-scrollbar {
                display: none; // 隱藏滾動條
            }
        }
    }
}
*/
.cell-title {
  border-bottom: 1px solid #dee2e6;
  padding: 0.5rem;
  min-height: 50px;
  /*display: flex;*/
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  vertical-align: middle;
  background-color: #3a8489 !important;
  color: #f8f9fa;
}

a {
  color: black;
  text-decoration: none;
}

/*
.day-column {
    flex-shrink: 0; // 防止日期欄被壓縮
    .cell {
        min-width: 120px; // 確保日期欄有足夠寬度
        border-right: 1px solid $gray-300;
    }
}

.doctor-list {
    .doctor-name {
        border-radius: 4px;
        padding: 4px;
        margin: 4px;
        background-color: #f3f3f3;
        border: 1px solid #ddd;
        font-size: 0.8rem;
        text-align: center;
        .badge {
            background-color: transparent;
            color: $primary;
            border: 1px solid $primary;
            font-size: 0.6rem;
            margin-left: 4px;
        }
    }
}
*/
.form-select {
  border: 1px solid #dee2e6;
  background-color: #fff;
}
.form-select:focus {
  border-color: #3a8489;
  box-shadow: 0 0 0 0.25rem rgba(58, 132, 137, 0.25);
}

.btn-primary {
  background-color: #3a8489;
  border-color: #3a8489;
}
.btn-primary:hover {
  background-color: rgb(42.8307692308, 97.4769230769, 101.1692307692);
  border-color: rgb(42.8307692308, 97.4769230769, 101.1692307692);
}

.btn-outline-primary {
  color: #3a8489;
  border-color: #3a8489;
}
.btn-outline-primary:hover {
  background-color: #3a8489;
  color: #fff;
  border-color: rgb(42.8307692308, 97.4769230769, 101.1692307692);
}

.table-responsive {
  border: 1px solid #dee2e6;
}
.table-responsive::-webkit-scrollbar {
  display: none;
}
.table-responsive .table {
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}
.table-responsive .table thead {
  background-color: #f8f9fa;
}
.table-responsive .table thead th {
  background-color: #3a8489 !important;
  color: #f8f9fa;
  border-bottom: 2px solid #f8f9fa;
  border-right: 2px solid #f8f9fa;
  border-color: #f8f9fa;
  font-weight: normal;
  padding: 0.75rem 0.5rem;
  vertical-align: middle;
}
.table-responsive .table tbody td {
  background-color: #f8f9fa;
}
.table-responsive .table tbody td,
.table-responsive .table tbody th {
  border-bottom: 2px solid #dee2e6;
  border-right: 2px solid #dee2e6;
  border-color: #dee2e6;
  vertical-align: top;
  padding: 0;
}
.table-responsive .table tbody tr:last-child td,
.table-responsive .table tbody tr:last-child th {
  border-bottom: none;
}
.table-responsive .table tbody td:last-child,
.table-responsive .table tbody th:last-child {
  border-right: none;
}
.table-responsive .table .time-header {
  background-color: #3a8489 !important;
  color: #f8f9fa;
  position: sticky;
  left: 0;
  z-index: 10;
}
.table-responsive .table .time-slot {
  background-color: #3a8489 !important;
  color: #f8f9fa;
  min-height: 120px;
}
.table-responsive .table .schedule-table .slot-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}
.table-responsive .table .schedule-table .slot-item input[type=radio] {
  margin-top: 4px;
  margin-right: 8px;
  cursor: pointer;
}
.table-responsive .table .schedule-table .slot-item label {
  cursor: pointer;
  line-height: 1.4;
  flex: 1;
}
.table-responsive .table .schedule-table .slot-item .count {
  font-size: 0.8rem;
  color: #888;
  display: block;
}
.table-responsive .table2 {
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}
.table-responsive .table2 thead th {
  background-color: #fff !important;
  color: #212529;
  border-bottom: 3px solid #f8f9fa;
  border-right: 3px solid #f8f9fa;
  border-color: #f8f9fa;
  font-weight: bold;
  padding: 0.5rem 0.5rem;
  vertical-align: middle;
}
.table-responsive .table2 tbody td {
  background-color: #fff;
}
.table-responsive .table2 tbody td,
.table-responsive .table2 tbody th {
  border-bottom: 3px solid #f8f9fa;
  border-right: 3px solid #f8f9fa;
  border-color: #f8f9fa;
  vertical-align: top;
  padding: 0;
}
.table-responsive .table2 tbody tr:last-child td,
.table-responsive .table2 tbody tr:last-child th {
  border-bottom: none;
}
.table-responsive .table2 tbody td:last-child,
.table-responsive .table2 tbody th:last-child {
  border-right: none;
}

.schedule-table-wrapper {
  max-height: 90vh;
  overflow: auto;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  background-color: #f8f9fa;
}
.schedule-table-wrapper .schedule-table {
  min-width: 980px;
  table-layout: fixed;
}
.schedule-table-wrapper .schedule-table th,
.schedule-table-wrapper .schedule-table td {
  vertical-align: top;
  padding: 12px;
  border-color: #dee2e6;
}
.schedule-table-wrapper .schedule-table tbody td {
  background-color: #f8f9fa;
}
.schedule-table-wrapper .schedule-table tbody td,
.schedule-table-wrapper .schedule-table tbody th {
  border-bottom: 2px solid #dee2e6;
  border-right: 2px solid #dee2e6;
  border-color: #dee2e6;
  vertical-align: top;
  padding: 0;
}
.schedule-table-wrapper .schedule-table tbody tr:last-child td,
.schedule-table-wrapper .schedule-table tbody tr:last-child th {
  border-bottom: none;
}
.schedule-table-wrapper .schedule-table tbody td:last-child,
.schedule-table-wrapper .schedule-table tbody th:last-child {
  border-right: none;
}
.schedule-table-wrapper .schedule-table .sticky-top-row {
  position: sticky;
  top: 0;
  background-color: #3a8489;
  color: #fff;
  z-index: 2;
  box-shadow: 0 1px 0 #dee2e6 inset, 0 -1px 0 #dee2e6 inset;
}
.schedule-table-wrapper .schedule-table .sticky-left-col {
  position: sticky;
  left: 0;
  background-color: #3a8489;
  color: #fff;
  z-index: 1;
  width: 80px;
  box-shadow: 1px 0 0 #dee2e6 inset, -1px 0 0 #dee2e6 inset;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.schedule-table-wrapper .schedule-table .sticky-corner {
  position: sticky;
  top: 0;
  left: 0;
  background-color: #3a8489;
  color: #fff;
  z-index: 3;
  width: 80px;
  box-shadow: 1px 0 0 #dee2e6 inset, 0 -1px 0 #dee2e6 inset;
}
.schedule-table-wrapper .schedule-table .slot-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}
.schedule-table-wrapper .schedule-table .slot-item input[type=radio] {
  margin-top: 4px;
  margin-right: 8px;
  cursor: pointer;
}
.schedule-table-wrapper .schedule-table .slot-item label {
  cursor: pointer;
  line-height: 1.4;
  flex: 1;
}
.schedule-table-wrapper .schedule-table .slot-item .count {
  font-size: 0.8rem;
  color: #888;
  display: block;
}
.schedule-table-wrapper .time-header {
  background-color: #3a8489 !important;
  color: #f8f9fa;
  position: sticky;
  left: 0;
  z-index: 10;
}
.schedule-table-wrapper .time-slot {
  background-color: #3a8489 !important;
  color: #f8f9fa;
  min-height: 120px;
}
.schedule-table-wrapper {
  /* .doctor-slot {
      padding: 8px 4px;
      margin-bottom: 8px;
      border-radius: 4px;
      font-size: 0.95rem;
      font-weight: bold;
      text-align: center;
      transition: all 0.2s;

      &:last-child {
          margin-bottom: 0;
      }

      &.available {
          color: $color-available;
          border: 1px solid $color-available;
          background-color: #fff;
          cursor: pointer;

          &:hover {
              background-color: $color-available;
              color: #fff;
          }
      }

      &.full {
          color: #fff;
          background-color: $color-full;
          border: 1px solid $color-full;
          cursor: not-allowed;
      }

      &.substitute {
          color: $color-substitute;
          border: 1px solid $color-substitute;
          background-color: #f8fff9;
          cursor: pointer;
      }
  }

  .empty-slot {
      color: #ccc;
      display: flex;
      align-items: center;
      justify-content: center;
      height: 100%;
  } */
}

.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.doctor-name {
  display: block;
  border-radius: 6px;
  padding: 0.5rem;
  margin: 0.5rem;
  background-color: #fff;
  border: 2px solid #3a8489;
  font-size: 1rem;
  text-align: center;
  color: #212529;
  font-weight: bolder;
  cursor: pointer;
}
.doctor-name .note-badge {
  font-size: 0.8rem;
  border: 0px solid #3a8489;
  color: #3a8489;
  background-color: transparent;
  padding: 2px 4px;
  border-radius: 4px;
  margin-left: 4px;
  white-space: nowrap;
  font-weight: bold;
  text-align: right;
}
.doctor-name .note-red {
  color: #dc3545;
  font-size: 0.7rem;
  font-weight: normal;
  margin-left: 4px;
  text-align: right;
}
.doctor-name:hover, .doctor-name:focus, .doctor-name.active {
  background-color: #e5f2f2;
  border-color: #3a8489;
  color: #3a8489;
}
.doctor-name:hover a, .doctor-name:focus a, .doctor-name.active a {
  color: #3a8489;
  font-weight: 550;
}

.schedule {
  display: block;
  border-radius: 6px;
  padding: 0.25rem;
  margin: 0.25rem;
  background-color: #f8f9fa;
  border: 0px solid #3a8489;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: left;
  color: #212529;
}
.schedule .note-badge {
  font-size: 0.8rem;
  border: 0px solid #3a8489;
  color: #3a8489;
  background-color: transparent;
  padding: 2px 4px;
  border-radius: 4px;
  margin-left: 4px;
  white-space: nowrap;
  font-weight: bold;
  text-align: right;
}
.schedule .note-red {
  color: #dc3545;
  font-size: 0.8rem;
  font-weight: normal;
  margin-left: 0px;
  text-align: left;
}
.schedule .form-check-input {
  /*margin-top: 0.2rem;*/
  margin-left: 0.5rem;
  border: 2px solid #3a8489;
}
.schedule .form-check-input:checked {
  background-color: #3a8489;
  border-color: #3a8489;
}

.card {
  border: none;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}
.card .card-header {
  background-color: #3a8489;
  color: #fff;
  font-weight: bold;
}
.card .list-group-item {
  border-left: none;
  border-right: none;
}
.card .list-group-item a {
  color: #212529;
}
.card .list-group-item a:hover {
  color: #3a8489;
}
.card .list-group-item .b {
  list-style-type: disc;
}

.doctor-info-card {
  border: none;
  box-shadow: none;
}
.doctor-info-card .doctor-name {
  color: #3a8489;
  font-weight: bold;
  font-size: 1.75rem;
  border: 0px;
  background-color: #fff;
  margin-bottom: 0.5rem;
  text-align: left;
  margin-left: 2%;
}
.doctor-info-card .doctor-content .doctor-photo {
  width: 230px;
  height: 300px;
  border-radius: 5%;
  -o-object-fit: cover;
     object-fit: cover;
  border: 1px solid #dee2e6;
  margin-bottom: 1rem;
}
.doctor-info-card .doctor-content .doctor-details {
  display: flex;
  flex-direction: column;
}
.doctor-info-card .doctor-content .doctor-details .doctor-specialty {
  margin-top: 1rem;
}
.doctor-info-card .doctor-content .doctor-details .doctor-specialty ul {
  padding-left: 1.25rem;
}
.doctor-info-card .doctor-content .doctor-details .doctor-specialty ul li {
  color: #212529;
  font-size: 1rem;
}
.doctor-info-card .doctor-content .doctor-details p.text-muted {
  color: #3a8489 !important;
  font-weight: bold;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  /*text-align: center; */
}
.doctor-info-card .doctor-content .doctor-details .btn-outline-primary {
  margin-top: 1rem;
  border: transparent;
  font-weight: bold;
  font-size: 1.2rem;
}

/* .profile-scroll-area {
    max-height: 380px; // 電腦版限制高度
    overflow-y: auto; // 內容過長時出現內部捲軸
    padding-right: 10px;

    // 自定義捲軸樣式
    &::-webkit-scrollbar {
        width: 5px;
    }

    &::-webkit-scrollbar-thumb {
        background: $gray-300; //#cbdadb;
        border-radius: 10px;
    }
} */
.text-truncate-lines {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
  /* 固定行高，確保截斷位置精準 */
}
.text-truncate-lines.lines-2 {
  line-clamp: 2;
  -webkit-line-clamp: 2;
}
.text-truncate-lines.lines-3 {
  line-clamp: 3;
  -webkit-line-clamp: 3;
}

.doctor-profile .doctor-photo {
  width: 230px;
  height: 300px;
  border-radius: 5%;
  -o-object-fit: cover;
     object-fit: cover;
  border: 1px solid #dee2e6;
  margin-bottom: 1rem;
}
.doctor-profile .btn-more {
  display: inline-block;
  font-weight: 1000;
  transition: color 0.2s;
}
.doctor-profile .btn-more:hover {
  color: rgb(35.2461538462, 80.2153846154, 83.2538461538) !important;
  text-decoration: underline !important;
}

/* 
.clinic-info-card {
    border: 1px solid $gray-300;
    box-shadow: none;

    .table {

        th,
        td {
            border: 1px solid $gray-300;
            padding: 0.75rem 0.5rem;
            vertical-align: middle;
            font-size: 0.9rem;
            font-weight: normal;
        }

        thead th {
            background-color: $gray-100;
            font-weight: bold;
        }

        tbody td {
            color: $dark;
        }
    }
} 
*/
/* .icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: $gray-300;
    color: $dark;

    &.active {
        background-color: $primary;
        color: $white;
    }
} */
.main-nav-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.main-nav {
  border-radius: 1;
}
.main-nav .main-nav-icon-desktop {
  width: 56px;
  height: 56px;
  vertical-align: middle;
}
.main-nav .nav-link-main {
  color: #212529;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: none;
}
.main-nav .nav-link-main.active {
  background-color: transparent !important;
  color: #3a8489;
  font-weight: bold;
  border-bottom: 4px solid #3a8489;
}
.main-nav .nav-link-main:hover {
  color: #3a8489;
}

.main-nav-mobile .main-nav-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  vertical-align: middle;
}
.main-nav-mobile .nav-link-main-mobile {
  color: #212529;
  border-radius: 8px;
  padding: 0.75rem 0;
  display: flex;
  align-items: center;
}
.main-nav-mobile .nav-link-main-mobile.active {
  color: #3a8489;
  font-weight: bold;
  border-left: 4px solid #3a8489;
  padding-left: calc(0.75rem - 4px);
}
.main-nav-mobile .nav-link-main-mobile:not(.active) {
  padding-left: 0.75rem;
}

.page-card {
  border: 1px solid #dee2e6;
  box-shadow: none;
  border-radius: 20px 20px 20px 20px;
}
.page-card h5.text-muted {
  color: #3a8489 !important;
  font-weight: bold;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}
.page-card span.text-muted {
  font-weight: bold;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.service-card {
  background-color: #f8f9fa;
  border-radius: 20px;
  border: 1px solid #dee2e6;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.service-card .service-icon {
  width: 88px;
  height: 88px;
  display: block;
}
.service-card .card-title {
  color: #3a8489;
  font-size: 1.5rem;
}
.service-card .btn-primary {
  background-color: #3a8489;
  border-color: #3a8489;
}
.service-card .btn-primary:hover {
  background-color: rgb(42.8307692308, 97.4769230769, 101.1692307692);
  border-color: rgb(42.8307692308, 97.4769230769, 101.1692307692);
}
.service-card .btn-outline-primary {
  color: #3a8489;
  border-color: #3a8489;
}
.service-card .btn-outline-primary:hover {
  background-color: #3a8489;
  color: #fff;
}

@media (max-width: 575px) {
  .service-card {
    padding: 0.75rem 0.5rem;
  }
  .service-card .card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem !important;
  }
  .service-card .btn {
    padding: 0.1rem 0.4rem;
    font-size: 0.8rem;
  }
  .btn-sm {
    padding: 0.1rem 0.4rem;
    font-size: 0.7rem;
  }
}
/* .news-table {
    font-size: 0.9rem;

    th,
    td {
        border: 3px solid $gray-100;
        padding: 0.5rem;
        vertical-align: top;
    }

    thead {
        background-color: $white;

        th {
            font-weight: bold;
            color: $dark;
        }
    }

    td {
        color: $dark;
    }
} */
.registration-card {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  box-shadow: 0 0.125rem 0.25rem rgba(33, 37, 41, 0.075);
  background-color: #fff;
}
.registration-card .card-image-box img {
  max-width: 100%;
  height: auto;
}
.registration-card .btn {
  width: 100%;
  font-size: 1.125rem;
}

.booking-info-table .info-grid {
  border-radius: 6px;
  overflow: hidden;
}
.booking-info-table .info-header {
  padding: 12px 0;
}
.booking-info-table .info-header .col {
  color: #f8f9fa;
}
.booking-info-table .info-cell {
  border-right: 1px solid #dee2e6;
}
.booking-info-table .info-cell:last-child {
  border-right: none;
}
@media (max-width: 767.98px) {
  .booking-info-table .info-cell {
    border-right: none;
    border-bottom: 1px solid #dee2e6;
    padding: 0;
  }
  .booking-info-table .info-cell span {
    color: #f8f9fa;
  }
  .booking-info-table .info-cell:last-child {
    border-bottom: none;
  }
}

.form-card {
  border: 1px solid #dee2e6;
  box-shadow: none;
}
.form-card label {
  text-align: right;
}
.form-card .form-label {
  color: #212529;
  font-weight: 800;
}
.form-card {
  /* .alert-warning-custom {
      background-color: #fffdf0;
      border: 1px solid #fceec7;
      color: #856404;
  } */
}
.form-card .form-control {
  border-radius: 4px;
  border: 1px solid #212529;
}
.form-card .form-control:focus {
  border-color: rgba(58, 132, 137, 0.5);
  box-shadow: 0 0 0 0.25rem rgba(58, 132, 137, 0.15);
}
.form-card .form-check-input {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  border: 1px solid #3a8489;
}
.form-card .form-check-input:checked {
  background-color: #3a8489;
  border-color: #3a8489;
}
.form-card .btn-action-group {
  width: 100%;
  max-width: 250px;
  margin-left: auto;
  margin-right: auto;
}
.form-card .btn-action-group .btn {
  flex: 1 1 0;
  white-space: nowrap;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
@media (max-width: 576px) {
  .form-card .btn-action-group {
    padding: 0 10px;
  }
  .form-card .btn-action-group .btn {
    font-size: 0.85rem;
    padding: 10px 5px !important;
  }
  .form-card label {
    text-align: left;
  }
}
@media (max-width: 768px) {
  .form-card label {
    text-align: left;
  }
}

/* .form-title {
    color: $primary;
    font-weight: bold;
} */
.form-subtitle {
  font-weight: normal;
}

.form-label-required::before {
  content: "*";
  color: #dc3545;
  margin-right: 4px;
}

.form-label-either::before {
  content: "☆";
  color: #dc3545;
  margin-right: 4px;
}

.emergency-contact-card {
  background-color: #f8f9fa;
  border-radius: 8px;
}

.custom-form {
  font-size: 1rem;
}
.custom-form .required-star {
  position: relative;
}
.custom-form .required-star::before {
  content: "*";
  color: #DC3545;
  margin-right: 4px;
  font-weight: bold;
}
.custom-form .form-label {
  color: #212529;
  font-weight: 800;
}
.custom-form .form-control,
.custom-form .form-select {
  border-radius: 4px;
  border: 1px solid #212529;
}
.custom-form .form-control:focus,
.custom-form .form-select:focus {
  border-color: rgba(58, 132, 137, 0.5);
  box-shadow: 0 0 0 0.25rem rgba(58, 132, 137, 0.15);
}
.custom-form .form-check-input {
  border: 1px solid #3a8489;
}
.custom-form .form-check-input:checked {
  background-color: #3a8489;
  border-color: #3a8489;
}
.custom-form .form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(58, 132, 137, 0.15);
  border-color: #3a8489;
}
.custom-form .btn-action-group {
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.custom-form .btn-action-group .btn {
  flex: 1 1 0;
  white-space: nowrap;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
@media (max-width: 576px) {
  .custom-form .btn-action-group {
    padding: 0 10px;
  }
  .custom-form .btn-action-group .btn {
    font-size: 0.85rem;
    padding: 10px 5px !important;
  }
  .custom-form {
    /* button.btn {
        width: 100%;
    } */
  }
}

.physiological-data-form {
  max-width: 800px;
  margin: auto;
}
.physiological-data-form .required-label::before {
  content: "*";
  color: #DC3545;
  margin-right: 4px;
  display: inline-block;
  content: none;
}
.physiological-data-form label {
  color: #212529;
  font-weight: 500;
  font-size: 1.1rem;
}
.physiological-data-form label.required-label {
  position: relative;
  padding-left: 1rem;
}
.physiological-data-form label.required-label::before {
  content: "*";
  color: #DC3545;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}
.physiological-data-form .form-unit {
  color: #6c757d;
  font-size: 0.95rem;
}
@media (max-width: 767px) {
  .physiological-data-form .form-unit {
    padding-left: 0 !important;
  }
}
.physiological-data-form .btn-submit-custom {
  background-color: #3a8489;
  border-color: #3a8489;
  color: #fff;
  font-weight: bold;
  border-radius: 8px;
}
.physiological-data-form .btn-submit-custom:hover, .physiological-data-form .btn-submit-custom:focus {
  background-color: rgb(42.8307692308, 97.4769230769, 101.1692307692);
  border-color: rgb(42.8307692308, 97.4769230769, 101.1692307692);
}

.pain-scale-numbers .pain-number {
  font-size: 1rem;
  font-weight: 500;
  color: #212529;
  text-align: center;
  width: 9.0909090909%;
  margin-left: 1rem;
}

.pain-scale-radio-container {
  width: 100%;
}
.pain-scale-radio-container .form-check-inline {
  margin-right: 0 !important;
  width: 9.0909090909%;
  display: flex;
  justify-content: center;
}
.pain-scale-radio-container .form-check-inline .form-check-input {
  width: 1.2em;
  height: 1.2em;
  cursor: pointer;
  margin-left: 0 !important;
}
.pain-scale-radio-container .form-check-inline .form-check-input:checked {
  background-color: #3a8489;
  border-color: #3a8489;
}

.pain-scale-label-row {
  font-size: 0.85rem;
  color: #6c757d;
}
.pain-scale-label-row .pain-label-text:first-child {
  margin-left: 1rem;
}
.pain-scale-label-row .pain-label-text:last-child {
  margin-right: 0;
  text-align: right;
}

@media (max-width: 767px) {
  .pain-scale-vertical .form-check {
    margin-bottom: 0.5rem;
  }
  .pain-scale-vertical .form-check .form-check-input {
    width: 1.2em;
    height: 1.2em;
    cursor: pointer;
    margin-right: 10px !important;
  }
  .pain-scale-vertical .form-check .form-check-input:checked {
    background-color: #3a8489;
    border-color: #3a8489;
  }
  .pain-scale-vertical .form-check-label {
    font-size: 1.1rem;
    color: #212529;
  }
  .instruction-content .row-cols-md-3 {
    gap: 1rem;
  }
}
.risk-factor-form {
  max-width: 800px;
  margin: auto;
  padding-right: 15px;
}
.risk-factor-form .required-label::before {
  content: "*";
  color: #DC3545;
  margin-right: 4px;
  display: inline-block;
  content: none;
}
.risk-factor-form label {
  color: #212529;
  font-weight: 500;
  font-size: 1.1rem;
}
.risk-factor-form label.required-label {
  position: relative;
  padding-left: 1rem;
}
.risk-factor-form label.required-label::before {
  content: "*";
  color: #DC3545;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}
@media (max-width: 767px) {
  .risk-factor-form .d-flex.flex-column.flex-md-row {
    padding-top: 0.5rem;
  }
  .risk-factor-form .d-flex.flex-column.flex-md-row .form-check-inline {
    display: block !important;
    margin-right: 0 !important;
    margin-bottom: 0.5rem;
    padding-left: 0;
  }
  .risk-factor-form .d-flex.flex-column.flex-md-row .form-check-inline .form-check-input {
    margin-top: 0.2rem;
    margin-left: 0.5rem;
  }
  .risk-factor-form .d-flex.flex-column.flex-md-row .form-check-inline .form-check-input:checked {
    background-color: #3a8489;
    border-color: #3a8489;
  }
  .risk-factor-form .d-flex.flex-column.flex-md-row .form-check-inline .form-check-label {
    padding-left: 0.5rem;
  }
}
@media (min-width: 768px) {
  .risk-factor-form .d-flex.flex-column.flex-md-row {
    align-items: center;
  }
  .risk-factor-form .d-flex.flex-column.flex-md-row .form-check-inline {
    margin-right: 2rem !important;
  }
  .risk-factor-form .d-flex.flex-column.flex-md-row .form-check-inline .form-check-input:checked {
    background-color: #3a8489;
    border-color: #3a8489;
  }
}
.risk-factor-form .btn-submit-custom {
  background-color: #3a8489;
  border-color: #3a8489;
  color: #fff;
  font-weight: bold;
  border-radius: 8px;
}
.risk-factor-form .btn-submit-custom:hover, .risk-factor-form .btn-submit-custom:focus {
  background-color: rgb(42.8307692308, 97.4769230769, 101.1692307692);
  border-color: rgb(42.8307692308, 97.4769230769, 101.1692307692);
}

.appointment-table,
.personal-info-table {
  width: 100%;
  margin-bottom: 1rem;
}
.appointment-table .table-primary-custom,
.personal-info-table .table-primary-custom {
  background-color: #3a8489;
  color: #fff;
}
.appointment-table .table-primary-custom th,
.personal-info-table .table-primary-custom th {
  font-weight: 500;
  padding: 0.5rem 0.5rem;
  border-bottom-color: #3a8489;
}
.appointment-table .sub-title td:nth-child(odd),
.personal-info-table .sub-title td:nth-child(odd) {
  background-color: #e9f5ff;
  color: #3a8489;
  font-weight: 600;
}
.appointment-table .sub-title td:nth-child(even),
.personal-info-table .sub-title td:nth-child(even) {
  font-weight: 1000;
}
.appointment-table tbody td,
.personal-info-table tbody td {
  font-size: 1.2rem;
}
@media (max-width: 767px) {
  .appointment-table tbody td,
  .personal-info-table tbody td {
    padding: 0.75rem 0.5rem;
  }
}

.card-custom {
  border: 1px solid #dee2e6;
  border-radius: 8px;
}
.card-custom .bg-custom-light {
  background-color: #fff !important;
  border-bottom: 1px solid #dee2e6;
  padding: 0.75rem 1.25rem;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  font-size: 1.5rem;
  color: #3a8489;
}
.card-custom .bg-custom-light img {
  width: 3%;
  height: 3%;
}
.card-custom .card-body {
  font-size: 0.95rem;
}
.card-custom .required-items-list {
  padding-left: 0;
}
.card-custom .required-items-list .list-group-item {
  border-style: none;
}
.card-custom .required-items-list .list-group-item:before {
  color: #212529;
  font-weight: bold;
  margin-right: 0.5rem;
}
.card-custom .required-items-list :last-child {
  padding-bottom: 0px;
}
.card-custom .notice-list {
  margin: 0 0 0 0;
}
.card-custom .notice-list li {
  line-height: 1.2rem;
  padding: 0.5rem 1rem 0.5rem 0.5rem;
}
.card-custom .notice-list :last-child {
  padding: 0.5rem 1rem 0rem 0.5rem;
}
.card-custom .link-font {
  font-weight: bold;
}

@media (max-width: 767px) {
  .table-responsive {
    font-size: 0.85rem;
  }
  .table-responsive .table2 {
    border: 1px solid #dee2e6;
    border-radius: 2px;
  }
  .appointment-table {
    min-width: 700px;
  }
  .personal-info-table {
    min-width: 500px;
  }
  .dept-list-section h5 {
    font-size: 1.1rem;
    text-align: center;
  }
  /* .profile-scroll-area {
      max-height: none; // 手機版允許長向展開，避免雙重捲軸感
  } */
  .doctor-profile img {
    width: 230px;
    margin-bottom: 15px;
  }
  .text-truncate-lines.lines-2 {
    line-clamp: 3;
    -webkit-line-clamp: 3;
  }
}
/* 掛號說明頁面 */
.info-list {
  padding-left: 1.2rem;
  line-height: 1.8;
}
.info-list li {
  margin-bottom: 4px;
}

.custom-alert {
  background-color: #fffbf0;
  border: none;
  color: #555;
}
.custom-alert i {
  font-size: 1.1rem;
}

.custom-alert-yellow {
  background-color: #fffbf0;
  border: 1px solid #fcefd0;
  border-radius: 6px;
}
.custom-alert-yellow i {
  transform: translateY(-2px);
}

.promo-card {
  transition: transform 0.2s;
}
.promo-card .qr-wrapper img {
  width: 80px;
  height: 80px;
  -o-object-fit: contain;
     object-fit: contain;
}
.promo-card .scale-text {
  font-size: 0.65rem;
}

.promo-section .qr-img {
  max-width: 100%;
  height: auto;
}
.promo-section .border {
  border-color: #ddd !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.news-card {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}
.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}
.news-card table {
  min-width: 602px;
  border-collapse: collapse;
}
.news-card table th {
  background-color: #f8f9fa;
  color: #dee2e6;
  font-weight: 600;
  white-space: nowrap;
}
.news-card table td {
  line-height: 1.6;
  color: #212529;
}
.news-card table td.text-start {
  text-align: left !important;
}

.lineBtn {
  border: 1px solid #56c85d;
  background-color: #56c85d;
  color: #f8f9fa;
  width: 100%;
  justify-content: space-between;
}

.dept-list-section .btn-teal-action {
  background-color: transparent;
  border: 0px solid #3a8489;
  color: #3a8489;
}
.dept-list-section .btn-teal-action:hover {
  background-color: #3a8489;
  color: #fff;
}

.policy-content {
  line-height: 1.6;
  color: #555;
}

.border-light-gray {
  border: 1px solid #dee2e6;
}

.special-condition-group .form-check-input,
.consent-check .form-check-input {
  width: 1.2em;
  height: 1.2em;
  cursor: pointer;
  margin-left: 0 !important;
}
.special-condition-group .form-check-input:checked,
.consent-check .form-check-input:checked {
  background-color: #3a8489;
  border-color: #3a8489;
}

.appointment-summary .table thead {
  background-color: #f8f9fa;
}
.appointment-summary .table thead th {
  background-color: #3a8489 !important;
  color: #f8f9fa;
  border-bottom: 3px solid #f8f9fa;
  border-right: 3px solid #f8f9fa;
  border-color: #f8f9fa;
  font-weight: normal;
  padding: 0.75rem 0.5rem;
  vertical-align: middle;
}
.appointment-summary .table tbody td {
  background-color: #f8f9fa;
}
.appointment-summary .table tbody td,
.appointment-summary .table tbody th {
  border-bottom: 3px solid #dee2e6;
  border-right: 3px solid #dee2e6;
  border-color: #dee2e6;
  vertical-align: top;
  padding: 0;
}
.appointment-summary .table tbody tr:last-child td,
.appointment-summary .table tbody tr:last-child th {
  border-bottom: none;
}
.appointment-summary .table tbody td:last-child,
.appointment-summary .table tbody th:last-child {
  border-right: none;
}
.appointment-summary .label {
  background-color: #3a8489 !important;
  border: 1px solid #dee2e6;
  color: #f8f9fa;
}
.appointment-summary .value {
  color: #212529;
  font-weight: 500;
}

.leave-table th {
  font-weight: 1000;
  border-bottom: none;
}
.leave-table td {
  padding: 12px 8px;
}

.leave-cards-container .leave-card {
  background-color: #f8f9fa;
  overflow: hidden;
  border: 1px solid #dee2e6;
}
.leave-cards-container .leave-card .card-label {
  padding: 5px;
  font-size: 1rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #f8f9fa;
  letter-spacing: 1px;
  color: #f8f9fa;
  background-color: #3a8489 !important;
}
.leave-cards-container .leave-card .card-value {
  padding: 5px 10px;
  font-size: 1.1rem;
  background-color: #fff;
  border-bottom: 1px solid #dee2e6;
  display: flex;
  align-items: center;
  font-weight: 1000;
}
.leave-cards-container .leave-card .row > div:nth-last-child(1),
.leave-cards-container .leave-card .row > div:nth-last-child(2) {
  border-bottom: none;
}

.radio-container {
  display: inline-flex;
  align-items: center;
  position: relative;
  padding-left: 30px;
  margin-right: 15px;
  cursor: pointer;
  font-size: 1.1rem;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  color: #212529;
}
.radio-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}
.radio-container .checkmark {
  position: absolute;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #fff;
  border: 2px solid #55535b;
  border-radius: 50%;
}
.radio-container .checkmark:after {
  content: "";
  position: absolute;
  display: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a8489;
}
.radio-container {
  /* &:hover input~.checkmark {
      border-color: $primary;
  } */
}
.radio-container:has(input:disabled) {
  cursor: not-allowed;
}
.radio-container input:disabled ~ .checkmark {
  background-color: #f5f5f5;
  border-color: #bfbfbf;
}
.radio-container input:disabled ~ .checkmark:after {
  background: #bfbfbf;
}
.radio-container:hover input:disabled ~ .checkmark {
  border-color: #bfbfbf;
}
.radio-container input:checked ~ .checkmark {
  border-color: #3a8489;
}
.radio-container input:checked ~ .checkmark:after {
  display: block;
}
.radio-container {
  /* @media (max-width: 768px) {
      padding-left: 50%;
      margin-right: 50%;
      font-size: 0.8rem;

      .checkmark {
          height: 15px;
          width: 15px;

          &:after {
              width: 60%;
              height: 60%;
          }
      }
  } */
}

.appointment-grid {
  background-color: #fff;
  border-radius: 4px;
  overflow: hidden;
}
.appointment-grid .info-cell {
  display: flex;
  flex-direction: column;
}
.appointment-grid .info-cell .cell-header {
  background-color: #3a8489;
  color: #f8f9fa;
  padding: 10px;
  font-weight: bold;
}
.appointment-grid .info-cell .cell-body {
  padding: 15px 10px;
  color: #212529;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 1000;
}
@media (min-width: 768px) {
  .appointment-grid .info-cell:not(:last-child) .cell-header {
    border-right: 1px solid rgba(255, 255, 255, 0.3);
  }
  .appointment-grid .info-cell:not(:last-child) .cell-body {
    border-right: 1px solid #dee2e6;
  }
}
@media (max-width: 767.98px) {
  .appointment-grid .info-cell {
    border-bottom: 2px solid #dee2e6;
  }
  .appointment-grid .info-cell:last-child {
    border-bottom: none;
  }
  .appointment-grid .info-cell .cell-body {
    padding: 10px;
    background-color: #fcfcfc;
  }
}

/* .patient-grid {
    border-radius: 4px;
    overflow: hidden;

    .grid-title {
        background-color: $primary;
        color: $white;
        text-align: center;
        padding: 8px 0;
        font-weight: bold;
    }

    .info-pair {
        display: flex;
        align-items: center;
        padding: 10px 0;
        text-align: center; // 需求 1：文字置中

        .pair-label {
            background-color: #e6f1f1; // 需求 1：不同的底色 (淺綠/淺灰)
            color: $primary;
            font-weight: bold;
            //padding: 8px 10px;
            //border-bottom: 1px solid $gray-300; // 標籤與數值之間的分隔線
            margin-right: 15px;
            white-space: nowrap;
            //text-align: center;
        }

        .pair-value {
            background-color: $white; // 需求 1：不同的底色 (純白)            
            color: $dark;
            //padding: 15px 10px;
            //flex-grow: 1; // 讓高度在電腦版並排時能自動等高向下填滿
            //display: flex;
            //align-items: center;
            //justify-content: center;
            //text-align: center;
        }
    }

    // 電腦版視角：左右並排並加上右分隔線
    @media (min-width: 768px) {
        .info-pair {
            justify-content: center;
            border-right: 1px solid $gray-300;

            &:last-child {
                border-right: none;
            }
        }
    }

    // 手機版視角：標籤在左，數值在右，底部分隔線
    @media (max-width: 767.98px) {
        .info-pair {
            justify-content: space-between;
            border-bottom: 1px dashed $gray-300;
            //border-bottom: 1px solid $gray-300;
            padding: 12px 5px;

            &:last-child {
                border-bottom: none;
            }
        }
    }
} */
.patient-grid {
  border-radius: 4px;
  overflow: hidden;
}
.patient-grid .grid-title {
  background-color: #3a8489;
  color: #fff;
  text-align: center;
  padding: 10px 0;
  font-weight: bold;
}
.patient-grid .info-pair {
  display: flex;
}
.patient-grid .info-pair .pair-label {
  background-color: #e6f1f1;
  color: #3a8489;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.patient-grid .info-pair .pair-value {
  background-color: #ffffff;
  color: #212529;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 1000;
}
@media (min-width: 768px) {
  .patient-grid .info-pair {
    border-right: 1px solid #dee2e6;
  }
  .patient-grid .info-pair:last-child {
    border-right: none;
  }
  .patient-grid .info-pair .pair-label {
    width: 100%;
    padding: 10px;
    border-bottom: 1px solid #dee2e6;
  }
  .patient-grid .info-pair .pair-value {
    width: 100%;
    padding: 15px 10px;
    flex-grow: 1;
  }
}
.patient-grid {
  /* // 電腦版視角：左右並排並加上右分隔線
  @media (min-width: 768px) {
      .info-pair {
          justify-content: center;
          border-right: 1px solid $gray-300;

          &:last-child {
              border-right: none;
          }
      }
  } */
}
@media (max-width: 767.98px) {
  .patient-grid .info-pair {
    flex-direction: row;
    border-bottom: 1px solid #dee2e6;
  }
  .patient-grid .info-pair:last-child {
    border-bottom: none;
  }
  .patient-grid .info-pair .pair-label {
    flex: 0 0 35%;
    padding: 12px 10px;
    border-right: 1px solid #dee2e6;
  }
  .patient-grid .info-pair .pair-value {
    flex: 1;
    padding: 12px 10px;
  }
}

iframe::-webkit-scrollbar {
  display: none;
}

.cancel-query-container {
  color: #212529;
}
.cancel-query-container .col-form-label {
  color: #212529;
  font-size: 0.95rem;
}
.cancel-query-container .date-input-year {
  width: 80px;
}
.cancel-query-container .date-select {
  width: 80px;
}
.cancel-query-container .custom-radio:checked {
  background-color: #3a8489;
  border-color: #3a8489;
}
.cancel-query-container .captcha-section .captcha-img {
  height: 60px;
  min-width: 200px;
  -o-object-fit: contain;
     object-fit: contain;
  background-color: #fff;
  padding: 5px;
}
.cancel-query-container .btn-primary-teal {
  background-color: #3a8489;
  color: #fff;
  border: none;
  padding: 8px 40px;
  transition: all 0.3s ease;
  letter-spacing: 2px;
}
.cancel-query-container .btn-primary-teal:hover, .cancel-query-container .btn-primary-teal:active {
  background-color: rgb(42.8307692308, 97.4769230769, 101.1692307692);
  border-color: rgb(42.8307692308, 97.4769230769, 101.1692307692);
}
@media (min-width: 768px) {
  .cancel-query-container .query-form {
    padding: 0 20px;
  }
}
@media (max-width: 767.98px) {
  .cancel-query-container .form-group-row {
    margin-bottom: 1.5rem;
  }
  .cancel-query-container .form-group-row label {
    margin-bottom: 0.25rem;
  }
  .cancel-query-container .action-btn {
    width: 100%;
    padding: 12px 0;
    font-size: 1.1rem;
  }
}/*# sourceMappingURL=regnew.css.map */