@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root {
  --sidebar-w: 280px;
  --sidebar-w-mini: 80px;
  --bs-font-sans-serif: "Rubik", sans-serif;
  --bs-body-font-family: "Rubik", sans-serif;
  --bs-heading-font-family: "Rubik", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #f0f2f5;
  font-family: "Rubik", sans-serif;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6,
.sidebar .nav-link {
  font-family: "Rubik", sans-serif;
}

/* Judul Bagian (Section Title) */
.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.08) 0%, rgba(255, 255, 255, 0) 100%);
  position: relative;
  border-radius: 6px;
  display: flex;
  align-items: center;
  letter-spacing: 0.01em;
  overflow: hidden;
}

/* Background pattern lembut memudar ke kiri untuk section-title */
.section-title::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  /* Pattern garis miring yang sangat halus dan transparan */
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(37, 99, 235, 0.04) 0px,
    rgba(9, 171, 235, 0.185) 1px,
    transparent 2px,
    transparent 8px
  );
  /* Memudar dan hilang sebelum mengenai teks (mulai 60% dari kanan ke kiri hilang total) */
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 60%);
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 60%);
  z-index: 0;
  pointer-events: none;
}


.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #2563eb 0%, #60a5fa 100%);
  border-radius: 4px 0 0 4px;
}

html.theme-dark .section-title {
  color: #e2e8f0;
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.8) 0%, transparent 100%);
}

html.theme-dark .section-title::before {
  background: #475569; /* Gelap (Slate) agar tidak silau */
}

/* Custom Button Primary - Premium Blue Gradient */
.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%);
  border: 1px solid transparent;
  color: #fff;
  font-weight: 600;
  transition: background 0.3s ease;
  box-shadow: 0 2px 4px -1px rgba(37, 99, 235, 0.1);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
  color: #fff;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.15);
}

.btn-primary:active,
.btn-primary.active {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Custom Button Secondary - Premium Slate Gradient */
.btn-secondary {
  background: linear-gradient(135deg, #64748b 0%, #94a3b8 100%);
  border: 1px solid transparent;
  color: #fff;
  font-weight: 600;
  transition: background 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(100, 116, 139, 0.2), 0 2px 4px -1px rgba(100, 116, 139, 0.1);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: linear-gradient(135deg, #475569 0%, #64748b 100%);
  color: #fff;
}
.btn-secondary:active {
  background: linear-gradient(135deg, #334155 0%, #475569 100%);
  box-shadow: 0 2px 4px -1px rgba(100, 116, 139, 0.2);
}

/* Custom Button Success - Premium Emerald Gradient */
.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  border: 1px solid transparent;
  color: #fff;
  font-weight: 600;
  transition: background 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2), 0 2px 4px -1px rgba(16, 185, 129, 0.1);
}
.btn-success:hover, .btn-success:focus {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #fff;
}
.btn-success:active {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
  box-shadow: 0 2px 4px -1px rgba(16, 185, 129, 0.2);
}

/* Custom Button Warning - Premium Amber Gradient */
.btn-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  border: 1px solid transparent;
  color: #fff;
  font-weight: 600;
  transition: background 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.2), 0 2px 4px -1px rgba(245, 158, 11, 0.1);
}
.btn-warning:hover, .btn-warning:focus {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  color: #fff;
}
.btn-warning:active {
  background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
  box-shadow: 0 2px 4px -1px rgba(245, 158, 11, 0.2);
}

/* Custom Button Danger - Premium Rose Gradient */
.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
  border: 1px solid transparent;
  color: #fff;
  font-weight: 600;
  transition: background 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.2), 0 2px 4px -1px rgba(239, 68, 68, 0.1);
}
.btn-danger:hover, .btn-danger:focus {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  color: #fff;
}
.btn-danger:active {
  background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
  box-shadow: 0 2px 4px -1px rgba(239, 68, 68, 0.2);
}

/* Custom Button Info - Premium Cyan Gradient */
.btn-info {
  background: linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%);
  border: 1px solid transparent;
  color: #fff;
  font-weight: 600;
  transition: background 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(6, 182, 212, 0.2), 0 2px 4px -1px rgba(6, 182, 212, 0.1);
}
.btn-info:hover, .btn-info:focus {
  background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
  color: #fff;
}
.btn-info:active {
  background: linear-gradient(135deg, #0e7490 0%, #0891b2 100%);
  box-shadow: 0 2px 4px -1px rgba(6, 182, 212, 0.2);
}

/* Custom Button Outline Secondary - Premium */
.btn-outline-secondary {
  background: rgba(255, 255, 255, 0.205);
  border: 1px solid rgba(100, 116, 139, 0.267);
  color: #475569;
  font-weight: 600;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.02);
}
.btn-outline-secondary:hover, .btn-outline-secondary:focus {
  background: #f8fafc;
  border-color: rgba(100, 116, 139, 0.25);
  color: #1e293b;
  box-shadow: 0 4px 6px -1px rgba(100, 116, 139, 0.08);
}
.btn-outline-secondary:active {
  background: #f1f5f9;
  border-color: rgba(100, 116, 139, 0.3);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

html.theme-dark .btn-outline-secondary {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}
html.theme-dark .btn-outline-secondary:hover, html.theme-dark .btn-outline-secondary:focus {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  color: #f8fafc;
}
html.theme-dark .btn-outline-secondary:active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

/* Button Background Icon (Large & Slanted) */
.btn-icon-bg {
  position: relative;
  overflow: hidden;
  z-index: 1;
  padding-right: 3.5rem !important; /* Space for the icon */
}

.btn-icon-bg i {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%) rotate(-20deg);
  font-size: 3rem;
  opacity: 0.25;
  z-index: -1; /* Place it behind text */
  transition: transform 0.4s ease, opacity 0.4s ease;
  pointer-events: none;
}

.btn-icon-bg:hover i,
.btn-icon-bg:focus i {
  transform: translateY(-50%) rotate(0deg) scale(1.2);
  opacity: 0.4;
}

/* Button Background Icon (Centered Text) */
.btn-icon-bg-center {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-icon-bg-center i {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%) rotate(-20deg);
  font-size: 3rem;
  opacity: 0.25;
  z-index: -1;
  transition: transform 0.4s ease, opacity 0.4s ease;
  pointer-events: none;
}

.btn-icon-bg-center:hover i,
.btn-icon-bg-center:focus i {
  transform: translateY(-50%) rotate(0deg) scale(1.2);
  opacity: 0.4;
}

/* Responsif untuk Mobile */
@media (max-width: 575.98px) {
  .btn-icon-bg {
    padding-right: var(--bs-btn-padding-x, 0.75rem) !important;
    text-align: center;
    font-size: 0.85rem;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }
  .btn-icon-bg i {
    font-size: 2rem;
    right: -5px;
  }
  .btn-icon-bg-center {
    font-size: 0.85rem;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }
  .btn-icon-bg-center i {
    font-size: 2rem;
    right: -5px;
  }
}

/* Otomatis menengahkan tombol Aksi jika ia merupakan elemen tunggal dalam sel tabel */
.table td:has(> .btn:only-child),
.table th:has(> .btn:only-child) {
  text-align: center !important;
  vertical-align: middle !important;
}

.table td > .btn:only-child,
.table th > .btn:only-child {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.25rem;
}

/* Kompatibilitas: kelas lama tidak memuat Poppins */

.form-label {
  font-family: "Rubik", sans-serif;
  font-weight: 600;
  color: #333;
  margin-top: 2px;
}

.terbilang-text {
  font-size: 10px;
  font-weight: bold;
  background-color: #b9ebffa1;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 6px;
}

.kpi-card {
  background: #667eea;
  border-radius: 12px;
  padding: 24px;
  color: white;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease,
    box-shadow 0.3s ease;
  min-height: 140px;
}

.kpi-card .kpi-label {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.95;
  margin-bottom: 12px;
  line-height: 1.35;
}

.kpi-card .kpi-value {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 0;
  line-height: 1.2;
}

.kpi-card .kpi-icon {
  position: absolute;
  right: 10px;
  top: 70%;
  transform: translateY(-50%) rotate(-14deg);
  font-size: 140px;
  opacity: 0.2;
}

.kpi-card.blue {
  background: linear-gradient(135deg, rgb(22, 64, 179) 0%, #192a56 100%);
}

.kpi-card.green {
  background: linear-gradient(135deg,
      rgb(15, 133, 74) 0%,
      rgb(30, 83, 48) 100%);
}

.kpi-card.purple {
  background: linear-gradient(135deg, #5f2c82 0%, rgb(57, 6, 87) 100%);
}

.kpi-card.orange {
  background: linear-gradient(135deg, #ff9a56 0%, #91142d 100%);
}

.kpi-card.red {
  background: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%);
}

.kpi-card.teal {
  background: linear-gradient(135deg, #4facfe 0%, #11777c 100%);
}

.kpi-card.pink {
  background: linear-gradient(135deg, #fa709a 0%, #8f7d15 100%);
}

.kpi-card.indigo {
  background: linear-gradient(135deg, #667eea 0%, #380f61 100%);
}

.kpi-card.yellow {
  background: linear-gradient(135deg, #f6d365 0%, #792913 100%);
}

.kpi-card.cyan {
  background: linear-gradient(135deg, #30cfd0 0%, #2f0a5c 100%);
}

.va-card {
  background-image: url("../media/va-card.png");
  background-size: cover;
  background-position: center;
  color: white;
  border-radius: 15px;
  padding: 20px;
  width: 85.6mm;
  height: 53.98mm;
  font-family: "Rubik", sans-serif;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin: 0 auto;
  display: block;
}

.sidebar {
  box-sizing: border-box;
  height: 100vh;
  max-height: 100dvh;
  color: white;
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-w);
  max-width: 100%;
  box-shadow: 4px 0 18px rgba(0, 0, 0, 0.12);
  transition: width 0.28s ease,
    box-shadow 0.28s ease;
  overflow-x: hidden;
  /* Scroll satu kolom: logo + profil + menu/submenu panjang tetap bisa dijangkau */
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background-image: url("../media/bg-sidebar.png"),
    linear-gradient(180deg,
      rgba(26, 35, 126, 0.85) 0%,
      rgba(13, 71, 161, 0.85) 100%);
  background-position: bottom;
  background-repeat: no-repeat, repeat;
  background-size: cover, auto;
  background-blend-mode: soft-light;
  padding: 0 6px 0 0;
  margin: 0;
  z-index: 100;
}

.sidebar-brand {
  flex-shrink: 0;
  padding: 5px 8px 15px;
  margin: 8px 4px -6px;
  text-align: center;
  /* border-bottom: 1px solid rgba(255, 255, 255, 0.09); */
}

.sidebar-logo {
  display: inline-block;
  max-width: 280px;
  width: 100%;
  height: auto;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  transition: max-width 0.26s ease;
}

/* Logo lebar (bukan ringkas): lebih besar dalam kolom sidebar */

.sidebar .sidebar-logo-full {
  max-width: min(280px, 100%);
}

.sidebar-logo-mini {
  display: none;
  max-width: 48px;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (min-width: 992px) {
  html.sidebar-collapsed .sidebar-logo-full {
    display: none !important;
  }

  html.sidebar-collapsed .sidebar-logo-mini {
    display: inline-block !important;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .sidebar .sidebar-logo-full {
    display: none !important;
  }

  .sidebar .sidebar-logo-mini {
    display: inline-block !important;
  }
}

@media (max-width: 767px) {
  .sidebar .sidebar-logo-full {
    display: inline-block !important;
  }

  .sidebar .sidebar-logo-mini {
    display: none !important;
  }
}

/*
 * Tinggi ikuti isi + submenu Bootstrap; tidak scroll di dalam ul.
 * Scroll vertikal ada di .sidebar agar submenu terbuka penuh selalu bisa dijangkau.
 */

.sidebar-nav-scroll {
  flex: 0 0 auto;
  flex-grow: 0;
  flex-shrink: 0;
  min-height: 0;
  overflow: visible;
}

.sidebar .sidebar-nav-scroll>.nav-item {
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.sidebar .sidebar-nav-scroll>.nav-item:last-child {
  border-bottom: none;
}

.sidebar::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 6px;
}

.sidebar-desktop-footer {
  position: sticky;
  bottom: 0;
  z-index: 10;
  /* background: rgba(13, 71, 161, 0.98); */
  backdrop-filter: blur(50px);
  flex-shrink: 0;
  padding: 8px 8px 8px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.sidebar-desktop-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.22s ease,
    color 0.22s ease,
    transform 0.15s ease;
}

.sidebar-desktop-toggle:hover {
  background: rgba(255, 255, 255, 0.24);
  color: white;
}

.sidebar-desktop-toggle-icon {
  font-size: 1.25rem;
  transition: transform 0.25s ease;
}

.sidebar-desktop-toggle-circle {
  position: absolute;
  top: 50%;
  right: -14px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: #1a237e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 105;
  transition: all 0.22s ease;
  padding: 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.sidebar-desktop-toggle-circle:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}


.sidebar .nav-link {
  box-sizing: border-box;
  --bs-nav-link-color: rgba(255, 255, 255, 0.94);
  --bs-nav-link-hover-color: #fff;
  color: rgba(255, 255, 255, 0.94) !important;
  margin: 0 -6px 0 0;
  padding: 8px 24px 8px 18px;
  max-width: calc(100% + 6px);
  border-radius: 0;
  transition: background 0.22s ease,
    color 0.22s ease;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  text-transform: capitalize;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  text-align: left;
  white-space: normal;
  overflow-x: hidden;
}

.sidebar .nav-link:visited {
  color: rgba(255, 255, 255, 0.94) !important;
}

.sidebar .nav-link:hover {
  background: rgba(21, 130, 255, 0.25);
  color: #fff !important;
  margin: 0 -6px 0 0;
  padding: 8px 24px 8px 18px;
  max-width: calc(100% + 6px);
  box-sizing: border-box;
  box-shadow: inset 3px 0 0 #ffc107;
  border-radius: 0;
}

.sidebar .nav-link.active {
  background: rgba(21, 130, 255, 0.35);
  color: #fff !important;
  margin: 0 -6px 0 0;
  padding: 8px 24px 8px 18px;
  max-width: calc(100% + 6px);
  box-sizing: border-box;
  box-shadow: inset 3px 0 0 #ffc107;
  border-radius: 0;
}

.sidebar .nav-link[data-bs-toggle="collapse"]::after {
  content: "\f282";
  font-family: "bootstrap-icons";
  margin-left: auto;
  font-size: 0.7rem;
  transition: transform 0.2s ease;
  opacity: 0.7;
}

.sidebar .nav-link[data-bs-toggle="collapse"][aria-expanded="true"]::after {
  transform: rotate(180deg);
}

/* Sembunyikan chevron saat sidebar diringkas (desktop & tablet) */

html.sidebar-collapsed #sidebar .nav-link[data-bs-toggle="collapse"]::after {
  display: none !important;
}

@media (max-width: 991px) and (min-width: 768px) {
  #sidebar .nav-link[data-bs-toggle="collapse"]::after {
    display: none !important;
  }
}

.sidebar .nav-link i {
  margin-right: 0;
  font-size: 1.125rem;
  width: 1.35em;
  min-width: 1.35em;
  text-align: center;
  flex-shrink: 0;
  line-height: 1;
  color: inherit !important;
  opacity: 1;
}

.sidebar .sidebar-link-label {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  line-height: 1.65;
  overflow-wrap: break-word;
  word-break: break-word;
  color: inherit;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.sidebar .sidebar-submenu {
  padding: 4px 0;
  margin: 0 4px 0 16px;
  list-style: none;
}

.sidebar-submenu .nav-item {
  margin: 0;
}

.sidebar .sidebar-submenu>.nav-item>.nav-link {
  margin: 0 -10px 0 -16px;
  padding: 5px 22px 5px 50px;
  max-width: calc(100% + 26px);
  border-radius: 0;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  text-transform: capitalize;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.8) !important;
  border-left: none;
  border-radius: 6px;
  background: transparent;
  gap: 0;
  justify-content: flex-start;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sidebar .sidebar-submenu>.nav-item>.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
  margin: 0 -10px 0 -16px;
  padding: 5px 22px 5px 50px;
  max-width: calc(100% + 26px);
  box-shadow: inset 3px 0 0 #ffc107;
  border-radius: 0;
}

.sidebar .sidebar-submenu>.nav-item>.nav-link.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff !important;
  margin: 0 -10px 0 -16px;
  padding: 5px 22px 5px 50px;
  max-width: calc(100% + 26px);
  box-shadow: inset 3px 0 0 #ffc107;
  border-radius: 0;
}

@media (min-width: 992px) {
  html.sidebar-collapsed .sidebar {
    width: var(--sidebar-w-mini);
  }

  html.sidebar-collapsed .main-content {
    margin-left: var(--sidebar-w-mini);
  }

  html.sidebar-collapsed .sidebar {
    padding-right: 3px;
  }

  html.sidebar-collapsed #sidebar .sidebar-user-meta {
    display: none;
  }

  html.sidebar-collapsed #sidebar .user-profile {
    justify-content: center;
    padding: 10px 4px;
  }

  html.sidebar-collapsed #sidebar .profile-img {
    margin-right: 0;
  }

  html.sidebar-collapsed #sidebar .sidebar-desktop-toggle-text {
    display: none;
  }

  html.sidebar-collapsed #sidebar .sidebar-desktop-toggle {
    gap: 0;
  }

  html.sidebar-collapsed #sidebar .sidebar-nav-scroll>.nav-item>.nav-link .sidebar-link-label {
    display: none !important;
  }

  /* Ringkas: area tap ikon menu utama lebih lapang */

  html.sidebar-collapsed #sidebar .sidebar-nav-scroll>.nav-item>.nav-link {
    justify-content: center;
    gap: 0;
    padding: 8px 6px;
    margin: 5px 4px !important;
    border-radius: 8px !important;
    transform: none;
    min-height: 52px;
  }

  html.sidebar-collapsed #sidebar .sidebar-nav-scroll>.nav-item>.nav-link:hover,
  html.sidebar-collapsed #sidebar .sidebar-nav-scroll>.nav-item>.nav-link.active {
    margin: 5px 4px !important;
    max-width: 100% !important;
    transform: none !important;
  }

  html.sidebar-collapsed #sidebar .sidebar-nav-scroll>.nav-item>.nav-link i {
    box-sizing: border-box;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    margin-right: 0;
    font-size: 1.5rem !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /*
   * Ringkas: submenu tidak ada di jalur rail; hover/focus ikon utama = panel tetap di samping
   */

  html.sidebar-collapsed #sidebar .sidebar-nav-scroll>.nav-item:has(> .collapse)>.collapse {
    display: block !important;
    position: fixed !important;
    top: auto !important;
    z-index: 1205 !important;
    margin: 0 !important;
    min-width: 224px;
    max-width: min(304px, 92vw);
    padding: 8px 0 !important;
    border-radius: 10px !important;
    overflow: visible !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: auto !important;
    transform: none !important;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease !important;
    transition-delay: 0.12s !important;
    height: auto !important;
    max-height: calc(100vh - 24px);
    overflow-y: auto !important;
    background: rgba(26, 35, 126, 0.97) !important;
    background-image: linear-gradient(180deg,
        rgba(39, 53, 169, 0.94) 0%,
        rgba(13, 71, 161, 0.94) 100%) !important;
    box-shadow: 4px 12px 32px rgba(0, 0, 0, 0.35) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
  }

  /* transparent hover bridge to prevent losing hover when cursor moves diagonally */

  html.sidebar-collapsed #sidebar .sidebar-nav-scroll>.nav-item:has(> .collapse)>.collapse::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: -35px !important;
    width: 45px !important;
    height: 100% !important;
    background: transparent !important;
    z-index: -1 !important;
  }

  html.sidebar-collapsed #sidebar .sidebar-nav-scroll>.nav-item:has(> .collapse):hover>.collapse,
  html.sidebar-collapsed #sidebar .sidebar-nav-scroll>.nav-item:has(> .collapse:focus-within)>.collapse {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translate(-4px, -52px) !important;
    transition-delay: 0s !important;
  }

  html.sidebar-collapsed #sidebar .sidebar-nav-scroll>.nav-item:has(> .collapse)>.collapse .sidebar-submenu .sidebar-link-label {
    display: inline-block !important;
    font-size: inherit !important;
    text-align: left !important;
    white-space: normal !important;
    max-width: none !important;
  }

  html.sidebar-collapsed #sidebar .sidebar-nav-scroll>.nav-item:has(> .collapse)>.collapse .sidebar-submenu>.nav-item>.nav-link {
    justify-content: flex-start !important;
    padding: 8px 12px !important;
    transform: none !important;
    border-left-width: 3px !important;
  }
}

.main-content {
  margin-left: var(--sidebar-w);
  padding: 26px;
  min-height: 100vh;
  transition: margin-left 0.28s ease;
}

.top-navbar {
  background: white;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
  padding: 20px 20px 10px 20px;
  margin: -26px -26px 16px -26px;
}

.top-navbar h4 {
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

/* —— navbar modern (n-topnav) —— */

.top-navbar.n-topnav {
  position: relative;
  /* harus di bawah backdrop/modal Bootstrap agar ikut tertutup */
  z-index: 1030;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 5.5) inset,
    0 4px 20px rgba(15, 23, 42, 0.06);
  padding: 1rem 1.25rem 0.9rem 1.25rem;
  margin: -26px -26px 25px -26px;
}

.n-topnav__left {
  display: flex;
  align-items: center;
  min-width: 0;
}

.n-topnav__unified {
  width: 100%;
  padding: 0.5rem 0.85rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: padding-right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.n-topnav__event-banner {
  position: absolute;
  right: 0px;
  top: 50%;
  transform: translateY(-50%);
  height: 99%;
  /* Taller than navbar to overflow top and bottom boundaries */
  max-width: 60%;
  overflow: hidden;
  z-index: 5;
  pointer-events: none;
  display: none;
  justify-content: flex-end;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000000 25%);
  mask-image: linear-gradient(to right, transparent 0%, #000000 25%);
  border-radius: 0 14px 14px 0;
}

.n-topnav__event-banner img {
  height: 100%;
  width: auto;
  object-fit: cover;
  object-position: right center;
  transition: filter 0.3s ease, opacity 0.3s ease;
  border-radius: 0 13px 13px 0;
}

html.theme-dark .n-topnav__event-banner img {
  opacity: 0.85;
  filter: brightness(0.8) contrast(1.05) saturate(0.9);
}

@keyframes bannerFadeIn {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }

  ;
}

@media (min-width: 992px) {
  .n-topnav__event-banner {
    display: flex;
    max-width: 38%;
  }

  .n-topnav__unified {
    padding-right: 40% !important;
  }
}

@media (min-width: 1200px) {
  .n-topnav__event-banner {
    max-width: 48%;
  }

  .n-topnav__unified {
    padding-right: 50% !important;
  }
}

@media (min-width: 1400px) {
  .n-topnav__event-banner {
    max-width: 58%;
  }

  .n-topnav__unified {
    padding-right: 60% !important;
  }
}

.n-topnav__calendar-block {
  align-items: center;
  max-width: min(38rem, 56vw);
}

.n-topnav__calendar-text {
  flex: 1 1 auto;
  min-width: 0;
  padding-left: 0;
  margin-left: 0;
}

.n-topnav__date-primary {
  font-size: 15.5px;
  font-weight: 450;
  line-height: 1.3;
  color: #0f172a;
}

.n-topnav__greet-holder {
  max-width: 100% !important;
  min-height: 0;
}

.n-topnav__greet-holder.mt-1 {
  margin-top: 0.3rem !important;
  padding-top: 0rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

/* font dan ukuran warna untuk quote navbar */
.n-topnav__quote {
  display: block;
  font-size: 0.8125rem;
  line-height: 0.45;
}

.n-topnav__special-id {
  display: inline-block;
  margin-left: 0.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #0f172a;
  white-space: nowrap;
}

.n-topnav__date-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14) 0%, rgba(59, 130, 246, 0.09) 100%);
  color: #2563eb;
  font-size: 1.1rem;
}

.n-topnav__toolbar {
  padding: 0.28rem 0.45rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.045);
  border: 1px solid rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(8px);
}

.n-topnav__icon-btn {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  padding: 0 !important;
  border: none !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: #475569 !important;
  transition: background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.15s ease;
}

.n-topnav__icon-btn:hover {
  background: rgba(255, 255, 255, 0.95) !important;
  color: #0f172a !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.n-topnav__icon-btn:active {
  transform: scale(0.96);
}

.n-topnav__icon-btn:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.45);
  outline-offset: 2px;
}

html.theme-dark .n-topnav__icon-btn:focus-visible {
  outline-color: rgba(147, 197, 253, 0.65);
}

#navNotifBtn::after {
  display: none !important;
}

.n-topnav__notif-dropdown .dropdown-menu {
  /* jangan mengalahkan modal/backdrop */
  z-index: 1040 !important;
}

.n-topnav__badge {
  font-size: 0.62rem !important;
  min-width: 1.1rem;
  padding: 0.2em 0.45em !important;
}

.n-topnav__dropdown {
  width: 320px;
  max-height: 400px;
  overflow-y: auto;
  border-radius: 14px !important;
  margin-top: 0.5rem !important;
}

.n-topnav__dropdown-head {
  background: rgba(248, 250, 252, 0.95) !important;
  border-color: rgba(15, 23, 42, 0.06) !important;
  border-radius: 14px 14px 0 0;
}

.n-topnav__dropdown-foot {
  background: rgba(248, 250, 252, 0.6);
  border-color: rgba(15, 23, 42, 0.06) !important;
  border-radius: 0 0 14px 14px;
}

.n-topnav__shortcut {
  width: 8.5rem;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.85);
}

.n-topnav__shortcut .form-control {
  border: none !important;
  box-shadow: none !important;
  font-size: 0.8125rem;
  padding-left: 0.25rem;
}

.n-topnav__shortcut-prefix {
  border: none !important;
  background: transparent !important;
  color: #94a3b8 !important;
  padding-right: 0.15rem;
}

.n-topnav__logout {
  border-radius: 999px !important;
  padding: 0.38rem 0.95rem !important;
  font-weight: 600;
  font-size: 0.8125rem;
  border: 1px solid rgba(220, 53, 69, 0.35) !important;
  background: linear-gradient(180deg, #fff5f5 0%, #ffe4e6 100%) !important;
  color: #b91c1c !important;
  transition: background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.15s ease;
}

.n-topnav__logout--icon-only {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 2.55rem !important;
  height: 2.55rem !important;
  min-width: 2.55rem !important;
  padding: 0 !important;
  font-size: 1.1rem;
  line-height: 1;
}

.n-topnav__logout:hover {
  background: linear-gradient(180deg, #ffe4e6 0%, #fecdd3 100%) !important;
  color: #991b1b !important;
  box-shadow: 0 2px 10px rgba(220, 53, 69, 0.2);
}

.n-topnav__logout:active {
  transform: scale(0.98);
}

/* Mobile top strip */

.mobile-navbar.n-topnav-mob {
  position: relative;
  /* di bawah modal/backdrop bootstrap */
  z-index: 1030;
  padding: 0.55rem 0.85rem !important;
  /* jangan full-bleed: tetap satu container rapi di mobile */
  margin: 0 0 12px 0 !important;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.05);
  max-width: 100%;
}

.n-topnav__icon-btn--mob {
  width: 2.4rem;
  height: 2.4rem;
}

.n-topnav__badge--mob {
  font-size: 0.5rem !important;
}

/* Badge di mobile jangan keluar layar (ikon di pojok kanan) */

.n-topnav-mob__actions .n-topnav__badge--mob {
  top: 0.05rem !important;
  right: 0.05rem !important;
  left: auto !important;
  transform: none !important;
}

.n-topnav__logout--mob {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 2.4rem !important;
  height: 2.4rem !important;
  min-width: 2.4rem !important;
  padding: 0 !important;
  border-radius: 50% !important;
}

.top-navbar .navbar-user-meta {
  max-width: min(38rem, 52vw);
  overflow-wrap: break-word;
  word-break: break-word;
  margin-bottom: 0 !important;
  line-height: 1.35;
  font-size: 0.8125rem;
}

.top-navbar .navbar-greet-holder:not(.n-topnav__greet-holder) {
  max-width: min(38rem, 52vw);
  min-height: 2.05rem;
  margin-top: 0.15rem !important;
  vertical-align: top;
  line-height: 1.35;
  font-size: 0.9125rem;
}

.top-navbar .navbar-greet-holder.n-topnav__greet-holder {
  font-size: 0.9375rem;
}

@media (max-width: 1100px) {
  .top-navbar .navbar-greet-holder:not(.n-topnav__greet-holder) {
    max-width: min(30rem, 42vw);
  }
}

/* .mobile-navbar legacy tunggal — halaman dengan n-topnav-mob memakai gaya di atas */

.mobile-navbar:not(.n-topnav-mob) {
  padding: 0.35rem 0.65rem !important;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.navbar-user-meta__nama {
  font-weight: 600;
  color: rgba(33, 37, 41, 0.92);
}

.navbar-greet-msg {
  display: inline-block;
  transition: opacity 0.28s ease,
    transform 0.28s ease;
}

.navbar-greet-msg.navbar-greet-msg--leave {
  opacity: 0;
  transform: translateY(-0.42rem);
  pointer-events: none;
}

.navbar-greet-msg.navbar-greet-msg--enter {
  animation: navbarGreetEnter 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes navbarGreetEnter {
  from {
    opacity: 0;
    transform: translateY(0.55rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }

  ;
}

.mobile-navbar .navbar-greet-holder--mob {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 1.75rem;
  max-width: 58vw;
}

.mobile-navbar .navbar-user-meta--mob {
  max-width: 100%;
  font-size: 0.78rem;
  line-height: 1.32;
}

@media (prefers-reduced-motion: reduce) {

  .navbar-greet-msg,
  .navbar-greet-msg.navbar-greet-msg--leave,
  .navbar-greet-msg.navbar-greet-msg--enter {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

.sidebar .user-profile {
  display: flex;
  align-items: center;
  padding: 12px 16px 12px 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background-color: #00115c5d;
  margin: 8px -6px 20px 0;
  flex-shrink: 0;
  min-height: 0;
}

.sidebar .sidebar-user-meta {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.sidebar .sidebar-user-meta .profile-name,
.sidebar .sidebar-user-meta .profile-name a {
  overflow-wrap: break-word;
  word-break: break-word;
  color: rgba(255, 255, 255, 0.94) !important;
  font-size: 0.9375rem;
  font-weight: 600;
}

.sidebar .sidebar-user-meta .profile-time {
  font-size: 0.8125rem;
}

.sidebar .profile-img {
  width: 48px;
  height: 48px;
  border-radius: 11px;
  margin-right: 10px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.profile-name {
  font-size: 0.8125rem;
}

.profile-time {
  font-size: 0.72rem;
}

.dashboard-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #eaeaea;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.dashboard-card:hover {
  transform: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.card-title {
  color: #2c3e50;
  font-size: 1.1rem;
  font-weight: 600;
  padding-bottom: 0px;
  /* border-bottom: 1px solid #eee;
  */
  margin-bottom: 15px;
}

.badge {
  font-size: 0.75rem;
  padding: 4px 8px;
  font-weight: 500;
}

.stats-card {
  padding: 18px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #eaeaea;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.stats-card i {
  font-size: 1.5rem;
  color: #666;
  margin-bottom: 8px;
}

.stats-card h3 {
  font-size: 1.5rem;
  margin-bottom: 4px;
  color: #2c3e50;
}

.stats-card p {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0;
}

.gradient-purple {
  background: linear-gradient(135deg, #8e54e9, #4776e6);
}

.gradient-green {
  background: linear-gradient(135deg, #11998e, #38ef7d);
}

.gradient-orange {
  background: linear-gradient(135deg, #ff8008, #ffc837);
}

.gradient-red {
  background: linear-gradient(135deg, #ff416c, #ff4b2b);
}

.btn-custom.btn-outline-danger {
  border-width: 1.5px;
  font-weight: 600;
  padding: 6px 16px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background-color: #dc3545;
  color: white;
  border-color: #dc3545;
}

.btn-custom.btn-outline-danger:hover {
  background-color: #bb2d3b;
  border-color: #bb2d3b;
  color: white;
}

/* .text-muted {
  font-size: 0.9rem;
} */

/* Style default untuk readonly */

input[readonly] {
  background-color: #f8f9fa;
  border-color: #dee2e6;
  cursor: not-allowed;
  color: #6c757d;
}

/* Style readonly dengan tema hijau */

input[readonly].readonly-green {
  background-color: #e8f5e9;
  border-color: #81c784;
  cursor: not-allowed;
  color: #2e7d32;
}

/* Style readonly dengan tema biru */

input[readonly].readonly-blue {
  background-color: #e3f2fd;
  border-color: #64b5f6;
  cursor: not-allowed;
  color: #1976d2;
}

/* Style readonly dengan tema merah */

input[readonly].readonly-red {
  background-color: #f8d7da;
  border-color: #dc3545;
  cursor: not-allowed;
  color: #dc3545;
}

/* Style readonly dengan tema kuning */

input[readonly].readonly-yellow {
  background-color: #fff3e0;
  border-color: #ffc107;
  cursor: not-allowed;
  color: #b88b03;
}

input[disabled] {
  background-color: #e9ecef;
  border-color: #ced4da;
  cursor: not-allowed;
  color: #495057;
  opacity: 0.65;
}

textarea[readonly] {
  background-color: #f8f9fa;
  border-color: #dee2e6;
  cursor: not-allowed;
  color: #6c757d;
}

textarea[disabled] {
  background-color: #e9ecef;
  border-color: #ced4da;
  cursor: not-allowed;
  color: #495057;
  opacity: 0.65;
}

select[disabled] {
  background-color: #e9ecef;
  border-color: #ced4da;
  cursor: not-allowed;
  color: #495057;
  opacity: 0.65;
}

/* Style untuk label */

label {
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 8px;
  display: inline-block;
  font-size: 0.8rem;
}

/* Variasi label */

label.required:after {
  content: " *";
  color: #e74c3c;
}

label.info {
  color: #3498db;
  font-size: 0.9rem;
  padding-left: 5px;
}

label.success {
  color: #2ecc71;
  font-weight: 600;
}

label.warning {
  color: #f1c40f;
  font-weight: 600;
}

label.danger {
  color: #e74c3c;
  font-weight: 600;
}

/* Tablet: rail tetap mini; submenu ke samping (sama pola desktop ringkas) */

@media (max-width: 991px) and (min-width: 768px) {
  #sidebar.sidebar {
    width: var(--sidebar-w-mini);
    overflow-x: visible;
    overflow-y: hidden;
    z-index: 1000;
    min-height: 0;
    max-height: 100dvh;
    transition: box-shadow 0.28s ease,
      width 0.28s ease;
    padding-right: 3px;
  }

  /*
   * Sidebar luar tetap overflow-x: visible agar flyout fixed tidak terpotong;
   * daftar ikon di-scroll di dalam ul (bukan seluruh kolom).
   */

  #sidebar.sidebar .sidebar-nav-scroll {
    flex: 1 1 0% !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
  }

  #sidebar.sidebar .sidebar-nav-scroll::-webkit-scrollbar {
    width: 6px;
  }

  #sidebar.sidebar .sidebar-nav-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 6px;
  }

  #sidebar .sidebar-user-meta {
    display: none;
  }

  #sidebar .user-profile {
    justify-content: center;
    padding: 10px 4px;
  }

  #sidebar .profile-img {
    margin-right: 0;
  }

  #sidebar .sidebar-desktop-footer {
    display: none !important;
  }

  #sidebar .sidebar-nav-scroll>.nav-item>.nav-link .sidebar-link-label {
    display: none !important;
  }

  #sidebar .sidebar-nav-scroll>.nav-item>.nav-link {
    justify-content: center;
    gap: 0;
    padding: 8px 6px;
    margin: 5px 4px !important;
    transform: none;
    min-height: 52px;
  }

  #sidebar .sidebar-nav-scroll>.nav-item>.nav-link:hover,
  #sidebar .sidebar-nav-scroll>.nav-item>.nav-link.active {
    margin: 5px 4px !important;
    max-width: 100% !important;
    transform: none !important;
  }

  #sidebar .sidebar-nav-scroll>.nav-item>.nav-link i {
    margin-right: 0;
    font-size: 1.5rem;
  }

  #sidebar .sidebar-nav-scroll>.nav-item:has(> .collapse)>.collapse {
    display: block !important;
    position: fixed !important;
    top: auto !important;
    z-index: 1205 !important;
    margin: 0 !important;
    min-width: 224px;
    max-width: min(304px, 92vw);
    padding: 8px 0 !important;
    border-radius: 10px !important;
    overflow: visible !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: auto !important;
    transform: none !important;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease !important;
    transition-delay: 0.12s !important;
    height: auto !important;
    max-height: calc(100vh - 24px);
    overflow-y: auto !important;
    background: rgba(26, 35, 126, 0.97) !important;
    background-image: linear-gradient(180deg,
        rgba(39, 53, 169, 0.94) 0%,
        rgba(13, 71, 161, 0.94) 100%) !important;
    box-shadow: 4px 12px 32px rgba(0, 0, 0, 0.35) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
  }

  /* transparent hover bridge to prevent losing hover when cursor moves diagonally */

  #sidebar .sidebar-nav-scroll>.nav-item:has(> .collapse)>.collapse::before {
    content: "" !important;
    position: absolute !important;
    top: -50px !important;
    left: -35px !important;
    width: 45px !important;
    height: calc(100% + 100px) !important;
    background: transparent !important;
    z-index: -1 !important;
  }

  #sidebar .sidebar-nav-scroll>.nav-item:has(> .collapse):hover>.collapse,
  #sidebar .sidebar-nav-scroll>.nav-item:has(> .collapse:focus-within)>.collapse {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translate(-14px, -12px) !important;
    transition-delay: 0s !important;
  }

  #sidebar .sidebar-nav-scroll>.nav-item:has(> .collapse)>.collapse .sidebar-submenu .sidebar-link-label {
    display: inline-block !important;
    font-size: inherit !important;
    text-align: left !important;
    white-space: normal !important;
    max-width: none !important;
  }

  #sidebar .sidebar-nav-scroll>.nav-item:has(> .collapse)>.collapse .sidebar-submenu>.nav-item>.nav-link {
    justify-content: flex-start !important;
    padding: 8px 12px !important;
    transform: none !important;
    border-left-width: 3px !important;
  }

  .main-content {
    margin-left: var(--sidebar-w-mini);
    padding: 20px;
  }
}

@media (max-width: 991px) {
  .top-navbar {
    margin: -20px -20px 14px -20px;
    padding: 13px 18px 8px 18px;
  }

  .top-navbar.n-topnav {
    margin: -20px -20px 14px -20px;
    padding: 0.85rem 1rem 0.75rem 1rem;
  }

  .stats-card {
    margin-bottom: 15px;
  }

  .stats-card i {
    font-size: 2rem;
  }

  .stats-card h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 767px) {
  .sidebar {
    width: 0;
    transform: translateX(-100%);
    transition: all 0.3s ease;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1050;
    background: #1a237e;
    height: 100vh;
    max-height: 100dvh;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar.show {
    width: 240px;
    transform: translateX(0);
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: 100dvh;
    overscroll-behavior-y: contain;
  }

  .sidebar .user-profile {
    padding: 20px 14px;
    margin: 0 0 16px 0;
  }


  .main-content {
    margin-left: 0;
    padding: 15px;
  }

  .mobile-menu-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    padding: 12px;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border: none;
  }

  .mobile-menu-btn {
    display: flex !important;
    padding: 0 !important;
  }

  .mobile-menu-btn i {
    font-size: 1.5rem;
  }

  /* Overlay saat sidebar terbuka */

  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
  }

  .sidebar-overlay.show {
    display: block;
  }

  .stats-card {
    padding: 15px;
    text-align: left;
  }

  .stats-card i {
    margin-bottom: 8px;
  }

  .va-card {
    max-width: 100%;
    padding: 20px;
    margin: 0 15px;
    border-radius: 12px;
  }
}

/* Styling untuk Nav Tabs */

.nav-tabs {
  border-bottom: 1px solid #dee2e6;
}

.nav-tabs .nav-link {
  color: #6c757d;
  font-weight: 500;
  border: 1px solid transparent;
  margin-bottom: -1px;
  background: 0 0;
  border-radius: 0.375rem 0.375rem 0 0;
  padding: 0.75rem 1.25rem;
  transition: all 0.3s ease;
}

.nav-tabs .nav-link.active {
  color: #1a237e;
  background-color: #fff;
  border-color: #dee2e6 #dee2e6 #fff;
  font-weight: 600;
  position: relative;
}

.nav-tabs .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #1a237e;
}

.nav-tabs .nav-link:hover:not(.active) {
  border-color: #e9ecef #e9ecef #dee2e6;
  background-color: rgba(26, 35, 126, 0.05);
  color: #1a237e;
}

/* Styling untuk Tab Content */

.tab-content {
  background: #fff;
  border: 1px solid #dee2e6;
  border-top: none;
  padding: 1.25rem;
  border-radius: 0 0 0.375rem 0.375rem;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }

  ;
}

/* Styling untuk scrollbar yang minimalis */

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Untuk Firefox */

* {
  scrollbar-width: thin;
  scrollbar-color: #888 #f1f1f1;
}

.mobile-menu-btn {
  display: none;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1040;
}

.sidebar-overlay.show {
  display: block;
}

/* Styling untuk ikon sidebar yang melayang */

.floating-sidebar-icon {
  position: fixed;
  bottom: -20px;
  left: -10px;
  z-index: 998;
  pointer-events: none;
  /* Membuat ikon tidak mengganggu klik */
  transition: all 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  display: block;
  /* Tampilkan secara default */
  ;
}

.bg-judul-card {
  background-color: rgba(238, 238, 238, 0.466);
  padding: 12px;
  border-radius: 6px;
  box-shadow: 0px 5px 0px rgba(0, 0, 0, 0.2);
}

html.theme-dark .bg-judul-card {
  background-color: rgba(155, 255, 208, 0.15);
  color: #d1fae5;
}

/* Hanya terapkan styling jika elemen ada */

.floating-sidebar-icon:has(img) {
  display: block;
}

.floating-sidebar-icon img {
  display: block;
}

.sidebar-floating-icon {
  width: 260px;
  height: 260px;
  /* border-radius: 100%;
  */
  /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  */
  opacity: 0.8;
}

/* Nusamba Connect - Social Media Styles */

.social-post {
  transition: transform 0.2s ease,
    box-shadow 0.2s ease;
}

.social-post .like-btn,
.social-post .comment-btn,
.social-post .share-btn {
  border-radius: 20px;
  padding: 6px 16px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.social-post .like-btn:hover,
.social-post .comment-btn:hover,
.social-post .share-btn:hover {
  background: rgba(26, 35, 126, 0.1);
}

.social-post .like-btn.btn-danger {
  background: #dc3545;
  color: white;
  border-color: #dc3545;
}

.story-item .small {
  font-size: 0.75rem;
  color: #6c757d;
}

.trending-item {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background 0.2s ease;
}

.trending-item:last-child {
  border-bottom: none;
}

.trending-item:hover {
  background: rgba(26, 35, 126, 0.05);
  padding-left: 8px;
  border-radius: 4px;
}

.trending-item .fw-bold {
  color: #1a237e;
}

/* Modal styling for create post */

#createPostModal .modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

#createPostModal .modal-header {
  border-bottom: 1px solid #f0f0f0;
  padding: 16px 20px;
}

#createPostModal .modal-body {
  padding: 20px;
}

#createPostModal .modal-footer {
  border-top: 1px solid #f0f0f0;
  padding: 16px 20px;
}

/* Responsive adjustments for social media */

@media (max-width: 767px) {

  .social-post .like-btn,
  .social-post .comment-btn,
  .social-post .share-btn {
    padding: 6px 12px;
    font-size: 0.875rem;
  }
}

/* Class untuk menampilkan floating icon ketika gambar berhasil dimuat */

.floating-sidebar-icon.show {
  display: block !important;
}

/* Fallback untuk menampilkan ikon jika class show tidak ada */

.floating-sidebar-icon[data-icon-exists="true"] {
  display: block !important;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-5px);
  }

  ;
}

.sidebar-floating-icon:hover {
  opacity: 1;
  transform: scale(1.05) translateY(-5px);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
  animation-play-state: paused;
}

/* Responsive untuk ikon melayang */

@media (max-width: 991px) {
  .floating-sidebar-icon {
    display: none !important;
    /* Sembunyikan di tablet dan mobile */
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

@media (max-width: 767px) {
  .floating-sidebar-icon {
    display: none !important;
    /* Sembunyikan di mobile */
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* Sembunyikan ikon melayang pada layar yang sangat kecil */

@media (max-width: 480px) {
  .floating-sidebar-icon {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* Sembunyikan ikon melayang saat sidebar terbuka di mobile */

@media (max-width: 767px) {
  .sidebar.show~.floating-sidebar-icon {
    opacity: 0;
    transform: translateX(-20px);
  }
}

/* ======================================== */

/* UNIVERSAL BACKGROUND COLOR CLASSES */

/* ======================================== */

/* Background Abu-abu (Data Nomor dan Identifikasi) */

.bg-abu {
  background-color: #f8f9ff !important;
  border-left: 4px solid #6c757d !important;
  transition: all 0.3s ease;
}

.bg-abu-header {
  background-color: #e9ecef !important;
  border-bottom: 1px solid #dee2e6 !important;
}

.text-abu-title {
  color: #495057 !important;
}

/* Background Orange (Data Tanggal dan Waktu) */

.bg-orange {
  background-color: #fff8f0 !important;
  border-left: 4px solid #fd7e14 !important;
  transition: all 0.3s ease;
}

.bg-orange-header {
  background-color: #ffeaa7 !important;
  border-bottom: 1px solid #fdcb6e !important;
}

.text-orange-title {
  color: #d63031 !important;
}

/* Background Hijau (Data Kredit) */

.bg-hijau {
  background-color: #f0fff4 !important;
  border-left: 4px solid #28a745 !important;
  transition: all 0.3s ease;
}

.bg-hijau-header {
  background-color: #d4edda !important;
  border-bottom: 1px solid #c3e6cb !important;
}

.text-hijau-title {
  color: #155724 !important;
}

/* Background Merah (Data Biaya) */

.bg-merah {
  background-color: #fff0f0 !important;
  border-left: 4px solid #dc3545 !important;
  transition: all 0.3s ease;
}

.bg-merah-header {
  background-color: #f8d7da !important;
  border-bottom: 1px solid #f5c6cb !important;
}

.text-merah-title {
  color: #721c24 !important;
}

/* Background Ungu (Data Status dan Jenis) */

.bg-ungu {
  background-color: #f0f0ff !important;
  border-left: 4px solid #6f42c1 !important;
  transition: all 0.3s ease;
}

.bg-ungu-header {
  background-color: #e2d9f3 !important;
  border-bottom: 1px solid #d1ecf1 !important;
}

.text-ungu-title {
  color: #4a148c !important;
}

/* Responsive design untuk background colors */

@media (max-width: 768px) {

  .bg-abu,
  .bg-orange,
  .bg-hijau,
  .bg-merah,
  .bg-ungu {
    margin-bottom: 1rem !important;
  }
}

/* ======================================== */

/* ADDITIONAL UNIVERSAL BACKGROUND COLORS */

/* ======================================== */

/* Background Biru */

.bg-biru {
  background-color: #e3f2fd !important;
  border-left: 4px solid #2196f3 !important;
  transition: all 0.3s ease;
}

.bg-biru-header {
  background-color: #bbdefb !important;
  border-bottom: 1px solid #90caf9 !important;
}

.text-biru-title {
  color: #0d47a1 !important;
}

/* Background Kuning */

.bg-kuning {
  background-color: #fffde7 !important;
  border-left: 4px solid #ffc107 !important;
  transition: all 0.3s ease;
}

.bg-kuning-header {
  background-color: #fff9c4 !important;
  border-bottom: 1px solid #fff59d !important;
}

.text-kuning-title {
  color: #f57f17 !important;
}

/* Background Pink */

.bg-pink {
  background-color: #fce4ec !important;
  border-left: 4px solid #e91e63 !important;
  transition: all 0.3s ease;
}

.bg-pink-header {
  background-color: #f8bbd9 !important;
  border-bottom: 1px solid #f48fb1 !important;
}

.text-pink-title {
  color: #ad1457 !important;
}

/* Background Teal */

.bg-teal {
  background-color: #e0f2f1 !important;
  border-left: 4px solid #009688 !important;
  transition: all 0.3s ease;
}

.bg-teal-header {
  background-color: #b2dfdb !important;
  border-bottom: 1px solid #80cbc4 !important;
}

/* Gradien biru soft universal */

.bg-gradient-biru-soft {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%) !important;
  /* Bisa dipakai di mana saja */
  color: #0d47a1 !important;
  border-radius: 8px;
  transition: all 0.3s ease;
  /* Optional: tambahkan shadow agar lebih lembut */
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.07);
}

.text-teal-title {
  color: #004d40 !important;
}

/* Hover effects untuk semua additional colors */

.bg-biru:hover,
.bg-kuning:hover,
.bg-pink:hover,
.bg-teal:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
  transform: translateY(-2px);
}

/* ========================================
 CENTRALIZED PAGE STYLES FROM INLINE CSS
 ======================================== */

/* dashboard.php */

/* Animations */

@keyframes blink {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }

  ;
}

@keyframes cardBlink {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }

  100% {
    opacity: 1;
  }

  ;
}

.dashboard-page hr {
  border: 0;
  height: 1px;
  background-image: linear-gradient(to right,
      rgba(70, 70, 70, 0),
      rgba(0, 0, 0, 0.45),
      rgba(0, 0, 0, 0));
  margin: 1rem 0;
}

/* Judul kartu kanan dashboard (Informasi Akun, Kantor, Login Terakhir) */

.dashboard-page .dashboard-card-banner {
  box-sizing: border-box;
  font-size: 1rem;
  font-weight: 600;
  background: linear-gradient(135deg,
      rgb(255, 255, 255) 0%,
      rgba(10, 104, 228, 0.48) 100%);
  padding: 12px 16px;
  border-radius: 8px 8px 0 0;
  margin: -20px -20px 16px -20px;
  color: #1e2a3d;
  border-bottom: 1px solid rgba(15, 98, 210, 0.12);
}

.dashboard-page .dashboard-card-banner i {
  color: inherit;
}

/* Components */

.dashboard-page .blink-alert {
  animation: blink 2s infinite;
}

.dashboard-page .blink-card {
  animation: cardBlink 2s infinite;
}

.dashboard-page .carousel-image-container {
  width: 100%;
  height: 190px;
  overflow: hidden;
  position: relative;
  background-color: #f8f9fa;
  border-radius: 15px;
}

.dashboard-page .carousel-image-container img {
  width: 1980px !important;
  height: 190px !important;
  object-fit: fill;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0;
}

/* Slideshow dashboard: crossfade halus antar slide (durasi lebih panjang agar tidak terasa tergesa) */

.dashboard-page #infoCarousel.carousel-fade .carousel-item {
  transition: opacity 1.6s ease-in-out;
}

.dashboard-page #infoCarousel.carousel-fade .carousel-item.active,
.dashboard-page #infoCarousel.carousel-fade .carousel-item-next.carousel-item-start,
.dashboard-page #infoCarousel.carousel-fade .carousel-item-prev.carousel-item-end {
  transform: none;
}

.dashboard-page #infoCarousel.carousel-fade .carousel-item-next:not(.carousel-item-start),
.dashboard-page #infoCarousel.carousel-fade .active.carousel-item-end {
  transform: none;
}

/* Remove the responsive media query since we want fixed dimensions */

@media (max-width: 1980px) {
  .dashboard-page .carousel-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .dashboard-page .carousel-image-container img {
    width: 1980px !important;
    min-width: unset;
    max-width: unset;
  }
}

.dashboard-page .user-photo {
  position: relative;
  overflow: hidden;
}

.dashboard-page .gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 70%;
  height: 100%;
  background: linear-gradient(to right,
      rgba(255, 255, 255, 0.66),
      rgba(161, 88, 88, 0));
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 768px) {
  .dashboard-page .carousel {
    display: none;
  }
}

.dashboard-page .custom-context-menu {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 4px;
  width: 200px;
}

.dashboard-page .custom-context-menu .list-group-item {
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
}

.dashboard-page .custom-context-menu .list-group-item:hover {
  background-color: #f8f9fa;
}

.dashboard-page table td {
  cursor: context-menu;
}

.dashboard-page .dashboard-online-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 40, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Dashboard pintasan — Bootstrap Icons + aksen warna per kartu */

.dashboard-page .dashboard-shortcuts-section {
  --short-glow: rgba(59, 130, 246, 0.2);
  --short-icon-s1: #eff6ff;
  --short-icon-s2: #bfdbfe;
  --short-icon-fg: #1d4ed8;
  --short-hover-ring: rgba(59, 130, 246, 0.28);
}

.dashboard-page .dashboard-shortcuts-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(15, 30, 50, 0.45);
  white-space: nowrap;
}

.dashboard-page .dashboard-shortcuts-rule {
  height: 1px;
  background: linear-gradient(to right,
      transparent 0%,
      rgba(0, 48, 120, 0.12) 12%,
      rgba(0, 48, 120, 0.12) 88%,
      transparent 100%);
}

.dashboard-page .dashboard-shortcut-card[data-short-accent="blue"] {
  --short-glow: rgba(59, 130, 246, 0.24);
  --short-icon-s1: #eff6ff;
  --short-icon-s2: #bfdbfe;
  --short-icon-fg: #1d4ed8;
  --short-hover-ring: rgba(59, 130, 246, 0.32);
}

.dashboard-page .dashboard-shortcut-card[data-short-accent="violet"] {
  --short-glow: rgba(139, 92, 246, 0.22);
  --short-icon-s1: #f5f3ff;
  --short-icon-s2: #ddd6fe;
  --short-icon-fg: #6d28d9;
  --short-hover-ring: rgba(139, 92, 246, 0.3);
}

.dashboard-page .dashboard-shortcut-card[data-short-accent="emerald"] {
  --short-glow: rgba(16, 185, 129, 0.22);
  --short-icon-s1: #ecfdf5;
  --short-icon-s2: #a7f3d0;
  --short-icon-fg: #047857;
  --short-hover-ring: rgba(16, 185, 129, 0.3);
}

.dashboard-page .dashboard-shortcut-card[data-short-accent="teal"] {
  --short-glow: rgba(20, 184, 166, 0.22);
  --short-icon-s1: #f0fdfa;
  --short-icon-s2: #99f6e4;
  --short-icon-fg: #0f766e;
  --short-hover-ring: rgba(20, 184, 166, 0.3);
}

.dashboard-page .dashboard-shortcut-card[data-short-accent="amber"] {
  --short-glow: rgba(245, 158, 11, 0.26);
  --short-icon-s1: #fffbeb;
  --short-icon-s2: #fde68a;
  --short-icon-fg: #b45309;
  --short-hover-ring: rgba(245, 158, 11, 0.35);
}

.dashboard-page .dashboard-shortcut-card[data-short-accent="indigo"] {
  --short-glow: rgba(99, 102, 241, 0.22);
  --short-icon-s1: #eef2ff;
  --short-icon-s2: #c7d2fe;
  --short-icon-fg: #4338ca;
  --short-hover-ring: rgba(99, 102, 241, 0.3);
}

.dashboard-page .dashboard-shortcut-card[data-short-accent="cyan"] {
  --short-glow: rgba(6, 182, 212, 0.22);
  --short-icon-s1: #ecfeff;
  --short-icon-s2: #a5f3fc;
  --short-icon-fg: #0e7490;
  --short-hover-ring: rgba(6, 182, 212, 0.3);
}

.dashboard-page .dashboard-shortcut-card[data-short-accent="rose"] {
  --short-glow: rgba(244, 63, 94, 0.2);
  --short-icon-s1: #fff1f2;
  --short-icon-s2: #fecdd3;
  --short-icon-fg: #be123c;
  --short-hover-ring: rgba(244, 63, 94, 0.28);
}

.dashboard-page .dashboard-shortcut-card[data-short-accent="purple"] {
  --short-glow: rgba(168, 85, 247, 0.22);
  --short-icon-s1: #faf5ff;
  --short-icon-s2: #e9d5ff;
  --short-icon-fg: #7e22ce;
  --short-hover-ring: rgba(168, 85, 247, 0.3);
}

.dashboard-page .dashboard-shortcut-card[data-short-accent="stone"] {
  --short-glow: rgba(120, 113, 108, 0.18);
  --short-icon-s1: #fafaf9;
  --short-icon-s2: #e7e5e4;
  --short-icon-fg: #44403c;
  --short-hover-ring: rgba(120, 113, 108, 0.28);
}

.dashboard-page .dashboard-shortcut-card[data-short-accent="orange"] {
  --short-glow: rgba(249, 115, 22, 0.24);
  --short-icon-s1: #fff7ed;
  --short-icon-s2: #fed7aa;
  --short-icon-fg: #c2410c;
  --short-hover-ring: rgba(249, 115, 22, 0.32);
}

.dashboard-page .dashboard-shortcut-card[data-short-accent="charcoal"] {
  --short-glow: rgba(71, 85, 105, 0.2);
  --short-icon-s1: #f8fafc;
  --short-icon-s2: #cbd5e1;
  --short-icon-fg: #1e293b;
  --short-hover-ring: rgba(71, 85, 105, 0.35);
}

.dashboard-page .dashboard-shortcut-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.65rem;
  padding: 1.05rem 0.65rem 1rem;
  min-height: 7rem;
  border-radius: 16px;
  text-decoration: none;
  color: #152238;
  background: linear-gradient(155deg,
      rgba(255, 255, 255, 0.99) 0%,
      rgba(246, 249, 252, 0.97) 55%,
      rgba(237, 242, 250, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 1px 2px rgba(15, 30, 60, 0.04),
    0 10px 28px rgba(15, 40, 80, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  overflow: hidden;
  transition: transform 0.24s cubic-bezier(0.33, 1, 0.68, 1),
    box-shadow 0.24s ease,
    border-color 0.24s ease,
    color 0.2s ease;
}

.dashboard-page .dashboard-shortcut-card:hover {
  color: #0b2a4e;
  border-color: var(--short-hover-ring);
  box-shadow: 0 2px 6px rgba(15, 30, 60, 0.06),
    0 18px 44px rgba(15, 40, 80, 0.11),
    0 0 0 1px var(--short-hover-ring),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
  transform: translateY(-5px);
}

.dashboard-page .dashboard-shortcut-card:focus-visible {
  outline: 3px solid var(--short-hover-ring);
  outline-offset: 2px;
}

.dashboard-page .dashboard-shortcut-card__glow {
  position: absolute;
  inset: 0 auto auto 50%;
  width: 92%;
  height: 58%;
  transform: translate(-50%, -74%);
  background: radial-gradient(ellipse at center top,
      var(--short-glow),
      transparent 70%);
  pointer-events: none;
  opacity: 0.92;
  transition: opacity 0.24s ease;
}

.dashboard-page .dashboard-shortcut-card:hover .dashboard-shortcut-card__glow {
  opacity: 1.05;
}

.dashboard-page .dashboard-shortcut-card__icon-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 1rem;
  background: linear-gradient(165deg,
      var(--short-icon-s1) 0%,
      var(--short-icon-s2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 16px rgba(15, 30, 60, 0.1),
    inset 0 2px 0 rgba(255, 255, 255, 0.85),
    inset 0 -2px 4px rgba(0, 0, 0, 0.04);
  transition: transform 0.24s cubic-bezier(0.33, 1, 0.68, 1),
    box-shadow 0.24s ease;
}

.dashboard-page .dashboard-shortcut-card:hover .dashboard-shortcut-card__icon-wrap {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 30, 60, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.5),
    inset 0 2px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);
}

.dashboard-page .dashboard-shortcut-card__bi {
  font-size: 1.72rem;
  line-height: 1;
  color: var(--short-icon-fg);
  transition: transform 0.22s ease;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.65));
}

.dashboard-page .dashboard-shortcut-card:hover .dashboard-shortcut-card__bi {
  transform: scale(1.04);
}

.dashboard-page .dashboard-shortcut-card__label {
  position: relative;
  font-size: 0.775rem;
  font-weight: 600;
  line-height: 1.28;
  z-index: 1;
}

@media (min-width: 992px) {
  .dashboard-page .dashboard-shortcut-card__label {
    font-size: 0.8rem;
  }
}

.dashboard-page .dashboard-online-item {
  min-width: 0;
  min-height: 5.75rem;
  box-sizing: border-box;
  padding: 0;
  overflow: hidden;
  align-items: stretch;
  transition: box-shadow 0.2s ease,
    transform 0.2s ease;
  border-color: rgba(0, 0, 0, 0.08) !important;
  border-radius: 10px;
}

.dashboard-page .dashboard-online-item>.dashboard-online-avatar {
  position: relative;
  flex: 0 0 clamp(4.75rem, 36%, 5.75rem);
  max-width: 6rem;
  min-height: 100%;
  align-self: stretch;
  overflow: hidden;
  border-radius: 10px 0 0 10px;
}

.dashboard-page .dashboard-online-photo {
  width: 100%;
  height: 100%;
  min-height: 5.75rem;
  display: block;
  object-fit: cover;
}

.dashboard-page .dashboard-online-avatar::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(72%, 3.75rem);
  pointer-events: none;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.25) 40%,
      rgba(255, 255, 255, 0.92) 78%,
      #fff 100%);
}

.dashboard-page .dashboard-online-text {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  background-color: #fff;
}

.dashboard-page .dashboard-online-ellipsis {
  display: block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dashboard-page .dashboard-online-meta {
  font-size: 0.7rem;
  line-height: 1.25;
}

.dashboard-page .dashboard-online-item:hover {
  box-shadow: 0 4px 14px rgba(2, 115, 212, 0.12);
  transform: translateY(-1px);
}

.dashboard-page .dashboard-online-pulse {
  display: inline-block;
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.25);
  animation: dashboardOnlinePulse 2s ease-out infinite;
}

@keyframes dashboardOnlinePulse {
  0% {
    box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.35);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(25, 135, 84, 0);
  }

  100% {
    box-shadow: 0 0 0 2px rgba(25, 135, 84, 0);
  }

  ;
}

/* login.php */

body.login-page {
  background: linear-gradient(135deg, #001f4d, #0143a3, #0273d4);
  background-size: 400% 400%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Rubik", sans-serif;
  position: relative;
  overflow: hidden;
  animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }

  ;
}

/* Animasi Background */

.login-page .bg-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.login-page .circles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.login-page .circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: circleAnimation 8s infinite;
}

/* Banyak lingkaran dengan posisi dan animasi berbeda */

.login-page .circle:nth-child(1) {
  width: 80px;
  height: 80px;
  left: 10%;
  top: 10%;
  animation-delay: 0s;
  animation-duration: 8s;
}

.login-page .circle:nth-child(2) {
  width: 20px;
  height: 20px;
  left: 20%;
  top: 40%;
  animation-delay: 2s;
  animation-duration: 12s;
}

.login-page .circle:nth-child(3) {
  width: 40px;
  height: 40px;
  left: 25%;
  top: 70%;
  animation-delay: 4s;
  animation-duration: 10s;
}

.login-page .circle:nth-child(4) {
  width: 60px;
  height: 60px;
  left: 40%;
  top: 25%;
  animation-delay: 0s;
  animation-duration: 15s;
}

.login-page .circle:nth-child(5) {
  width: 30px;
  height: 30px;
  left: 50%;
  top: 60%;
  animation-delay: 7s;
  animation-duration: 9s;
}

.login-page .circle:nth-child(6) {
  width: 70px;
  height: 70px;
  left: 65%;
  top: 15%;
  animation-delay: 5s;
  animation-duration: 12s;
}

.login-page .circle:nth-child(7) {
  width: 25px;
  height: 25px;
  left: 75%;
  top: 50%;
  animation-delay: 1s;
  animation-duration: 10s;
}

.login-page .circle:nth-child(8) {
  width: 90px;
  height: 90px;
  left: 80%;
  top: 70%;
  animation-delay: 3s;
  animation-duration: 14s;
}

.login-page .circle:nth-child(9) {
  width: 50px;
  height: 50px;
  left: 5%;
  top: 45%;
  animation-delay: 6s;
  animation-duration: 11s;
}

.login-page .circle:nth-child(10) {
  width: 35px;
  height: 35px;
  left: 50%;
  top: 10%;
  animation-delay: 8s;
  animation-duration: 9s;
}

.login-page .circle:nth-child(11) {
  width: 55px;
  height: 55px;
  left: 85%;
  top: 30%;
  animation-delay: 4s;
  animation-duration: 13s;
}

.login-page .circle:nth-child(12) {
  width: 45px;
  height: 45px;
  left: 30%;
  top: 85%;
  animation-delay: 2s;
  animation-duration: 10s;
}

.login-page .circle:nth-child(13) {
  width: 65px;
  height: 65px;
  left: 60%;
  top: 80%;
  animation-delay: 0s;
  animation-duration: 12s;
}

.login-page .circle:nth-child(14) {
  width: 15px;
  height: 15px;
  left: 15%;
  top: 70%;
  animation-delay: 5s;
  animation-duration: 8s;
}

.login-page .circle:nth-child(15) {
  width: 75px;
  height: 75px;
  left: 70%;
  top: 40%;
  animation-delay: 3s;
  animation-duration: 11s;
}

@keyframes circleAnimation {
  0% {
    transform: scale(0) translateY(0) rotate(0);
    opacity: 0;
  }

  20% {
    transform: scale(1.2) translateY(-20px) rotate(45deg);
    opacity: 0.5;
  }

  40% {
    transform: scale(1) translateY(-40px) rotate(90deg);
    opacity: 0.3;
  }

  60% {
    transform: scale(0.8) translateY(-60px) rotate(135deg);
    opacity: 0.5;
  }

  80% {
    transform: scale(0.6) translateY(-80px) rotate(180deg);
    opacity: 0.2;
  }

  100% {
    transform: scale(0) translateY(-100px) rotate(225deg);
    opacity: 0;
  }

  ;
}

/* Pastikan login container tetap di atas background */

.login-page .login-container {
  width: 100%;
  max-width: 450px;
  padding: 0px;
  position: relative;
  z-index: 1;
}

.login-page .card {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: none;
  position: relative;
  background: #0143a3;
}

.login-page .card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0143a3;
  z-index: 0;
}

.login-page .card-header {
  background: #0143a3;
  color: white;
  text-align: center;
  padding: 5px 0;
  border-bottom: none;
  position: relative;
  z-index: 1;
}

.login-page .bank-logo {
  width: 180px;
  height: 180px;
  object-fit: contain;
  margin-bottom: 5px;
}

.login-page .card-body {
  padding: 40px 30px;
  background: white;
  position: relative;
  z-index: 1;
  margin-top: -1px;
  box-shadow: 0 -3px 0 #0143a3;
}

.login-page .form-label {
  font-weight: 600;
  color: #555;
}

.login-page .input-group {
  margin-bottom: 25px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.login-page .input-group-text {
  background-color: #f8f9fa;
  border: none;
  color: #0143a3;
  padding-left: 15px;
  padding-right: 15px;
}

.login-page .form-control {
  border: none;
  padding: 12px 15px;
  height: auto;
}

.login-page .form-control:focus {
  box-shadow: none;
  border-color: #0143a3;
}

.login-page .btn-login {
  background: linear-gradient(135deg, #0143a3, #0273d4);
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-weight: 600;
  width: 100%;
  margin-top: 10px;
  box-shadow: 0 5px 15px rgba(2, 115, 212, 0.3);
  transition: all 0.3s ease;
}

.login-page .btn-login:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(2, 115, 212, 0.4);
}

.login-page .footer-text {
  text-align: center;
  color: #6c757d;
  font-size: 14px;
  margin-top: 20px;
}

.login-page .bank-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.login-page .system-name {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Tambahan CSS untuk tampilan mobile */

@media (max-width: 576px) {
  .login-page .login-container {
    width: 100%;
    max-width: 100%;
    padding: 15px;
  }

  body.login-page {
    padding: 0;
    margin: 0;
    height: 100%;
    min-height: 100vh;
  }

  .login-page .card {
    border-radius: 10px;
    margin-bottom: 0;
  }

  .login-page .bank-logo {
    width: 150px;
    height: 150px;
  }

  .login-page .card-body {
    padding: 25px 20px;
  }

  .login-page .input-group {
    margin-bottom: 20px;
  }
}

/* administrasi/data-dokumen.php */

.data-dokumen-page h5 {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e3a8a;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 6px;
  margin-top: 20px;
  margin-bottom: 14px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.theme-dark .data-dokumen-page h5 {
  color: #60a5fa;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.data-dokumen-page .btn-gradient-blue {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff !important;
  text-transform: capitalize;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.12);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  text-align: center;
  text-decoration: none;
}

/* Dark mode version untuk .btn-gradient-blue agar tidak silau */
[data-bs-theme="dark"] .data-dokumen-page .btn-gradient-blue,
[data-theme="dark"] .data-dokumen-page .btn-gradient-blue,
.dark-mode .data-dokumen-page .btn-gradient-blue {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  color: #e2e8f0 !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

@media (prefers-color-scheme: dark) {
  body:not([data-bs-theme="light"]):not([data-theme="light"]):not(.light-mode) .data-dokumen-page .btn-gradient-blue {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: #e2e8f0 !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  }
}

.data-dokumen-page .btn-gradient-blue:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  color: #ffffff !important;
  box-shadow: 0 6px 15px rgba(37, 99, 235, 0.25);
  transform: translateY(-1.5px);
}

/* Dark mode hover untuk .btn-gradient-blue */
[data-bs-theme="dark"] .data-dokumen-page .btn-gradient-blue:hover,
[data-theme="dark"] .data-dokumen-page .btn-gradient-blue:hover,
.dark-mode .data-dokumen-page .btn-gradient-blue:hover {
  background: linear-gradient(135deg, #5a6268 0%, #343a40 100%);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

@media (prefers-color-scheme: dark) {
  body:not([data-bs-theme="light"]):not([data-theme="light"]):not(.light-mode) .data-dokumen-page .btn-gradient-blue:hover {
    background: linear-gradient(135deg, #5a6268 0%, #343a40 100%);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  }
}

.theme-dark .data-dokumen-page .btn-gradient-blue {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.theme-dark .data-dokumen-page .btn-gradient-blue:hover {
  background: linear-gradient(135deg, #5a6268 0%, #343a40 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35) !important;
  transform: translateY(-2px);
}

/* administrasi/data-penjamin.php */

.data-penjamin-page .row-relasi-penjamin {
  background-color: #eefaf4;
}

.data-penjamin-page .row-relasi-penjamin td {
  box-shadow: inset 0 0 0 9999px rgba(25, 135, 84, 0.06);
}

.data-penjamin-page .badge-relasi-penjamin {
  background-color: #d1f2df;
  color: #146c43;
  border: 1px solid #a6e9c1;
  font-weight: 500;
}

/* monitoring-nasabah (kunjungan/prospekting) */

/* Base desktop besar: satu baris agar tidak menumpuk */

.prospekting-nasabah-page .filters-toolbar-controls,
.kunjungan-nasabah-page .filters-toolbar-controls,
.lo-index-compact .filters-toolbar-controls,
.monitoring-teller-page .filters-toolbar-controls {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.prospekting-nasabah-page .filters-toolbar-controls>*,
.kunjungan-nasabah-page .filters-toolbar-controls>*,
.lo-index-compact .filters-toolbar-controls>*,
.monitoring-teller-page .filters-toolbar-controls>* {
  min-width: 0;
}

.prospekting-nasabah-page .filters-toolbar-controls .form-select,
.prospekting-nasabah-page .filters-toolbar-controls .form-control,
.kunjungan-nasabah-page .filters-toolbar-controls .form-select,
.kunjungan-nasabah-page .filters-toolbar-controls .form-control,
.lo-index-compact .filters-toolbar-controls .form-select,
.lo-index-compact .filters-toolbar-controls .form-control,
.monitoring-teller-page .filters-toolbar-controls .form-select,
.monitoring-teller-page .filters-toolbar-controls .form-control {
  width: auto !important;
  min-width: 0;
}

.prospekting-nasabah-page .filters-toolbar-controls>#searchInput,
.kunjungan-nasabah-page .filters-toolbar-controls>#searchInput,
.lo-index-compact .filters-toolbar-controls>#loProposalSearchInput,
.monitoring-teller-page .filters-toolbar-controls>#searchInput {
  flex: 1 1 280px;
}

.prospekting-nasabah-page .filters-toolbar-controls> :not(.btn-group):not(#searchButton):not(#searchInput),
.kunjungan-nasabah-page .filters-toolbar-controls> :not(.btn-group):not(#searchButton):not(#searchInput),
.lo-index-compact .filters-toolbar-controls> :not(.btn-group):not(#loProposalSearchButton):not(#loProposalSearchInput),
.monitoring-teller-page .filters-toolbar-controls> :not(.btn-group):not(#searchButton):not(#searchInput) {
  flex: 0 1 170px;
}

/* Laptop umum (1366/1440/1536): title naik baris atas, kontrol rapi di bawah */

@media (max-width: 1536px) {

  .prospekting-nasabah-page .filters-toolbar,
  .kunjungan-nasabah-page .filters-toolbar,
  .lo-index-compact .filters-toolbar,
  .monitoring-teller-page .filters-toolbar {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .prospekting-nasabah-page .filters-toolbar-title,
  .kunjungan-nasabah-page .filters-toolbar-title,
  .lo-index-compact .filters-toolbar-title,
  .monitoring-teller-page .filters-toolbar-title {
    flex: 0 0 100%;
    margin-bottom: 0.25rem;
  }

  .prospekting-nasabah-page .filters-toolbar-controls,
  .kunjungan-nasabah-page .filters-toolbar-controls,
  .lo-index-compact .filters-toolbar-controls,
  .monitoring-teller-page .filters-toolbar-controls {
    flex: 0 0 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .prospekting-nasabah-page .filters-toolbar-controls .form-select,
  .prospekting-nasabah-page .filters-toolbar-controls .form-control,
  .kunjungan-nasabah-page .filters-toolbar-controls .form-select,
  .kunjungan-nasabah-page .filters-toolbar-controls .form-control,
  .lo-index-compact .filters-toolbar-controls .form-select,
  .lo-index-compact .filters-toolbar-controls .form-control,
  .monitoring-teller-page .filters-toolbar-controls .form-select,
  .monitoring-teller-page .filters-toolbar-controls .form-control {
    width: 100% !important;
  }

  .prospekting-nasabah-page .filters-toolbar-controls>.btn-group,
  .prospekting-nasabah-page .filters-toolbar-controls>#searchButton,
  .kunjungan-nasabah-page .filters-toolbar-controls>.btn-group,
  .kunjungan-nasabah-page .filters-toolbar-controls>#searchButton,
  .lo-index-compact .filters-toolbar-controls>.btn-group,
  .lo-index-compact .filters-toolbar-controls>#loProposalSearchButton,
  .monitoring-teller-page .filters-toolbar-controls>.btn-group,
  .monitoring-teller-page .filters-toolbar-controls>#searchButton {
    flex: 0 0 auto;
  }

  .prospekting-nasabah-page .filters-toolbar-controls>#searchInput,
  .kunjungan-nasabah-page .filters-toolbar-controls>#searchInput,
  .lo-index-compact .filters-toolbar-controls>#loProposalSearchInput,
  .monitoring-teller-page .filters-toolbar-controls>#searchInput {
    flex: 1 1 260px;
  }

  .prospekting-nasabah-page .filters-toolbar-controls> :not(.btn-group):not(#searchButton):not(#searchInput),
  .kunjungan-nasabah-page .filters-toolbar-controls> :not(.btn-group):not(#searchButton):not(#searchInput),
  .lo-index-compact .filters-toolbar-controls> :not(.btn-group):not(#loProposalSearchButton):not(#loProposalSearchInput),
  .monitoring-teller-page .filters-toolbar-controls> :not(.btn-group):not(#searchButton):not(#searchInput) {
    flex: 1 1 170px;
  }
}

/* Tablet dan laptop kecil */

@media (max-width: 1200px) {

  .prospekting-nasabah-page .filters-toolbar-controls>#searchInput,
  .kunjungan-nasabah-page .filters-toolbar-controls>#searchInput,
  .lo-index-compact .filters-toolbar-controls>#loProposalSearchInput,
  .monitoring-teller-page .filters-toolbar-controls>#searchInput {
    flex: 1 1 220px;
  }

  .prospekting-nasabah-page .filters-toolbar-controls> :not(.btn-group):not(#searchButton):not(#searchInput),
  .kunjungan-nasabah-page .filters-toolbar-controls> :not(.btn-group):not(#searchButton):not(#searchInput),
  .lo-index-compact .filters-toolbar-controls> :not(.btn-group):not(#loProposalSearchButton):not(#loProposalSearchInput),
  .monitoring-teller-page .filters-toolbar-controls> :not(.btn-group):not(#searchButton):not(#searchInput) {
    flex: 1 1 160px;
  }
}

/* Mobile */

@media (max-width: 768px) {

  .prospekting-nasabah-page .filters-toolbar-controls>*,
  .kunjungan-nasabah-page .filters-toolbar-controls>*,
  .lo-index-compact .filters-toolbar-controls>*,
  .monitoring-teller-page .filters-toolbar-controls>* {
    flex: 1 1 100%;
  }

  .prospekting-nasabah-page .filters-toolbar-controls>.btn-group,
  .prospekting-nasabah-page .filters-toolbar-controls>#searchButton,
  .kunjungan-nasabah-page .filters-toolbar-controls>.btn-group,
  .kunjungan-nasabah-page .filters-toolbar-controls>#searchButton,
  .lo-index-compact .filters-toolbar-controls>.btn-group,
  .lo-index-compact .filters-toolbar-controls>#loProposalSearchButton,
  .monitoring-teller-page .filters-toolbar-controls>.btn-group,
  .monitoring-teller-page .filters-toolbar-controls>#searchButton {
    flex: 0 0 auto;
  }
}

/* ksu/tambah-karyawan.php */

.tambah-karyawan-page .required::after {
  content: " *";
  color: red;
}

/* ksu/slip-gaji.php */

.slip-gaji-page .modal-xl {
  max-width: 1200px;
}

.slip-gaji-page .modal-body {
  max-height: 80vh;
  overflow-y: auto;
}

.slip-gaji-page .mb-3 {
  margin-bottom: 1rem !important;
}

.slip-gaji-page .form-label {
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.slip-gaji-page .form-control {
  padding: 0.5rem 0.75rem;
}

.slip-gaji-page .form-control:hover {
  border-color: #80bdff;
}

.slip-gaji-page .form-control:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.slip-gaji-page .modal h6 {
  color: #2c3e50;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.slip-gaji-page .table-sm td,
.slip-gaji-page .table-sm th {
  padding: 0.5rem;
}

.slip-gaji-page .badge {
  font-weight: normal;
}

.slip-gaji-page .btn-group-sm>.btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

.slip-gaji-page .card {
  border: none;
  margin-bottom: 1rem;
}

.slip-gaji-page .shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.slip-gaji-page .table-hover tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.075);
}

.slip-gaji-page .table-striped>tbody>tr:nth-of-type(odd)>* {
  background-color: rgba(0, 0, 0, 0.02);
}

.slip-gaji-page .pagination .page-link {
  color: #435ebe;
  padding: 0.375rem 0.75rem;
}

.slip-gaji-page .pagination .page-item.active .page-link {
  background-color: #435ebe;
  border-color: #435ebe;
}

.slip-gaji-page .pagination .page-link:hover {
  color: #2c3e50;
  background-color: #e9ecef;
  border-color: #dee2e6;
}

.slip-gaji-page .pagination .page-link:focus {
  box-shadow: 0 0 0 0.2rem rgba(67, 94, 190, 0.25);
}

/* cpanel/sinkronisasi-pengajuan.php */

.sinkronisasi-pengajuan-page .table th,
.sinkronisasi-pengajuan-page .table td {
  font-size: 0.9rem;
}

.sinkronisasi-pengajuan-page .status-badge {
  font-size: 0.8rem;
  padding: 0.3rem 0.5rem;
}

/* cpanel/m-droping/index.php */

.droping-index-page .table th,
.droping-index-page .table td {
  font-size: 0.9rem;
}

.droping-index-page .status-badge {
  font-size: 0.8rem;
  padding: 0.3rem 0.5rem;
}

/* cpanel/m-pengajuan/index.php */

.pengajuan-index-page .table th,
.pengajuan-index-page .table td {
  font-size: 0.9rem;
}

.pengajuan-index-page .status-badge {
  font-size: 0.8rem;
  padding: 0.3rem 0.5rem;
}

/* cpanel/m-file/file-ketentuanku.php */

.file-ketentuanku-page .context-menu {
  display: none;
  position: fixed;
  z-index: 1000;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  padding: 5px 0;
}

.file-ketentuanku-page .context-menu-item {
  padding: 5px 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.file-ketentuanku-page .context-menu-item:hover {
  background-color: #f8f9fa;
}

.file-ketentuanku-page .context-menu-item i {
  width: 16px;
}

/* Style untuk hover pada kolom file */

.file-ketentuanku-page .file-column {
  transition: background-color 0.2s ease;
}

.file-ketentuanku-page .file-column:hover {
  background-color: #f5f5f5;
  cursor: context-menu;
}

/* cpanel/m-file/file-komite.php */

.file-komite-page .context-menu {
  display: none;
  position: fixed;
  z-index: 1000;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  padding: 5px 0;
}

.file-komite-page .context-menu-item {
  padding: 5px 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.file-komite-page .context-menu-item:hover {
  background-color: #f8f9fa;
}

.file-komite-page .context-menu-item i {
  width: 16px;
}

/* Style untuk hover pada kolom file */

.file-komite-page .file-column {
  transition: background-color 0.2s ease;
}

.file-komite-page .file-column:hover {
  background-color: #f5f5f5;
  cursor: context-menu;
}

/* cpanel/users/index.php */

.users-index-page .users-page-header {
  flex-wrap: wrap;
  gap: 0.75rem;
}

.users-index-page .users-toolbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
}

@media (min-width: 768px) {
  .users-index-page .users-toolbar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    width: auto;
  }

  .users-index-page .users-toolbar .form-select,
  .users-index-page .users-toolbar .form-control {
    max-width: 11rem;
  }

  .users-index-page .users-toolbar .users-search-input {
    max-width: 16rem;
  }

  .users-index-page .users-toolbar .users-filter-jabatan {
    max-width: 13rem;
  }

  .users-index-page .users-toolbar .users-filter-kantor {
    max-width: 15rem;
  }
}

.users-index-page .users-kantor-cell .kd {
  font-weight: 600;
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
}

.users-index-page .users-kantor-cell .nm {
  display: block;
  font-size: 0.72rem;
  color: #6c757d;
  line-height: 1.25;
  margin-top: 0.1rem;
}

.users-index-page .users-mgmt-wrap {
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  box-shadow: 0 0.05rem 0.15rem rgba(0, 0, 0, 0.04);
}

.users-index-page .users-mgmt-table {
  margin-bottom: 0;
  font-size: 0.875rem;
}

.users-index-page .users-mgmt-table thead th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6c757d;
  font-weight: 600;
  white-space: nowrap;
  vertical-align: middle;
  background: #f8f9fa;
  border-bottom-width: 2px;
  padding: 0.65rem 0.5rem;
}

@media (min-width: 768px) {
  .users-index-page .users-mgmt-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    box-shadow: 0 1px 0 #dee2e6;
  }
}

.users-index-page .users-mgmt-table tbody td {
  vertical-align: middle;
  padding: 0.55rem 0.5rem;
}

@media (min-width: 768px) {
  .users-index-page .users-mgmt-table tbody td {
    white-space: nowrap;
  }

  .users-index-page .users-mgmt-table .cell-wrap-md {
    white-space: normal;
    max-width: 14rem;
  }
}

.users-index-page .users-mgmt-table .cell-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
}

.users-index-page .user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .users-index-page .user-actions {
    justify-content: center;
    flex-wrap: nowrap;
  }
}

.users-index-page .user-actions .btn {
  padding: 0.25rem 0.4rem;
  font-size: 0.8rem;
  line-height: 1;
}

.users-index-page .status-badge {
  font-weight: 600;
  font-size: 0.7rem;
}

.users-index-page .users-mgmt-table .badge.bg-primary {
  font-weight: 500;
  font-size: 0.65rem;
}

.users-index-page .pagination-users {
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: center;
  margin-top: 1rem;
  margin-bottom: 0;
}

.users-index-page .pagination-users .page-link {
  padding: 0.35rem 0.55rem;
  font-size: 0.8rem;
}

/* Mobile: baris jadi kartu berlabel */

@media (max-width: 767.98px) {
  .users-index-page .users-mgmt-table thead {
    display: none;
  }

  .users-index-page .users-mgmt-table tbody tr {
    display: block;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    margin-bottom: 0.85rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 0.08rem 0.2rem rgba(0, 0, 0, 0.06);
  }

  .users-index-page .users-mgmt-table tbody tr:hover {
    background: #fff;
  }

  .users-index-page .users-mgmt-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.85rem;
    border-bottom: 1px solid #f1f3f4;
    white-space: normal !important;
    text-align: right !important;
  }

  .users-index-page .users-mgmt-table tbody td:last-child {
    border-bottom: none;
    flex-wrap: wrap;
  }

  .users-index-page .users-mgmt-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #6c757d;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
    text-align: left;
    max-width: 42%;
  }

  .users-index-page .users-mgmt-table .user-actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: 0.25rem;
  }

  .users-index-page .users-mgmt-table .user-actions::before {
    display: none;
  }

  .users-index-page .users-mgmt-table tbody td[data-label="Aksi"] {
    display: block;
  }

  .users-index-page .users-mgmt-table tbody td[data-label="Aksi"]::before {
    display: block;
    width: 100%;
    max-width: none;
    margin-bottom: 0.35rem;
  }
}

/* cpanel/users/view-user.php */

.users-view-page .profile-image {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #f8f9fa;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.users-view-page .user-info-card {
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.users-view-page .info-label {
  font-weight: 600;
  color: #6c757d;
}

.users-view-page .info-value {
  font-weight: 400;
}

.users-view-page .status-badge {
  font-size: 0.8rem;
  padding: 0.35em 0.65em;
}

/* komite/edit-data-komite.php */

.edit-komite-page .form-textarea {
  min-height: 60px !important;
  font-size: 0.8rem;
  resize: vertical;
  width: 100%;
  height: 220px;
  font-family: monospace;
}

.edit-komite-page .form-textarea-normal {
  min-height: 60px !important;
  font-size: 0.8rem;
  resize: vertical;
  width: 100%;
  height: 80px;
  font-family: monospace;
}

.edit-komite-page select {
  font-size: 0.8rem;
  font-family: monospace;
}

/* cs/form-pengajuan.php */

.form-pengajuan-page .btn-ai-gen {
  background: #fff;
  border: 1.5px solid rgba(152, 193, 255, 0.31);
  border-radius: 5px;
  padding: 1px 3px 1px 10px;
  transition: box-shadow 0.2s,
    transform 0.2s,
    background 0.2s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
  cursor: pointer;
  outline: none;
  margin-bottom: 3px;
  font-size: 14px;
}

.form-pengajuan-page .btn-ai-gen:hover,
.form-pengajuan-page .btn-ai-gen:focus {
  background: #eaf1ff;
  /* box-shadow: 0 2px 8px rgba(13, 110, 253, 0.18);
  */
  transform: scale(1.01);
  border-color: rgba(13, 165, 253, 0.8);
}

.form-pengajuan-page .btn-ai-gen:disabled {
  opacity: 0.6;
  pointer-events: none;
}

/* profile/face-id-register.php */

body.face-id-register-page {
  background: url("../../bg-mac.jpg") no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Rubik", sans-serif;
}

.face-id-register-page .face-id-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  /* border-radius: 20px;
  */
  padding: 30px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.face-id-register-page .video-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto 20px;
  background: #000;
  border-radius: 15px;
  overflow: hidden;
}

.face-id-register-page #faceIdVideo {
  width: 100%;
  display: block;
  object-fit: contain;
}

.face-id-register-page .face-scan-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.face-id-register-page .face-detection-box {
  position: absolute !important;
  border: 3px solid #00ff00 !important;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.8),
    inset 0 0 20px rgba(0, 255, 0, 0.3);
  pointer-events: none;
  z-index: 15 !important;
  transition: all 0.2s ease;
  box-sizing: border-box;
  visibility: visible !important;
  background-color: transparent;
}

.face-id-register-page .face-detection-box.detecting {
  border-color: #ffaa00;
  box-shadow: 0 0 20px rgba(255, 170, 0, 0.8);
}

.face-id-register-page .face-detection-box.ready {
  border-color: #00ff00;
  box-shadow: 0 0 25px rgba(0, 255, 0, 1),
    inset 0 0 25px rgba(0, 255, 0, 0.4);
  animation: pulseBox 1.5s ease-in-out infinite;
}

@keyframes pulseBox {

  0%,
  100% {
    box-shadow: 0 0 25px rgba(0, 255, 0, 1),
      inset 0 0 25px rgba(0, 255, 0, 0.4);
  }

  50% {
    box-shadow: 0 0 35px rgba(0, 255, 0, 1.2),
      inset 0 0 35px rgba(0, 255, 0, 0.6);
  }

  ;
}

.face-id-register-page .loading-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 15px 30px;
  border-radius: 10px;
  z-index: 15;
  display: none;
}

.face-id-register-page .status-message {
  text-align: center;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-weight: 500;
}

.face-id-register-page .status-message.info {
  background: #e3f2fd;
  color: #1976d2;
}

.face-id-register-page .status-message.success {
  background: #e8f5e9;
  color: #388e3c;
}

.face-id-register-page .status-message.error {
  background: #ffebee;
  color: #d32f2f;
}

.face-id-register-page .btn-register {
  width: 100%;
  padding: 15px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 10px;
  margin-top: 20px;
}

.face-id-register-page .instructions {
  background: #f5f5f5;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.face-id-register-page .instructions h6 {
  margin-bottom: 15px;
  color: #333;
}

.face-id-register-page .instructions ul {
  margin: 0;
  padding-left: 20px;
}

.face-id-register-page .instructions li {
  margin-bottom: 8px;
  color: #666;
}

/* log-update.php */

body.log-update-page {
  font-family: "Rubik", sans-serif;
  background-color: #f5f6fa;
}

.log-update-page .navbar {
  background-color: #2c3ec5;
  padding: 1rem 2rem;
}

.log-update-page .navbar-brand {
  color: white;
  font-weight: 600;
}

.log-update-page .navbar-brand:hover {
  color: white;
}

.log-update-page .nav-link {
  color: rgba(255, 255, 255, 0.8);
}

.log-update-page .nav-link:hover {
  color: white;
}

.log-update-page .search-box {
  background: white;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  margin: 1rem 0;
  border: 1px solid #e0e0e0;
}

.log-update-page .search-box input {
  border: none;
  width: 100%;
  outline: none;
}

.log-update-page .labels-section {
  margin: 2rem 0;
}

.log-update-page .label-item {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  margin: 0.25rem 0;
  border-radius: 6px;
  cursor: pointer;
}

.log-update-page .label-item:hover {
  background-color: #f0f3ff;
}

.log-update-page .label-item.active {
  background-color: #e8ecff;
}

.log-update-page .update-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.log-update-page .badge {
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

.log-update-page .badge-news {
  background-color: #1292b9;
  color: white;
}

/* ksu/cetak-slip.php */

.cetak-slip-page .header {
  text-align: center;
  margin-bottom: 20px;
  border-bottom: 2px solid #1a5fb4;
  padding-bottom: 10px;
  position: relative;
}

.cetak-slip-page .logo {
  position: absolute;
  left: 0;
  top: 0;
  width: 110px;
  height: auto;
}

.cetak-slip-page .header h2 {
  font-size: 12pt;
  margin: 0 0 5px 0;
  color: #1a5fb4;
  font-weight: bold;
}

.cetak-slip-page .header p {
  font-size: 9pt;
  margin: 0;
  color: #666;
}

.cetak-slip-page td.text-right {
  text-align: right;
}

.cetak-slip-page .table-success {
  background-color: #d4edda;
}

.cetak-slip-page .table-danger {
  background-color: #f8d7da;
}

.cetak-slip-page .table-primary {
  background-color: #cce5ff;
}

.cetak-slip-page .bg-light {
  background-color: #eef2f7;
}

.cetak-slip-page .footer {
  margin-top: 20px;
  text-align: right;
  font-size: 6pt;
  color: #666;
  border-top: 1px solid #ddd;
  padding-top: 10px;
}

@media print {
  @page {
    size: A4;
    margin: 0.5cm;
  }

  .cetak-slip-page .table-success {
    background-color: #d4edda !important;
  }

  .cetak-slip-page .table-danger {
    background-color: #f8d7da !important;
  }

  .cetak-slip-page .table-primary {
    background-color: #cce5ff !important;
  }

  .cetak-slip-page .bg-light {
    background-color: #eef2f7 !important;
  }
}

/* profile/index.php */

.profile-page .profile-header {
  background: linear-gradient(135deg,
      var(--profile-gradient-start) 0%,
      var(--profile-gradient-end) 100%);
  background-image: var(--profile-cover-image);
  background-size: cover;
  background-position: center;
  border-radius: 15px;
  padding: 20px;
  margin-top: 5px;
  margin-bottom: 20px;
  position: relative;
  padding-top: 140px;
  padding-bottom: 125px;
  min-height: 300px;
}

.profile-page .profile-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(94, 49, 255, 0.06);
  border-radius: 15px;
}

.profile-page .profile-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid rgba(255, 255, 255, 0.8);
  position: absolute;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background: white;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.profile-page .profile-info {
  text-align: center;
  padding-top: 20px;
  margin-top: 75px;
}

.profile-page .profile-name-text {
  color: white;
  font-size: 18px;
  margin-bottom: 5px;
}

.profile-page .profile-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.profile-page .social-links {
  margin-top: 10px;
}

.profile-page .social-links a {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  margin-right: 10px;
  text-decoration: none;
  font-size: 14px;
}

.profile-page .about-section {
  padding: 15px;
  background: white;
  border-radius: 15px;
}

.profile-page .about-title {
  font-size: 19px;
  font-weight: 600;
  text-align: center;
  margin-left: 0;
  margin-bottom: 15px;
}

.profile-page .about-title-sep {
  color: #adb5bd;
  font-weight: 400;
  margin: 0 0.35rem;
}

.profile-page .about-title-jabatan {
  font-size: 0.88em;
  font-weight: 700;
  color: #495057;
}

.profile-page .about-text {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
  margin-top: 25px;
  padding: 0 15px;
}

@media (min-width: 768px) {
  .profile-page .profile-image {
    left: 8%;
    top: 215px;
    transform: translateX(-50%);
  }

  .profile-page .profile-info {
    margin-top: 0;
  }

  .profile-page .about-title {
    text-align: left;
    margin-left: 13%;
  }
}

@media (max-width: 767px) {
  .profile-page .profile-header {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .profile-page .about-section {
    margin-top: 20px;
  }

  .profile-page .about-text {
    padding: 0 10px;
  }
}

/* profile/index.php face-id scan */

@keyframes scanAnimation {
  0% {
    top: 0;
    opacity: 1;
  }

  50% {
    opacity: 1;
  }

  100% {
    top: 100%;
    opacity: 0.3;
  }

  ;
}

/* --------- mPDF administrasi dokumen (scope: #nusamba-mpdf.mpdf-kit-*) --------- */

/* mpdf-kit: addendum-haji */

#nusamba-mpdf.mpdf-kit-addendum-haji {
  font-size: 11pt;
  padding: 0 !important;
  margin: 0 !important;
}

#nusamba-mpdf.mpdf-kit-addendum-haji .logo {
  width: 150px;
  float: left;
  margin-right: 50px;
}

#nusamba-mpdf.mpdf-kit-addendum-haji .header-text {
  padding-top: 10px;
  font-size: 12pt;
}

#nusamba-mpdf.mpdf-kit-addendum-haji .container::after {
  content: "";
  display: block;
  clear: both;
  margin-bottom: 30px;
}

#nusamba-mpdf.mpdf-kit-addendum-haji p,
#nusamba-mpdf.mpdf-kit-addendum-haji ol,
#nusamba-mpdf.mpdf-kit-addendum-haji li {
  text-align: justify;
}

#nusamba-mpdf.mpdf-kit-addendum-haji .text-justify {
  text-align: justify;
}

#nusamba-mpdf.mpdf-kit-addendum-haji table {
  width: 100%;
}

#nusamba-mpdf.mpdf-kit-addendum-haji .no-border td {
  border: none;
}

#nusamba-mpdf.mpdf-kit-addendum-haji .indent {
  padding-left: 20px;
}

#nusamba-mpdf.mpdf-kit-addendum-haji .sub-item {
  padding-left: 20px;
}

#nusamba-mpdf.mpdf-kit-addendum-haji .center {
  text-align: center;
}

#nusamba-mpdf.mpdf-kit-addendum-haji .bold {
  font-weight: bold;
}

#nusamba-mpdf.mpdf-kit-addendum-haji .cover-page {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  text-align: center;
}

#nusamba-mpdf.mpdf-kit-addendum-haji .cover-title {
  font-size: 16pt;
  font-weight: bold;
  line-height: 1.5;
  margin: 0 auto;
  max-width: 80%;
}

/* mpdf-kit: asuransi-a */

#nusamba-mpdf.mpdf-kit-asuransi-a {
  font-size: 10pt;
  padding: 1px !important;
}

/* Kop surat: logo | teks PT (layout pakai table di HTML) */

#nusamba-mpdf.mpdf-kit-asuransi-a .mpdf-kop-header {
  width: 100%;
}

#nusamba-mpdf.mpdf-kit-asuransi-a .mpdf-kop-header td {
  border: 0;
  vertical-align: middle;
}

/* Cadangan kalau ada <img class="logo"> tanpa table */

#nusamba-mpdf.mpdf-kit-asuransi-a .logo {
  width: 30mm;
  max-height: 24mm;
  height: auto;
  object-fit: contain;
}

#nusamba-mpdf.mpdf-kit-asuransi-a .container::after {
  content: "";
  display: block;
  clear: both;
  margin-bottom: 30px;
}

/* Tambahkan style untuk text justified */

#nusamba-mpdf.mpdf-kit-asuransi-a p,
#nusamba-mpdf.mpdf-kit-asuransi-a ol,
#nusamba-mpdf.mpdf-kit-asuransi-a li {
  text-align: justify;
}

#nusamba-mpdf.mpdf-kit-asuransi-a .text-justify {
  text-align: justify;
}

/* mpdf-kit: autodebet */

#nusamba-mpdf.mpdf-kit-autodebet {
  font-size: 10pt;
  padding: 1px !important;
}

#nusamba-mpdf.mpdf-kit-autodebet .logo {
  width: 150px;
  float: left;
  margin-right: 50px;
}

#nusamba-mpdf.mpdf-kit-autodebet .header-text {
  padding-top: 11px;
  font-size: 12pt;
}

#nusamba-mpdf.mpdf-kit-autodebet .container::after {
  content: "";
  display: block;
  clear: both;
  margin-bottom: 30px;
}

/* mpdf-kit: jadwal-angsuran */

#nusamba-mpdf.mpdf-kit-jadwal-angsuran {
  font-family: "Rubik", sans-serif;
  font-size: 8pt;
  /* Ukuran font diperkecil */
  ;
}

#nusamba-mpdf.mpdf-kit-jadwal-angsuran table {
  width: 100%;
  border-collapse: collapse;
}

#nusamba-mpdf.mpdf-kit-jadwal-angsuran table.header {
  margin-bottom: 10px;
  border: none;
}

#nusamba-mpdf.mpdf-kit-jadwal-angsuran table.jadwal {
  border: 1px solid #000;
}

#nusamba-mpdf.mpdf-kit-jadwal-angsuran table.jadwal th,
#nusamba-mpdf.mpdf-kit-jadwal-angsuran table.jadwal td {
  border: 1px solid #000;
  padding: 2px;
  /* Padding diperkecil */
  text-align: center;
}

#nusamba-mpdf.mpdf-kit-jadwal-angsuran table.jadwal th {
  background-color: #f2f2f2;
}

#nusamba-mpdf.mpdf-kit-jadwal-angsuran .text-center {
  text-align: center;
}

#nusamba-mpdf.mpdf-kit-jadwal-angsuran .text-right {
  text-align: right;
}

#nusamba-mpdf.mpdf-kit-jadwal-angsuran h2 {
  text-align: center;
  margin: 5px 0;
  font-size: 12pt;
  /* Ukuran judul diperkecil */
  ;
}

/* Menyamakan lebar kolom */

#nusamba-mpdf.mpdf-kit-jadwal-angsuran .col-angsuran,
#nusamba-mpdf.mpdf-kit-jadwal-angsuran .col-outstanding {
  width: 8%;
}

#nusamba-mpdf.mpdf-kit-jadwal-angsuran .logo {
  width: 150px;
  float: left;
  margin-right: 50px;
}

#nusamba-mpdf.mpdf-kit-jadwal-angsuran .header-text {
  padding-top: 10px;
  font-size: 12pt;
}

/* mpdf-kit: pemberitahuan */

#nusamba-mpdf.mpdf-kit-pemberitahuan {
  font-size: 11pt;
  padding: 1px !important;
}

#nusamba-mpdf.mpdf-kit-pemberitahuan .logo {
  width: 150px;
  float: left;
  margin-right: 50px;
}

#nusamba-mpdf.mpdf-kit-pemberitahuan .header-text {
  padding-top: 10px;
  font-size: 12pt;
}

#nusamba-mpdf.mpdf-kit-pemberitahuan .container::after {
  content: "";
  display: block;
  clear: both;
  margin-bottom: 30px;
}

/* mpdf-kit: perjanjian-kredit-flat */

#nusamba-mpdf.mpdf-kit-perjanjian-kredit-flat {
  font-size: 11pt;
  padding: 1px !important;
}

#nusamba-mpdf.mpdf-kit-perjanjian-kredit-flat .logo {
  width: 150px;
  float: left;
  margin-right: 50px;
}

#nusamba-mpdf.mpdf-kit-perjanjian-kredit-flat .header-text {
  padding-top: 10px;
  font-size: 12pt;
}

#nusamba-mpdf.mpdf-kit-perjanjian-kredit-flat .container::after {
  content: "";
  display: block;
  clear: both;
  margin-bottom: 30px;
}

/* Tambahkan style untuk text justified */

#nusamba-mpdf.mpdf-kit-perjanjian-kredit-flat p,
#nusamba-mpdf.mpdf-kit-perjanjian-kredit-flat ol,
#nusamba-mpdf.mpdf-kit-perjanjian-kredit-flat li {
  text-align: justify;
}

#nusamba-mpdf.mpdf-kit-perjanjian-kredit-flat .text-justify {
  text-align: justify;
}

/* mpdf-kit: persetujuan-sppk-haji */

#nusamba-mpdf.mpdf-kit-persetujuan-sppk-haji {
  font-size: 9pt;
  padding: 0 !important;
  margin: 0 !important;
}

#nusamba-mpdf.mpdf-kit-persetujuan-sppk-haji .logo {
  width: 120px;
  float: left;
  margin-right: 50px;
}

#nusamba-mpdf.mpdf-kit-persetujuan-sppk-haji .header-text {
  padding-top: 5px;
  font-size: 10pt;
}

#nusamba-mpdf.mpdf-kit-persetujuan-sppk-haji .container::after {
  content: "";
  display: block;
  clear: both;
  margin-bottom: 30px;
}

#nusamba-mpdf.mpdf-kit-persetujuan-sppk-haji p,
#nusamba-mpdf.mpdf-kit-persetujuan-sppk-haji ol,
#nusamba-mpdf.mpdf-kit-persetujuan-sppk-haji li {
  text-align: justify;
}

#nusamba-mpdf.mpdf-kit-persetujuan-sppk-haji .text-justify {
  text-align: justify;
}

#nusamba-mpdf.mpdf-kit-persetujuan-sppk-haji table {
  width: 100%;
}

#nusamba-mpdf.mpdf-kit-persetujuan-sppk-haji .no-border td {
  border: none;
}

#nusamba-mpdf.mpdf-kit-persetujuan-sppk-haji .indent {
  padding-left: 20px;
}

/* mpdf-kit: pk-res-addendum */

#nusamba-mpdf.mpdf-kit-pk-res-addendum {
  font-size: 10pt;
  padding: 0 !important;
  margin: 0 !important;
}

#nusamba-mpdf.mpdf-kit-pk-res-addendum .logo {
  width: 150px;
  float: left;
  margin-right: 50px;
}

#nusamba-mpdf.mpdf-kit-pk-res-addendum .header-text {
  padding-top: 10px;
  font-size: 12pt;
}

#nusamba-mpdf.mpdf-kit-pk-res-addendum .container::after {
  content: "";
  display: block;
  clear: both;
  margin-bottom: 30px;
}

#nusamba-mpdf.mpdf-kit-pk-res-addendum p,
#nusamba-mpdf.mpdf-kit-pk-res-addendum ol,
#nusamba-mpdf.mpdf-kit-pk-res-addendum li {
  text-align: justify;
}

#nusamba-mpdf.mpdf-kit-pk-res-addendum .text-justify {
  text-align: justify;
}

#nusamba-mpdf.mpdf-kit-pk-res-addendum table {
  width: 100%;
}

#nusamba-mpdf.mpdf-kit-pk-res-addendum .no-border td {
  border: none;
}

#nusamba-mpdf.mpdf-kit-pk-res-addendum .indent {
  padding-left: 20px;
}

#nusamba-mpdf.mpdf-kit-pk-res-addendum .sub-item {
  padding-left: 20px;
}

#nusamba-mpdf.mpdf-kit-pk-res-addendum .center {
  text-align: center;
}

#nusamba-mpdf.mpdf-kit-pk-res-addendum .bold {
  font-weight: bold;
}

#nusamba-mpdf.mpdf-kit-pk-res-addendum .cover-page {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  text-align: center;
}

#nusamba-mpdf.mpdf-kit-pk-res-addendum .cover-title {
  font-size: 16pt;
  font-weight: bold;
  line-height: 1.5;
  margin: 0 auto;
  max-width: 80%;
}

/* mpdf-kit: smtpk-letter */

#nusamba-mpdf.mpdf-kit-smtpk-letter {
  font-size: 8pt;
  padding: 0 !important;
  margin: 0 !important;
}

#nusamba-mpdf.mpdf-kit-smtpk-letter .logo {
  width: 120px;
  float: left;
  margin-right: 50px;
}

#nusamba-mpdf.mpdf-kit-smtpk-letter .header-text {
  padding-top: 5px;
  font-size: 10pt;
}

#nusamba-mpdf.mpdf-kit-smtpk-letter .container::after {
  content: "";
  display: block;
  clear: both;
  margin-bottom: 30px;
}

#nusamba-mpdf.mpdf-kit-smtpk-letter p,
#nusamba-mpdf.mpdf-kit-smtpk-letter ol,
#nusamba-mpdf.mpdf-kit-smtpk-letter li {
  text-align: justify;
}

#nusamba-mpdf.mpdf-kit-smtpk-letter .text-justify {
  text-align: justify;
}

#nusamba-mpdf.mpdf-kit-smtpk-letter table {
  width: 100%;
}

#nusamba-mpdf.mpdf-kit-smtpk-letter .no-border td {
  border: none;
}

#nusamba-mpdf.mpdf-kit-smtpk-letter .indent {
  padding-left: 20px;
}

#nusamba-mpdf.mpdf-kit-smtpk-letter .sub-item {
  padding-left: 20px;
}

/* mpdf-kit: surat-order-notaris */

#nusamba-mpdf.mpdf-kit-surat-order-notaris {
  font-size: 10pt;
  padding: 1px !important;
}

#nusamba-mpdf.mpdf-kit-surat-order-notaris .logo {
  width: 150px;
  position: absolute;
  top: 10px;
  left: 10px;
  margin-bottom: 30px;
}

/* mpdf-kit: surat-pengajuan */

#nusamba-mpdf.mpdf-kit-surat-pengajuan {
  font-size: 9pt;
  padding: 1px !important;
}

#nusamba-mpdf.mpdf-kit-surat-pengajuan .logo {
  width: 150px;
  position: absolute;
  top: 10px;
  left: 10px;
  margin-bottom: 30px;
}

/* mpdf-kit: surat-pernyataan-haji */

#nusamba-mpdf.mpdf-kit-surat-pernyataan-haji {
  font-size: 11pt;
  padding: 0 !important;
  margin: 0 !important;
}

#nusamba-mpdf.mpdf-kit-surat-pernyataan-haji .logo {
  width: 150px;
  float: left;
  margin-right: 50px;
}

#nusamba-mpdf.mpdf-kit-surat-pernyataan-haji .header-text {
  padding-top: 10px;
  font-size: 12pt;
}

#nusamba-mpdf.mpdf-kit-surat-pernyataan-haji .container::after {
  content: "";
  display: block;
  clear: both;
  margin-bottom: 30px;
}

#nusamba-mpdf.mpdf-kit-surat-pernyataan-haji p,
#nusamba-mpdf.mpdf-kit-surat-pernyataan-haji ol,
#nusamba-mpdf.mpdf-kit-surat-pernyataan-haji li {
  text-align: justify;
}

#nusamba-mpdf.mpdf-kit-surat-pernyataan-haji .text-justify {
  text-align: justify;
}

#nusamba-mpdf.mpdf-kit-surat-pernyataan-haji table {
  width: 100%;
}

#nusamba-mpdf.mpdf-kit-surat-pernyataan-haji .no-border td {
  border: none;
}

#nusamba-mpdf.mpdf-kit-surat-pernyataan-haji .indent {
  padding-left: 20px;
}

#nusamba-mpdf.mpdf-kit-surat-pernyataan-haji .sub-item {
  padding-left: 20px;
}

#nusamba-mpdf.mpdf-kit-surat-pernyataan-haji .center {
  text-align: center;
}

#nusamba-mpdf.mpdf-kit-surat-pernyataan-haji .bold {
  font-weight: bold;
}

/* mpdf-kit: tanda-terima-jaminan */

#nusamba-mpdf.mpdf-kit-tanda-terima-jaminan {
  font-size: 11pt;
  padding: 1px !important;
}

#nusamba-mpdf.mpdf-kit-tanda-terima-jaminan table {
  width: 100%;
  border-collapse: collapse;
}

#nusamba-mpdf.mpdf-kit-tanda-terima-jaminan td {
  padding: 5px;
}

#nusamba-mpdf.mpdf-kit-tanda-terima-jaminan .border-box {
  border: 1px solid black;
  padding: 8px;
  margin-bottom: 10px;
}

#nusamba-mpdf.mpdf-kit-tanda-terima-jaminan .signature-table {
  width: 100%;
  margin-top: 20px;
}

#nusamba-mpdf.mpdf-kit-tanda-terima-jaminan .signature-table td {
  border: 1px solid rgb(122, 122, 122);
  height: 120px;
  text-align: center;
  vertical-align: bottom;
  padding: 15px;
}

#nusamba-mpdf.mpdf-kit-tanda-terima-jaminan .signature-name {
  margin-top: 60px;
  text-decoration: underline;
}

#nusamba-mpdf.mpdf-kit-tanda-terima-jaminan .signature-title {
  font-size: 0.9em;
}

#nusamba-mpdf.mpdf-kit-tanda-terima-jaminan .checkbox {
  font-size: 24pt;
  margin-right: 8px;
  line-height: 1;
  vertical-align: middle;
  font-family: "Rubik", sans-serif;
  letter-spacing: 1px;
}

#nusamba-mpdf.mpdf-kit-tanda-terima-jaminan .logo {
  width: 150px;
  float: left;
  margin-right: 50px;
}

#nusamba-mpdf.mpdf-kit-tanda-terima-jaminan .header-text {
  padding-top: 10px;
  font-size: 12pt;
}

#nusamba-mpdf.mpdf-kit-tanda-terima-jaminan .container::after {
  content: "";
  display: block;
  clear: both;
  margin-bottom: 30px;
}

/* --------- end mPDF administrasi dokumen --------- */

/* Halaman sekali pakai ekspor / peringatan (tidak mempengaruhi layout utama aplikasi) */

body.pdf-export-abort-page {
  font-family: "Rubik", sans-serif;
  max-width: 32rem;
  margin: 2.5rem auto;
  padding: 0 1.25rem;
  line-height: 1.55;
  color: #222;
}

body.pdf-export-abort-page h1 {
  font-size: 1.2rem;
  margin-top: 0;
}

body.pdf-export-abort-page .box {
  background: #fff8e6;
  border: 1px solid #e6c200;
  border-radius: 8px;
  padding: 1rem 1.1rem;
  margin: 1rem 0;
}

body.pdf-export-abort-page ul {
  margin: 0.5rem 0 0.5rem 1.2rem;
  padding: 0;
}

body.pdf-export-abort-page a {
  color: #0d6efd;
}

/* Ekspor HTML ke Excel (.xls) dari cpanel/m-droping/export-excel.php */

body.excel-export-droping-page table {
  border-collapse: collapse;
  width: 100%;
}

body.excel-export-droping-page th {
  background-color: #f0f0f0;
  font-weight: bold;
  text-align: center;
  vertical-align: middle;
  white-space: normal;
  word-wrap: break-word;
  padding: 5px;
  font-size: 11px;
}

body.excel-export-droping-page td {
  padding: 4px;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

body.excel-export-droping-page .number-cell {
  text-align: right;
}

body.excel-export-droping-page .text-cell {
  text-align: left;
}

body.excel-export-droping-page .center-cell {
  text-align: center;
}

/* ---------- Dark mode (html.theme-dark + data-bs-theme) ---------- */

html.theme-dark {
  color-scheme: dark;
}

html.theme-dark body {
  background: #11151d;
  color: #e9edf4;
}

html.theme-dark .main-content {
  background: transparent;
}

html.theme-dark .top-navbar {
  background: #1a2130;
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

html.theme-dark .top-navbar.n-topnav {
  background: linear-gradient(180deg, #1e2636 0%, #1a2130 100%);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 8px 28px rgba(0, 0, 0, 0.45);
}

html.theme-dark .n-topnav__unified {
  background: rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 255, 255, 0.08);
}

html.theme-dark .n-topnav__date-primary {
  color: rgba(241, 245, 249, 0.96) !important;
}

html.theme-dark .n-topnav__special-id {
  color: rgba(241, 245, 249, 0.96);
}

html.theme-dark .n-topnav-mob__date-row {
  border-top-color: rgba(255, 255, 255, 0.1) !important;
}

html.theme-dark .top-navbar h4 {
  color: #f0f3f8 !important;
}

html.theme-dark .n-topnav__date-icon {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.18) 0%, rgba(59, 130, 246, 0.1) 100%);
  color: #93c5fd;
}

html.theme-dark .n-topnav__toolbar {
  background: rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 255, 255, 0.08);
}

html.theme-dark .n-topnav__icon-btn {
  color: rgba(226, 232, 240, 0.88) !important;
}

html.theme-dark .n-topnav__icon-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f8fafc !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

html.theme-dark .n-topnav__shortcut {
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.1);
}

html.theme-dark .n-topnav__shortcut .form-control {
  background: transparent !important;
  color: #e2e8f0;
}

html.theme-dark .n-topnav__shortcut-prefix {
  color: rgba(148, 163, 184, 0.9) !important;
}

/* Running Text */

.n-running-text-container {
  overflow: hidden;
  white-space: nowrap;
  padding: 0.4rem 0;
  margin: -18px -26px 18px -26px;
  /* Stick to navbar, expand horizontally */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1029;
  /* Under navbar */
  border-radius: 0;
}

@media (max-width: 767.98px) {
  .n-running-text-container {
    margin: 0 -15px 15px -15px;
    /* Stick to mobile navbar */
    border-radius: 0;
  }
}

.n-running-text {
  display: inline-block;
  padding-left: 100%;
  animation: n-marquee 25s linear infinite;
}

.n-running-text:hover {
  animation-play-state: paused;
}

.n-running-text span {
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

@keyframes n-marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }

  ;
}

html.theme-dark .n-topnav__dropdown-head {
  background: rgba(30, 38, 54, 0.98) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}

html.theme-dark .n-topnav__dropdown-foot {
  background: rgba(26, 33, 48, 0.85);
  border-color: rgba(255, 255, 255, 0.06) !important;
}

html.theme-dark .n-topnav__logout {
  background: linear-gradient(180deg, rgba(127, 29, 29, 0.35) 0%, rgba(153, 27, 27, 0.45) 100%) !important;
  border-color: rgba(248, 113, 113, 0.35) !important;
  color: #fecaca !important;
}

html.theme-dark .n-topnav__logout:hover {
  background: linear-gradient(180deg, rgba(153, 27, 27, 0.55) 0%, rgba(185, 28, 28, 0.55) 100%) !important;
  color: #fff !important;
}

html.theme-dark .mobile-navbar {
  background: #1a2130 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

html.theme-dark .mobile-navbar.n-topnav-mob {
  background: linear-gradient(180deg, #1e2636 0%, #1a2130 100%) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

html.theme-dark .theme-nav-toggle-link {
  color: rgba(245, 248, 252, 0.92) !important;
}

html.theme-dark .navbar-greet-msg.text-muted,
html.theme-dark .text-muted {
  color: rgba(203, 210, 222, 0.65) !important;
}

html.theme-dark .navbar-user-meta__nama {
  color: #eef1f7 !important;
}

html.theme-dark .dashboard-card,
html.theme-dark .card:not(.border-0) {
  background: #1e2635 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #e9edf4;
}

html.theme-dark .card-header:not([class*="bg-"]) {
  background-color: rgba(0, 0, 0, 0.25) !important;
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
  color: #e9edf4;
}

html.theme-dark .card-title,
html.theme-dark .dashboard-card .card-title {
  color: #f2f5fa !important;
}

html.theme-dark .table {
  color: #e9edf4;
  --bs-table-bg: #1e2635;
  --bs-table-border-color: rgba(255, 255, 255, 0.1);
}

html.theme-dark .table-striped>tbody>tr:nth-of-type(odd)>* {
  background-color: rgba(255, 255, 255, 0.04);
}

html.theme-dark .table-hover>tbody>tr:hover>* {
  background-color: rgba(255, 255, 255, 0.06);
  color: inherit;
}

html.theme-dark .form-control,
html.theme-dark .form-select {
  background-color: #151b26;
  border-color: rgba(255, 255, 255, 0.12);
  color: #e9edf4;
}

html.theme-dark .form-control:focus,
html.theme-dark .form-select:focus {
  border-color: #6ea8fe;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.28);
  background-color: #151b26;
  color: #e9edf4;
}

html.theme-dark .input-group-text {
  background-color: #1f2838;
  border-color: rgba(255, 255, 255, 0.12);
  color: #c8d0de;
}

html.theme-dark .form-label {
  color: #c8d0de;
}

html.theme-dark hr {
  background-image: linear-gradient(to right,
      rgba(255, 255, 255, 0),
      rgba(255, 255, 255, 0.26),
      rgba(255, 255, 255, 0));
}

html.theme-dark .list-group-item {
  background-color: #1e2635;
  border-color: rgba(255, 255, 255, 0.08);
  color: #e9edf4;
}

html.theme-dark .modal-content {
  background: #232d3f;
  color: #e9edf4;
  border-color: rgba(255, 255, 255, 0.12);
}

html.theme-dark .modal-header,
html.theme-dark .modal-footer {
  border-color: rgba(255, 255, 255, 0.1);
}

html.theme-dark .dropdown-menu {
  background: #1e2635;
  border-color: rgba(255, 255, 255, 0.1);
}

html.theme-dark .dropdown-item {
  color: #e9edf4;
}

html.theme-dark .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

html.theme-dark .nav-tabs .nav-link {
  color: rgba(220, 228, 238, 0.75);
}

html.theme-dark .nav-tabs .nav-link.active {
  background: #1e2635;
  border-color: rgba(255, 255, 255, 0.12) rgba(255, 255, 255, 0.12) #1e2635;
  color: #fff;
}

html.theme-dark .pagination .page-link {
  background: #1e2635;
  border-color: rgba(255, 255, 255, 0.12);
  color: #dce4ee;
}

html.theme-dark .pagination .page-item.active .page-link {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

html.theme-dark .breadcrumb-item,
html.theme-dark .breadcrumb-item a {
  color: rgba(206, 214, 226, 0.85);
}

html.theme-dark .dashboard-page .carousel-image-container {
  background-color: #0d1017;
}

html.theme-dark .dashboard-page .dashboard-online-card {
  background: #1e2635;
  border-color: rgba(255, 255, 255, 0.08);
}

html.theme-dark .dashboard-page .dashboard-shortcut-card {
  background: linear-gradient(155deg,
      rgba(38, 48, 65, 0.98) 0%,
      rgba(26, 33, 46, 0.98) 100%);
  border-color: rgba(255, 255, 255, 0.1);
  color: #e9edf4;
}

html.theme-dark .dashboard-page .dashboard-shortcut-card:hover {
  border-color: rgba(110, 168, 254, 0.35);
}

html.theme-dark .dashboard-page .dashboard-shortcuts-kicker {
  color: rgba(200, 210, 226, 0.55);
}

html.theme-dark .dashboard-page .dashboard-card-banner {
  background: linear-gradient(135deg,
      #1f2a3e 0%,
      rgba(36, 92, 165, 0.55) 100%) !important;
  color: #e8f2ff !important;
  border-bottom-color: rgba(142, 188, 255, 0.2) !important;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}

html.theme-dark .dashboard-page .dashboard-card .user-info,
html.theme-dark .dashboard-page .dashboard-card .office-info {
  color: #e9edf4;
}

html.theme-dark .dashboard-page .dashboard-card .user-info h6 {
  color: #f2f5fa !important;
}

html.theme-dark .dashboard-page .dashboard-card .badge.bg-secondary {
  background-color: #3d4a60 !important;
  color: #e4eaf4 !important;
}

html.theme-dark .kpi-card {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.42);
}

html.theme-dark .sidebar {
  color: rgba(237, 242, 251, 0.96);
  background-color: #11151d;
  box-shadow: 4px 0 32px rgba(0, 0, 0, 0.55),
    inset -1px 0 0 rgba(255, 255, 255, 0.04);
  background-image: linear-gradient(180deg,
      rgba(30, 38, 52, 0.97) 0%,
      rgba(16, 22, 34, 0.99) 55%,
      rgba(12, 16, 26, 1) 100%),
    url("../media/bg-sidebar.png");
  background-position: bottom,
    bottom center;
  background-repeat: no-repeat, no-repeat;
  background-size: cover, cover;
  background-blend-mode: normal, multiply;
  scrollbar-color: rgba(159, 195, 255, 0.35) transparent;
}

html.theme-dark .sidebar::-webkit-scrollbar-thumb {
  background: rgba(159, 195, 255, 0.32);
}

html.theme-dark .sidebar-brand {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html.theme-dark .sidebar .user-profile {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html.theme-dark .sidebar .sidebar-user-meta .profile-name,
html.theme-dark .sidebar .sidebar-user-meta .profile-name a {
  color: rgba(245, 248, 252, 0.96) !important;
}

html.theme-dark .sidebar .sidebar-user-meta .profile-time,
html.theme-dark .sidebar .profile-time.text-light {
  color: rgba(195, 208, 228, 0.72) !important;
}

html.theme-dark .sidebar .profile-img {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

html.theme-dark .sidebar-desktop-footer {
  border-top-color: rgba(255, 255, 255, 0.1);
}

html.theme-dark .sidebar-desktop-toggle {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(238, 244, 252, 0.95);
}

html.theme-dark .sidebar-desktop-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

html.theme-dark .sidebar .nav-link {
  --bs-nav-link-color: rgba(232, 238, 248, 0.92);
  --bs-nav-link-hover-color: #fff;
  color: rgba(232, 238, 248, 0.92) !important;
}

html.theme-dark .sidebar .nav-link:visited {
  color: rgba(232, 238, 248, 0.92) !important;
}

html.theme-dark .sidebar .nav-link:hover,
html.theme-dark .sidebar .nav-link.active {
  background: rgba(66, 133, 244, 0.28);
  color: #fff !important;
  box-shadow: inset 3px 0 0 rgba(142, 195, 255, 0.85);
  border-radius: 0 8px 8px 0;
}

html.theme-dark .sidebar .collapse .sidebar-submenu>.nav-item>.nav-link {
  color: rgba(235, 240, 248, 0.9) !important;
  background: rgba(0, 0, 0, 0.32);
  border-left-color: rgba(120, 185, 255, 0.42);
}

html.theme-dark .sidebar .collapse .sidebar-submenu>.nav-item>.nav-link:hover,
html.theme-dark .sidebar .collapse .sidebar-submenu>.nav-item>.nav-link.active {
  background: rgba(66, 133, 244, 0.38);
  border-left-color: rgba(186, 230, 255, 0.95);
  color: #fff !important;
  border-radius: 0 6px 6px 0;
}

/* Flyout submenu (sidebar ringkas desktop) — kelas ada di elemen <html> yang sama */

@media (min-width: 992px) {
  html.theme-dark.sidebar-collapsed #sidebar .sidebar-nav-scroll>.nav-item:has(> .collapse)>.collapse {
    background: rgba(22, 30, 44, 0.98) !important;
    background-image: linear-gradient(180deg,
        rgba(36, 48, 68, 0.99) 0%,
        rgba(18, 24, 36, 0.99) 100%) !important;
    box-shadow: 4px 16px 40px rgba(0, 0, 0, 0.55),
      0 0 0 1px rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    scrollbar-color: rgba(159, 195, 255, 0.35) transparent;
  }

  html.theme-dark.sidebar-collapsed #sidebar .sidebar-nav-scroll>.nav-item:has(> .collapse)>.collapse::-webkit-scrollbar {
    width: 8px;
  }

  html.theme-dark.sidebar-collapsed #sidebar .sidebar-nav-scroll>.nav-item:has(> .collapse)>.collapse::-webkit-scrollbar-thumb {
    background: rgba(159, 195, 255, 0.32);
    border-radius: 6px;
  }

  html.theme-dark.sidebar-collapsed #sidebar .sidebar-nav-scroll>.nav-item:has(> .collapse)>.collapse .sidebar-submenu>.nav-item>.nav-link {
    color: rgba(237, 242, 251, 0.95) !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border-left-color: rgba(120, 185, 255, 0.45) !important;
  }

  html.theme-dark.sidebar-collapsed #sidebar .sidebar-nav-scroll>.nav-item:has(> .collapse)>.collapse .sidebar-submenu>.nav-item>.nav-link:hover,
  html.theme-dark.sidebar-collapsed #sidebar .sidebar-nav-scroll>.nav-item:has(> .collapse)>.collapse .sidebar-submenu>.nav-item>.nav-link.active {
    background: rgba(66, 133, 244, 0.42) !important;
    border-left-color: rgba(186, 230, 255, 0.95) !important;
    color: #fff !important;
  }

  html.theme-dark.sidebar-collapsed #sidebar .sidebar-nav-scroll>.nav-item:has(> .collapse)>.collapse .sidebar-submenu .sidebar-link-label {
    color: inherit !important;
  }
}

/* Flyout submenu (tablet rail) */

@media (max-width: 991px) and (min-width: 768px) {
  html.theme-dark #sidebar.sidebar .sidebar-nav-scroll>.nav-item:has(> .collapse)>.collapse {
    background: rgba(22, 30, 44, 0.98) !important;
    background-image: linear-gradient(180deg,
        rgba(36, 48, 68, 0.99) 0%,
        rgba(18, 24, 36, 0.99) 100%) !important;
    box-shadow: 4px 16px 40px rgba(0, 0, 0, 0.55),
      0 0 0 1px rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    scrollbar-color: rgba(159, 195, 255, 0.35) transparent;
  }

  html.theme-dark #sidebar.sidebar .sidebar-nav-scroll::-webkit-scrollbar-thumb {
    background: rgba(159, 195, 255, 0.32);
  }

  html.theme-dark #sidebar.sidebar .sidebar-nav-scroll>.nav-item:has(> .collapse)>.collapse .sidebar-submenu>.nav-item>.nav-link {
    color: rgba(237, 242, 251, 0.95) !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border-left-color: rgba(120, 185, 255, 0.45) !important;
  }

  html.theme-dark #sidebar.sidebar .sidebar-nav-scroll>.nav-item:has(> .collapse)>.collapse .sidebar-submenu>.nav-item>.nav-link:hover,
  html.theme-dark #sidebar.sidebar .sidebar-nav-scroll>.nav-item:has(> .collapse)>.collapse .sidebar-submenu>.nav-item>.nav-link.active {
    background: rgba(66, 133, 244, 0.42) !important;
    border-left-color: rgba(186, 230, 255, 0.95) !important;
    color: #fff !important;
  }
}

/* Drawer mobile: ganti biru terang */

@media (max-width: 767px) {
  html.theme-dark .sidebar {
    background-color: #0f131a;
    background-image: linear-gradient(180deg,
        rgba(28, 36, 50, 0.99) 0%,
        rgba(14, 18, 28, 1) 100%),
      url("../media/bg-sidebar.png");
    background-blend-mode: normal, multiply;
    background-size: cover, cover;
    background-repeat: no-repeat, no-repeat;
    background-position: bottom,
      bottom center;
  }

  html.theme-dark .sidebar.show {
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.6);
  }
}

html.theme-dark .sidebar-overlay {
  background: rgba(0, 0, 0, 0.58);
}

html.theme-dark .terbilang-text {
  background-color: rgba(25, 120, 180, 0.28);
  color: #b8dcf4;
}

html.theme-dark .bg-light {
  background-color: rgba(255, 255, 255, 0.06) !important;
}

html.theme-dark .border,
html.theme-dark .border-bottom,
html.theme-dark .border-top {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html.theme-dark .theme-toggle-btn.btn-outline-secondary {
  border-color: rgba(255, 255, 255, 0.2);
  color: #e9edf4;
}

html.theme-dark .theme-toggle-btn.btn-outline-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

html.theme-dark body.login-page {
  background: #0f121a;
}

html.theme-dark .login-page .card {
  background: #1e2635;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

html.theme-dark .login-page .card-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  color: #f0f3f8;
}

html.theme-dark .login-page .form-control,
html.theme-dark .login-page .input-group-text {
  background: #151b26;
  border-color: rgba(255, 255, 255, 0.12);
  color: #e9edf4;
}

html.theme-dark .login-page .form-control:disabled,
html.theme-dark .login-page .form-control[readonly],
html.theme-dark .login-page input[disabled]:not(.form-check-input) {
  background: #121820 !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #9eb0c4 !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #9eb0c4 !important;
  box-shadow: none !important;
}

html.theme-dark .login-page .form-label {
  color: #c8d0de !important;
}

html.theme-dark .login-page .footer-text,
html.theme-dark .login-page .system-name,
html.theme-dark .login-page .bank-name {
  color: rgba(200, 210, 226, 0.82) !important;
}

.theme-login-fab {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1080;
  width: 2.65rem;
  height: 2.65rem;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

html.theme-dark .theme-login-fab.btn-light {
  background: #2a3548;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #fcd34d;
}

/* --- Dark mode: utilitas Bootstrap & pola halaman (tab, bg-white, section warna, dll.) --- */

html.theme-dark .bg-white,
html.theme-dark .bg-body {
  background-color: #252d3e !important;
  color: #e9edf4;
}

html.theme-dark .text-dark,
html.theme-dark .text-black {
  color: #dfe6f2 !important;
}

html.theme-dark select.form-control,
html.theme-dark select.form-select {
  background-color: #151b26 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #e9edf4 !important;
}

/* Readonly & disabled: timpa pola terang (#f8f9fa + opacity Bootstrap) — semua pola elemen */

html.theme-dark input[readonly]:not(.readonly-green):not(.readonly-blue):not(.readonly-red):not(.readonly-yellow),
html.theme-dark textarea[readonly],
html.theme-dark .form-control[readonly],
html.theme-dark .form-select[readonly],
html.theme-dark input[disabled]:not(.form-check-input),
html.theme-dark textarea[disabled],
html.theme-dark select[disabled],
html.theme-dark .form-control:disabled,
html.theme-dark .form-select:disabled {
  background-color: #141b26 !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #b9c8dc !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #b9c8dc !important;
  cursor: not-allowed;
  box-shadow: none !important;
}

html.theme-dark input[disabled]:not(.form-check-input),
html.theme-dark textarea[disabled],
html.theme-dark select[disabled],
html.theme-dark .form-control:disabled,
html.theme-dark .form-select:disabled {
  background-color: #121820 !important;
  color: #9eb0c4 !important;
  -webkit-text-fill-color: #9eb0c4 !important;
}

html.theme-dark .form-control:disabled:focus,
html.theme-dark .form-select:disabled:focus,
html.theme-dark .form-control[readonly]:focus,
html.theme-dark input[readonly]:focus,
html.theme-dark textarea[readonly]:focus {
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: none !important;
}

html.theme-dark .form-control::placeholder {
  color: rgba(174, 190, 212, 0.45);
}

html.theme-dark .form-control:disabled::placeholder,
html.theme-dark .form-control[readonly]::placeholder,
html.theme-dark input[disabled]::placeholder,
html.theme-dark textarea[readonly]::placeholder,
html.theme-dark textarea:disabled::placeholder {
  color: rgba(160, 176, 200, 0.4) !important;
}

html.theme-dark input[readonly].readonly-green {
  background-color: rgba(46, 125, 50, 0.22) !important;
  border-color: rgba(129, 199, 132, 0.45) !important;
  color: #b2dfbc !important;
  -webkit-text-fill-color: #b2dfbc !important;
}

html.theme-dark input[readonly].readonly-blue {
  background-color: rgba(25, 118, 210, 0.22) !important;
  border-color: rgba(100, 181, 246, 0.45) !important;
  color: #a2d2ff !important;
  -webkit-text-fill-color: #a2d2ff !important;
}

html.theme-dark input[readonly].readonly-red {
  background-color: rgba(220, 53, 69, 0.2) !important;
  border-color: rgba(220, 53, 69, 0.45) !important;
  color: #f5b0b8 !important;
  -webkit-text-fill-color: #f5b0b8 !important;
}

html.theme-dark input[readonly].readonly-yellow {
  background-color: rgba(255, 193, 7, 0.14) !important;
  border-color: rgba(255, 193, 7, 0.4) !important;
  color: #ffe082 !important;
  -webkit-text-fill-color: #ffe082 !important;
}

html.theme-dark .form-check-input:disabled {
  opacity: 1 !important;
  filter: brightness(1.05);
}

html.theme-dark .form-switch .form-check-input:disabled:not(:checked) {
  opacity: 0.55 !important;
}

html.theme-dark .tab-content {
  background: #1e2635 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #e9edf4;
}

html.theme-dark .nav-tabs {
  border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}

html.theme-dark .nav-tabs .nav-link {
  color: rgba(180, 192, 210, 0.85) !important;
}

html.theme-dark .nav-tabs .nav-link.active {
  color: #a8c7ff !important;
  background-color: #1e2635 !important;
  border-color: rgba(255, 255, 255, 0.14) rgba(255, 255, 255, 0.14) #1e2635 !important;
}

html.theme-dark .nav-tabs .nav-link.active::after {
  background: #6ea8fe !important;
}

html.theme-dark .nav-tabs .nav-link:hover:not(.active) {
  background-color: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.1) rgba(255, 255, 255, 0.1) rgba(255, 255, 255, 0.12) !important;
  color: #cfe0ff !important;
}

html.theme-dark .stats-card {
  background: #1e2635 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #e9edf4;
}

html.theme-dark .stats-card h3 {
  color: #f2f5fa !important;
}

html.theme-dark .stats-card p,
html.theme-dark .stats-card i {
  color: rgba(190, 202, 220, 0.88) !important;
}

html.theme-dark .activity-item {
  background: #252d3e !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html.theme-dark .activity-desc {
  color: #c8d4e4 !important;
}

html.theme-dark .activity-footer {
  color: rgba(180, 192, 210, 0.75) !important;
}

/* Section warna (administrasi / droping): header & panel gelap, judul kontras */

html.theme-dark .bg-abu-header {
  background-color: #2a313f !important;
  border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}

html.theme-dark .text-abu-title {
  color: #d1dae8 !important;
}

html.theme-dark .bg-orange {
  background-color: rgba(253, 126, 20, 0.12) !important;
  border-left-color: #fd7e14 !important;
}

html.theme-dark .bg-orange-header {
  background-color: rgba(253, 126, 20, 0.22) !important;
  border-bottom-color: rgba(253, 186, 92, 0.35) !important;
}

html.theme-dark .text-orange-title {
  color: #ffb86c !important;
}

html.theme-dark .bg-hijau {
  background-color: rgba(40, 167, 69, 0.12) !important;
}

html.theme-dark .bg-hijau-header {
  background-color: rgba(40, 167, 69, 0.22) !important;
  border-bottom-color: rgba(72, 180, 97, 0.35) !important;
}

html.theme-dark .text-hijau-title {
  color: #7dde9a !important;
}

html.theme-dark .bg-merah {
  background-color: rgba(220, 53, 69, 0.12) !important;
}

html.theme-dark .bg-merah-header {
  background-color: rgba(220, 53, 69, 0.22) !important;
  border-bottom-color: rgba(236, 112, 128, 0.35) !important;
}

html.theme-dark .text-merah-title {
  color: #f898a8 !important;
}

html.theme-dark .bg-ungu {
  background-color: rgba(111, 66, 193, 0.12) !important;
}

html.theme-dark .bg-ungu-header {
  background-color: rgba(111, 66, 193, 0.22) !important;
  border-bottom-color: rgba(157, 125, 210, 0.35) !important;
}

html.theme-dark .text-ungu-title {
  color: #c9b3f5 !important;
}

html.theme-dark .bg-biru {
  background-color: rgba(33, 150, 243, 0.1) !important;
}

html.theme-dark .bg-biru-header {
  background-color: rgba(33, 150, 243, 0.2) !important;
  border-bottom-color: rgba(90, 173, 246, 0.35) !important;
}

html.theme-dark .text-biru-title {
  color: #8ec5ff !important;
}

html.theme-dark .bg-kuning {
  background-color: rgba(255, 193, 7, 0.1) !important;
}

html.theme-dark .bg-kuning-header {
  background-color: rgba(255, 193, 7, 0.18) !important;
}

html.theme-dark .text-kuning-title {
  color: #fdd663 !important;
}

html.theme-dark .bg-pink {
  background-color: rgba(233, 30, 99, 0.12) !important;
}

html.theme-dark .bg-pink-header {
  background-color: rgba(233, 30, 99, 0.2) !important;
}

html.theme-dark .text-pink-title {
  color: #ff8cc8 !important;
}

html.theme-dark .bg-teal {
  background-color: rgba(0, 150, 136, 0.12) !important;
}

html.theme-dark .bg-teal-header {
  background-color: rgba(0, 150, 136, 0.22) !important;
}

html.theme-dark .text-teal-title {
  color: #5eead4 !important;
}

html.theme-dark .bg-gradient-biru-soft {
  background: linear-gradient(135deg, #1a3a5c 0%, #243652 100%) !important;
  color: #b8d9ff !important;
  border-color: rgba(90, 160, 255, 0.25) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

html.theme-dark .bg-gradient-biru-soft .card-title {
  color: #dbeaff !important;
}

/* Tabel ringan / header */

html.theme-dark .table-light {
  --bs-table-bg: #252d3e;
  --bs-table-color: #e9edf4;
  --bs-table-border-color: rgba(255, 255, 255, 0.1);
}

html.theme-dark thead.table-light {
  --bs-table-bg: #2c3548;
}

/* SweetAlert2 */

html.theme-dark .swal2-popup {
  background: #232d3f !important;
  color: #e9edf4 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

html.theme-dark .swal2-popup .swal2-success-circular-line-left,
html.theme-dark .swal2-popup .swal2-success-circular-line-right,
html.theme-dark .swal2-popup .swal2-success-fix {
  background-color: #232d3f !important;
}

html.theme-dark .swal2-title,
html.theme-dark .swal2-html-container {
  color: #e9edf4 !important;
}

html.theme-dark .swal2-styled.swal2-confirm {
  background-color: #0d6efd !important;
}

html.theme-dark .swal2-styled.swal2-cancel {
  background-color: #3d485a !important;
  color: #e9edf4 !important;
}

/* Tombol terang → permukaan gelap agar tidak “pucat putih” */

html.theme-dark .btn-light {
  background-color: #343f54 !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #eef2f8 !important;
}

html.theme-dark .btn-light:hover {
  background-color: #3f4d66 !important;
  color: #fff !important;
}

html.theme-dark .btn-outline-light {
  color: #dfe6f2 !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}

html.theme-dark .btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}

html.theme-dark .btn-secondary {
  background-color: #3d4759 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #eef1f6 !important;
}

html.theme-dark .btn-outline-secondary {
  border-color: rgba(255, 255, 255, 0.28) !important;
  color: #d9e2f2 !important;
}

html.theme-dark .btn-outline-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}

html.theme-dark code,
html.theme-dark pre,
html.theme-dark .pre {
  background-color: rgba(0, 0, 0, 0.35) !important;
  color: #e2e9f5 !important;
  border-color: rgba(255, 255, 255, 0.1);
}

html.theme-dark .alert {
  border-width: 1px;
}

html.theme-dark .alert-secondary,
html.theme-dark .alert-light {
  background-color: #2a3242 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #e4eaf4 !important;
}

/* Pastel KPI / blok ringkasan lain */

html.theme-dark .terbilang-text,
html.theme-dark .small.text-muted {
  color: rgba(176, 188, 208, 0.88) !important;
}

/* ——— Laporan Online (komite cards & detail) ——— */

.dashboard-page .lo-slot-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.35rem;
}

@media (max-width: 576px) {
  .dashboard-page .lo-slot-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.dashboard-page .lo-view-wrap .accordion-item {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  background: #fff;
}

.dashboard-page .lo-view-wrap .accordion-button:not(.collapsed) {
  box-shadow: none;
}

.dashboard-page .lo-view-panel {
  padding: 1rem 1.25rem;
}

html.theme-dark .dashboard-page .lo-view-wrap .accordion-item {
  background: rgba(28, 34, 46, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
}

.dashboard-page .lo-komite-pill-sandi {
  background: linear-gradient(90deg, #198754, #20c997);
  border: none;
}

.dashboard-page .lo-komite-pill-komite {
  background: linear-gradient(90deg, #dc3545, #fd7e14);
  border: none;
}

.dashboard-page .lo-status-center {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 29px;
  line-height: 1;
}

.dashboard-page .lo-meta-chip-sm {
  font-size: 0.72rem;
  padding: 0.28rem 0.5rem;
  min-height: 24px;
}

.dashboard-page .lo-komite-card-v2 {
  border: 1px solid #e7edf5;
  border-radius: 14px;
  background: #fff;
}

.dashboard-page .lo-komite-card-v2 .lo-badge-status {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.dashboard-page .lo-komite-card-v2 .lo-meta-chip {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  line-height: 1;
  padding: 0.38rem 0.62rem;
  border-radius: 0.5rem;
  font-weight: 700;
}

.dashboard-page .lo-komite-card-v2 .lo-plafond-amount {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f4c81;
}

.dashboard-page .lo-komite-card-v2 .lo-status-current {
  font-size: 0.88rem;
  color: #435067;
  background: #f5f8fd;
  border: 1px solid #e3eaf7;
  border-radius: 10px;
  padding: 0.42rem 0.62rem;
  margin-bottom: 0.45rem;
}

.dashboard-page .lo-komite-card-v2 .lo-info-extra-card {
  background: #f9fbff;
  border: 1px solid #e3eaf7;
  border-radius: 12px;
  padding: 0.58rem 0.72rem;
}

html.theme-dark .dashboard-page .lo-komite-card-v2 {
  background: rgba(28, 34, 46, 0.95);
  border-color: rgba(255, 255, 255, 0.09);
}

html.theme-dark .dashboard-page .lo-komite-card-v2 .lo-plafond-amount {
  color: #77c6ff;
}

html.theme-dark .dashboard-page .lo-komite-card-v2 .lo-status-current,
html.theme-dark .dashboard-page .lo-komite-card-v2 .lo-info-extra-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.09);
  color: #dfe7f6;
}

/* Compact + creative khusus laporan-online index */

.dashboard-page.lo-index-compact .dashboard-online-card {
  border-radius: 10px;
}

.dashboard-page.lo-index-compact .dashboard-online-card.p-3.p-lg-4 {
  padding: 0.88rem !important;
}

.dashboard-page.lo-index-compact .dashboard-online-card .row.g-3 {
  --bs-gutter-x: 0.72rem;
  --bs-gutter-y: 0.48rem;
}

.dashboard-page.lo-index-compact .dashboard-online-card h2.h4,
.dashboard-page.lo-index-compact .dashboard-online-card h2.h5 {
  font-size: 1.03rem;
  line-height: 1.25;
  margin-bottom: 0.34rem !important;
}

.dashboard-page.lo-index-compact .dashboard-online-card p.small {
  font-size: 0.78rem;
  line-height: 1.25;
}

.dashboard-page.lo-index-compact .dashboard-online-card .btn {
  font-size: 0.8rem;
  padding: 0.35rem 0.56rem;
}

.dashboard-page.lo-index-compact .lo-copy-noreg {
  font-size: 0.7rem;
  min-height: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.5rem;
}

.dashboard-page.lo-index-compact .lo-komite-creative {
  position: relative;
  overflow: hidden;
  border: 1px solid #d7e3f3;
  background: radial-gradient(120% 120% at 0% 0%,
      rgba(59, 130, 246, 0.12) 0%,
      rgba(59, 130, 246, 0) 52%),
    radial-gradient(120% 120% at 100% 100%,
      rgba(16, 185, 129, 0.09) 0%,
      rgba(16, 185, 129, 0) 55%),
    linear-gradient(135deg, #ffffff 0%, #f7faff 100%);
}

.dashboard-page.lo-index-compact .lo-komite-creative::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #0d6efd 0%, #20c997 100%);
}

.dashboard-page.lo-index-compact .lo-komite-title {
  letter-spacing: 0.01em;
  color: #1e293b;
}

.dashboard-page.lo-index-compact .lo-komite-info-wrap {
  border: 1px dashed rgba(30, 41, 59, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
  padding: 0.33rem 0.5rem;
}

/* Laporan Online index — antrian komite kosong (kotak putus-putus, nuansa info, seperti lo-komite-info-wrap) */

.dashboard-page .lo-komite-empty-queue {
  border: 1px dashed rgba(13, 202, 240, 0.42);
  border-radius: 8px;
  background: rgba(13, 202, 240, 0.08);
  padding: 1rem 1.25rem;
  text-align: center;
  color: #087990;
  font-size: 0.9375rem;
  line-height: 1.5;
}

html.theme-dark .dashboard-page .lo-komite-empty-queue {
  border-color: rgba(110, 226, 252, 0.38);
  background: rgba(13, 202, 240, 0.1);
  color: #9eeaf9;
}

.dashboard-page .lo-komite-empty-queue-secondary {
  border: 1px dashed rgba(13, 202, 240, 0.42);
  border-radius: 8px;
  background: rgba(13, 202, 240, 0.08);
  padding: 1rem 1.25rem;
  text-align: center;
  color: #087990;
  font-size: 0.9375rem;
  line-height: 1.5;
}

html.theme-dark .dashboard-page .lo-komite-empty-queue-secondary {
  border-color: rgba(110, 226, 252, 0.38);
  background: rgba(13, 202, 240, 0.1);
  color: #9eeaf9;
}

.dashboard-page.lo-index-compact .lo-komite-info-label {
  display: inline-block;
  font-weight: 700;
  color: #344767;
  min-width: 48px;
}

.dashboard-page.lo-index-compact .lo-slot-grid-creative>div {
  font-weight: 700;
  font-size: 0.68rem;
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
}

.dashboard-page.lo-index-compact .lo-slot-grid-dynamic {
  grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
}

.dashboard-page.lo-index-compact .lo-komite-action-wrap .btn {
  border-radius: 8px;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(2, 6, 23, 0.08);
  flex: 1 1 auto;
  min-width: 120px;
  text-align: center;
}

.dashboard-page.lo-index-compact .lo-komite-action-wrap .lo-btn-isi-data {
  background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
  border: 1px solid #1565c0;
}

.dashboard-page.lo-index-compact .lo-komite-action-wrap .lo-btn-isi-data:hover,
.dashboard-page.lo-index-compact .lo-komite-action-wrap .lo-btn-isi-data:focus {
  background: linear-gradient(135deg, #1976d2 0%, #0d47a1 100%);
  border-color: #0d47a1;
  color: #fff;
}

.dashboard-page.lo-index-compact .lo-komite-creative.lo-komite-creative-revisi {
  border-color: #f4cf7a;
  background: radial-gradient(125% 125% at 0% 0%,
      rgba(245, 158, 11, 0.25) 0%,
      rgba(245, 158, 11, 0) 56%),
    radial-gradient(125% 125% at 100% 100%,
      rgba(250, 204, 21, 0.2) 0%,
      rgba(250, 204, 21, 0) 58%),
    linear-gradient(135deg, #fff9e6 0%, #fff2c7 100%);
}

.dashboard-page.lo-index-compact .lo-komite-creative.lo-komite-creative-revisi::before {
  background: linear-gradient(180deg, #f59e0b 0%, #facc15 100%);
}

html.theme-dark .dashboard-page.lo-index-compact .lo-komite-creative {
  border-color: rgba(159, 195, 255, 0.2);
  background: radial-gradient(120% 120% at 0% 0%,
      rgba(59, 130, 246, 0.16) 0%,
      rgba(59, 130, 246, 0) 52%),
    radial-gradient(120% 120% at 100% 100%,
      rgba(16, 185, 129, 0.12) 0%,
      rgba(16, 185, 129, 0) 55%),
    linear-gradient(135deg,
      rgba(27, 35, 50, 0.98) 0%,
      rgba(17, 24, 39, 0.98) 100%);
}

html.theme-dark .dashboard-page.lo-index-compact .lo-komite-creative.lo-komite-creative-revisi {
  border-color: rgba(245, 179, 64, 0.45);
  background: radial-gradient(125% 125% at 0% 0%,
      rgba(245, 158, 11, 0.3) 0%,
      rgba(245, 158, 11, 0) 56%),
    radial-gradient(125% 125% at 100% 100%,
      rgba(250, 204, 21, 0.24) 0%,
      rgba(250, 204, 21, 0) 58%),
    linear-gradient(135deg,
      rgba(58, 46, 20, 0.98) 0%,
      rgba(44, 34, 13, 0.98) 100%);
}

html.theme-dark .dashboard-page.lo-index-compact .lo-komite-title {
  color: #edf3ff;
}

html.theme-dark .dashboard-page.lo-index-compact .lo-komite-info-wrap {
  border-color: rgba(159, 195, 255, 0.28);
  background: rgba(255, 255, 255, 0.03);
}

html.theme-dark .dashboard-page.lo-index-compact .lo-komite-info-label {
  color: #b9d9ff;
}

.dashboard-page.lo-index-compact .lo-pengajuan-update-card {
  border: 1px solid #d7e3f3;
  background: radial-gradient(120% 120% at 100% 0%,
      rgba(59, 130, 246, 0.1) 0%,
      rgba(59, 130, 246, 0) 52%),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.dashboard-page.lo-index-compact .lo-pengajuan-update-head {
  background: rgba(255, 255, 255, 0.68);
}

.dashboard-page.lo-index-compact .lo-pengajuan-item {
  background-color: transparent !important;
  border-bottom: 1px dashed rgba(30, 41, 59, 0.16);
}

.dashboard-page.lo-index-compact .lo-pengajuan-item:last-child {
  border-bottom: 0;
}

.dashboard-page.lo-index-compact .lo-pengajuan-item .badge {
  font-size: 0.65rem;
}

html.theme-dark .dashboard-page.lo-index-compact .lo-pengajuan-update-card {
  border-color: rgba(159, 195, 255, 0.2);
  background: radial-gradient(120% 120% at 100% 0%,
      rgba(59, 130, 246, 0.16) 0%,
      rgba(59, 130, 246, 0) 52%),
    linear-gradient(135deg,
      rgba(27, 35, 50, 0.98) 0%,
      rgba(17, 24, 39, 0.98) 100%);
}

html.theme-dark .dashboard-page.lo-index-compact .lo-pengajuan-update-head {
  background: rgba(255, 255, 255, 0.04);
}

html.theme-dark .dashboard-page.lo-index-compact .lo-pengajuan-item {
  border-bottom-color: rgba(159, 195, 255, 0.22);
}

/* Laporan Online — kolom Nama / Plafond: rapatkan jarak vertikal antar baris */

td.lo-proposal-name,
td.lo-proposal-plafond {
  vertical-align: middle;
}

.lo-proposal-plafond-lines {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.28;
}

/* DM (Direct Message) Styles */

.chat-layout {
  display: flex;
  height: calc(100vh - 120px);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border: 1px solid #e9ecef;
  margin-bottom: 10px;
}

.chat-sidebar {
  width: 280px;
  border-right: 1px solid #e9ecef;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.chat-sidebar-header {
  padding: 12px 15px;
  border-bottom: 1px solid #e9ecef;
  background: #fff;
}

.search-box {
  position: relative;
}

.search-box i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
}

.search-box input {
  padding-left: 35px;
  padding-top: 6px;
  padding-bottom: 6px;
  border-radius: 20px;
  background: #f1f3f5;
  border: none;
  font-size: 0.85rem;
}

.search-box input:focus {
  background: #fff;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.user-list {
  flex-grow: 1;
  overflow-y: auto;
}

.user-item {
  padding: 10px 15px;
  border-bottom: 1px solid #f8f9fa;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-item:hover {
  background: #fff;
}

.user-item.active {
  background: #e7f1ff;
  border-left: 4px solid #0d6efd;
}

.user-avatar-wrap {
  position: relative;
}

.user-avatar-wrap img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
}

.status-online {
  background: #28a745;
}

.status-offline {
  background: #adb5bd;
}

.chat-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.chat-main-header {
  padding: 10px 20px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
}

.chat-messages {
  flex-grow: 1;
  padding: 15px 20px;
  overflow-y: auto;
  background: #f0f2f5;
}

.message-bubble {
  max-width: 75%;
  padding: 8px 14px;
  border-radius: 12px;
  margin-bottom: 2px;
  position: relative;
  line-height: 1.4;
  font-size: 0.9rem;
}

.msg-sent {
  background: #0d6efd;
  color: #fff;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.msg-received {
  background: #fff;
  color: #333;
  margin-right: auto;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
  border: 1px solid #e9ecef;
}

.msg-time {
  font-size: 0.7rem;
  margin-top: 5px;
  opacity: 0.8;
  text-align: right;
}

.msg-sent .msg-time {
  color: rgba(255, 255, 255, 0.8);
}

.msg-received .msg-time {
  color: #6c757d;
}

.chat-input-area {
  padding: 10px 20px;
  background: #f0f2f5;
  border-top: none;
}

.empty-chat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #adb5bd;
  text-align: center;
}

.empty-chat i {
  font-size: 3rem;
  margin-bottom: 12px;
  color: #dee2e6;
}

/* Mobile Responsiveness for DM */

@media (max-width: 768px) {
  .chat-layout {
    position: relative;
    height: calc(100vh - 120px);
  }

  .chat-sidebar {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 10;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-right: none;
  }

  .chat-main {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 5;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  }

  .chat-layout.chat-active .chat-sidebar {
    transform: translateX(-30%);
    opacity: 0.5;
  }

  .chat-layout.chat-active .chat-main {
    transform: translateX(0);
    z-index: 20;
  }

  .message-bubble {
    max-width: 85%;
  }
}

/* Dark Mode Overrides for DM */

[data-bs-theme="dark"] .chat-layout {
  background: #212529;
  border-color: #343a40;
}

[data-bs-theme="dark"] .chat-sidebar {
  background: #212529;
  border-color: #343a40;
}

[data-bs-theme="dark"] .chat-sidebar-header {
  background: #212529;
  border-color: #343a40;
}

[data-bs-theme="dark"] .search-box input {
  background: #2b3035;
  color: #dee2e6;
}

[data-bs-theme="dark"] .search-box input:focus {
  background: #343a40;
  color: #fff;
}

[data-bs-theme="dark"] .user-item {
  border-color: #2b3035;
}

[data-bs-theme="dark"] .user-item:hover {
  background: #2b3035;
}

[data-bs-theme="dark"] .user-item.active {
  background: rgba(13, 110, 253, 0.15);
}

[data-bs-theme="dark"] .chat-main {
  background: #1a1d20;
}

[data-bs-theme="dark"] .chat-main-header {
  background: #212529;
  border-color: #343a40;
}

[data-bs-theme="dark"] .empty-chat {
  color: #6c757d;
}

[data-bs-theme="dark"] .empty-chat i {
  color: #343a40;
}

[data-bs-theme="dark"] .chat-messages {
  background: #1a1d20;
}

[data-bs-theme="dark"] .msg-received {
  background: #2b3035;
  color: #e9ecef;
  border-color: #343a40;
}

[data-bs-theme="dark"] .msg-received .msg-time {
  color: #adb5bd;
}

[data-bs-theme="dark"] .chat-input-area {
  background: #1a1d20;
}

[data-bs-theme="dark"] .chat-input-area .input-group .form-control {
  background: #2b3035 !important;
  color: #fff;
}

[data-bs-theme="dark"] .chat-layout .btn-light {
  background: #2b3035;
  border-color: #343a40;
  color: #e9ecef;
}

[data-bs-theme="dark"] .chat-layout .btn-light:hover {
  background: #343a40;
  color: #fff;
}

/* Nusamba Connect Main Styles */

.main-content {
  padding-top: 20px;
}

/* Floating Chat Window */

.chat-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  background: #fff;
  border-radius: 15px 15px 0 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 1050;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.chat-header {
  background: #0d6efd;
  color: #fff;
  padding: 12px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.chat-messages {
  height: 300px;
  overflow-y: auto;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8f9fa;
}

.msg-bubble {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  position: relative;
}

.msg-sent {
  align-self: flex-end;
  background: #0d6efd;
  color: #fff;
  border-bottom-right-radius: 2px;
}

.msg-received {
  align-self: flex-start;
  background: #e9ecef;
  color: #333;
  border-bottom-left-radius: 2px;
}

.msg-time {
  font-size: 0.65rem;
  opacity: 0.7;
  margin-top: 4px;
  text-align: right;
}

.chat-footer {
  padding: 10px;
  background: #fff;
  border-top: 1px solid #eee;
}

.chat-input {
  border-radius: 20px;
  padding: 8px 15px;
  font-size: 0.9rem;
}

.chat-btn {
  transition: transform 0.2s;
}

.chat-btn:hover {
  transform: scale(1.1);
}

[data-bs-theme="dark"] .chat-container {
  background: #2b2b2b;
  border-color: #444;
}

[data-bs-theme="dark"] .chat-messages {
  background: #1e1e1e;
}

[data-bs-theme="dark"] .msg-received {
  background: #3d3d3d;
  color: #eee;
}

[data-bs-theme="dark"] .chat-footer {
  background: #2b2b2b;
  border-color: #444;
}

[data-bs-theme="dark"] .chat-input {
  background: #3d3d3d;
  border-color: #555;
  color: #fff;
}

.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

/* Post Composer */

#postContent {
  resize: none;
  border: 1px solid #dee2e6;
  transition: all 0.2s ease;
  border-radius: 8px;
  padding: 12px;
}

#postContent:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.1);
  outline: none;
}

/* Post Actions - Like, Comment, Share */

.like-btn,
.comment-btn,
.share-btn {
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-weight: 600;
  font-size: 0.9rem;
  color: #65676b;
  border: none;
  background: transparent;
  flex: 1;
}

.like-btn:hover,
.comment-btn:hover,
.share-btn:hover {
  background-color: #f0f2f5;
  color: #050505;
}

.like-btn.text-danger {
  color: #e41e3f !important;
}

.like-btn.text-danger i {
  animation: pulse 0.3s ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.3);
  }

  100% {
    transform: scale(1);
  }

  ;
}

/* Multi-image Grid System */

.post-image-grid {
  display: grid;
  gap: 4px;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid #eee;
  background: #f8f9fa;
}

.grid-image-item {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  background-color: #f0f2f5;
}

.grid-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.grid-image-item:hover img {
  transform: scale(1.05);
}

/* Grid Variations */

.post-image-grid-1 {
  grid-template-columns: 1fr;
}

.post-image-grid-1 img {
  /* 1 foto di threads biasanya tidak terlalu tinggi */
  max-height: 420px;
  width: 100%;
  height: auto;
  object-fit: contain;
  /* mengurangi efek "terlalu zoom/crop" */
  ;
}

.post-image-grid-1 .grid-image-item:hover img {
  transform: scale(1.02);
}

.post-image-grid-3 .grid-image-item:first-child {
  grid-row: span 2;
}

@media (max-width: 576px) {
  .post-image-grid-1 img {
    max-height: 280px;
  }
}

.more-images-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  backdrop-filter: blur(2px);
}

/* Gallery Viewer (Minimalist Social Media Style) */

#imageViewerModal .modal-content {
  background-color: #000000 !important;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  z-index: 1070;
  backdrop-filter: none !important;
}

.gallery-nav:hover {
  background: rgba(255, 255, 255, 0.95) !important;
  color: #000000 !important;
  transform: translateY(-50%) scale(1.05);
}

.gallery-nav.prev {
  left: 24px;
}

.gallery-nav.next {
  right: 24px;
}

.viewer-image-container {
  max-width: 92%;
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1065;
}

.viewer-image-container img {
  max-width: 100%;
  max-height: 92vh;
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.viewer-background {
  display: none !important;
}

.gallery-counter {
  z-index: 1070;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  backdrop-filter: none !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Likers Info */

.likers-info {
  font-size: 0.85rem;
  color: #8a8d91;
  margin-bottom: 12px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.likers-info i {
  color: #e41e3f;
}

/* Comment System Style (dasar — detail modal di .nc-comment-modal) */

.comment-item {
  padding: 10px 8px;
  border-bottom: none;
  border-radius: 14px;
  transition: background 0.2s ease,
    transform 0.2s ease;
}

.comment-item:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.comment-avatar-link {
  display: block;
  line-height: 0;
  flex-shrink: 0;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.comment-bubble {
  background-color: #f0f2f5;
  padding: 10px 14px 12px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: block;
  max-width: 100%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.comment-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #050505;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.comment-text {
  font-size: 0.9375rem;
  color: #050505;
  line-height: 1.55;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.comment-time {
  font-size: 0.75rem;
  color: #65676b;
  margin-top: 6px;
  padding-left: 2px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.comment-time i {
  font-size: 0.7rem;
  opacity: 0.85;
}

/* Modal komentar Nusamba Connect */

.nc-comment-modal .modal-dialog {
  max-width: min(440px, 96vw);
}

@media (min-width: 576px) {
  .nc-comment-modal .modal-dialog {
    max-width: min(520px, 94vw);
  }
}

@media (min-width: 992px) {
  .nc-comment-modal .modal-dialog {
    max-width: min(700px, 85vw);
  }

  .nc-comment-modal .nc-comments-list {
    max-height: min(60vh, 560px);
  }

  .nc-comment-modal .modal-title {
    font-size: 1.15rem;
  }

  .nc-comment-modal .modal-header {
    padding: 1.25rem 1.5rem 1.1rem;
  }
}

@media (min-width: 1200px) {
  .nc-comment-modal .modal-dialog {
    max-width: min(760px, 72rem);
  }
}

.nc-comment-modal .modal-content {
  overflow: hidden;
}

.nc-comment-modal .modal-header {
  padding: 1.15rem 1.35rem 1rem;
  align-items: center;
}

.nc-comment-modal .modal-header .btn-close {
  padding: 0.5rem;
}

.nc-comment-modal .modal-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
}

.nc-comment-modal .modal-title::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 1.1rem;
  border-radius: 99px;
  background: linear-gradient(180deg, #1877f2, #42b72a);
}

.nc-comment-modal .likers-info {
  margin: 0 1rem 0.5rem;
  padding: 0.75rem 0.9rem;
  background: linear-gradient(135deg, rgba(228, 30, 63, 0.08) 0%, rgba(24, 119, 242, 0.06) 100%);
  border-radius: 14px;
  border: 1px solid rgba(228, 30, 63, 0.14);
  line-height: 1.45;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.nc-comment-modal .nc-likers-inner {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.nc-comment-modal .nc-likers-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(228, 30, 63, 0.2), rgba(228, 30, 63, 0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e41e3f;
  font-size: 1.1rem;
}

.nc-comment-modal .nc-likers-body {
  min-width: 0;
  flex: 1;
}

.nc-comment-modal .nc-likers-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.2rem;
  line-height: 1.25;
}

.nc-comment-modal .nc-likers-count {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #050505;
}

.nc-comment-modal .nc-likers-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #65676b;
}

.nc-comment-modal .nc-likers-names {
  font-size: 0.875rem;
  line-height: 1.55;
  color: #1c1e21;
  margin: 0;
}

.nc-comment-modal .nc-likers-sep {
  display: inline-block;
  margin: 0 0.3rem;
  color: #bcc0c4;
  font-weight: 300;
  user-select: none;
}

.nc-comment-modal .nc-likers-name {
  font-weight: 600;
}

.nc-comment-modal .nc-likers-more {
  margin: 0.4rem 0 0;
}

.nc-comment-modal .nc-likers-more-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  color: #65676b;
}

.nc-comment-modal .nc-comments-list {
  max-height: min(52vh, 400px);
  overflow-y: auto;
  padding: 0.35rem 0.85rem 0.75rem;
  scroll-behavior: smooth;
  background: linear-gradient(180deg, rgba(240, 242, 245, 0.45) 0%, transparent 56px);
}

.nc-comment-modal .nc-comments-list::-webkit-scrollbar {
  width: 6px;
}

.nc-comment-modal .nc-comments-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 99px;
}

.nc-comment-modal .nc-comments-list::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.28);
}

.nc-comment-modal .nc-comments-state {
  padding: 2.25rem 1.25rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
}

.nc-comment-modal .nc-comments-state--empty i {
  opacity: 0.45;
}

.nc-comment-modal .nc-comment-composer {
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.06);
}

.nc-comment-modal .nc-comment-composer textarea {
  border-radius: 14px !important;
  padding: 0.65rem 0.85rem !important;
  font-size: 0.9375rem;
  transition: box-shadow 0.2s ease,
    background 0.2s ease;
}

.nc-comment-modal .nc-comment-composer textarea:focus {
  box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.18) !important;
  outline: none;
}

.nc-comment-modal .comment-item {
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 2px;
}

.nc-comment-modal .comment-item:hover {
  background-color: rgba(24, 119, 242, 0.06);
}

.nc-comment-modal .comment-name a:hover {
  color: #1877f2 !important;
}

[data-bs-theme="dark"] .nc-comment-modal .nc-comments-list {
  background: linear-gradient(180deg, rgba(30, 33, 40, 0.9) 0%, transparent 56px);
}

[data-bs-theme="dark"] .nc-comment-modal .nc-comments-state {
  background: rgba(30, 33, 40, 0.55);
}

[data-bs-theme="dark"] .nc-comment-modal .comment-bubble {
  background: #2d3139;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

[data-bs-theme="dark"] .nc-comment-modal .comment-name,
[data-bs-theme="dark"] .nc-comment-modal .comment-text {
  color: #e4e6eb;
}

[data-bs-theme="dark"] .nc-comment-modal .comment-name a {
  color: #e4e6eb !important;
}

[data-bs-theme="dark"] .nc-comment-modal .comment-name a:hover {
  color: #6ea8fe !important;
}

[data-bs-theme="dark"] .nc-comment-modal .comment-time {
  color: #b0b3b8;
}

[data-bs-theme="dark"] .nc-comment-modal .comment-avatar {
  border-color: #2d3139;
}

[data-bs-theme="dark"] .nc-comment-modal .likers-info {
  background: linear-gradient(135deg, rgba(228, 30, 63, 0.14) 0%, rgba(24, 119, 242, 0.1) 100%);
  border-color: rgba(228, 30, 63, 0.28);
  box-shadow: none;
}

[data-bs-theme="dark"] .nc-comment-modal .nc-likers-icon {
  background: linear-gradient(145deg, rgba(228, 30, 63, 0.35), rgba(228, 30, 63, 0.12));
  color: #ff6b81;
}

[data-bs-theme="dark"] .nc-comment-modal .nc-likers-count {
  color: #e4e6eb;
}

[data-bs-theme="dark"] .nc-comment-modal .nc-likers-label {
  color: #b0b3b8;
}

[data-bs-theme="dark"] .nc-comment-modal .nc-likers-names {
  color: #e4e6eb;
}

[data-bs-theme="dark"] .nc-comment-modal .nc-likers-more-badge {
  background: rgba(255, 255, 255, 0.1);
  color: #b0b3b8;
}

[data-bs-theme="dark"] .nc-comment-modal .nc-comment-composer {
  background: #25282e !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
}

[data-bs-theme="dark"] .nc-comment-modal .nc-comment-composer textarea {
  background: #2d3139 !important;
  color: #e4e6eb;
}

[data-bs-theme="dark"] .nc-comment-modal .modal-content {
  background-color: #25282e;
  color: #e4e6eb;
}

[data-bs-theme="dark"] .nc-comment-modal .modal-header .btn-close {
  filter: invert(1) grayscale(100%);
  opacity: 0.75;
}

/* Preview Image Upload */

.preview-item {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-item .btn-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(220, 53, 69, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  z-index: 5;
  transition: transform 0.2s;
}

/* Online User Sidebar */

.online-user-item {
  transition: background 0.2s;
  cursor: pointer;
  border-radius: 8px;
  padding: 8px;
}

.online-user-item:hover {
  background-color: #f0f2f5;
}

/* Social Feed Modern Styles (Migrated from index.php) */

.social-post {
  transition: all 0.2s ease;
  border: none !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  background: #fff;
  margin-bottom: 20px;
}

.trending-item {
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 10px;
  border-radius: 8px;
}

.trending-item:hover {
  background-color: #f8f9fa;
}

.hover-bg:hover {
  background-color: #f8f9fa !important;
}

/* Dark Mode Extensions for Connect Main */

[data-bs-theme="dark"] .social-post {
  background: #212529;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

[data-bs-theme="dark"] .online-user-item:hover,
[data-bs-theme="dark"] .trending-item:hover,
[data-bs-theme="dark"] .hover-bg:hover {
  background-color: #2b3035 !important;
}

[data-bs-theme="dark"] .card {
  background: #212529;
}

/* Profile Page Styles */

.profile-header-card {
  border-radius: 16px;
  overflow: hidden;
}

.profile-cover {
  height: 250px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.profile-avatar-wrapper {
  z-index: 10;
}

.profile-avatar {
  width: 150px;
  height: 150px;
  border: 5px solid #fff;
  margin-top: -75px;
  object-fit: cover;
  background-color: #fff;
}

.icon-box {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 8px;
  font-size: 1rem;
}

.profile-bio {
  max-width: 100%;
}

/* Dark Mode Overrides for Profile */

[data-bs-theme="dark"] .profile-avatar {
  border-color: #212529;
  background-color: #212529;
}

[data-bs-theme="dark"] .icon-box {
  background: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .text-dark {
  color: #f8f9fa !important;
}

[data-bs-theme="dark"] .btn-light {
  background-color: #2b3035;
  border-color: #343a40;
  color: #fff;
}

@media (max-width: 576px) {
  .profile-cover {
    height: 150px;
  }

  .profile-avatar {
    width: 120px;
    height: 120px;
    margin-top: -60px;
  }
}

/* User Badges */

.badge-v {
  margin-left: 6px;
}

.badge-it {
  margin-left: 4px;
  color: #6f42c1;
}

.badge-v-sm {
  font-size: 0.85rem;
  margin-left: 4px;
}

.badge-it-sm {
  font-size: 0.85rem;
  margin-left: 3px;
  color: #6f42c1;
}

.badge-v-xs {
  font-size: 0.75rem;
  margin-left: 3px;
}

.badge-it-xs {
  font-size: 0.75rem;
  margin-left: 2px;
  color: #6f42c1;
}

/* Dashboard Online User Card Styles */

.online-user-photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e9ecef;
}

.online-user-meta {
  min-width: 0;
}

.online-user-name {
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 4px;
  word-break: break-word;
}

@keyframes smoothBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.35;
  }

  ;
}

/* Dark Mode Support for Online Users Card */

[data-bs-theme="dark"] .online-user-photo {
  border-color: #2d3239;
}

[data-bs-theme="dark"] .online-user-name {
  color: #e9ecef;
}

/* ─── Nusamba Connect — tampilan feed mirip sosial media (halaman n-connect) ─── */

.n-connect-page {
  --nc-accent: #1877f2;
  --nc-accent-soft: rgba(24, 119, 242, 0.12);
  --nc-surface: #ffffff;
  --nc-border: rgba(0, 0, 0, 0.06);
  --nc-text: #050505;
  --nc-muted: #65676b;
  padding-bottom: 2rem;
}

.n-connect-page .nc-card {
  border-radius: 16px !important;
  border: 1px solid var(--nc-border) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 24px rgba(0, 0, 0, 0.06) !important;
  background: var(--nc-surface);
  overflow: hidden;
}

.n-connect-page .nc-page-title {
  letter-spacing: -0.02em;
  color: var(--nc-text);
}

.n-connect-page .nc-page-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #1877f2 0%, #42b72a 100%);
  color: #fff;
  font-size: 1.1rem;
}

.n-connect-page .nc-page-sub {
  max-width: 28rem;
}

.n-connect-page .nc-btn-dm {
  font-size: clamp(0.85rem, 2.5vw, 0.95rem);
  padding: 0.5rem 1.1rem;
  font-weight: 600;
  border: none;
  background: linear-gradient(135deg, #1877f2, #0d6efd);
}

.n-connect-page .nc-btn-dm:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.n-connect-page .nc-composer .nc-composer-body {
  padding: 1.15rem 1.25rem 1.25rem;
}

.n-connect-page .nc-post-textarea {
  border: none;
  background: #f0f2f5;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  resize: none;
  transition: background 0.2s,
    box-shadow 0.2s;
}

.n-connect-page .nc-post-textarea:focus {
  background: #fff;
  box-shadow: 0 0 0 3px var(--nc-accent-soft);
  outline: none;
}

.n-connect-page .nc-composer-toolbar .nc-composer-tool {
  border-radius: 6px;
  font-weight: 500;
}

.n-connect-page .nc-avatar {
  object-fit: cover;
}

.n-connect-page .nc-avatar-md {
  width: 48px;
  height: 48px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.n-connect-page .nc-avatar-feed {
  width: 48px;
  height: 48px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
  border-radius: 12px;
}

.n-connect-page .nc-avatar-profile {
  width: 80px;
  height: 80px;
  border: 4px solid #fff;
  background-color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.n-connect-page .nc-avatar-online {
  width: 36px;
  height: 36px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.n-connect-page .nc-feed-head {
  margin-bottom: 0.5rem;
}

.n-connect-page .nc-feed-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--nc-text);
}

.n-connect-page .nc-feed-title-icon {
  color: var(--nc-accent);
  font-size: 1.15rem;
}

.n-connect-page .nc-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.08), transparent);
  margin: 0.85rem 0 1.1rem;
}

.n-connect-page .nc-divider.nc-divider-tight {
  margin: 0.5rem 0 0.75rem;
}

.n-connect-page .nc-posts-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.n-connect-page .nc-post-item {
  border-radius: 16px !important;
}

.n-connect-page .nc-post-inner {
  border-radius: 16px;
}

.n-connect-page .nc-post-head-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  max-width: 100%;
}

@media (max-width: 576px) {
  .n-connect-page .nc-post-inner {
    padding-inline: 0.75rem !important;
  }

  .n-connect-page .nc-post-author {
    font-size: 0.9rem;
  }

  .n-connect-page .nc-post-meta {
    font-size: 0.72rem;
    white-space: normal;
    overflow: visible;
  }
}

.n-connect-page .nc-post-item .nc-post-sep {
  display: none;
}

.n-connect-page .nc-post {
  border: 1px solid var(--nc-border) !important;
  border-radius: 16px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
  background: var(--nc-surface);
  transition: box-shadow 0.2s ease,
    transform 0.2s ease;
}

.n-connect-page .nc-post:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08) !important;
  transform: translateY(-1px);
}

.n-connect-page .nc-post-author {
  font-size: 0.95rem;
}

.n-connect-page .nc-post-meta {
  font-size: 0.8rem;
  color: var(--nc-muted) !important;
}

.n-connect-page .nc-meta-dot {
  margin: 0 0.2rem;
  opacity: 0.7;
}

.n-connect-page .nc-post-body {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--nc-text);
  word-break: break-word;
}

.n-connect-page .nc-post-body .nc-mention-link {
  color: #1877f2;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.n-connect-page .nc-post-body .nc-mention-link:hover {
  color: #0d6efd;
  text-decoration: underline;
}

.n-connect-page .nc-post-menu-btn {
  color: var(--nc-muted);
  border-radius: 50%;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.n-connect-page .nc-post-menu-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--nc-text);
}

.n-connect-page .nc-post-actions {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin-left: -0.25rem;
  margin-right: -0.25rem;
}

.n-connect-page .nc-action-btn {
  flex: 1 1 auto;
  min-width: 0;
  border-radius: 10px !important;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.45rem 0.5rem !important;
  border: none !important;
  background: transparent !important;
  color: var(--nc-muted) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: background 0.15s,
    color 0.15s;
}

.n-connect-page .nc-action-btn:hover {
  background: rgba(0, 0, 0, 0.05) !important;
  color: var(--nc-text) !important;
}

.n-connect-page .nc-action-btn.is-liked,
.n-connect-page .nc-action-btn.text-danger {
  color: #e41e3f !important;
}

.n-connect-page .nc-action-btn i {
  font-size: 1.05rem;
}

.n-connect-page .nc-empty-feed {
  padding: 2.5rem 1rem !important;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8f9fb 0%, #f0f2f5 100%);
  border: 1px dashed rgba(0, 0, 0, 0.08);
}

.n-connect-page .nc-empty-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: 0 4px 20px rgba(24, 119, 242, 0.15);
  color: var(--nc-accent);
  font-size: 2rem;
}

.n-connect-page .nc-load-more .btn {
  font-weight: 600;
  border-width: 2px;
}

.n-connect-page .nc-profile-cover {
  height: 110px;
  background-size: cover;
  background-position: center;
  background-color: #1877f2;
}

.n-connect-page .nc-profile-card-body {
  padding-top: 0.5rem;
}

.n-connect-page .nc-profile-avatar-wrap {
  margin-top: -52px;
}

.n-connect-page .nc-office-badge {
  font-weight: 600;
}

.n-connect-page .nc-online-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--nc-text);
}

.n-connect-page .nc-online-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.35);
  animation: ncPulse 2s ease-in-out infinite;
}

@keyframes ncPulse {

  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.35);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.15);
  }

  ;
}

.n-connect-page .nc-online-count {
  background: linear-gradient(135deg, #22c55e, #16a34a) !important;
  color: #fff;
  font-weight: 700;
  padding: 0.35em 0.75em;
}

.n-connect-page .nc-online-list {
  max-height: none !important;
  overflow-y: visible !important;
  padding-right: 2px;
  margin-top: 0.25rem;
}

.n-connect-page .nc-online-list::-webkit-scrollbar {
  width: 5px;
}

.n-connect-page .nc-online-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 4px;
}

.n-connect-page .nc-online-row {
  border: 1px solid transparent;
}

.n-connect-page .nc-online-row:hover {
  border-color: rgba(0, 0, 0, 0.05);
}

.n-connect-page .nc-chat-icon {
  font-size: 0.95rem !important;
  color: var(--nc-muted, #8a8d91) !important;
  cursor: pointer !important;
  transition: color 0.15s ease, transform 0.15s ease !important;
  padding: 0.25rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  text-decoration: none !important;
}

.n-connect-page .nc-chat-icon:hover {
  color: var(--nc-accent, #1877f2) !important;
  transform: scale(1.15) !important;
}

.n-connect-page .post-image-grid {
  border: none;
  background: #f0f2f5;
  border-radius: 14px;
}



/* Gelap: n-connect */

[data-bs-theme="dark"] .n-connect-page {
  --nc-surface: #1e2128;
  --nc-border: rgba(255, 255, 255, 0.08);
  --nc-text: #e4e6eb;
  --nc-muted: #b0b3b8;
  --nc-accent-soft: rgba(24, 119, 242, 0.25);
}

[data-bs-theme="dark"] .n-connect-page .nc-post-textarea {
  background: #2b3035;
  color: var(--nc-text);
}

[data-bs-theme="dark"] .n-connect-page .nc-post-textarea:focus {
  background: #25282e;
}

[data-bs-theme="dark"] .n-connect-page .nc-empty-feed {
  background: linear-gradient(180deg, #25282e 0%, #1e2128 100%);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .n-connect-page .nc-empty-icon {
  background: #2b3035;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

[data-bs-theme="dark"] .n-connect-page .nc-post-actions {
  border-top-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .n-connect-page .nc-post-menu-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .n-connect-page .nc-action-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

[data-bs-theme="dark"] .n-connect-page .post-image-grid {
  background: #2b3035;
}

/* N-Connect halaman profil — konsisten dengan index */

.n-connect-page .nc-btn-back {
  font-weight: 600;
  border-width: 1.5px;
}

.n-connect-page .nc-btn-back:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.n-connect-page .nc-profile-page-hero.nc-card {
  overflow: hidden;
}

.n-connect-page .nc-profile-page-cover {
  border-bottom: 1px solid var(--nc-border, rgba(0, 0, 0, 0.06));
}

.n-connect-page .nc-profile-page-body {
  padding-top: 0.25rem;
}

.n-connect-page .nc-btn-profile-secondary {
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.n-connect-page .nc-online-dot {
  width: 8px !important;
  height: 8px !important;
  border-width: 1.5px !important;
}

.n-connect-page .nc-online-office {
  font-size: 0.75rem;
  max-width: 100%;
}

[data-bs-theme="dark"] .n-connect-page .nc-profile-page-hero .profile-avatar {
  border-color: var(--nc-surface, #1e2128);
  background-color: var(--nc-surface, #1e2128);
}

[data-bs-theme="dark"] .n-connect-page .nc-btn-profile-secondary {
  background-color: #2b3035;
  border-color: rgba(255, 255, 255, 0.1);
  color: #e9ecef;
}

/* Auto-complete Mention Dropdown Styles */

.mention-dropdown {
  position: absolute;
  z-index: 9999;
  background: var(--bs-body-bg, #ffffff);
  border: 1px solid var(--bs-border-color, rgba(0, 0, 0, 0.1));
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  max-height: 220px;
  overflow-y: auto;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

[data-bs-theme="dark"] .mention-dropdown {
  background: rgba(33, 37, 41, 0.95);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.mention-item {
  padding: 0.5rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: background 0.15s ease;
  border-bottom: 1px solid var(--bs-border-color, rgba(0, 0, 0, 0.05));
}

.mention-item:last-child {
  border-bottom: none;
}

.mention-item:hover,
.mention-item.active {
  background: rgba(13, 110, 253, 0.08);
}

[data-bs-theme="dark"] .mention-item:hover,
[data-bs-theme="dark"] .mention-item.active {
  background: rgba(13, 110, 253, 0.2);
}

.mention-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.mention-info {
  flex-grow: 1;
  min-width: 0;
  line-height: 1.2;
}

.mention-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bs-body-color);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.mention-username {
  font-size: 0.75rem;
  color: var(--bs-secondary-color, #6c757d);
}

.rp-addon {
  font-weight: bold;
  font-size: 14px;
}

/* Custom Compact Table styles */
.table-compact,
.table-compact th,
.table-compact td,
.table-compact tr,
.table-compact td a,
.table-compact td span,
.table-compact td div,
.table-compact td i {
  font-size: 15px !important;
}

.table-compact th,
.table-compact td {
  padding: 5px 6px !important;
  vertical-align: middle !important;
}

.table-compact .btn,
.table-compact .btn i {
  font-size: 12px !important;
  padding: 1px 4px !important;
}

/* 1 Foto */
.n-connect-page .post-image-grid-1 .grid-image-item {
  aspect-ratio: 16 / 9;
  max-height: 450px;
}

/* 2 Foto (Berdampingan Kiri-Kanan) */
.n-connect-page .post-image-grid-2 {
  grid-template-columns: 1fr 1fr;
  height: 240px;
}

/* 3 Foto (1 Besar di Kiri, 2 Kecil Vertikal di Kanan) */
.n-connect-page .post-image-grid-3 {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  height: 320px;
}

.n-connect-page .post-image-grid-3 .grid-image-item:nth-child(1) {
  grid-row: span 2;
}

/* 4 Foto / Lebih (Grid 2x2 Simetris) */
.n-connect-page .post-image-grid-4 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  height: 340px;
}

/* Efek Hover Zoom & Overlay +X */
.n-connect-page .grid-image-item img {
  object-fit: cover;
  /* Agar gambar tidak gepeng */
  transition: transform 0.3s ease;
}

.n-connect-page .grid-image-item:hover img {
  transform: scale(1.03);
  /* Zoom lembut saat disorot */
}

.n-connect-page .more-images-overlay {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  /* Blur modern pada teks +X */
}

/* ==========================================
   RE-DESIGN COMPACT & MODERN (N-CONNECT)
   ========================================== */

/* Menonaktifkan Animasi secara Global di Halaman ini */
.n-connect-page * {
  transition: none !important;
  animation: none !important;
}

/* Card & Container Utama */
.n-connect-page .nc-card {
  border-radius: 12px !important;
  /* Kotak rounded */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  background: var(--nc-surface);
}

/* Tombol Kotak Rounded (Menggantikan Pill) */
.n-connect-page .btn,
.n-connect-page .rounded-pill,
.n-connect-page .nc-btn-dm,
.n-connect-page .nc-btn-back,
.n-connect-page .nc-chat-pill {
  border-radius: 8px !important;
  /* Kotak rounded 8px */
  padding: 0.45rem 1rem !important;
}

/* Composer Post */
.n-connect-page .nc-composer .nc-composer-body {
  padding: 1rem !important;
}

.n-connect-page .nc-post-textarea {
  border-radius: 8px !important;
  padding: 0.75rem !important;
  font-size: 0.9rem !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  background: #f8f9fa !important;
}

[data-bs-theme="dark"] .n-connect-page .nc-post-textarea {
  background: #2b3035 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Post Card Layout */
.n-connect-page .nc-post-inner {
  padding: 1rem !important;
}

.n-connect-page .nc-post-author {
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
}

.n-connect-page .nc-post-meta {
  font-size: 0.75rem !important;
  line-height: 1.25 !important;
  margin-top: 1px !important;
}

.n-connect-page .nc-post-body {
  font-size: 0.9rem !important;
  line-height: 1.45 !important;
  margin-top: 0.5rem !important;
  margin-bottom: 0.75rem !important;
}

/* Avatar Kotak Rounded */
.n-connect-page .rounded-circle,
.n-connect-page .profile-avatar.rounded-circle,
.n-connect-page .nc-avatar-feed,
.n-connect-page .nc-avatar-md,
.n-connect-page .nc-avatar-profile,
.n-connect-page .nc-avatar-online,
.nc-comment-modal .rounded-circle,
.nc-comment-modal img.rounded-circle {
  border-radius: 8px !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.n-connect-page .nc-avatar-profile {
  width: 70px !important;
  height: 70px !important;
  margin-top: -35px !important;
}

/* Action Buttons (Like & Comment) */
.n-connect-page .nc-post-actions {
  border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
  padding-top: 0.5rem !important;
  margin-top: 0.5rem !important;
}

.n-connect-page .nc-action-btn {
  border-radius: 6px !important;
  padding: 0.35rem 0.5rem !important;
  font-size: 0.8rem !important;
}

/* Statik Indikator Online (Tanpa Animasi Pulse) */
.n-connect-page .nc-online-pulse {
  box-shadow: none !important;
  width: 8px !important;
  height: 8px !important;
  background: #22c55e !important;
}

/* Grid Foto Postingan - Menghilangkan Efek Zoom */
.n-connect-page .grid-image-item img {
  transition: none !important;
}

.n-connect-page .grid-image-item:hover img {
  transform: none !important;
}

/* List Teman Online */
.n-connect-page .nc-online-list {
  max-height: none !important;
  overflow-y: visible !important;
}

.n-connect-page .nc-online-row {
  padding: 0.25rem 0.35rem !important;
  border-radius: 6px !important;
}

.n-connect-page .nc-avatar-online {
  width: 28px !important;
  height: 28px !important;
}

/* ==========================================
   3-COLUMN COMPACT LAYOUT & PREMIUM PROFILE CARD
   ========================================== */

/* Perkecil Lebar Kontainer Utama */
.n-connect-page {
  max-width: 1140px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Premium Profile Card (Kolom Kiri) */
.n-connect-page .nc-profile-card {
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
  background: var(--nc-surface) !important;
}

.n-connect-page .nc-profile-cover {
  height: 120px !important;
  background-size: cover !important;
  background-position: center !important;
  position: relative !important;
}

/* Overlay gradien di atas cover */
.n-connect-page .nc-profile-cover::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25));
}

.n-connect-page .nc-profile-avatar-wrap {
  margin-top: -45px !important;
  position: relative !important;
  z-index: 2 !important;
}

.n-connect-page .nc-profile-avatar-wrap img {
  border: 4px solid var(--nc-surface) !important;
  border-radius: 12px !important;
  /* Kotak rounded yang kokoh */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12) !important;
  background: var(--nc-surface) !important;
  width: 72px !important;
  height: 72px !important;
}

.n-connect-page .nc-profile-card-body {
  padding: 1.25rem 1rem !important;
}

/* Nama Profil */
.n-connect-page .nc-profile-card-body h6 a {
  color: var(--nc-text) !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
}

.n-connect-page .nc-profile-card-body h6 a:hover {
  color: var(--nc-accent) !important;
}

/* Kantor Badge Modern */
.n-connect-page .nc-office-badge {
  background-color: var(--nc-accent-soft) !important;
  color: var(--nc-accent) !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  border: 1px solid rgba(24, 119, 242, 0.15) !important;
  font-size: 0.75rem !important;
  padding: 0.35rem 0.75rem !important;
  display: inline-block;
}

[data-bs-theme="dark"] .n-connect-page .nc-office-badge {
  background-color: rgba(24, 119, 242, 0.2) !important;
  color: #66b0ff !important;
  border-color: rgba(24, 119, 242, 0.3) !important;
}

/* Detail Info Kontak (Email, WA, Alamat) */
.n-connect-page .nc-profile-card-body .d-flex:not(.flex-column) {
  padding: 0.2rem 0.35rem !important;
  border-radius: 6px !important;
}

.n-connect-page .nc-profile-card-body .d-flex:not(.flex-column):hover {
  background: rgba(0, 0, 0, 0.02) !important;
}

[data-bs-theme="dark"] .n-connect-page .nc-profile-card-body .d-flex:not(.flex-column):hover {
  background: rgba(255, 255, 255, 0.02) !important;
}

.n-connect-page .nc-profile-card-body hr {
  margin: 1rem 0 !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
}

[data-bs-theme="dark"] .n-connect-page .nc-profile-card-body hr {
  border-color: rgba(255, 255, 255, 0.06) !important;
}

/* ==========================================
   PENYELARASAN TIPOGRAFI & PROFILE CARD REDESIGN
   ========================================== */

/* 1. Global Typography di Feed n-connect */
.n-connect-page .nc-feed-title,
.n-connect-page .nc-online-title {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
}

.n-connect-page .nc-post-author {
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
}

.n-connect-page .nc-post-meta {
  font-size: 0.775rem !important;
  line-height: 1.25 !important;
  margin-top: 1px !important;
}

.n-connect-page .nc-post-body {
  font-size: 0.915rem !important;
  line-height: 1.5 !important;
  color: var(--nc-text) !important;
}

.n-connect-page .nc-action-btn {
  font-size: 0.8rem !important;
  font-weight: 500 !important;
}

.n-connect-page .nc-load-more .btn {
  font-size: 0.85rem !important;
}

/* Teman Online Row */
.n-connect-page .nc-online-row .fw-semibold {
  font-size: 0.825rem !important;
  line-height: 1.15 !important;
}

.n-connect-page .nc-online-row .text-muted,
.n-connect-page .nc-online-office {
  font-size: 0.675rem !important;
  line-height: 1.15 !important;
  margin-top: 1px !important;
}

/* 2. Premium Profile Card (Rata Kiri) */
.n-connect-page .nc-profile-card-body {
  text-align: left !important;
  padding: 1.25rem 1.15rem !important;
}

.n-connect-page .nc-profile-avatar-wrap {
  margin-top: -45px !important;
  margin-left: 0.25rem !important;
  margin-right: auto !important;
  text-align: left !important;
}

.n-connect-page .nc-profile-card-body .nc-office-badge {
  margin-bottom: 0.85rem !important;
}

.n-connect-page .nc-profile-card-body p.fst-italic {
  font-size: 0.825rem !important;
  line-height: 1.4 !important;
  color: var(--nc-muted) !important;
  margin-top: 0.5rem !important;
  margin-bottom: 0.75rem !important;
  padding: 0 !important;
  text-align: left !important;
}

/* Menyeragamkan Warna Ikon Kontak agar Bersih & Premium */
.n-connect-page .nc-profile-card-body .d-flex i {
  color: var(--nc-muted) !important;
  font-size: 0.85rem !important;
  width: 16px !important;
  display: inline-flex !important;
  align-items: center !important;
}

/* Efek Sorot Halus pada Baris Kontak */
.n-connect-page .nc-profile-card-body .d-flex:hover i {
  color: var(--nc-accent) !important;
}

/* 3. Penyelarasan Tipografi di Halaman Profil (profile.php) */
.n-connect-page h2.fw-bold {
  font-size: 1.35rem !important;
  letter-spacing: -0.015em !important;
}

.n-connect-page .profile-info .text-muted.fs-5 {
  font-size: 0.85rem !important;
}

.n-connect-page .profile-info .badge {
  font-size: 0.775rem !important;
  padding: 0.35rem 0.7rem !important;
  font-weight: 500 !important;
}

.n-connect-page .profile-bio {
  font-size: 0.875rem !important;
  line-height: 1.45 !important;
}

.n-connect-page .profile-info span.fw-medium {
  font-size: 0.85rem !important;
}

/* ==========================================
   PENYEMPURNAAN SPACING, AVATAR, & TOMBOL FOTO
   ========================================== */

/* 1. Pengurangan Border Avatar Profil Kiri */
.n-connect-page .nc-profile-avatar-wrap img {
  border: 1.5px solid var(--nc-surface) !important;
  /* Diperkecil lagi dari 2px */
}

/* 2. Pengurangan Padding & Spacing Kartu Profil (Data Diri Lebih Rapat) */
.n-connect-page .nc-profile-card h6 {
  font-size: 0.95rem !important;
  margin-bottom: 0.15rem !important;
}

.n-connect-page .nc-profile-avatar-wrap {
  margin-top: -20px !important;
  /* Diperkecil dari -45px agar foto lebih ke bawah */
  margin-bottom: 0.4rem !important;
  /* Diperkecil dari mb-3 */
}

.n-connect-page .nc-profile-card-body {
  padding: 0.75rem 0.85rem !important;
  /* Diperkecil dari 0.85rem 1rem */
}

.n-connect-page .nc-profile-card-body .nc-office-badge {
  margin-bottom: 0.4rem !important;
  /* Diperkecil dari 0.85rem */
}

.n-connect-page .nc-profile-card-body p.fst-italic {
  margin-top: 0.2rem !important;
  margin-bottom: 0.35rem !important;
  /* Diperkecil dari 0.75rem */
}

.n-connect-page .nc-profile-card-body hr {
  margin: 0.35rem 0 !important;
  /* Diperkecil dari 0.5rem */
}

/* 3. Pengurangan Jarak Feed Antar User */
.n-connect-page .nc-posts-list {
  gap: 0.5rem !important;
}

.n-connect-page .nc-post-item,
.n-connect-page .social-post {
  margin-bottom: 0px !important;
  /* Menghilangkan margin bawah bawaan agar rapat konsisten */
}

/* 4. Limitasi Teman Online & Potong Nama Panjang */
.n-connect-page .nc-online-list {
  max-height: none !important;
  overflow-y: visible !important;
}

.n-connect-page .nc-online-row .fw-semibold {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 120px !important;
  display: block !important;
  line-height: 1.15 !important;
}

.n-connect-page .nc-online-row .fw-semibold a {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: inline-block !important;
  max-width: 100% !important;
}

/* 5. Tombol Foto Composer Minimalis Tanpa Outline (Ikon Langsung) */
.n-connect-page .nc-composer-icon-btn {
  font-size: 1.35rem !important;
  color: var(--nc-muted) !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.35rem !important;
  border-radius: 6px !important;
}

.n-connect-page .nc-composer-icon-btn:hover {
  color: var(--nc-accent) !important;
  background: var(--nc-accent-soft) !important;
}

/* ==========================================
   6. PENYEMPURNAAN HALAMAN PROFIL (profile.php)
   ========================================== */
.n-connect-page .nc-profile-page-hero.nc-card {
  border-radius: 12px !important;
}

.n-connect-page .nc-profile-page-cover {
  height: 220px !important;
  border-radius: 12px 12px 0 0 !important;
}

/* Pengecilan & Penyelarasan Avatar Profil Besar */
.n-connect-page .profile-avatar {
  width: 120px !important;
  height: 120px !important;
  margin-top: -60px !important;
  border: 3px solid var(--nc-surface) !important;
  border-radius: 16px !important;
  /* Kotak rounded yang selaras dengan tema Connect */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12) !important;
  background-color: var(--nc-surface) !important;
}

/* Penyeragaman Badge Profil agar Tidak Menggunakan Pill Bundar Bawaan */
.n-connect-page .profile-info .badge {
  border-radius: 6px !important;
  font-weight: 600 !important;
}

/* Perataan Info Nama Utama & Spacing */
.n-connect-page .profile-info h2 {
  font-size: 1.5rem !important;
  letter-spacing: -0.015em !important;
  font-weight: 700 !important;
  color: var(--nc-text) !important;
}

.n-connect-page .profile-info .text-muted.fs-5 {
  font-size: 0.85rem !important;
  margin-top: 0.15rem !important;
}

.n-connect-page .profile-bio {
  font-size: 0.875rem !important;
  line-height: 1.5 !important;
  color: var(--nc-text) !important;
}

/* Kerapian Ikon Box & Detail Kontak Grid - Dinamis dan Presisi */
.n-connect-page .profile-info .icon-box {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  background: rgba(0, 0, 0, 0.03) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.95rem !important;
  flex-shrink: 0 !important;
  /* Mencegah ikon box mengecil saat teks panjang */
  margin-top: 2px !important;
  /* Menyeimbangkan posisi ikon dengan baris pertama teks */
}

[data-bs-theme="dark"] .n-connect-page .profile-info .icon-box {
  background: rgba(255, 255, 255, 0.04) !important;
}

/* Sejajarkan baris kontak detail ke atas agar rapih jika teks membungkus */
.n-connect-page .profile-info .row .d-flex {
  align-items: flex-start !important;
}

.n-connect-page .profile-info .row span.fw-medium {
  font-size: 0.85rem !important;
  color: var(--nc-text) !important;
}

.n-connect-page .profile-info .row small.text-uppercase {
  font-size: 0.65rem !important;
  letter-spacing: 0.05em !important;
  color: var(--nc-muted) !important;
}

/* Pengecilan tombol "Kembali ke Feed" & tombol aksi profil agar proporsional */
.n-connect-page .nc-btn-back {
  font-size: 0.8rem !important;
  padding: 0.35rem 0.85rem !important;
}

.n-connect-page .nc-btn-profile-secondary,
.n-connect-page .profile-actions .nc-btn-dm {
  font-size: 0.8rem !important;
  padding: 0.35rem 0.85rem !important;
}



/* Penyesuaian Responsivitas Perangkat Seluler */
@media (max-width: 576px) {
  .n-connect-page .nc-profile-page-cover {
    height: 140px !important;
  }

  .n-connect-page .profile-avatar {
    width: 90px !important;
    height: 90px !important;
    margin-top: -45px !important;
    border-radius: 12px !important;
  }

  .n-connect-page .profile-info h2 {
    font-size: 1.25rem !important;
  }
}

/* Custom Utilities */
.btn-gradient-blue {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  display: block;
  text-align: center;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.btn-gradient-blue:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
  transform: translateY(-1.5px);
}

.theme-dark .btn-gradient-blue {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.theme-dark .btn-gradient-blue:hover {
  background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45) !important;
  transform: translateY(-2px);
}

.dashboard-card-static {
  transition: none !important;
  transform: none !important;
}

.dashboard-card-static:hover {
  transform: none !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

.theme-dark .dashboard-card-static:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

.user-info-text {
  font-size: 0.85rem;
  line-height: 1.6;
}

.user-info-label {
  font-size: 0.75rem;
  display: block;
}

.profile-card-header {
  background: linear-gradient(135deg, rgb(37, 99, 235) 0%, rgb(30, 64, 175) 100%);
  padding: 3.5rem 1.5rem 1.5rem;
  text-align: center;
  position: relative;
  border-bottom: 4px solid rgba(0, 0, 0, 0.05);
}

/* Custom Calendar */
.calendar-grid {
  display: flex;
  flex-direction: column;
}

.calendar-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 4px;
}

.calendar-cell {
  text-align: center;
  padding: 6px 2px;
  border-radius: 8px;
  font-size: 0.85rem;
  position: relative;
}

.calendar-body .calendar-row {
  margin-bottom: 4px;
}

.calendar-body .calendar-cell.day {
  background: rgba(0, 0, 0, 0.02);
  cursor: pointer;
  transition: background 0.2s;
  font-weight: 500;
}

.calendar-body .calendar-cell.today {
  background: #0d6efd;
  color: white;
  font-weight: bold;
}

.calendar-body .calendar-cell.holiday {
  color: #dc3545;
  font-weight: bold;
  background: rgba(220, 53, 69, 0.05);
}

.calendar-body .calendar-cell.sunday {
  color: #dc3545;
}

.calendar-body .calendar-cell.today.holiday,
.calendar-body .calendar-cell.today.sunday {
  background: #0d6efd;
  color: white;
}

.calendar-body .calendar-cell.holiday-dot::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background-color: #dc3545;
  border-radius: 50%;
}

.calendar-body .calendar-cell.today.holiday-dot::after {
  background-color: white;
}

.calendar-body .calendar-cell.empty {
  background: transparent;
}

.theme-dark .calendar-body .calendar-cell.day {
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
}

.theme-dark .calendar-body .calendar-cell.day:hover {
  background: rgba(255, 255, 255, 0.1);
}

.theme-dark .calendar-body .calendar-cell.today {
  background: #3b82f6;
  color: white;
}

.theme-dark .calendar-body .calendar-cell.holiday {
  color: #f87171;
  background: rgba(239, 68, 68, 0.1);
}

.theme-dark .calendar-body .calendar-cell.sunday {
  color: #f87171;
}

.theme-dark .calendar-body .calendar-cell.today.holiday,
.theme-dark .calendar-body .calendar-cell.today.sunday {
  background: #3b82f6;
  color: white;
}

.theme-dark .calendar-body .calendar-cell.holiday-dot::after {
  background-color: #f87171;
}

.theme-dark .calendar-body .calendar-cell.today.holiday-dot::after {
  background-color: white;
}

.holiday-item {
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(220, 53, 69, 0.05);
  border-left: 3px solid #dc3545;
  margin-bottom: 8px;
  text-align: left;
}

.holiday-item .date {
  font-size: 0.7rem;
  font-weight: 600;
  color: #dc3545;
  margin-bottom: 2px;
}

.holiday-item .name {
  font-size: 0.8rem;
  font-weight: 500;
  color: #333;
  line-height: 1.2;
}

.theme-dark .holiday-item {
  background: rgba(239, 68, 68, 0.1);
  border-left-color: #ef4444;
}

.theme-dark .holiday-item .date {
  color: #f87171;
}

.theme-dark .holiday-item .name {
  color: #e2e8f0;
}

#holidayList::-webkit-scrollbar {
  width: 4px;
}

#holidayList::-webkit-scrollbar-track {
  background: transparent;
}

#holidayList::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

.theme-dark #holidayList::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
}

.theme-dark .profile-card-header {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-bottom: 4px solid rgba(255, 255, 255, 0.05);
}

.profile-card-avatar {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  margin-bottom: 0.8rem;
}

.theme-dark .profile-card-avatar {
  border-color: #334155;
}

.profile-card-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.3rem;
  letter-spacing: 0.02em;
}

.profile-card-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 50rem;
  display: inline-block;
  backdrop-filter: blur(4px);
}

.theme-dark .profile-card-badge {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

.profile-info-row {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.profile-info-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 0.8rem;
  font-size: 1rem;
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}

.profile-info-icon.success {
  background: rgba(34, 197, 94, 0.08);
  color: #16a34a;
}

.theme-dark .profile-info-icon {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.theme-dark .profile-info-icon.success {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.profile-info-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 0.1rem;
  display: block;
}

.theme-dark .profile-info-label {
  color: #94a3b8;
}

.profile-info-value {
  font-size: 0.85rem;
  font-weight: 500;
  color: #334155;
  line-height: 1.3;
}

.theme-dark .profile-info-value {
  color: #e2e8f0;
}

.profile-info-subtext {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.15rem;
  line-height: 1.3;
}

.theme-dark .profile-info-subtext {
  color: #94a3b8;
}

/* Custom Universal Alert Background Layout */
.alert-custom-bg {
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 1rem 1.25rem !important;
  min-height: 120px;
}

.alert-bg-img {
  flex: 0 0 auto;
  height: 120%;
  width: auto;
  object-fit: contain;
  margin-top: -10%;
  margin-bottom: -10%;
  margin-left: -20px;
  margin-right: 20px;
  opacity: 1;
  pointer-events: none;
  user-select: none;
  border: none !important;
  box-shadow: none !important;
  transition: all 0.3s ease;
}

.alert-content-wrapper {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 2;
}

@media (max-width: 767.98px) {
  .alert-custom-bg {
    display: block;
    padding: 1.25rem !important;
  }

  .alert-bg-img {
    position: absolute;
    height: 105%;
    left: -5px;
    bottom: -5px;
    margin: 0;
    opacity: 0.1;
  }
}

/* Collapse empty image preview container in n-connect */
.n-connect-page #imagePreview:empty {
  margin: 0 !important;
}

/* Social Media Follow Buttons */
.nc-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 1.2rem;
  color: #fff !important;
  text-decoration: none !important;
  transition: opacity 0.2s ease;
}

.nc-social-btn i {
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nc-social-btn:hover {
  opacity: 0.85;
  color: #fff !important;
  text-decoration: none !important;
}

.nc-social-btn.fb {
  background: #1877f2;
}

.nc-social-btn.ig {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.nc-social-btn.yt {
  background: #ff0000;
}

.nc-social-btn.web {
  background: #0d9488;
}

/* Banner Header Universal */
.page-banner {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  margin-bottom: 1.5rem; /* setara mb-4 */
  border-radius: 0.375rem; /* setara rounded */
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); /* setara shadow-sm */
  /* Mencegah interaksi mouse, klik kanan, dan drag */
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* --- Penyesuaian font tabel agar lebih halus --- */
table, .table {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

table th, .table th {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 500;
  letter-spacing: 0.3px;
}

table td, .table td {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
  letter-spacing: 0.2px;
  -webkit-text-stroke: 0.1px rgba(0, 0, 0, 0.1);
}

/* Responsivitas Card Dashboard Dinamis (Semua Ukuran Layar) */
.kpi-card {
  padding: clamp(12px, 2vw, 24px) !important;
  min-height: clamp(90px, 15vw, 140px) !important;
}

.kpi-card .kpi-label {
  font-size: clamp(0.55rem, 1.5vw, 1rem) !important; 
  margin-bottom: clamp(4px, 1vw, 12px) !important;
  letter-spacing: 0 !important;
  white-space: normal !important;
  line-height: 1.2 !important;
}

.kpi-card .kpi-value {
  font-size: clamp(0.6rem, 4vw, 2rem) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.kpi-card .kpi-icon {
  font-size: clamp(60px, 10vw, 140px) !important;
  right: 0px !important;
  opacity: 0.15 !important;
}

/* Form Action Bar */
.form-action-bar {
    padding: 1rem;
    margin-top: 0.800rem;
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    border: 1px solid #e9ecef;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.02);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-action-bar .action-left,
.form-action-bar .action-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 576px) {
    .form-action-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .form-action-bar .action-left,
    .form-action-bar .action-right {
        flex-direction: column;
        width: 100%;
    }
    .form-action-bar button, .form-action-bar a {
        width: 100%;
        margin: 0 !important;
    }
}

html.theme-dark .form-action-bar {
    background-color: #1e293b;
    border-color: #334155;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.2);
}

/* Modal Preview Action Buttons (Reusable) */
.btn-preview-action {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  padding: 0;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
}

.btn-preview-action:hover {
  color: #fff;
}

.btn-preview-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}
.btn-preview-primary i {
  font-size: 0.8rem;
  display: block;
  line-height: 1;
  margin-top: 1px;
}

.btn-preview-danger {
  background-color: #dc3545;
  transition: background-color 0.2s;
}
.btn-preview-danger:hover {
  background-color: #bb2d3b;
}
.btn-preview-danger i {
  font-size: 1rem;
}

/* --- Custom Login Page Styles --- */
body.login-page,
body.login-page h1,
body.login-page h2,
body.login-page h3,
body.login-page h4,
body.login-page h5,
body.login-page h6,
body.login-page p,
body.login-page a,
body.login-page div,
body.login-page span,
body.login-page label,
body.login-page input,
body.login-page button {
    font-family: 'Poppins', sans-serif !important;
}

body.login-page a {
    text-decoration: none;
}

body.login-page a:hover {
    text-decoration: none !important;
  justify-content: center;
}

.nc-social-btn:hover {
  opacity: 0.85;
  color: #fff !important;
  text-decoration: none !important;
}

.nc-social-btn.fb {
  background: #1877f2;
}

.nc-social-btn.ig {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.nc-social-btn.yt {
  background: #ff0000;
}

.nc-social-btn.web {
  background: #0d9488;
}

/* Banner Header Universal */
.page-banner {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  margin-bottom: 1.5rem; /* setara mb-4 */
  border-radius: 0.375rem; /* setara rounded */
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); /* setara shadow-sm */
  /* Mencegah interaksi mouse, klik kanan, dan drag */
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* --- Penyesuaian font tabel agar lebih halus --- */
table, .table {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

table th, .table th {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 500;
  letter-spacing: 0.3px;
}

table td, .table td {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
  letter-spacing: 0.2px;
  -webkit-text-stroke: 0.1px rgba(0, 0, 0, 0.1);
}

/* Responsivitas Card Dashboard Dinamis (Semua Ukuran Layar) */
.kpi-card {
  padding: clamp(12px, 2vw, 24px) !important;
  min-height: clamp(90px, 15vw, 140px) !important;
}

.kpi-card .kpi-label {
  font-size: clamp(0.55rem, 1.5vw, 1rem) !important; 
  margin-bottom: clamp(4px, 1vw, 12px) !important;
  letter-spacing: 0 !important;
  white-space: normal !important;
  line-height: 1.2 !important;
}

.kpi-card .kpi-value {
  font-size: clamp(0.6rem, 4vw, 2rem) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.kpi-card .kpi-icon {
  font-size: clamp(60px, 10vw, 140px) !important;
  right: 0px !important;
  opacity: 0.15 !important;
}

/* Form Action Bar */
.form-action-bar {
    padding: 1rem;
    margin-top: 0.800rem;
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    border: 1px solid #e9ecef;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.02);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-action-bar .action-left,
.form-action-bar .action-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 576px) {
    .form-action-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .form-action-bar .action-left,
    .form-action-bar .action-right {
        flex-direction: column;
        width: 100%;
    }
    .form-action-bar button, .form-action-bar a {
        width: 100%;
        margin: 0 !important;
    }
}

html.theme-dark .form-action-bar {
    background-color: #1e293b;
    border-color: #334155;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.2);
}

/* Modal Preview Action Buttons (Reusable) */
.btn-preview-action {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  padding: 0;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
}

.btn-preview-action:hover {
  color: #fff;
}

.btn-preview-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}
.btn-preview-primary i {
  font-size: 0.8rem;
  display: block;
  line-height: 1;
  margin-top: 1px;
}

.btn-preview-danger {
  background-color: #dc3545;
  transition: background-color 0.2s;
}
.btn-preview-danger:hover {
  background-color: #bb2d3b;
}
.btn-preview-danger i {
  font-size: 1rem;
}

/* --- Custom Login Page Styles --- */
body.login-page,
body.login-page h1,
body.login-page h2,
body.login-page h3,
body.login-page h4,
body.login-page h5,
body.login-page h6,
body.login-page p,
body.login-page a,
body.login-page div,
body.login-page span,
body.login-page label,
body.login-page input,
body.login-page button {
    font-family: 'Poppins', sans-serif !important;
}

body.login-page a {
    text-decoration: none;
}

body.login-page a:hover {
    text-decoration: none !important;
}

body.login-page .bg-image {
    background-image: url('../../../bg-mac.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* Birthday Banner Styles */
.birthday-banner {
    background: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%);
    color: #fff;
    border: none;
}

.birthday-banner .bg-icon {
    font-size: 7rem;
    right: -20px;
    top: -20px;
    opacity: 0.15;
    transform: rotate(-15deg);
}

.birthday-banner .main-icon {
    z-index: 1;
}

.birthday-banner .banner-content {
    z-index: 1;
}

.birthday-banner .banner-title {
    color: #fff;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.birthday-banner .banner-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Dark Mode Birthday Banner */
html.theme-dark .birthday-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5) !important;
}

html.theme-dark .birthday-banner .banner-text {
    color: rgba(255, 255, 255, 0.85);
}
