:root {
  --primary: #2563eb;
  --bg: #f1f5f9;
  --card: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --radius: 16px;
}

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
}

/* ===== LAYOUT ===== */
.wrapper {
  display: flex;
  min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 260px;
  background: var(--card);
  height: 100vh;        /* penuh tinggi layar */
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;  /* penting agar brand, menu, logout terpisah */
  padding: 24px;
  border-right: 1px solid #e2e8f0;
  transition: transform 0.3s ease;
  z-index: 2000;
}

/* ===== SIDEBAR BRAND ===== */
.sidebar-brand {
  flex-shrink: 0;   
  text-align: center;
  margin-bottom: 20px;
}

.sidebar-brand img {
  max-width: 120px;
  max-height: 60px;
  object-fit: contain;
  margin-bottom: 12px;
}

.sidebar-brand h2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ===== MENU SCROLLABLE ===== */
.sidebar-menu-scroll {
  flex-grow: 1;            /* ambil sisa tinggi sidebar */
  overflow-y: auto;        /* scroll jika content tinggi */
  margin-bottom: 16px;
}

/* ===== MENU ===== */
.menu-group {
  margin-bottom: 28px;
}

.menu-divider {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 12px;
  padding-left: 4px;
  position: relative;
}

.menu-divider::after {
  content: "";
  display: block;
  height: 1px;
  background: #e2e8f0;
  margin-top: 8px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar ul li {
  margin-bottom: 8px;
}

.sidebar ul li a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  transition: 0.2s ease;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
  background: #eff6ff;
  color: var(--primary);
}

/* ===== LOGOUT ===== */
.logout-group {
  flex-shrink: 0;      /* tetap di bawah */
}

.logout-link {
  color: #ef4444 !important;
}

.logout-link:hover {
  background: #fef2f2 !important;
}

/* ===== OPTIONAL SCROLLBAR ===== */
.sidebar-menu-scroll::-webkit-scrollbar {
  width: 6px;
}

.sidebar-menu-scroll::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.1);
  border-radius: 3px;
}

.sidebar-menu-scroll::-webkit-scrollbar-track {
  background: transparent;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .sidebar {
      transform: translateX(-100%);
  }

  .sidebar.active {
      transform: translateX(0);
  }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .sidebar-brand img {
    max-width: 80px;   /* lebih kecil dari desktop */
    max-height: 40px;
  }

  .sidebar-brand h2 {
    font-size: 12px;   /* opsional, biar proporsional */
  }
}

/* ===== OVERLAY ===== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 1500;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ===== MAIN ===== */
.main {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;   /* 🔥 WAJIB */
}

/* ===== SUBMENU ===== */
.has-submenu > a.submenu-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between; /* teks kiri, panah kanan */
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

/* Hover effect */
.has-submenu > a.submenu-toggle:hover {
  background: #eff6ff;
  color: var(--primary);
}

/* Submenu panah rotate */
.submenu-arrow {
  transition: transform 0.3s ease;
  font-size: 10px;
}

/* Rotate saat submenu aktif */
.has-submenu.active > a.submenu-toggle .submenu-arrow {
  transform: rotate(-180deg);
}

/* Show submenu */
.has-submenu.active .submenu {
  max-height: 500px; /* cukup tinggi untuk isi submenu */
}

/* Submenu background */
.submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 12px;
  background: rgba(0, 0, 0, 0.03); /* sedikit lebih terang dari sidebar */
  border-radius: 8px;              /* rounded agar modern */
  margin-top: 4px;                 /* jarak dari parent menu */
}

/* Submenu links */
.submenu li a {
  font-size: 13px;
  padding: 8px 14px;
  display: block;
  border-radius: 8px;
  color: #374151;   /* sedikit lebih gelap dari muted text */
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

/* Hover submenu */
.submenu li a:hover {
  background: #dbeafe;  /* biru lembut */
  color: var(--primary);
}

/* ===== TOPBAR ===== */
/* .topbar {
  height: 70px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid #e2e8f0;
} */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 70px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: relative;
  z-index: 100;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Notification button */
.rtc-notification {
  position: relative;
}

.rtc-notif-btn {
  position: relative;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.rtc-badge-notif {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #e53935;
  color: #fff;
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 50%;
}

/* Dropdown */
.rtc-notif-dropdown {
  position: absolute;
  top: 35px;
  right: 0;
  width: 280px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  display: none;
  flex-direction: column;
  overflow: hidden;
  font-size: 14px;
}

/* Show dropdown */
.rtc-notif-dropdown.show {
  display: flex;
}

/* Header */
.rtc-notif-header {
  font-weight: bold;
  padding: 10px 15px;
  border-bottom: 1px solid #eee;
}

/* List items */
.rtc-notif-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 200px;
  overflow-y: auto;
}

.rtc-notif-list li {
  padding: 10px 15px;
  border-bottom: 1px solid #f1f1f1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rtc-notif-list li:last-child {
  border-bottom: none;
}

.rtc-notif-time {
  font-size: 11px;
  color: #999;
}

/* Footer */
.rtc-notif-footer {
  padding: 8px 15px;
  text-align: center;
  background: #f5f5f5;
}

.rtc-notif-footer a {
  text-decoration: none;
  font-weight: 500;
  color: #1e88e5;
}

.menu-toggle {
  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;
  display: none;
}

.search-box input {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  width: 260px;
}

.profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

/* ===== CONTENT ===== */
/* .content {
  padding: 30px;
  flex: 1;
} */

.content {
  padding: 30px;
  flex: 1;
  min-width: 0;   /* 🔥 INI KUNCINYA */
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  
}

.card {
  background: var(--card);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid #e2e8f0;
  transition: 0.2s ease;
  max-width: 200px;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.card h3 {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

.card p {
  font-size: 26px;
  font-weight: 600;
  color: var(--primary);
}

/* ===== FOOTER ===== */
.footer {
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

/* ===== RESPONSIVE ===== */
/* @media (max-width: 992px) {

  .sidebar {
      transform: translateX(-100%);
  }

  .sidebar.active {
      transform: translateX(0);
  }

  .main {
      margin-left: 0;
  }

  .menu-toggle {
      display: block;
  }

  .search-box input {
      width: 160px;
  }
} */
@media (max-width: 992px) {

  .sidebar {
      transform: translateX(-100%);
  }

  .sidebar.active {
      transform: translateX(0);
  }

  .main {
      margin-left: 0;
      width: 100%;        /* 🔥 tambahkan ini */
      min-width: 0;       /* 🔥 dan ini */
  }

  .menu-toggle {
    display: block;
  }

  .search-box input {
      width: 160px;
  }

}

/* ===== SIDEBAR BRAND ===== */
/* .sidebar-brand {
  flex-shrink: 0;   
  text-align: center;
  margin-bottom: 40px;
}

.sidebar-brand img {
  max-width: 120px;
  max-height: 60px;
  object-fit: contain;
  margin-bottom: 12px;
}

.sidebar-brand h2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
} */

/* ===== Sidebar Menu Scrollable ===== */
/* .sidebar > .menu-group,
.sidebar > .logout-group {
  overflow-y: auto;      
} */
/* scroll saat content melebihi */

/* Flex grow agar menu scrollable mengambil sisa height */
/* .menu-group {
  flex-grow: 1;          
  margin-bottom: 16px;
} */

/* Optional: scrollbar styling (modern) */
/* .sidebar > .menu-group::-webkit-scrollbar {
  width: 6px;
} */

/* .sidebar > .menu-group::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.1);
  border-radius: 3px;
} */

/* .sidebar > .menu-group::-webkit-scrollbar-track {
  background: transparent;
} */

/* Logout tetap di bawah */
/* .logout-group {
  flex-shrink: 0;   
} */
/* jangan ikut scroll */

/* ===== MENU GROUP ===== */
/* .menu-group {
  margin-bottom: 28px;
} */

/* ===== DIVIDER STYLE ===== */
/* .menu-divider {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 12px;
  padding-left: 4px;
  position: relative;
}

.menu-divider::after {
  content: "";
  display: block;
  height: 1px;
  background: #e2e8f0;
  margin-top: 8px;
} */

/* ===== LOGOUT STYLE ===== */
/* .logout-group {
  margin-top: auto;
} */

/* .logout-link {
  color: #ef4444 !important;
} */

/* .logout-link:hover {
  background: #fef2f2 !important;
} */




/* ===============================
RTC FORM SYSTEM
================================= */

.rtc-form {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}

.rtc-label {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
}

/* ===== INPUT / TEXTAREA / SELECT ===== */
.rtc-form-control {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  transition: all 0.2s ease;
  outline: none;
}

/* Hover */
.rtc-form-control:hover {
  border-color: #cbd5e1;
}

/* Focus */
.rtc-form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Textarea resize */
textarea.rtc-form-control {
  resize: vertical;
  min-height: 100px;
}

/* Select styling */
select.rtc-form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7L10 12L15 7' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

/* ===== DISABLED ===== */
.rtc-form-control:disabled {
  background: #f1f5f9;
  cursor: not-allowed;
  opacity: 0.7;
}

/* ===== ERROR STATE ===== */
.rtc-form.error .rtc-form-control {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.rtc-form-error {
  font-size: 12px;
  color: #ef4444;
  margin-top: 6px;
}

/* ===== SUCCESS STATE ===== */
.rtc-form.success .rtc-form-control {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.rtc-form-success {
  font-size: 12px;
  color: #22c55e;
  margin-top: 6px;
}

/* ===============================
INVALID STATE (Bootstrap-like)
================================= */

.rtc-form-control.is-invalid {
  border-color: #ef4444;
  background-color: #fff;
}

.rtc-form-control.is-invalid:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* Invalid message */
.invalid-feedback {
  font-size: 12px;
  color: #ef4444;
  margin-top: 6px;
  display: none;
}

/* Show message when invalid */
.rtc-form-control.is-invalid+.invalid-feedback {
  display: block;
}




/* ===============================
FORBIDDEN PAGE
================================= */

.forbidden-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.forbidden-card {
  max-width: 500px;
  text-align: center;
  background: #ffffff;
  padding: 50px 40px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.forbidden-icon {
  font-size: 42px;
  margin-bottom: 15px;
}

.forbidden-card h1 {
  font-size: 60px;
  font-weight: 700;
  color: #ef4444;
  margin-bottom: 10px;
}

.forbidden-card h2 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--text);
}

.forbidden-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 30px;
}

/* ===== BUTTON SYSTEM ===== */
.rtc-btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: 0.2s ease;
}

.rtc-btn-primary {
  background: var(--primary);
  color: #fff;
}

.rtc-btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

/* ===== RTC BUTTON DISABLED ===== */
.rtc-btn:disabled,
.rtc-btn.rtc-disabled {
    opacity: 0.6;             /* lebih pudar */
    cursor: not-allowed;      /* tanda tidak bisa di klik */
    pointer-events: none;     /* mencegah klik/tap */
    box-shadow: none;         /* hilangkan shadow interaktif */
    transform: none;          /* hilangkan efek hover/active */
}

/* jika ada hover pada disabled, jangan berubah */
.rtc-btn:disabled:hover,
.rtc-btn.rtc-disabled:hover {
    background-color: inherit;
    color: inherit;
}

/* versi loading tetap bisa terlihat */
.rtc-btn.rtc-btn-loading:disabled {
    opacity: 0.8;  /* sedikit lebih terang biar loading terlihat */
}

/* Varian Button Danger */
.rtc-btn-danger {
  background-color: #e74c3c; /* Warna merah tegas */
  color: #ffffff;
  border: 1px solid #e74c3c;
  cursor: pointer;
}

/* Efek saat kursor diarahkan (Hover) */
.rtc-btn-danger:hover {
  background-color: #c0392b; /* Merah sedikit lebih gelap */
  border-color: #c0392b;
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3); /* Shadow merah halus */
  transform: translateY(-1px); /* Efek mengangkat sedikit */
}

/* Efek saat diklik (Active) */
.rtc-btn-danger:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(231, 76, 60, 0.2);
}




/* ===============================
ERROR 404 PAGE
================================= */

.error-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.error-card {
  max-width: 520px;
  text-align: center;
  background: #ffffff;
  padding: 55px 45px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

.error-icon {
  font-size: 42px;
  margin-bottom: 15px;
}

.error-card h1 {
  font-size: 64px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.error-card h2 {
  font-size: 20px;
  margin-bottom: 15px;
}

.error-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 30px;
}





/* ===== BUTTONS ===== */
.rtc-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.rtc-btn-primary {
  background: var(--primary);
  color: #fff;
}

.rtc-btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

.rtc-btn-light {
  background: #f1f5f9;
  color: var(--text);
  margin-left: 10px;
}

.rtc-btn-light:hover {
  background: #e2e8f0;
}

/* Loading state */
.rtc-btn-loading {
  pointer-events: none;
  opacity: 0.85;
}

/* Hide text smoothly */
.rtc-btn-loading span,
.rtc-btn-loading .btn-text {
  visibility: hidden;
}

/* Spinner */
.rtc-btn-loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: rtc-spin 0.7s linear infinite;
}

/* Spinner animation */
@keyframes rtc-spin {
  to {
      transform: rotate(360deg);
  }
}





/* ===============================
RTC CARD SYSTEM
================================= */

.rtc-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  min-width: 0px;
  transition: 0.25s ease;
}

/* Hover subtle lift */
.rtc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

/* ===== HEADER ===== */
.rtc-card-header {
  padding: 18px 22px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rtc-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.rtc-card-actions {
  display: flex;
  gap: 8px;
}

/* ===== BODY ===== */
.rtc-card-body {
  padding: 22px;
  font-size: 14px;
  color: var(--text);
  overflow: hidden;
}

.rtc-mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* ===== FOOTER ===== */
.rtc-card-footer {
  padding: 16px 22px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafafa;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  font-size: 13px;
  color: var(--muted);
}

/* ===== CARD VARIANTS ===== */

/* Compact card */
.rtc-card.compact .rtc-card-body {
  padding: 14px 18px;

}

/* No hover */
.rtc-card.no-hover:hover {
  transform: none;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

/* Center content */
.rtc-card.center {
  text-align: center;
}

.rtc-row,
[class*="rtc-col"],
.rtc-card,
.rtc-card-body {
  min-width: 0;
}





/* ===============================
RTC MODAL SYSTEM (REVISED)
================================= */

/* BASE - ALL MODALS HIDDEN */
.rtc-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: none;
  /* 🔥 Always hidden by default */

  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
}

/* SHOW MODAL */
.rtc-modal.active {
  display: block;
  overflow-y: auto;
  padding: 60px 20px;
  animation: rtcFadeIn 0.2s ease;
}

/* ===== FIXED CENTER MODAL ===== */

.rtc-modal.rtc-modal-fixed.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}

/* Disable body scroll when fixed modal open */
body.rtc-modal-open {
  overflow: hidden;
}

/* ===== Dialog ===== */

.rtc-modal-dialog {
  margin: 0 auto;
  animation: rtcSlideDown 0.25s ease;
}

/* ===== SIZE OPTIONS ===== */

.rtc-modal-small {
  max-width: 420px;
  width: 100%;
}

.rtc-modal-medium {
  max-width: 640px;
  width: 100%;
}

.rtc-modal-large {
  max-width: 900px;
  width: 100%;
}

/* ===== Content ===== */

.rtc-modal-content {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
}

/* ===== Header ===== */

.rtc-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rtc-modal-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.rtc-modal-close {
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #64748b;
  transition: 0.2s ease;
}

.rtc-modal-close:hover {
  color: #0f172a;
}

/* ===== Body ===== */

.rtc-modal-body {
  padding: 24px;
  overflow-y: auto;
  font-size: 14px;
}

/* ===== Footer ===== */

.rtc-modal-footer {
  padding: 18px 24px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #fafafa;
}

.rtc-modal-header h3 {
  display: flex;
  align-items: center; 
  gap: 12px;           
  line-height: 1;     
}

.rtc-modal-header svg {
  display: block;      /* Menghilangkan whitespace di bawah svg */
}

/* ===== Animations ===== */

@keyframes rtcFadeIn {
  from {
      opacity: 0;
  }

  to {
      opacity: 1;
  }
}

@keyframes rtcSlideDown {
  from {
      transform: translateY(-10px);
      opacity: 0;
  }

  to {
      transform: translateY(0);
      opacity: 1;
  }
}

/* ===== Responsive ===== */

@media (max-width: 768px) {
  .rtc-modal-dialog {
      max-width: 100% !important;
  }

  .rtc-modal-content {
      border-radius: 16px;
  }
}

.btn-date-delete-whraper {
  border:1px solid #000; padding:5px 10px; border-radius:5px;display: flex;
  align-items: center; 
  gap: 1px;           
  line-height: 1;
}




/* ===============================
RTC TABLE SYSTEM
================================= */

.rtc-table-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  display: block;
}

/* Base Table */
.rtc-table {
  width: 100%;
  border-collapse: collapse;
}

/* ===== THEAD ===== */
.rtc-table thead {
  background: #f8fafc;
}

.rtc-table thead th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  color: #334155;
  border-bottom: 1px solid #e2e8f0;
  /* white-space: nowrap; */
  word-break: break-word; white-space: normal;
}

/* ===== TBODY ===== */
.rtc-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #475569;
  vertical-align: middle;
  white-space: normal;
  vertical-align: top;
}

/* Hover row */
.rtc-table tbody tr {
  transition: 0.2s ease;
}

.rtc-table tbody tr:hover {
  background: #f9fafb;
}

.rtc-table th,
.rtc-table td {
  white-space: nowrap;
}

/* Zebra option */
.rtc-table.zebra tbody tr:nth-child(even) {
  background: #fcfcfd;
}

/* ===== TFOOT ===== */
.rtc-table tfoot {
  background: #f8fafc;
}

.rtc-table tfoot td {
  padding: 14px 16px;
  font-weight: 600;
  border-top: 1px solid #e2e8f0;
  color: #1e293b;
}

/* ===== Utilities ===== */

.rtc-table .text-right {
  text-align: right;
}

.rtc-table .text-center {
  text-align: center;
}

.rtc-table .text-muted {
  color: #94a3b8;
}

/* ===== Compact Mode ===== */

.rtc-table.compact th,
.rtc-table.compact td {
  padding: 10px 14px;
}

/* ===== Striped Soft Variant ===== */

.rtc-table.soft {
  border: none;
}

.rtc-table.soft thead {
  background: transparent;
}

.rtc-table.soft tbody tr {
  border-bottom: 1px solid #f1f5f9;
}

/* ===== Responsive improvements ===== */

@media (max-width: 768px) {
  .rtc-table {
      font-size: 13px;
  }
}

/* ===============================
RTC TABLE RESPONSIVE
================================= */

/* Responsive mode only */
.rtc-table-wrapper.rtc-table-responsive {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  display: block;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

/* Table boleh melebar di dalam wrapper */
.rtc-card,
.rtc-card-body,
.rtc-row,
.rtc-col-sm {
  min-width: 0;   /* 🔥 ini sering jadi biang overflow */
}

/* FIX flex overflow issue */
/* .rtc-row {
  display: flex;
  flex-wrap: wrap;
}

.rtc-col-sm {
  flex: 1 1 0%;
  min-width: 0;   
} */
/* 🔥 WAJIB */


/* ===============================
BADGE
================================= */
.rtc-badge {
  /* KUNCI UTAMA: inline-block membuat background mengikuti lebar teks */
  display: inline-block;
  
  /* Menjaga teks tetap di tengah secara vertikal jika tinggi baris berubah */
  vertical-align: middle;
  
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  
  /* Mengatur jarak antar baris agar tidak terlalu renggang saat 2 baris */
  line-height: 1.2; 
  
  /* Border radius yang tetap rapi meski 2 baris */
  border-radius: 12px; 
  
  /* Opsional: Batasi lebar maksimal agar teks terpaksa turun ke bawah */
  max-width: 150px; 
  
  /* Agar kata yang sangat panjang tidak keluar jalur */
  word-wrap: break-word;
  text-align: center;
}

/* Warna tetap sama seperti milik Anda */
.rtc-badge-success { background: #dcfce7; color: #166534; }
.rtc-badge-warning { background: #fef3c7; color: #92400e; }
.rtc-badge-danger  { background: #fee2e2; color: #991b1b; }
.rtc-badge-muted   { background: #e5e7eb; color: #374151; }
.rtc-badge-info    { background: #dbeafe; color: #1e40af; }

.rtc-card-centered {
  max-width: 1500px;
  margin: 0 auto;
}





/* ===============================
RTC ALERT / FLASH MESSAGE
================================= */

/* ===== RTC ALERT SMOOTH ===== */
.rtc-alert {
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
  border-left: 4px solid;
  display: flex;
  align-items: center;
  gap: 10px;

  /* default hidden */
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* type colors */
.rtc-alert.success { border-color: #22c55e; background-color: #ecfdf5; color: #166534; }
.rtc-alert.warning { border-color: #f59e0b; background-color: #fffbeb; color: #78350f; }
.rtc-alert.info { border-color: #3b82f6; background-color: #eff6ff; color: #1e40af; }

/* when active/show */
.rtc-alert.show {
  opacity: 1;
  transform: translateY(0);
}

/* Optional strong styling */
.rtc-alert strong {
  font-weight: 600;
}

/* Animation */
@keyframes rtcAlertFade {
  from {
      opacity: 0;
      transform: translateY(-4px);
  }

  to {
      opacity: 1;
      transform: translateY(0);
  }
}




/* ===============================
   RTC GRID SYSTEM (FULL)
================================= */

/* ===== ROW ===== */
.rtc-row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -12px;
  margin-right: -12px;
}

/* ===== COLUMNS ===== */
[class*="rtc-col"] {
  padding-left: 12px;
  padding-right: 12px;
  box-sizing: border-box;
  min-width: 0;  /* 🔥 penting untuk flex overflow */
}

/* ===== AUTO COLUMN ===== */
/* Tanpa numeric, akan dibagi rata dengan sibling-nya */
.rtc-col,
.rtc-col-sm,
.rtc-col-md,
.rtc-col-lg,
.rtc-col-xl {
  flex: 1 0 0%;
  max-width: 100%;
  min-width: 0;
}

/* ===== NUMERIC WIDTHS (1-12) ===== */
.rtc-col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.rtc-col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.rtc-col-3 { flex: 0 0 25%; max-width: 25%; }
.rtc-col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.rtc-col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.rtc-col-6 { flex: 0 0 50%; max-width: 50%; }
.rtc-col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.rtc-col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.rtc-col-9 { flex: 0 0 75%; max-width: 75%; }
.rtc-col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.rtc-col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.rtc-col-12 { flex: 0 0 100%; max-width: 100%; }

/* ===========================
   BREAKPOINTS
=========================== */

/* --------- SM (≥576px) --------- */
@media (min-width: 576px) {
  .rtc-col-sm { flex: 1 0 0%; max-width: 100%; } /* auto-bagi rata */
  .rtc-col-sm-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
  .rtc-col-sm-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .rtc-col-sm-3 { flex: 0 0 25%; max-width: 25%; }
  .rtc-col-sm-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .rtc-col-sm-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .rtc-col-sm-6 { flex: 0 0 50%; max-width: 50%; }
  .rtc-col-sm-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .rtc-col-sm-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .rtc-col-sm-9 { flex: 0 0 75%; max-width: 75%; }
  .rtc-col-sm-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .rtc-col-sm-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  .rtc-col-sm-12 { flex: 0 0 100%; max-width: 100%; }
}

/* --------- MD (≥768px) --------- */
@media (min-width: 768px) {
  .rtc-col-md { flex: 1 0 0%; max-width: 100%; }
  .rtc-col-md-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
  .rtc-col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .rtc-col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .rtc-col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .rtc-col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .rtc-col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .rtc-col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .rtc-col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .rtc-col-md-9 { flex: 0 0 75%; max-width: 75%; }
  .rtc-col-md-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .rtc-col-md-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  .rtc-col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

/* --------- LG (≥992px) --------- */
@media (min-width: 992px) {
  .rtc-col-lg { flex: 1 0 0%; max-width: 100%; }
  .rtc-col-lg-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
  .rtc-col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .rtc-col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .rtc-col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .rtc-col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .rtc-col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .rtc-col-lg-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .rtc-col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .rtc-col-lg-9 { flex: 0 0 75%; max-width: 75%; }
  .rtc-col-lg-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .rtc-col-lg-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  .rtc-col-lg-12 { flex: 0 0 100%; max-width: 100%; }
}

/* --------- XL (≥1200px) --------- */
@media (min-width: 1200px) {
  .rtc-col-xl { flex: 1 0 0%; max-width: 100%; }
  .rtc-col-xl-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
  .rtc-col-xl-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .rtc-col-xl-3 { flex: 0 0 25%; max-width: 25%; }
  .rtc-col-xl-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .rtc-col-xl-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .rtc-col-xl-6 { flex: 0 0 50%; max-width: 50%; }
  .rtc-col-xl-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .rtc-col-xl-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .rtc-col-xl-9 { flex: 0 0 75%; max-width: 75%; }
  .rtc-col-xl-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .rtc-col-xl-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  .rtc-col-xl-12 { flex: 0 0 100%; max-width: 100%; }
}

/* --------- MOBILE DEFAULT (optional) --------- */
@media (max-width: 575.98px) {
  .rtc-col,
  .rtc-col-sm,
  .rtc-col-md,
  .rtc-col-lg,
  .rtc-col-xl {
    flex: 0 1 100%;
    max-width: 100%;
    min-width: 0;
  }
}

@media (max-width: 575.98px) {
  .rtc-col-sm,
  .rtc-col-sm-1,
  .rtc-col-sm-2,
  .rtc-col-sm-3,
  .rtc-col-sm-4,
  .rtc-col-sm-5,
  .rtc-col-sm-6,
  .rtc-col-sm-7,
  .rtc-col-sm-8,
  .rtc-col-sm-9,
  .rtc-col-sm-10,
  .rtc-col-sm-11,
  .rtc-col-sm-12 {
    flex: 0 1 100%;
    max-width: 100%;
    min-width: 0;
  }
}







/* ===============================
RTC TEXT ALIGNMENT
================================= */

.rtc-text-left {
  text-align: left !important;
}

.rtc-text-center {
  text-align: center !important;
}

.rtc-text-right {
  text-align: right !important;
}

/* Tablet */
@media (max-width: 992px) {
  .rtc-text-md-left {
      text-align: left !important;
  }

  .rtc-text-md-center {
      text-align: center !important;
  }

  .rtc-text-md-right {
      text-align: right !important;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .rtc-text-sm-left {
      text-align: left !important;
  }

  .rtc-text-sm-center {
      text-align: center !important;
  }

  .rtc-text-sm-right {
      text-align: right !important;
  }
}





/* ===============================
RTC SPACING SYSTEM
================================= */

/* Margin Top */
.rtc-mt-0 {
  margin-top: 0 !important;
}

.rtc-mt-1 {
  margin-top: 4px !important;
}

.rtc-mt-2 {
  margin-top: 8px !important;
}

.rtc-mt-3 {
  margin-top: 12px !important;
}

.rtc-mt-4 {
  margin-top: 16px !important;
}

.rtc-mt-5 {
  margin-top: 24px !important;
}

.rtc-mt-6 {
  margin-top: 32px !important;
}

/* Margin Bottom */
.rtc-mb-0 {
  margin-bottom: 0 !important;
}

.rtc-mb-1 {
  margin-bottom: 4px !important;
}

.rtc-mb-2 {
  margin-bottom: 8px !important;
}

.rtc-mb-3 {
  margin-bottom: 12px !important;
}

.rtc-mb-4 {
  margin-bottom: 16px !important;
}

.rtc-mb-5 {
  margin-bottom: 24px !important;
}

.rtc-mb-6 {
  margin-bottom: 32px !important;
}

/* Margin Start (Left) */
.rtc-ms-1 {
  margin-left: 4px !important;
}

.rtc-ms-2 {
  margin-left: 8px !important;
}

.rtc-ms-3 {
  margin-left: 12px !important;
}

.rtc-ms-4 {
  margin-left: 16px !important;
}

.rtc-ms-5 {
  margin-left: 24px !important;
}

/* Margin End (Right) */
.rtc-me-1 {
  margin-right: 4px !important;
}

.rtc-me-2 {
  margin-right: 8px !important;
}

.rtc-me-3 {
  margin-right: 12px !important;
}

.rtc-me-4 {
  margin-right: 16px !important;
}

.rtc-me-5 {
  margin-right: 24px !important;
}

/* Padding Top */
.rtc-pt-1 {
  padding-top: 4px !important;
}

.rtc-pt-2 {
  padding-top: 8px !important;
}

.rtc-pt-3 {
  padding-top: 12px !important;
}

.rtc-pt-4 {
  padding-top: 16px !important;
}

.rtc-pt-5 {
  padding-top: 24px !important;
}

/* Padding Bottom */
.rtc-pb-1 {
  padding-bottom: 4px !important;
}

.rtc-pb-2 {
  padding-bottom: 8px !important;
}

.rtc-pb-3 {
  padding-bottom: 12px !important;
}

.rtc-pb-4 {
  padding-bottom: 16px !important;
}

.rtc-pb-5 {
  padding-bottom: 24px !important;
}

/* Padding Start */
.rtc-ps-1 {
  padding-left: 4px !important;
}

.rtc-ps-2 {
  padding-left: 8px !important;
}

.rtc-ps-3 {
  padding-left: 12px !important;
}

.rtc-ps-4 {
  padding-left: 16px !important;
}

/* Padding End */
.rtc-pe-1 {
  padding-right: 4px !important;
}

.rtc-pe-2 {
  padding-right: 8px !important;
}

.rtc-pe-3 {
  padding-right: 12px !important;
}

.rtc-pe-4 {
  padding-right: 16px !important;
}

/* ===============================
   RTC LOGIN PAGE
================================= */




/* User Avatar */
/* Image */
.avatar-img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  transition: transform .35s ease, filter .35s ease;
}

.avatar-img-booking {
  border-radius: 50%;
  display: block;
  object-fit: cover;
  width: 100px;    /* contoh ukuran */
  height: 100px;   /* sama dengan width agar bulat */
  transition: transform .35s ease, filter .35s ease;
}

.guest-avatar-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  transition: transform .35s ease, filter .35s ease;
}

/* Overlay */
.avatar-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;

  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(2px);

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  transform: scale(.96);
  transition: opacity .35s ease, transform .35s ease;
}

/* ======================
   AVATAR UPLOAD CONTAINER
   ====================== */
   .avatar-upload {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

/* ======================
   AVATAR IMAGE
   ====================== */
.avatar-img {
    border-radius: 50%;
    display: block;
    object-fit: cover;
    width: 160px;    /* contoh ukuran */
    height: 160px;   /* sama dengan width agar bulat */
    transition: transform .35s ease, filter .35s ease;
}

/* ======================
   OVERLAY
   ====================== */
.avatar-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 100%;            /* sedikit lebih kecil dari image */
    height: 100%;
    border-radius: 50%;    /* bulat mengikuti image */
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .35s ease, transform .35s ease;
}

/* ======================
   HOVER EFFECT
   ====================== */
.avatar-upload:hover .avatar-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.avatar-upload:hover .avatar-text {
    opacity: 1;
    transform: translateY(0);
}

.avatar-upload:hover .avatar-img {
    transform: scale(1.04);
    filter: brightness(.85);
}

/* ======================
   TEXT ON OVERLAY
   ====================== */
.avatar-text {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .35s ease, transform .35s ease;
}

/* ======================
   EDIT ICON
   ====================== */
.avatar-upload::after {
    content: '✎';
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: .85;
}


/* PASSWORD STRENGHT */
.password-hint {
  font-size: 13px;
  color: #6b7280;
  /* soft gray */
}

.password-strength {
  opacity: 0;
  transition: opacity .2s ease;
}

.password-strength.active {
  opacity: 1;
}


.password-strength {
  position: relative;
  height: 4px !important;
  background: #e5e7eb;
  border-radius: 4px;
  margin-top: 6px;
  overflow: hidden;
  width: 100%;
}

.password-strength span {
  display: block !important;
  height: 100%;
  width: 0%;
  background-color: #ef4444;
  transition: width .3s ease, background-color .3s ease;
}


.password-match {
  font-size: 13px;
  margin-top: 4px;
  display: block;
}

.password-match.error {
  color: #dc2626;
}

.tx-error {
  color: #dc2626;
  font-size: small;
}

.password-match.success {
  color: #16a34a;
}



/* PAGER */
.rtc-pagination {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.rtc-pagination ul {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 6px;
  margin: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.rtc-pagination li {
  display: flex;
}

.rtc-pagination li a,
.rtc-pagination li span {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  transition: all 0.2s ease;
}

/* Hover */
.rtc-pagination li a:hover {
  background: #f1f5f9;
}

/* Active */
.rtc-pagination li.active span {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

/* Disabled */
.rtc-pagination li.disabled span {
  color: #94a3b8;
  cursor: not-allowed;
}

/* Prev / Next spacing */
.rtc-pagination li:first-child a,
.rtc-pagination li:last-child a {
  font-weight: 600;
}

.flex-label {
  display: inline-flex;
  /* Membuat label sejajar dengan elemen lain */
  align-items: left;
  /* Menyejajarkan gambar & teks tepat di tengah secara vertikal */
  gap: 1px;
  /* Memberikan jarak antara gambar dan teks */
}


/* Toaster */
.rtc-toast-container {
    position: fixed;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

/* Positions */
.rtc-toast-container.top-right    { top: 20px; right: 20px; }
.rtc-toast-container.top-left     { top: 20px; left: 20px; }
.rtc-toast-container.bottom-right { bottom: 20px; right: 20px; }
.rtc-toast-container.bottom-left  { bottom: 20px; left: 20px; }

.rtc-toast {
    pointer-events: auto;
    min-width: 280px;
    max-width: 360px;
    padding: 14px 16px 22px 16px;
    border-radius: 14px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(120%);
    animation: slideIn 0.35s ease forwards;
}

.rtc-toast.success { background: #16a34a; }
.rtc-toast.error   { background: #dc2626; }
.rtc-toast.warning { background: #f59e0b; }
.rtc-toast.info    { background: #2563eb; }

.rtc-toast button {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    margin-left: 12px;
    cursor: pointer;
}

/* Progress bar */
.rtc-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    background: rgba(255,255,255,0.7);
    width: 100%;
    transform-origin: left;
}

/* Animations */
@keyframes slideIn {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.rtc-toast.hide {
    animation: slideOut 0.3s ease forwards;
}

@keyframes slideOut {
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

/* .rtc-checkbox {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    gap: 10px;
    font-size: 14px;
    color: #334155;
    position: relative;
    user-select: none;
} */

.rtc-checkbox {
  display: inline-flex;
  align-items: flex-start;   /* ✅ biar nempel atas */
  cursor: pointer;
  gap: 10px;
  font-size: 14px;
  color: #334155;
  position: relative;
  user-select: none;
}

.rtc-row-align {
  display: flex;
  align-items:center; /* sejajar dengan input */
  gap: 16px;
}

/* Hide native checkbox */
.rtc-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Custom box */
.rtc-checkbox .checkmark {
    min-width: 20px;
    min-height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

/* Hover */
.rtc-checkbox:hover .checkmark {
    border-color: #2563eb;
}

/* Checked state */
.rtc-checkbox input:checked + .checkmark {
    background: #2563eb;
    border-color: #2563eb;
}

/* Check icon */
.rtc-checkbox .checkmark::after {
    content: "";
    width: 10px;
    height: 10px;
    display: none;
    background: white;
    clip-path: polygon(14% 44%, 0% 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

/* Show icon when checked */
.rtc-checkbox input:checked + .checkmark::after {
    display: block;
}

/* Focus state */
.rtc-checkbox input:focus + .checkmark {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* Disabled */
.rtc-checkbox input:disabled + .checkmark {
    background: #e2e8f0;
    border-color: #e2e8f0;
    cursor: not-allowed;
}

.rtc-checkbox input:disabled ~ span:last-child {
    color: #94a3b8;
}

/* ===========================
   DANGER VARIANT
=========================== */

.rtc-checkbox-danger:hover .checkmark {
  border-color: #dc2626;
}

/* Checked state */
.rtc-checkbox-danger input:checked + .checkmark {
  background: #dc2626;
  border-color: #dc2626;
}

/* Focus state */
.rtc-checkbox-danger input:focus + .checkmark {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

/* X icon instead of check */
.rtc-checkbox-danger .checkmark::after {
  content: "✕";
  font-size: 13px;
  font-weight: bold;
  color: white;
  display: none;
}

/* Show X when checked */
.rtc-checkbox-danger input:checked + .checkmark::after {
  display: block;
}

.order-badge {
  background-color: #007bff;
  color: white;
  border-radius: 50%;
  padding: 2px 7px;
  font-size: 0.75rem;
  margin-left: 5px;
  display: inline-block;
  min-width: 18px;
  text-align: center;
}

.order-badge.danger{
  background-color: #ff0000;

}

/* Sembunyikan jika kosong agar tidak aneh */
.order-badge:empty {
  display: none;
}

/* Card Navigator */
/* Styling Ikon Navigator */
.card-navigator {
  cursor: pointer;
  transition: transform 0.3s ease;
  /* Animasi rotasi ikon */
  display: inline-block;
  user-select: none;
}

/* Kondisi saat Aktif (Terbuka) */
.card-navigator.active {
  transform: rotate(0deg);
  /* Posisi awal panah bawah */
}

/* Kondisi saat Tidak Aktif (Tertutup) */
.card-navigator:not(.active) {
  transform: rotate(-180deg);
  /* Putar ke samping saat tertutup */
}

/* Styling Kontainer Konten (Elemen yang dituju oleh 'for') */
#initialTourMetaData {
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

/* Saat SEMBUNYI */
.content-hide {
  display: none;
  opacity: 0;
  transform: translateY(-10px); /* Efek sedikit naik saat menghilang */
}

/* Saat MUNCUL */
.content-show {
  display: block;
  opacity: 1;
  transform: translateY(0);
  
  /* Trik agar transisi jalan saat display berubah dari none ke block */
  @starting-style {
      opacity: 0;
      transform: translateY(-10px);
  }
}

/* ======================
   CONTAINER
   ====================== */
   .rtc-image-upload {
    position: relative;
    display: block;
    width: 100%;
    max-width: 420px;
    /* optional */
}

.rtc-image-upload label {
    position: relative;
    display: block;
    cursor: pointer;
    overflow: hidden;
    border-radius: 12px;
}

/* ======================
IMAGE
====================== */
.rtc-image-preview {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    transition: transform .4s ease, filter .4s ease;
}

/* ======================
OVERLAY
====================== */
.rtc-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .35s ease;
}

/* ======================
OVERLAY TEXT
====================== */
.rtc-image-text {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .5px;
    transform: translateY(8px);
    opacity: 0;
    transition: all .35s ease;
}

/* ======================
HOVER EFFECT
====================== */
.rtc-image-upload label:hover .rtc-image-overlay {
    opacity: 1;
}

.rtc-image-upload label:hover .rtc-image-text {
    transform: translateY(0);
    opacity: 1;
}

.rtc-image-upload label:hover .rtc-image-preview {
    transform: scale(1.05);
    filter: brightness(.8);
}

/* ======================
EDIT ICON
====================== */
.rtc-image-upload label::after {
    content: '✎';
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: .9;
    transition: background .3s ease;
}

.rtc-image-upload label:hover::after {
    background: rgba(0, 0, 0, .8);
}

/* MCDatepicker container */
.mc-calendar {
  z-index: 9999 !important;
  /* Pastikan lebih tinggi dari z-index modal rtc-modal */
}

/* Jika Anda menggunakan backdrop/overlay kalender */
.mc-display {
  z-index: 9998 !important;
}

/* ======================
   SWITCHER CONTAINER
   ====================== */
   .rtc-switcher {
    display: inline-flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 999px;
    gap: 4px;
}

/* ======================
   BUTTON
   ====================== */
.rtc-switch {
    border: none;
    background: transparent;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    border-radius: 999px;
    cursor: pointer;
    transition: all .25s ease;
}

/* Hover */
.rtc-switch:hover {
    color: #0f172a;
}

/* Active */
.rtc-switch.active {
    background: #ffffff;
    color: #2563eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ======================
   CONTENT
   ====================== */
.rtc-pane {
    display: none;
    margin-top: 20px;
}

.rtc-pane.active {
    display: block;
}

.rtc-segment {
  display: inline-flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 999px;
  gap: 4px;
}

.rtc-segment label {
  position: relative;
  cursor: pointer;
}

.rtc-segment input {
  position: absolute;
  opacity: 0;
}

.rtc-segment span {
  display: inline-block;
  padding: 8px 18px;
  font-size: 14px;
  border-radius: 999px;
  background: transparent;
  color: #475569;
  font-weight: 500;
  transition: all 0.2s ease;
}

/* Hover */
.rtc-segment label:hover span {
  background: #e2e8f0;
}

/* Checked */
.rtc-segment input:checked + span {
  background: #2563eb;
  color: #fff;
}

/* Focus */
.rtc-segment input:focus + span {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.w-100 {
  width: 100%;
}

.h-100{
  height: 100%;
}

.desktop{
  display: block;
}

.mobile{
  display: none;
}

@media (max-width: 768px) {
  .desktop{
    display: none;
  }
  
  .mobile{
    display: block;
  }
}

.publishBlog{
  min-height: 100px;
  width:100%
}


/* BOOKING PAGES */
.month-navigation-wrapper {

  width: 100%;
  /* height: 150px; */
  background: #fff;
  padding: 20px 0;
  overflow: hidden;
}

.month-slider {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 50%;
  /* height: 150px; */
  /* Penting untuk centering */
  scroll-behavior: smooth;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.month-slider::-webkit-scrollbar {
  display: none;
}

.btn-month {
  flex: 0 0 auto;
  width: 100px;
  padding: 12px 0;
  text-align: center;
  border-radius: 15px;
  background: #f0f0f0;
  color: #666;
  cursor: pointer;
  border: none;
  font-weight: 600;
  scroll-snap-align: center;
  transition: all 0.3s ease;
}

.btn-month.active {
  background: #1d4ed8;
  color: #fff;
  transform: scale(1.1);
}

.btn-month:disabled,
.btn-month.disabled {
  background: #e5e7eb;   /* abu lebih pudar */
  color: #9ca3af;        /* teks lebih redup */
  cursor: not-allowed;
  transform: none;       /* hilangkan efek scale */
  opacity: 0.7;
}

/* optional: hilangkan efek hover kalau ada */
.btn-month:disabled:hover,
.btn-month.disabled:hover {
  background: #e5e7eb;
  transform: none;
}

/* Efek shimmer dasar */
.shimmer {
  background: #f6f7f8;
  background-image: linear-gradient(to right,
          #f6f7f8 0%,
          #edeef1 20%,
          #f6f7f8 40%,
          #f6f7f8 100%);
  background-repeat: no-repeat;
  background-size: 800px 100%;
  display: inline-block;
  position: relative;
  animation-duration: 1.2s;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
  animation-name: shimmer;
  animation-timing-function: linear;
  border-radius: 4px;
}

/* Animasi keyframe */
@keyframes shimmer {
  0% {
      background-position: -468px 0;
  }

  100% {
      background-position: 468px 0;
  }
}

/* Styling placeholder di dalam sel tabel */
.shimmer-line {
  width: 100%;
  height: 16px;
}

.shimmer-line.short {
  width: 60%;
}

 /* ===============================
   BOOKING DETAILS STYLE
================================= */

.rtc-booking-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  border: 1px solid #f1f5f9;
}

/* HEADER */
.rtc-booking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  min-height: 70px;
}

.rtc-booking-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #0f172a;
}

/* BODY TABLE ADJUSTMENT */
.rtc-booking-card .rtc-table td {
  padding: 14px 24px;
  vertical-align: top;
  border-bottom: 1px solid #f1f5f9;
}

.rtc-booking-card .rtc-table tr:last-child td {
  border-bottom: none;
}

/* LABEL COLUMN */
.rtc-booking-label {
  font-weight: 600;
  color: #475569;
  width: 180px;
}

/* SEPARATOR */
.rtc-booking-separator {
  width: 20px;
  color: #94a3b8;
}

/* VALUE COLUMN */
.rtc-booking-value {
  color: #0f172a;
}

.rtc-booking-value small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #64748b;
}

/* ROW HOVER */
.rtc-booking-card .rtc-table tbody tr:hover {
  background: #f8fafc;
}

/* ===============================
EDIT BUTTON STYLE
================================= */

.rtc-booking-btn {
  padding: 8px 16px;
  border-radius: 10px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #2563eb;
  color: #ffffff;
}

.rtc-booking-btn:hover {
  background: #1e40af;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.3);
}

.rtc-booking-btn-cancel{
  padding: 8px 16px;
  border-radius: 10px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #ff2f2f;
  color: #ffffff;
}

.rtc-booking-btn-cancel:hover {
  background: #ff0000;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(255, 169, 169, 0.3);
}


.shimmer-card {
  width: 100%;
  height: 150px;
  background: #f6f7f8;
  background-image: linear-gradient(to right,
          #f6f7f8 0%,
          #edeef1 20%,
          #f6f7f8 40%,
          #f6f7f8 100%);
  background-repeat: no-repeat;
  background-size: 800px 100%;
  border-radius: 12px;
  display: block;
  position: relative;
  overflow: hidden;

  animation: shimmer-animation 1.5s linear infinite forwards;
}

@keyframes shimmer-animation {
  0% {
      background-position: -468px 0;
  }

  100% {
      background-position: 468px 0;
  }
}

/* ==============================
   RTC AVATAR SHIMMER LOADING
================================= */

.rtc-avatar-shimmer {
  width: 64px;              /* bisa kamu ubah */
  height: 64px;
  border-radius: 50%;
  background: #e2e8f0;
  position: relative;
  overflow: hidden;
}

/* Shimmer animation */
.rtc-avatar-shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 150%;
  height: 100%;
  background: linear-gradient(
      90deg,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,0.6) 50%,
      rgba(255,255,255,0) 100%
  );
  animation: rtc-shimmer 1.4s infinite;
}

@keyframes rtc-shimmer {
  100% {
      left: 150%;
  }
}

.rtc-avatar-sm { width: 40px; height: 40px; }
.rtc-avatar-md { width: 64px; height: 64px; }
.rtc-avatar-lg { width: 96px; height: 96px; }

.rtc-multiline {
  white-space: pre-line;
}

.guest-lable {
  display: inline-flex;
  align-items: center;   /* center vertical */
  gap: 0px;              /* jarak antara flag dan teks */
  font-size: 14px;
  color: #334155;
}

.guest-lable img {
  /* width: 18px;           sesuaikan ukuran */
  /* height: 12px; */
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.05);
}

.row-hide{
  display: none;
}

.trekker-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Divider tipis */
.action-divider {
  width: 1px;
  height: 18px;
  background-color: #e2e8f0;
}

/* Base button */
.btn-trekker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Edit */
.btn-edit {
  color: #2563eb;
}

.btn-edit:hover {
  background-color: rgba(37, 99, 235, 0.08);
  border-radius: 4px;
}

/* Delete */
.btn-delete {
  color: #dc2626;
}

.btn-delete:hover {
  background-color: rgba(220, 38, 38, 0.08);
  border-radius: 4px;
}

/* Icon size */
.btn-trekker i {
  font-size: 13px;
}

.trekker-switcher {
  display: flex;
  width: 100%;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 4px;
  gap: 4px;
}

.switch-btn {
  flex: 1;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  color: #475569;
}

/* Active state */
.switch-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* Hover */
.switch-btn:hover:not(.active) {
  background: rgba(255,255,255,0.6);
}

.rtc-booking-warning {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid #f5c26b;
  background: #fff8e6;
  color: #7a4b00;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.rtc-booking-warning-icon {
  font-size: 18px;
  margin-top: 2px;
}

.rtc-booking-warning strong {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  color: #5c3a00;
}

.rtc-text-danger{
  color: #ff0000;
}

/* ================================
   INVOICE CARD BASE
================================ */

.rtc-invoice-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  margin-bottom: 24px;
  overflow: hidden;
  transition: all 0.25s ease;
  border-left: 4px solid transparent;
}

/* .rtc-invoice-card:hover {
  transform: translateY(-3px);
} */

/* ================================
 STATUS LEFT BORDER
================================ */

.rtc-invoice-card.status-paid {
  border-left-color: #16a34a;
}

.rtc-invoice-card.status-unpaid {
  border-left-color: #dc2626;
}

.rtc-invoice-card.status-partial {
  border-left-color: #f59e0b;
}

.rtc-invoice-card.status-cancelled {
  border-left-color: #64748b;
  opacity: 0.85;
}

/* ================================
 HEADER
================================ */

.rtc-invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid #f1f5f9;
}

.rtc-invoice-number {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.rtc-invoice-meta {
  font-size: 13px;
  color: #64748b;
  margin-top: 4px;
}

/* ================================
 STATUS BADGE + SMALL DOT
================================ */

.rtc-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.rtc-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

/* PAID */
.status-paid {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.status-paid::before { background: #16a34a; }

/* UNPAID */
/* .status-unpaid {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.status-unpaid::before { background: #dc2626; } */
.status-unpaid {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  /* text-decoration: line-through; */
}
.status-unpaid::before { background: #64748b; }

/* PARTIAL */
.status-partial {
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #fde68a;
}
.status-partial::before { background: #f59e0b; }

/* CANCELLED */
/* .status-cancelled {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  text-decoration: line-through;
}
.status-cancelled::before { background: #64748b; } */

.status-cancelled {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  text-decoration: line-through;
}
.status-cancelled::before { background: #dc2626; }

.invoice-status-3 {
  position: relative;
  text-decoration: none; /* Matikan line-through bawaan */
}

.invoice-status-3::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background-color: rgb(255, 55, 55); /* Warna garis merah */
  transform: translateY(-50%);
}

/* ================================
 ACTION BUTTONS
================================ */

.rtc-invoice-actions button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  transition: 0.2s ease;
}

.btn-print { color: #3b82f6; }
.btn-print:hover { background: #eff6ff; }

.btn-delete { color: #dc2626; }
.btn-delete:hover { background: #fee2e2; }

.btn-edit-status-2{
  background: #f97316 !important;
  color: #ffffff;
}

.btn-edit-status-2:hover {
  background: #ea580c;
}
/* .btn-edit-status {
  background: #f97316;
  color: #ffffff;
} */

/* ================================
 BODY (PUTIH)
================================ */

.rtc-invoice-body {
  background: #ffffff; /* penting */
  padding: 22px 28px;
}

/* Toggle Button */

.btn-toggle-details {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s ease;
}

.btn-toggle-details:hover {
  background: #f8fafc;
}

/* ================================
 DETAIL SECTION (PUTIH)
================================ */

.rtc-invoice-details {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed #e2e8f0;
  background: #ffffff;
  display: none;
  color:#000
}

.rtc-invoice-details.is-open {
  display: block;
}

.invoice-detail-view {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #334155;
  line-height: 1.5;
}

/* Invoice Dates */
.invoice-dates {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

/* Table Base */
.invoice-items,
.invoice-payments {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.invoice-items th,
.invoice-items td,
.invoice-payments th,
.invoice-payments td {
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
}

.invoice-items th,
.invoice-payments th {
  background: #8c9aa8;
  font-weight: 600;
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

/* Summary */
.invoice-summary {
  max-width: 300px;
  margin-left: auto;
  margin-bottom: 20px;
}

.invoice-summary div {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-weight: 500;
}

/* Payment Record Header */
.invoice-payments thead th {
  background: #8c9aa8;
}

/* Optional */
.invoice-payments tbody tr:nth-child(even),
.invoice-items tbody tr:nth-child(even) {
  background: #f9fafb;
}

/* ================================
   ACTION BUTTONS
================================ */
.invoice-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.btn-action {
  background: #3b82f6;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-action:hover {
  background: #2563eb;
}

.btn-edit-discount {
  background: #facc15;
  color: #1e3a8a;
}

.btn-edit-discount:hover {
  background: #eab308;
}

.btn-edit-status {
  background: #f97316;
  color: #ffffff;
}

.btn-edit-status:hover {
  background: #ea580c;
}

.btn-add-payment {
  background: #16a34a;
  color: #ffffff;
}

.btn-add-payment:hover {
  background: #15803d;
}

.btn-add-item {
  background: #3b82f6;
  color: #ffffff;
}

.btn-add-item:hover {
  background: #2563eb;
}

#luggageCardSection {
  max-height: 250px;    /* Tentukan tinggi maksimal sesuai kebutuhan */
  overflow-y: auto;     /* Scroll muncul hanya jika konten lebih tinggi dari 400px */
  overflow-x: hidden;   /* Mencegah scroll ke samping yang tidak perlu */
  padding-right: 5px;   /* Memberi ruang agar scrollbar tidak menutupi konten */
}

/* =====================================
   BOOKING STATUS HEADER VARIANT
===================================== */

.rtc-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  position: relative;
  border-radius: 18px 18px 0px 0px;
}

/* STATUS LABEL (RIGHT SIDE) */
.rtc-booking-status-label {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ===============================
STATUS COLOR VARIANTS
================================= */

/* PENDING */
.booking-pending {
  background: #fff7ed;
  border-bottom: 2px solid #fb923c;
}

.booking-pending .rtc-booking-status-label {
  background: #fb923c;
  color: #ffffff;
}

/* SUCCESS (PAID) */
.booking-success {
  background: #ecfdf5;
  border-bottom: 2px solid #10b981;
}

.booking-success .rtc-booking-status-label {
  background: #10b981;
  color: #ffffff;
}

/* CANCELLED */
.booking-danger {
  background: #fef2f2;
  border-bottom: 2px solid #ef4444;
}

.booking-danger .rtc-booking-status-label {
  background: #ef4444;
  color: #ffffff;
}

/* COMPLETED */
.booking-completed {
  background: #eff6ff;
  border-bottom: 2px solid #3b82f6;
}

.booking-completed .rtc-booking-status-label {
  background: #3b82f6;
  color: #ffffff;
}

.rtc-flex-center {
  display: flex;
  justify-content: center;
  /* horizontal center */
  align-items: center;
  /* vertical center */
}


.reschedule-card{
  border-radius:8px;
  padding:16px;
  margin-bottom:20px;
}

.reschedule-card.pending{
  background:#fff8e1;
  border:1px solid #f5c542;
}

.reschedule-card.approved{
  background:#e8f5e9;
  border:1px solid #4caf50;
}

.reschedule-card.rejected{
  background:#fdecea;
  border:1px solid #e53935;
}

.reschedule-header{
  font-weight:600;
  font-size:16px;
  margin-bottom:10px;
}

.reschedule-grid{
  display:grid;
  grid-template-columns:180px auto;
  gap:6px 12px;
  font-size:14px;
}

.reschedule-actions{
  margin-top:15px;
}

.reschedule-actions button{
  padding:6px 12px;
  border-radius:6px;
  border:none;
  cursor:pointer;
  font-size:13px;
}

.btn-approve{
  background:#2e7d32;
  color:white;
}

.btn-reject{
  background:#c62828;
  color:white;
}

.cancel-card{
  background:#fff3f3;
  border:1px solid #e53935;
  border-radius:8px;
  padding:16px;
  margin-bottom:20px;
}

.cancel-header{
  font-weight:600;
  font-size:16px;
  margin-bottom:12px;
  color:#c62828;
}

.cancel-grid{
  display:grid;
  grid-template-columns:180px auto;
  gap:6px 12px;
  font-size:14px;
}

.cancel-actions{
  margin-top:15px;
}

.btn-refund{
  background:#1976d2;
  color:white;
  border:none;
  padding:7px 14px;
  border-radius:6px;
  cursor:pointer;
}