/* ── Base CSS ───── */
html,
body {
  background-color: #f9f6ee;
  margin: 5px 0px 5px 2px;
  padding: 5px 0px 5px 2px;
  overflow: hidden;
}
section {
  display: flex;
  flex-flow: column;
  height: 100dvh;
  margin: 0;
  overflow: hidden;
}

.tab-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 50px;
}
tr {
  cursor: default;
}
.myBtn {
  width: 70px;
}

/* ── Preloader ────── */
#preloader {
  position: fixed;
  inset: 0;
  background-color: #f9f6ee;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
}
#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}
.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.preloader-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0d6efd;
  letter-spacing: 1px;
  margin: 0;
}
.preloader-dots {
  display: flex;
  gap: 10px;
}
.preloader-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #0d6efd;
  animation: dot-bounce 0.7s ease-in-out infinite;
}
.preloader-dots span:nth-child(2) {
  animation-delay: 0.15s;
}
.preloader-dots span:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes dot-bounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(-10px);
    opacity: 0.4;
  }
}

/* ── Footer ── */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2px 0;
  background-color: #f9f6ee;
  border-top: 1px solid #dee2e6;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0d6efd;
  font-size: 15px;
}

.invalid-tooltip {
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: 4px;
}

/* ── Modal width on mobile ─────── */
@media (max-width: 576px) {
  .modal-dialog {
    width: 90%;
    max-width: 90%;
    margin: 1rem auto;
  }

  #successToast {
    width: 80%;
    max-width: 180px;
  }
}

/* ── Toast ───────── */
.toast-container {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
}
#successToast {
  background-color: #0d6efd;
  border-radius: 8px;
  width: 120%;
  max-width: 450px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
#successToast .toast-body {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 7px 16px;
}
