@charset "UTF-8";
:root {
  --primary-color: #004600;
  --primary-hover: #006400;
  --header-green: #367c45;
  --danger-color: #dc3545;
  --text-main: #333333;
  --vertical-table-label-text: #2f2a1f;
  --base-font-size: 1.125rem;
  --footer-bg: rgba(255, 255, 255, 0.15);
  --sticky-bg: rgba(54, 124, 69, 0.9);
  --vertical-table-label-bg: linear-gradient(180deg, rgb(255, 241, 212) 0%, rgb(245, 232, 182) 21%, rgb(250, 250, 220) 60%, rgb(255, 245, 196) 91%, rgb(235, 221, 183) 100%);
  --vertical-table-shell-border: rgba(212, 189, 130, 0.38);
  --vertical-table-row-border: rgba(195, 182, 142, 0.24);
  --button-font-size: 1rem;
  --button-line-height: 1.5;
  --button-padding-block: 0.625em;
  --button-padding-inline: 3.75em;
  --button-min-block-size: 44px;
  --button-max-inline-size: 18rem;
}

.fw-bold, h1, h2, h3, h4, h5, strong {
  font-weight: 500 !important;
}

h2, h4 {
  color: var(--primary-color);
}

body, body:lang(zh-hant) {
  font-family: "微軟正黑體", "Microsoft Yahei", "微软雅黑", STXihei, "华文细黑", sans-serif;
}

body:lang(zh-hans) {
  font-family: "Microsoft Yahei", "微软雅黑", STXihei, "华文细黑", sans-serif;
}

body:lang(en) {
  font-family: "Roboto", "Myriad Pro", sans-serif, "Gill Sans", "Gill Sans MT", Arial, Helvetica, "DejaVu Sans Condensed", "微軟正黑體";
}

body {
  font-size: var(--base-font-size);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: transparent;
  position: relative;
  overflow-x: hidden;
}

.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -3;
  /*  background: linear-gradient(120deg, #fcf5e5, #e1ede1, #f5ecd8, #d8ead8);
  background-size: 600% 600%;
  animation: gradientMove 25s ease infinite;*/
  background: linear-gradient(135deg, #f0fdf4, #fffbeb, #fff1f2, #f0f9ff);
  background-size: 400% 400%;
  animation: gradientMove 20s ease infinite;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.top-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 410px;
  background: linear-gradient(to bottom, var(--header-green), rgba(54, 124, 69, 0.6), transparent);
  z-index: -2;
  pointer-events: none;
}

.waves {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 48vh;
  min-height: 350px;
  z-index: -1;
  pointer-events: none;
}

.parallax > use {
  animation: move-forever 30s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 12s;
  /*fill: rgba(0, 70, 0, 0.05);*/
  fill: rgba(10, 124, 74, 0.04); /* 品牌綠波浪 */
}

.parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 18s;
  /*fill: rgba(0, 120, 0, 0.04);*/
  fill: rgba(245, 158, 11, 0.04); /* 溫暖金橘波浪 */
}

.parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 25s;
  /*fill: rgba(255, 255, 255, 0.3);*/
  fill: rgba(244, 63, 94, 0.03); /* 柔和櫻粉波浪 */
}

.parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 35s;
  fill: rgba(255, 255, 255, 0.5);
}

@keyframes move-forever {
  0% {
    transform: translate3d(-90px, 0, 0);
  }
  100% {
    transform: translate3d(85px, 0, 0);
  }
}
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.sticky-header-wrapper {
  position: sticky;
  top: 0;
  z-index: 1049;
  transition: all 0.3s ease;
}

.scrolled.sticky-header-wrapper {
  background: var(--sticky-bg);
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

header {
  background: transparent;
  padding: 1.25rem 0;
  transition: all 0.3s ease;
  top: 0;
  z-index: 1050;
}

header.scrolled {
  background: rgba(54, 124, 69, 0.85);
  backdrop-filter: blur(15px);
  padding: 0.75rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.scrolled header {
  padding: 0.5rem 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left, .header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-left img {
  height: 40px;
  filter: brightness(0) invert(1);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 15px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 0.9rem;
}

.btn-logout {
  color: white !important;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.85;
  font-size: 1.1rem;
  text-decoration: none !important;
  transition: 0.2s;
}

.btn-logout:hover {
  opacity: 1;
  transform: translateX(3px);
}

.lang-nav {
  font-size: 1rem;
}

.branch-text {
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  padding-left: 15px;
}

.branch-text .zh {
  font-size: 1.1rem;
  color: #ffffff;
}

.branch-text .en {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

.lang-dropdown-btn {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  padding: 5px 45px !important;
  font-size: 0.9rem;
}

.lang-dropdown-btn:hover {
  color: white;
  background: rgba(255, 255, 255, 0);
  border: 1px solid rgb(255, 255, 255);
}

.lang-dropdown-btn:active, .lang-dropdown-btn.show {
  color: white !important;
  background: rgba(255, 255, 255, 0) !important;
  border: 1px solid rgb(255, 255, 255) !important;
  transform: scale(0.96) !important;
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.05) !important;
}

.lang-dropdown-btn.dropdown-toggle::after {
  display: none;
}

.lang-dropdown-btn .icon-chevron-down {
  width: 18px;
  height: 18px;
  stroke-width: 2.5px;
  transition: transform 0.2s ease;
}

.lang-dropdown-btn.show > .icon-chevron-down {
  transform: rotate(180deg);
}

.hero-section {
  flex: 1;
  padding: 0 0 8rem 0;
  position: relative;
}

.c-glass-card,
.glass-card {
  /* 白至天空淡藍高透感漸層 */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.78) 30%, rgba(224, 242, 254, 0.55) 75%, rgba(247, 218, 218, 0.51) 100%);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 24px;
  /* 強調晶瑩質感的純白亮邊框 */
  border: 1px solid rgba(255, 255, 255, 0.9);
  /* 結合盒內陰影 (inset) 營造光澤與折射層次 */
  box-shadow: 0 15px 35px rgba(30, 41, 59, 0.04), inset 0 1.5px 2px rgba(255, 255, 255, 0.85), inset 0 -1.5px 2px rgba(186, 230, 253, 0.2);
  overflow: hidden;
  height: 100%;
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.c-glass-card.has-open-datepicker,
.glass-card.has-open-datepicker {
  z-index: 1105;
}

/* 玻璃卡片光澤反射效果 */
.c-glass-card::before,
.glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 150%;
  height: 100%;
  /* 傾斜高亮折射掃光 */
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-30deg);
  transition: 0.85s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}

.c-glass-card:hover::before,
.glass-card:hover::before {
  left: 150%;
}

.c-glass-card:hover,
.glass-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 45px rgba(30, 41, 59, 0.08), inset 0 1.5px 2px rgba(255, 255, 255, 0.95);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(224, 242, 254, 0.75) 50%, rgba(186, 230, 253, 0.55) 100%);
}

.c-glass-card.staff,
.glass-card.staff,
.c-card--bottom,
.bottom-card {
  padding: 2rem;
}

.main-content .c-glass-card,
.main-content .glass-card {
  padding: 2rem;
  height: 100%;
}

.c-alert--security,
.security-alert-glass {
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.8), rgba(180, 20, 35, 0.7));
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  padding: 1.2rem 1.5rem;
  box-shadow: 0 10px 30px rgba(220, 53, 69, 0.15);
  display: flex;
  align-items: center;
  position: relative;
  font-size: 0.95rem;
}

.c-alert--security .icon-shield-alert,
.security-alert-glass .icon-shield-alert {
  font-size: 1.5rem;
}

.btn-close {
  background: transparent url("../img/icons/bootstrap/bootstrap-btn-close.svg") center/1em auto no-repeat !important;
  opacity: 0.5;
  box-shadow: none !important;
}

.btn-close:hover {
  opacity: 1;
}

.btn-close:focus {
  box-shadow: none !important;
}

.c-alert--security .btn-close,
.security-alert-glass .btn-close {
  position: static;
  margin-left: auto;
  filter: brightness(0) invert(1);
  opacity: 0.6;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.login-side {
  padding: 1rem;
}

.form-control {
  border-radius: 50px;
  padding: 0.85rem 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

.c-button--link,
.btn-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.c-button--link:hover,
.btn-link:hover {
  color: var(--primary-hover);
  text-decoration: none;
  transform: translateX(4px);
  transition: transform 0.2s ease;
}

.c-button,
.btn {
  display: inline-flex;
  width: fit-content;
  max-width: min(100%, var(--button-max-inline-size));
  min-width: 0;
  font-family: inherit;
  font-size: var(--button-font-size);
  line-height: var(--button-line-height);
  padding: var(--button-padding-block) var(--button-padding-inline);
  border-radius: 50px;
  letter-spacing: 0.04em;
  align-items: center;
  justify-content: center;
  overflow-wrap: anywhere;
  text-align: center;
  white-space: normal;
  transition: filter 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.c-button__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.c-button--small,
.btn-sm {
  font-size: 1rem;
  padding: 0.5rem 3.75rem;
  letter-spacing: 0;
}

.c-button--block,
.btn-block {
  padding: var(--button-padding-block) 4.5em;
  max-width: none;
  width: 100%;
}

.c-button--primary,
.c-button--secondary,
.c-button--danger,
.c-button--ghost,
.btn-primary-bank,
.btn-secondary-bank {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: var(--button-min-block-size);
  font-weight: 700;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08), inset 0 1.5px 2.5px rgba(255, 255, 255, 0.3), inset 0 -1.5px 3px rgba(0, 0, 0, 0.12);
}

.c-button--primary::before,
.c-button--secondary::before,
.c-button--danger::before,
.c-button--ghost::before,
.btn-primary-bank::before,
.btn-secondary-bank::before {
  content: "";
  position: absolute;
  top: -2rem;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% -35%, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 35%);
  transition: background 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.c-button--primary::after,
.c-button--secondary::after,
.c-button--danger::after,
.c-button--ghost::after,
.btn-primary-bank::after,
.btn-secondary-bank::after {
  content: "";
  position: absolute;
  right: 20%;
  bottom: 0;
  left: 20%;
  z-index: 0;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 90, 160, 0.4) 25%, rgba(0, 190, 255, 0.4) 50%, rgba(90, 255, 120, 0.4) 75%, transparent 100%);
  filter: blur(1px);
  opacity: 0.5;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), left 0.4s cubic-bezier(0.16, 1, 0.3, 1), right 0.4s cubic-bezier(0.16, 1, 0.3, 1), height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.c-button--primary > *,
.c-button--secondary > *,
.c-button--danger > *,
.c-button--ghost > *,
.btn-primary-bank > *,
.btn-secondary-bank > * {
  position: relative;
  z-index: 1;
}

.c-button--primary,
.btn-primary-bank {
  color: white !important;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.75);
  background: radial-gradient(circle at 50% -20%, #3bb232 0%, #0d6207 50%, #003600 100%);
  border-color: rgba(13, 98, 7, 0.5);
}

.c-button--secondary,
.btn-secondary-bank {
  color: #4a574d !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
  background: radial-gradient(circle at 50% -20%, #ffffff 0%, #eeeeee 55%, #d1d1d1 100%);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05), inset 0 1.5px 2px #ffffff, inset 0 -1px 2px rgba(0, 0, 0, 0.05);
}

.c-button--danger {
  color: white !important;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.6);
  background: radial-gradient(circle at 50% -20%, #ff6b78 0%, #dc3545 52%, #8f1f2b 100%);
  border-color: rgba(220, 53, 69, 0.5);
}

.c-button--ghost {
  color: var(--primary-color) !important;
  text-shadow: none;
  background: radial-gradient(circle at 50% -20%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.72) 62%, rgba(230, 241, 233, 0.88) 100%);
  border-color: rgba(0, 70, 0, 0.28);
}

.c-button--secondary::before,
.btn-secondary-bank::before {
  background: radial-gradient(ellipse at 50% -40%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
}

.c-button--secondary::after,
.c-button--ghost::after,
.btn-secondary-bank::after {
  display: none;
}

.c-button--primary:hover,
.c-button--secondary:hover,
.c-button--danger:hover,
.c-button--ghost:hover,
.btn-primary-bank:hover,
.btn-secondary-bank:hover {
  filter: brightness(1.04) saturate(1.05);
  transform: translateY(-1.5px) scale(1.01);
}

.c-button--primary:hover,
.btn-primary-bank:hover {
  color: white !important;
  background: radial-gradient(circle at 50% -20%, #50c946 0%, #0f7608 52%, #004400 100%);
  box-shadow: 0 10px 25px rgba(0, 70, 0, 0.22), inset 0 1.5px 3px rgba(255, 255, 255, 0.45), inset 0 -1.5px 3px rgba(0, 0, 0, 0.15);
}

.c-button--secondary:hover,
.btn-secondary-bank:hover {
  color: #25372b !important;
  background: radial-gradient(circle at 50% -20%, #ffffff 0%, #f7f7f7 50%, #dddddd 100%);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1), inset 0 1.5px 3px rgba(255, 255, 255, 0.95), inset 0 -1.5px 3px rgba(0, 0, 0, 0.08);
}

.c-button--danger:hover {
  background: radial-gradient(circle at 50% -20%, #ff7d88 0%, #e24251 52%, #a92835 100%);
  box-shadow: 0 10px 25px rgba(220, 53, 69, 0.2), inset 0 1.5px 3px rgba(255, 255, 255, 0.45), inset 0 -1.5px 3px rgba(0, 0, 0, 0.14);
}

.c-button--ghost:hover {
  color: var(--primary-color) !important;
  background: radial-gradient(circle at 50% -20%, #ffffff 0%, rgba(255, 255, 255, 0.82) 58%, rgba(218, 238, 224, 0.95) 100%);
  box-shadow: 0 10px 20px rgba(0, 70, 0, 0.12), inset 0 1.5px 3px rgba(255, 255, 255, 0.95), inset 0 -1.5px 3px rgba(0, 70, 0, 0.08);
}

.c-button--primary:hover::before,
.c-button--secondary:hover::before,
.c-button--danger:hover::before,
.c-button--ghost:hover::before,
.btn-primary-bank:hover::before,
.btn-secondary-bank:hover::before {
  background: radial-gradient(ellipse at 50% -20%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 75%);
}

.c-button--primary:hover::after,
.c-button--danger:hover::after,
.btn-primary-bank:hover::after {
  right: 8%;
  left: 8%;
  height: 3px;
  opacity: 0.95;
}

.c-button--primary:active,
.c-button--secondary:active,
.c-button--danger:active,
.c-button--ghost:active,
.btn-primary-bank:active,
.btn-secondary-bank:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), inset 0 2px 4px rgba(0, 0, 0, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.15);
}

.c-button--primary:active,
.btn-primary-bank:active {
  color: white !important;
  background: radial-gradient(circle at 50% -20%, #3bb232 0%, #0d6207 50%, #003600 100%) !important;
  border-color: rgba(13, 98, 7, 0.5);
}

.c-button--secondary:active,
.btn-secondary-bank:active {
  color: #25372b !important;
  background: radial-gradient(circle at 50% -20%, #f7f7f7 0%, #e8e8e8 55%, #c8c8c8 100%) !important;
  border-color: rgba(0, 0, 0, 0.12);
}

.c-button--danger:active {
  background: radial-gradient(circle at 50% -20%, #f05d68 0%, #d43343 52%, #8f1f2b 100%) !important;
  border-color: rgba(220, 53, 69, 0.5);
}

.c-button--ghost:active {
  background: radial-gradient(circle at 50% -20%, #f7fbf8 0%, rgba(234, 244, 237, 0.9) 58%, rgba(207, 229, 214, 0.95) 100%) !important;
  border-color: rgba(0, 70, 0, 0.28);
}

.c-button--primary:focus-visible,
.c-button--secondary:focus-visible,
.c-button--danger:focus-visible,
.c-button--ghost:focus-visible,
.btn-primary-bank:focus-visible,
.btn-secondary-bank:focus-visible {
  outline: 3px solid rgba(0, 70, 0, 0.45);
  outline-offset: 3px;
}

.c-button:disabled,
.c-button.disabled,
.c-button[aria-disabled=true],
.c-button--primary:disabled,
.c-button--primary.disabled,
.c-button--primary[aria-disabled=true],
.c-button--secondary:disabled,
.c-button--secondary.disabled,
.c-button--secondary[aria-disabled=true],
.c-button--danger:disabled,
.c-button--danger.disabled,
.c-button--danger[aria-disabled=true],
.c-button--ghost:disabled,
.c-button--ghost.disabled,
.c-button--ghost[aria-disabled=true],
.btn-primary-bank:disabled,
.btn-primary-bank.disabled,
.btn-primary-bank[aria-disabled=true],
.btn-secondary-bank:disabled,
.btn-secondary-bank.disabled,
.btn-secondary-bank[aria-disabled=true] {
  filter: saturate(0.7);
  opacity: 0.72;
  pointer-events: none;
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.c-button--table,
.btn-table {
  display: inline-flex;
  width: fit-content;
  max-width: min(100%, var(--button-max-inline-size));
  min-width: 0;
  background-color: #fff;
  color: #dc3545;
  border: 1.5px solid #dc3545;
  min-height: auto;
  padding: 8px 16px;
  border-radius: 50px;
  letter-spacing: 0;
  line-height: 1.5;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  overflow-wrap: normal;
  transition: all 0.2s;
  white-space: nowrap;
}

.c-button--table:hover,
.btn-table:hover {
  background-color: #dc3545;
  color: white;
}

/* 輪播廣告優化 */
.carousel-inner {
  border-radius: 20px;
}

.carousel-item {
  height: 100%;
  border-radius: 20px;
  min-height: 350px;
  background-size: cover;
  background-position: center;
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  padding: 20px;
  border-radius: 20px;
  bottom: 4rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  left: 10%;
  right: 10%;
}

.carousel-caption h3 {
  color: white;
}

.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50% !important; /* 沒選到時為圓點 */
  margin: 0 5px;
  background-color: #fff;
  border: none;
  padding: 0;
  opacity: 0.65;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-indicators .active {
  width: 28px;
  border-radius: 50px !important; /* 選到時為左右側圓角的藥丸形 */
  opacity: 1;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
  width: 3.5rem;
  height: 3.5rem;
  font-size: 1.25rem;
  background-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: none;
}

.news-item-link, .list-group-item-action {
  background: rgba(255, 255, 255, 0.5);
  padding: 1.25rem;
  border-radius: 18px;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-item-link:hover, .list-group-item-action:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateX(10px);
}

.action-btn-glass {
  background: linear-gradient(135deg, rgba(54, 124, 69, 0.65), rgba(30, 80, 45, 0.45));
  backdrop-filter: blur(25px) saturate(160%);
  border-radius: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  padding: 1.5rem;
  gap: 15px;
  color: #ffffff;
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.action-btn-glass .icon-wrapper {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

.action-btn-glass:hover {
  transform: translateY(-5px);
  background: linear-gradient(135deg, rgba(54, 124, 69, 0.9), rgba(30, 80, 45, 0.7));
}

.action-btn-glass:hover .fs-5, .action-btn-glass:hover .opacity-75 {
  color: #ffffff !important;
  opacity: 1 !important;
}

footer {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 3rem 0;
  font-size: 0.9rem;
  z-index: 10;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-text-muted {
  color: rgba(0, 0, 0, 0.6);
}

.c-pagination .page-item .page-link,
.pagination .page-item .page-link,
.c-pagination__item-button,
.page-item-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  margin: 0 5px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--primary-color);
  background: rgba(255, 255, 255, 0.6);
  transition: all 0.3s;
}

.c-pagination .page-item.active .page-link,
.pagination .page-item.active .page-link,
.c-pagination__item-button.active,
.page-item-btn.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: 0 5px 15px rgba(0, 70, 0, 0.2);
}

.c-pagination .page-item .page-link:hover:not(.active),
.pagination .page-item .page-link:hover:not(.active),
.c-pagination__item-button:hover:not(.active),
.page-item-btn:hover:not(.active) {
  background-color: rgba(54, 124, 69, 0.1);
  transform: scale(1.05);
}

.c-pagination .page-item .page-link > i,
.pagination .page-item .page-link > i {
  font-size: 1rem;
}

.c-pagination__item-button.is-ellipsis,
.page-item-btn.is-ellipsis {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: #6c757d;
}

@media (max-width: 575.98px) {
  .c-pagination .page-item .page-link,
  .pagination .page-item .page-link,
  .c-pagination__item-button,
  .page-item-btn {
    width: 36px;
    height: 36px;
    margin: 0 2px;
    font-size: 0.9rem;
  }
}
.c-modal__content,
.modal-content {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(30px);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  overflow: hidden;
}

.nav-section {
  margin-top: 0.2rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.glass-nav-container {
  background: rgba(53, 66, 65, 0.57);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 0.25rem;
  display: flex;
  justify-content: center;
  gap: 5px;
  list-style: none;
}

.nav-link-custom {
  color: white !important;
  padding: 0.7rem 0.7rem;
  border-radius: 10px;
  font-weight: 500;
  font-size: 1.1875rem;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.2s ease;
  position: relative;
  white-space: nowrap;
}

.nav-link-custom:hover {
  background: rgba(255, 255, 255, 0.15);
}

.nav-link-custom::before {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 4px;
  background: #FFF5C4;
  border-radius: 50px 50px 0 0;
  display: block;
  z-index: 5;
  opacity: 0;
  transform: scaleX(0.65);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-link-custom.current {
  font-weight: 700;
}

.nav-link-custom.current::before,
.glass-nav-container > li:hover > .nav-link-custom::before {
  opacity: 1;
  transform: scaleX(1);
}

.glass-nav-container > li.hover-open > .nav-link-custom::before {
  opacity: 1;
  transform: scaleX(1);
}

.glass-nav-container > li:hover > .nav-link-custom {
  background: rgba(255, 255, 255, 0.15);
}

.glass-nav-container > li.hover-open > .nav-link-custom {
  background: rgba(255, 255, 255, 0.15);
}

.nav-link-custom i:first-of-type {
  display: none;
}

.dropdown-toggle::after {
  display: none !important;
}

.dropdown-chevron {
  font-size: 0.85rem !important;
  opacity: 0.7;
  transition: transform 0.3s ease;
}

.dropdown.show .dropdown-chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  padding: 8px;
  min-width: 230px;
}

.glass-nav-container > .dropdown:hover > .dropdown-menu {
  display: block;
}

.glass-nav-container > .dropdown.hover-open > .nav-link-custom .dropdown-chevron {
  transform: rotate(180deg);
}

.glass-nav-container > .dropdown:hover > .nav-link-custom .dropdown-chevron {
  transform: rotate(180deg);
}

.dropdown-menu li {
  margin: 0;
  list-style: none;
}

.dropdown-item {
  padding: 12px 18px;
  border-radius: 10px;
  color: var(--text-main);
  font-size: 1rem;
  display: block;
  transition: all 0.2s ease;
  position: relative;
}

.dropdown-item:hover {
  background-color: rgba(54, 124, 69, 0.1);
  color: var(--primary-color);
  transform: translateX(3px);
  text-decoration: none;
}

.dropdown-item.current, .offcanvas-nav-link.current, .third-level-link.current {
  color: #00873c !important;
  font-weight: 600;
  text-decoration: none;
}

.dropdown-item.current::before, .offcanvas-nav-link.current::before, .third-level-link.current::before {
  background: var(--primary-color);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  content: "";
  z-index: 100;
  display: block;
  border-radius: 0 50px 50px 0;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 1rem 0 5rem 0;
}

.greeting-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 2.5rem;
  color: white;
}

.greeting-container i, .greeting-text {
  font-size: 1.8rem;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
}

.section-title {
  color: var(--primary-color);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.custom-list, .offcanvas-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.custom-list li {
  margin-bottom: 1.2rem;
  padding-left: 25px;
  position: relative;
}

.custom-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  background-image: url("../img/icons/navigation/chevron-right-green.svg");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.9;
}

.custom-list a {
  color: var(--text-main);
  line-height: 1.6;
  display: block;
  transition: 0.3s;
  text-decoration: none !important;
}

.custom-list a:hover {
  color: var(--primary-color);
  transform: translateX(8px);
}

.c-info-card,
.info-box {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.5) 30%, rgba(240, 208, 161, 0.5) 100%);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 20px;
  padding: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  height: 100%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.c-info-card:hover,
.info-box:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 15px 35px rgba(0, 50, 0, 0.1);
}

.c-info-card__label,
.info-label {
  font-size: 1.125rem;
  color: #555;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 10px;
}

.c-info-card__value,
.info-value {
  font-family: "Consolas", monospace;
  color: var(--primary-color);
  font-size: 1.15rem;
  font-weight: 500;
}

.c-info-card__note,
.info-note {
  font-size: 0.85rem;
  color: var(--danger-color);
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Back to top */
.btn-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 55px;
  height: 55px;
  background: var(--header-green);
  color: white !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: 0.4s;
}

.btn-to-top.show {
  opacity: 1;
  visibility: visible;
}

.btn-to-top:hover {
  transform: translateY(-8px);
  background: var(--primary-color);
  text-decoration: none;
}

[class^=icon-], [class*=" icon-"] {
  font-family: "lucide" !important;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.icon-wrapper [class^=icon-] {
  font-size: 1.8rem;
}

.page-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  color: white;
}

.page-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
}

.breadcrumb-custom {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 0.925rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
}

.breadcrumb-custom a {
  color: white;
  text-decoration: none;
}

.breadcrumb-custom a:hover {
  opacity: 1;
  text-decoration: underline;
}

.breadcrumb-separator {
  margin: 0 6px;
  opacity: 0.6;
  font-size: 0.7rem;
}

.form-label {
  color: var(--primary-color);
  margin-bottom: 0.6rem;
  font-size: 1rem;
}

.required-mark {
  color: var(--danger-color);
  margin-left: 4px;
}

.c-form-check__input:checked,
.form-check-input:checked {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.c-form-control,
.c-form-select,
.form-control,
.form-select {
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  appearance: none !important;
}

.c-form-select,
.form-select {
  background-image: url("../img/icons/navigation/chevron-down-dark.svg") !important;
  background-repeat: no-repeat !important;
  background-position: right 1.5rem center !important;
  background-size: 16px 12px !important;
  padding-right: 3.5rem !important;
}

.c-form-control[type=date],
.form-control[type=date] {
  --c-date-picker-button-width: 4.5rem;
  --c-date-picker-separator-x: calc(100% - var(--c-date-picker-button-width));
  padding-right: calc(var(--c-date-picker-button-width) + 0.75rem) !important;
  background-image: linear-gradient(90deg, transparent 0, transparent calc(var(--c-date-picker-separator-x) - 1px), rgba(0, 0, 0, 0.15) calc(var(--c-date-picker-separator-x) - 1px), rgba(0, 0, 0, 0.15) var(--c-date-picker-separator-x), transparent var(--c-date-picker-separator-x)), url("../img/icons/forms/calendar-gray.svg");
  background-repeat: no-repeat;
  background-position: 0 0, right 1.45rem center;
  background-size: 100% 100%, 1.25rem 1.25rem;
  background-clip: padding-box;
}

.c-form-control[type=date]::-webkit-calendar-picker-indicator,
.form-control[type=date]::-webkit-calendar-picker-indicator {
  width: var(--c-date-picker-button-width);
  height: 100%;
  margin-right: -1.5rem;
  padding: 0;
  cursor: pointer;
  background: transparent;
  opacity: 0;
}

.c-form-control:focus,
.c-form-select:focus,
.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 70, 0, 0.1);
}

.c-input-group__text,
.input-group-text {
  border-radius: 0 50px 50px 0;
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: #666;
  padding-right: 1.5rem;
}

.br-start {
  border-radius: 50px 0 0 50px;
}

.br-end {
  border-radius: 0 50px 50px 0;
}

.br-0 {
  border-radius: 0;
}

.br-20 {
  border-radius: 20px;
}

.br-12 {
  border-radius: 12px;
}

.c-readonly-box,
.readonly-box {
  background: rgba(0, 70, 0, 0.04);
  border-radius: 15px;
  padding: 1.2rem 1.5rem;
  border-left: 5px solid var(--primary-color);
  color: #555;
  line-height: 1.8;
}

.c-password-toggle,
.toggle-password,
.c-datepicker .input-group,
.datepicker-wrapper .input-group {
  cursor: pointer;
}

.c-datepicker .input-group > .c-form-control,
.c-datepicker .input-group > .form-control,
.datepicker-wrapper .input-group > .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.c-datepicker__toggle,
.datepicker-toggle-button {
  min-width: 56px;
  justify-content: center;
  border-radius: 0 50px 50px 0 !important;
}

.c-datepicker,
.datepicker-wrapper {
  position: relative;
  width: 100%;
  z-index: auto;
}

.c-datepicker.is-open,
.datepicker-wrapper.is-open {
  z-index: 20;
}

.c-datepicker__panel,
.datepicker-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 3500 !important;
  width: 320px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  display: none;
  overflow: hidden;
  border: 1px solid #ffffff;
}

.c-datepicker__panel.show,
.datepicker-panel.show {
  display: block !important;
}

.c-datepicker__panel.is-open-upward,
.datepicker-panel.is-open-upward {
  top: auto;
  bottom: calc(100% + 12px);
}

.c-datepicker__header,
.datepicker-header {
  background: rgb(54, 124, 69);
  color: #fff;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.c-datepicker__select,
.datepicker-select {
  background: rgba(255, 255, 255, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #fff !important;
  padding: 4px 14px !important;
  border-radius: 50px !important;
  cursor: pointer;
  outline: none;
  font-size: 0.85rem;
  appearance: none !important;
  background-image: url("../img/icons/navigation/chevron-down-white.svg") !important;
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
  background-size: 10px 8px !important;
  padding-right: 24px !important;
}

.c-datepicker__select option,
.datepicker-select option {
  color: #333;
}

.c-datepicker__grid,
.datepicker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 12px;
}

.c-datepicker__day-title,
.c-datepicker__day,
.datepicker-day-title,
.datepicker-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-main);
}

.c-datepicker__day-title,
.datepicker-day-title {
  font-weight: bold;
  font-size: 0.85rem;
  color: #888;
  padding: 5px 0;
  cursor: default;
}

.c-datepicker__day:hover,
.datepicker-day:hover {
  background: rgba(0, 70, 0, 0.1);
}

.c-datepicker__day.today,
.datepicker-day.today {
  background: rgba(0, 70, 0, 0.1);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.c-datepicker__day.selected,
.datepicker-day.selected {
  background: var(--primary-color) !important;
  color: #fff !important;
}

.c-datepicker__day.is-disabled,
.datepicker-day.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.c-datepicker__day.is-disabled:hover,
.datepicker-day.is-disabled:hover {
  background: transparent;
}

.c-datepicker__day.other-month,
.datepicker-day.other-month {
  opacity: 0.3;
  cursor: default;
}

.c-datepicker__day--sat,
.datepicker-sat {
  color: #0056b3;
}

.c-datepicker__day--sun,
.datepicker-sun {
  color: #dc3545;
}

.notice-card {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  margin-top: 2.5rem;
  border: 1px solid #fff;
  overflow: hidden;
}

.notice-header {
  padding: 1.2rem 2rem;
  background: rgba(255, 255, 255, 0.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.notice-title {
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.notice-body {
  padding: 1.5rem 2rem;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.8;
}

.offcanvas {
  border: none;
  width: 100% !important;
  z-index: 2100;
}

.offcanvas-body {
  background: #f4f4f4;
}

.offcanvas-user-card {
  background: white;
  border-radius: 20px;
  padding: 24px;
  position: relative;
  margin-bottom: 25px;
}

.offcanvas-avatar {
  width: 54px;
  height: 54px;
  background: rgba(54, 124, 69, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #eee;
  margin-right: 15px;
  flex-shrink: 0;
}

.offcanvas-avatar > i {
  color: white;
  font-size: 1.5rem;
}

.offcanvas-user-name {
  font-weight: 500;
}

.offcanvas-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #333;
}

.offcanvas-nav-item {
  border-bottom: 1px solid #f2f2f2;
}

.offcanvas-nav-item:last-child {
  border-bottom: none;
}

.offcanvas-nav-link {
  font-size: var(--base-font-size) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 8px;
  color: #333;
  border-radius: 10px;
  text-decoration: none !important;
  transition: background 0.2s;
  position: relative;
}

.offcanvas-nav-link:hover {
  background: rgba(0, 0, 0, 0.02);
}

.offcanvas-nav-link i:first-child {
  font-size: 1.4rem;
  margin-right: 18px;
  width: 28px;
  color: rgba(54, 124, 69, 0.5);
}

.offcanvas-nav-link .chevron-down {
  margin-left: auto;
  opacity: 1;
  font-size: 1.25rem !important;
  transition: transform 0.3s;
}

.offcanvas-nav-link[aria-expanded=true] .chevron-down {
  transform: rotate(180deg);
}

.offcanvas-submenu {
  background: #fafafa;
  list-style: none;
  padding: 0 0 15px 54px;
}

.offcanvas-submenu a {
  display: block;
  padding: 1rem;
  text-decoration: none;
}

.offcanvas-submenu, .offcanvas-third-level {
  list-style: none;
  padding: 1rem;
  border-radius: 10px;
  background: #fff;
}

.offcanvas-third-level {
  background: #ECF0EC;
}

.third-level-link {
  font-size: 1rem;
  position: relative;
}

.c-tabs,
.todo-tab-container {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
}

.c-tab-list,
.custom-nav-pills {
  background: rgba(0, 0, 0, 0.14);
  padding: 6px;
  border-radius: 50px;
  display: inline-flex;
}

.c-tab-list__link,
.custom-nav-pills .nav-link {
  border-radius: 50px;
  padding: 10px 24px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.95rem;
}

.c-tab-list__link.active,
.custom-nav-pills .nav-link.active {
  background-color: white;
  color: var(--lb-green);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.c-table-card,
.lb-table-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.c-table,
.table-main {
  width: 100%;
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.c-table thead,
.table-main thead {
  background: #fff1d4;
  background: linear-gradient(180deg, rgb(255, 241, 212) 0%, rgb(245, 232, 182) 10%, rgb(250, 250, 220) 70%, rgb(255, 245, 196) 90%, rgb(235, 221, 183) 100%);
}

.c-table thead th,
.table-main thead th {
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-bottom: 2px solid #edf1ef;
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  position: relative;
  user-select: none;
  white-space: nowrap;
}

.c-table tbody td,
.table-main tbody td {
  padding: 0.75rem 1.5rem;
  color: #333;
  border-bottom: 1px solid #efefef;
  vertical-align: middle;
}

.c-table tbody td:has(.c-button--table, .btn-table),
.table-main tbody td:has(.c-button--table, .btn-table) {
  text-align: center;
}

.c-table tbody td.u-text-start,
.table-main tbody td.u-text-start {
  text-align: left;
}

.c-table thead th.u-text-center,
.table-main thead th.u-text-center,
.c-table tbody td.u-text-center,
.table-main tbody td.u-text-center {
  text-align: center;
}

.c-table tbody td.u-text-end,
.table-main tbody td.u-text-end {
  text-align: right;
}

.c-table tbody tr:last-child td,
.table-main tbody tr:last-child td {
  border-bottom: none;
}

.c-table tbody tr:hover,
.table-main tbody tr:hover {
  background-color: #fcfdfc;
}

.c-detail-table__wrapper,
.detail-table-wrapper {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--vertical-table-shell-border);
  margin-bottom: 2rem;
}

.c-detail-table,
.detail-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  position: relative;
  background: #ffffff;
  background: var(--vertical-table-label-bg);
  background-size: 15% 100%;
  background-repeat: no-repeat;
}

.c-detail-table tr,
.detail-table tr {
  z-index: 1;
}

.c-detail-table tr:not(:last-child) td,
.detail-table tr:not(:last-child) td {
  border-bottom: 1px solid var(--vertical-table-row-border);
}

.c-detail-table td,
.detail-table td {
  padding: 0.75rem 1.5rem;
  vertical-align: middle;
}

.c-detail-table__label,
.detail-label {
  width: 15%;
  min-width: 150px;
  color: var(--vertical-table-label-text);
  font-weight: 700;
}

.c-detail-table__value,
.detail-value {
  color: #1a1a1a;
  font-size: 1rem;
}

@media (max-width: 991px) {
  .c-detail-table,
  .detail-table {
    background-size: 150px 100%;
  }
}
.c-loading__text,
.loading-text {
  color: #4a7c59;
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.c-loading__bar,
.loading-bar-container {
  display: flex;
  justify-content: center;
  gap: 4px;
  height: 18px;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  padding: 15px 0;
  width: 80%;
  margin: 0 auto;
  box-sizing: content-box;
}

.c-loading__bar-segment,
.loading-bar-segment {
  width: 10px;
  height: 18px;
  background-color: #94bc4c;
  border-radius: 3px;
  animation: loading-flash 1.2s infinite ease-in-out;
}

.c-loading__bar-segment:nth-child(1),
.loading-bar-segment:nth-child(1) {
  animation-delay: 0.1s;
}

.c-loading__bar-segment:nth-child(2),
.loading-bar-segment:nth-child(2) {
  animation-delay: 0.2s;
}

.c-loading__bar-segment:nth-child(3),
.loading-bar-segment:nth-child(3) {
  animation-delay: 0.3s;
}

.c-loading__bar-segment:nth-child(4),
.loading-bar-segment:nth-child(4) {
  animation-delay: 0.4s;
}

.c-loading__bar-segment:nth-child(5),
.loading-bar-segment:nth-child(5) {
  animation-delay: 0.5s;
}

.c-loading__bar-segment:nth-child(6),
.loading-bar-segment:nth-child(6) {
  animation-delay: 0.6s;
}

.c-loading__bar-segment:nth-child(7),
.loading-bar-segment:nth-child(7) {
  animation-delay: 0.7s;
}

.c-loading__bar-segment:nth-child(8),
.loading-bar-segment:nth-child(8) {
  animation-delay: 0.8s;
}

.c-loading__bar-segment:nth-child(9),
.loading-bar-segment:nth-child(9) {
  animation-delay: 0.9s;
}

.c-loading__bar-segment:nth-child(10),
.loading-bar-segment:nth-child(10) {
  animation-delay: 1s;
}

@keyframes loading-flash {
  0%, 100% {
    background-color: #94bc4c;
    opacity: 0.3;
  }
  50% {
    background-color: #00873c;
    opacity: 1;
  }
}
.c-countdown,
.countdown-info {
  display: flex;
  align-items: center;
  color: white;
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 99;
  -webkit-backdrop-filter: blur(25px);
  border-radius: 0 18px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 50px rgba(0, 40, 0, 0.08);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(54, 124, 69, 0.95), rgba(30, 80, 45, 0.65));
  backdrop-filter: blur(25px) saturate(160%);
  padding: 6px 10px;
  font-size: 0.975rem;
  transition: all 0.2s ease;
}

.c-countdown__reset,
.btn-recount {
  width: 2rem;
  height: 2rem;
  font-size: 0.975rem;
  color: white !important;
  text-decoration: none !important;
  background: var(--primary-color);
  border: 1px solid var(--primary-color);
  border: none;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.c-countdown__reset:hover,
.btn-recount:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(0, 70, 0, 0.2);
}

.c-data-table__controls,
.dt-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.c-data-table__search,
.dt-search-wrapper {
  flex: 0 1 300px;
}

.c-data-table__search-input,
.dt-search-input {
  width: 100%;
  padding: 0.6rem 1rem;
  border: 1px solid #ced4da;
  border-radius: 50px;
  transition: border-color 0.2s;
}

.c-data-table__search-input:focus,
.dt-search-input:focus {
  outline: none;
  border-color: #94bc4c;
  box-shadow: 0 0 0 3px rgba(148, 188, 76, 0.1);
}

.c-data-table__length,
.dt-length-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #4a7c59;
  font-weight: 500;
}

.c-data-table__length-select,
.dt-length-select {
  padding: 0.4rem 2rem 0.4rem 1rem;
  border: 1px solid #ced4da;
  border-radius: 50px;
  background-color: #fff;
  cursor: pointer;
  appearance: none;
  background-image: url("../img/icons/navigation/chevron-down-muted-green.svg");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
}

.c-table__sort-icon,
.sort-icon {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.4;
  transition: opacity 0.2s;
  font-size: 1rem;
}

th:hover .c-table__sort-icon,
th:hover .sort-icon {
  opacity: 1;
}

th.w10 {
  width: 10%;
}

th.w20 {
  width: 20%;
}

th.w30 {
  width: 30%;
}

th.w40 {
  width: 40%;
}

th.w50 {
  width: 50%;
}

th.w60 {
  width: 60%;
}

th.w70 {
  width: 70%;
}

th.w80 {
  width: 80%;
}

.c-data-table__pagination,
.dt-pagination-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.c-data-table__pagination-list,
.dt-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  gap: 5px;
}

.c-pagination__item-button.disabled,
.page-item-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #f8f9fa;
}

/* 檔案名稱連結樣式 */
.file-link {
  color: #0056b3;
  text-decoration: underline;
  word-break: break-all;
}

.file-link:hover {
  color: #003d80;
}

/* 月曆維護專用樣式 */
.calendar-maintenance-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 0 10px;
}

.year-display {
  font-size: 1.1rem;
  font-weight: 500;
  color: #333;
}

.btn-sync-hk {
  background-color: #00422a;
  color: white !important;
  border: none;
  padding: 6px 48px;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.btn-sync-hk:hover {
  background-color: #005a39;
}

.months-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 桌面 3 欄 */
  gap: 20px;
  margin-bottom: 30px;
}

.month-box {
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  overflow: hidden;
}

.month-name-header {
  background-color: #367c45;
  color: white;
  text-align: center;
  padding: 10px;
  font-weight: bold;
  letter-spacing: 2px;
}

.week-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background-color: #f1f6ed;
  color: #4a7c59;
  text-align: center;
  font-size: 0.85rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-weight: bold;
}

.days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.day-cell {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 8px 8px 10px;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  border-right: 1px solid rgba(0, 0, 0, 0.03);
  min-height: 42px;
}

.day-cell:nth-child(7n) {
  border-right: none;
  padding-right: 10px;
}

/* 假日顏色 */
.sun-text, .sun-text label {
  color: #d32f2f !important;
}

.sat-text, .sat-text label {
  color: #1976d2 !important;
}

/* 非本月日期 */
.day-cell.outside {
  color: #bbb;
  background-color: rgba(0, 0, 0, 0.02);
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

.day-checkbox {
  accent-color: #6a1b9a;
}

.day-cell.is-holiday span, .day-cell.is-holiday label {
  color: #6a1b9a !important;
  font-weight: bold;
}

.day-cell .form-check {
  margin-right: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
}

.day-cell .form-check-label {
  cursor: pointer;
  font-size: 0.85rem;
  padding-top: 2px;
  white-space: nowrap;
}

.c-workflow-detail-card,
.workflow-detail-card {
  padding: 1.5rem 1.75rem;
}

.c-workflow-detail__section-title,
.workflow-detail-section-title {
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.c-workflow-detail__section-title i,
.workflow-detail-section-title i {
  color: var(--primary-color);
}

.c-kv-list,
.workflow-kv-list,
.feature-kv-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--vertical-table-shell-border);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.85);
}

.c-kv-list__row,
.workflow-kv-row,
.feature-kv-row {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  border-bottom: 1px solid var(--vertical-table-row-border);
}

.c-kv-list__row:last-child,
.workflow-kv-row:last-child,
.feature-kv-row:last-child {
  border-bottom: none;
}

.c-kv-list__label,
.c-kv-list__value,
.workflow-kv-label,
.workflow-kv-value,
.feature-kv-label,
.feature-kv-value {
  padding: 1rem 1.15rem;
}

.c-kv-list__label,
.workflow-kv-label,
.feature-kv-label {
  background: var(--vertical-table-label-bg);
  color: var(--vertical-table-label-text);
  font-weight: 700;
}

.c-kv-list__value,
.workflow-kv-value,
.feature-kv-value {
  color: var(--text-main);
  line-height: 1.7;
  word-break: break-word;
}

.c-kv-list__multi-line-item,
.workflow-multi-line-item,
.feature-multi-line-item {
  display: block;
}

@media (max-width: 991.98px) {
  .c-workflow-detail-card,
  .workflow-detail-card {
    padding: 1.25rem;
  }
  .c-kv-list__row,
  .workflow-kv-row,
  .feature-kv-row {
    grid-template-columns: 1fr;
  }
  .c-kv-list__label,
  .workflow-kv-label,
  .feature-kv-label {
    border-bottom: 1px solid var(--vertical-table-row-border);
  }
}
@media (min-width: 768px) {
  header {
    padding: 1.75rem 0;
  }
  .header-left img {
    height: 50px;
  }
  .hero-section {
    padding: 0 0 10rem 0;
  }
  .carousel-item {
    min-height: 480px;
  }
}
@media (min-width: 992px) {
  .login-side {
    padding: 2rem 3rem 2rem 2rem;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
  }
  .dropdown-menu .dropdown-submenu {
    position: relative;
  }
  .dropdown-menu .dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    border-radius: 0 12px 12px 12px;
    display: none;
  }
  .dropdown-menu .dropdown-submenu:hover > .dropdown-menu {
    display: block;
  }
  .dropdown-item {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    white-space: nowrap;
    padding-right: 1rem;
  }
  .dropdown-item.has-child::after {
    content: "" !important;
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 10px;
    flex-shrink: 0;
    background-image: url("../img/icons/navigation/chevron-right-primary.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    float: none !important;
    transition: transform 0.2s ease;
  }
  .dropdown-item:hover.has-child::after {
    transform: translateX(4px);
  }
  .dropdown-submenu {
    position: relative;
  }
  .countdown-info {
    padding: 8px 15px;
    font-size: 1.1rem;
  }
  .countdown-info:hover {
    padding-bottom: 18px;
  }
  .btn-recount {
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1.1rem;
  }
}
@media (min-width: 992px) and (max-width: 1399px) {
  .nav-link-custom {
    padding: 0.7rem 1rem;
  }
  .nav-link-custom i {
    display: none !important;
  }
}
@media (max-width: 991px) {
  .header-left .branch-text {
    display: none !important;
  }
}
@media (max-width: 768px) {
  .detail-label {
    width: 40%;
  }
  .dt-controls-row {
    flex-direction: column; /* 改為垂直堆疊 */
    align-items: stretch;
  }
  .dt-search-wrapper, .dt-length-wrapper {
    flex: 1 1 100%;
    width: 100%;
  }
  .dt-length-wrapper {
    justify-content: space-between; /* 在手機版分散對齊 */
  }
  .months-container {
    grid-template-columns: 1fr; /* 手機 1 欄 */
  }
  .custom-nav-pills {
    padding: 10px;
    border-radius: 15px;
  }
  .lb-table-card.with-stack {
    background-color: transparent;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0);
    border: 1px solid rgba(0, 0, 0, 0);
  }
  .table-responsive-stack thead {
    display: none;
  }
  .table-responsive-stack tbody tr {
    display: block;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  }
  .table-responsive-stack td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: right;
    padding: 12px 15px !important;
    border-bottom: 1px solid #f0f0f0 !important;
  }
  .table-responsive-stack td.td-action {
    border-bottom: none !important;
    background: #f9fbf9;
    justify-content: center;
  }
  .table-responsive-stack td::before {
    content: attr(data-label);
    font-weight: 600;
    /*color: var(--primary-color);*/
    text-align: left;
    margin-right: 1rem;
    flex-shrink: 0;
  }
  .table-responsive-stack .text-center {
    text-align: right !important;
  }
}
@media (max-width: 1200px) {
  .months-container {
    grid-template-columns: repeat(2, 1fr);
  }
}
