/* SIMPKB Limitless 4.0 Modern Light Theme Styling */
/* Local Inter font is already loaded via assets/dashboard/fonts/inter/inter.css */

/* Resizing Performance Booster: Suspend layout-thrashing transitions during active window/device resize */
html.is-resizing *,
html.is-resizing *::before,
html.is-resizing *::after {
  transition: none !important;
  animation-play-state: paused !important;
}

/* Override Limitless CSS Variable agar seluruh kanvas halaman seragam #f3f4f8 */
:root {
  --body-bg: #f3f4f8 !important;
  --body-bg-rgb: 243, 244, 248 !important;
}

html,
body {
  height: auto !important;
  min-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif !important;
  background-color: #f3f4f8 !important;
  background-image: none !important; /* Kill Limitless gradient yang memaksa warna putih */
  background: #f3f4f8 !important; /* Shorthand untuk memastikan tidak ada gradient/image tersisa */
  color: #374151 !important;
}

/* Page Layout Shell with Fixed Header, Fixed Sidebar, and Fixed Footer */
body:not(.login-page) .page-content {
  display: flex;
  flex: 1 0 auto;
  padding-top: 96px; /* Jarak proporsional dan presisi dari floating navbar */
  padding-bottom: 96px; /* Ruang bebas agar tidak ketindihan floating footer */
  padding-right: 0;
  min-height: 100vh;
  overflow: visible;
  background-color: #f3f4f8;
}

body:not(.login-page) .content-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
  background-color: #f3f4f8;
}

.content {
  flex: 1 0 auto !important;
  overflow: visible !important;
}

/* Desktop layout alignment (>= 992px): content card margins align with floating navbar & sidebar */
@media (min-width: 992px) {
  body:not(.login-page) .content-wrapper {
    margin-left: 276px; /* Offset for floating sidebar (16px left + 260px width). Internal padding handles the visual gap. */
    margin-right: 16px; /* Align right edge of cards with navbar & footer right: 16px */
  }

  html body:not(.login-page) .page-content .content,
  .content {
    padding-left: 24px !important;
    padding-right: 0 !important;
    padding-top: 1.5rem !important;
    padding-bottom: 96px !important;
  }
}

/* Fixed Top Header Bar Mask (Hides scrolling content behind floating navbar only) */
.header-top-bar-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background-color: #f3f4f8;
  z-index: 1038;
  pointer-events: none;
}

/* Cegah Bootstrap modal-open dari menggeser elemen fixed template */
body.modal-open .navbar-floating-pill,
body.modal-open .navbar-footer-fixed,
body.modal-open .header-top-bar-mask,
body.modal-open .sidebar-main {
  padding-right: 0 !important;
}

/* Clean Frameless / Boxless Icons in Top Navbar (Hamburger, Scale, Fullscreen, Bell) */
.mobile-sidebar-toggle-pill,
.navbar-floating-pill .mobile-sidebar-toggle-pill,
.navbar-floating-pill #btn-scale-toggle,
.navbar-floating-pill #btn-fullscreen,
.navbar-floating-pill .nav-bell-pill {
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  flex: 0 0 36px !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: transparent !important;
  background: transparent !important;
  border: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  border-radius: 50% !important;
  color: #64748b !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  position: relative !important;
}

.navbar-floating-pill #btn-scale-toggle,
.navbar-floating-pill #btn-fullscreen,
.navbar-floating-pill .nav-bell-pill {
  display: inline-flex !important;
}

/* Mobile sidebar toggle hamburger button: visible on mobile/tablet (< 992px), hidden on desktop (>= 992px) */
@media (max-width: 991.98px) {
  .mobile-sidebar-toggle-pill,
  .navbar-floating-pill .mobile-sidebar-toggle-pill {
    display: inline-flex !important;
  }
}

@media (min-width: 992px) {
  .mobile-sidebar-toggle-pill,
  .navbar-floating-pill .mobile-sidebar-toggle-pill {
    display: none !important;
  }
}

.mobile-sidebar-toggle-pill:hover,
.navbar-floating-pill .mobile-sidebar-toggle-pill:hover,
.navbar-floating-pill #btn-scale-toggle:hover,
.navbar-floating-pill #btn-fullscreen:hover,
.navbar-floating-pill .nav-bell-pill:hover {
  background-color: rgba(241, 245, 249, 0.8) !important;
  color: #1e293b !important;
}

.mobile-sidebar-toggle-pill i,
.navbar-floating-pill .mobile-sidebar-toggle-pill i,
.navbar-floating-pill #btn-scale-toggle i,
.navbar-floating-pill #btn-fullscreen i,
.navbar-floating-pill .nav-bell-pill i {
  font-size: 1.25rem !important;
  color: #64748b !important;
  line-height: 1 !important;
  transition: color 0.2s ease !important;
}

.mobile-sidebar-toggle-pill:hover i,
.navbar-floating-pill .mobile-sidebar-toggle-pill:hover i,
.navbar-floating-pill #btn-scale-toggle:hover i,
.navbar-floating-pill #btn-fullscreen:hover i,
.navbar-floating-pill .nav-bell-pill:hover i {
  color: #1e293b !important;
}

/* Top Navbar Floating Pill Styling (Fixed at Top) */
.navbar-floating-pill,
div.navbar.navbar-floating-pill,
div.navbar.navbar-expand-lg.navbar-floating-pill,
html body div.navbar.navbar-floating-pill {
  position: fixed !important;
  top: 12px !important;
  left: 16px !important;
  right: 16px !important;
  z-index: 1039 !important; /* Di bawah modal backdrop (1040) tapi di atas mask (1038) */
  background-color: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: 50px !important;
  box-shadow:
    0 4px 20px -2px rgba(0, 0, 0, 0.06),
    0 2px 6px -1px rgba(0, 0, 0, 0.03) !important;
  margin: 0 !important;
  padding: 0 20px !important;
  height: 60px !important;
  max-height: 60px !important;
  min-height: 60px !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  box-sizing: border-box !important;
}

/* Memastikan barisan item kanan navbar berada presisi di tengah vertikal navbar dan terdorong ke kanan */
.navbar-floating-pill .navbar-nav {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  height: 100% !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
}

.navbar-floating-pill .navbar-nav > li,
.navbar-floating-pill .navbar-nav .nav-item {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  align-self: center !important;
}

.navbar-floating-pill .dropdown-user {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  align-self: center !important;
}

.navbar-brand-pill {
  display: flex !important;
  align-items: center !important;
  align-self: center !important;
  height: 100% !important;
  text-decoration: none !important;
}

.brand-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.brand-text-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.4px;
  margin-left: 4px;
}

.navbar-brand-pill .navbar-brand-logo {
  display: inline-block;
  vertical-align: middle;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.navbar-brand-pill a:hover .navbar-brand-logo {
  opacity: 0.92;
  transform: scale(1.02);
}

.search-input-pill-wrapper {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
}

.search-input-pill-wrapper .search-icon {
  position: absolute !important;
  left: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #94a3b8 !important;
  font-size: 1rem !important;
  pointer-events: none !important;
  z-index: 10 !important;
}

.search-input-pill,
input.form-control.search-input-pill {
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 30px !important;
  padding-left: 40px !important;
  padding-right: 16px !important;
  font-size: 0.86rem !important;
  color: #1e293b !important;
  width: clamp(280px, 24vw, 380px) !important;
  min-width: 260px !important;
  height: 40px !important;
  transition: all 0.2s ease !important;
}

.search-input-pill:focus,
input.form-control.search-input-pill:focus {
  background-color: #ffffff !important;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14) !important;
  outline: none !important;
  padding-left: 40px !important;
}

.badge-online-pill {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #047857 !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  border-radius: 20px !important;
  padding: 4px 11px !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
}

.nav-bell-pill {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background-color: transparent !important;
  border: none !important;
  color: #64748b !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
}

.nav-bell-pill:hover {
  background-color: rgba(241, 245, 249, 0.8) !important;
  color: #1e293b !important;
}

.bell-badge-pill {
  position: absolute !important;
  top: -1px !important;
  right: -1px !important;
  background-color: #f3e8ff !important;
  color: #7c3aed !important;
  border-radius: 999px !important;
  min-width: 17px !important;
  height: 17px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.65rem !important;
  font-weight: 800 !important;
  padding: 0 4px !important;
  line-height: 1 !important;
  box-shadow: 0 2px 5px rgba(124, 58, 237, 0.25) !important;
  border: 1.5px solid #ffffff !important;
}

.user-profile-pill,
.navbar-floating-pill .user-profile-pill {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 30px;
  padding: 3px 14px 3px 3px;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: center !important;
  gap: 8px;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.2s ease;
  height: 42px !important;
  box-sizing: border-box !important;
  margin-top: auto !important;
  margin-bottom: auto !important;
  line-height: 1 !important;
}

.user-profile-pill:hover {
  background-color: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.user-avatar-pill {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid #3b82f6 !important;
  flex-shrink: 0 !important;
  display: block !important;
  margin: 0 !important;
}

.user-name-pill {
  font-weight: 700;
  font-size: 0.85rem;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
  vertical-align: middle;
}

.user-profile-pill .ph-caret-down {
  font-size: 0.75rem;
  line-height: 1;
  vertical-align: middle;
}

/* Sidebar 4 Shortcut Buttons Styling */
.sidebar-shortcuts-container {
  display: flex;
  padding: 10px 12px;
  gap: 6px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  background: rgba(255, 255, 255, 0.4);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}

.shortcut-btn {
  flex: 1;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 1rem;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}

.shortcut-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.shortcut-btn-green {
  background-color: #87b87f !important;
}

.shortcut-btn-blue {
  background-color: #6fb3e0 !important;
}

.shortcut-btn-orange {
  background-color: #ffb752 !important;
}

.shortcut-btn-red {
  background-color: #d15b47 !important;
}

/* Floating Glass Sidebar Styling (Balanced Clearance & Anti-Overlap Footer - Desktop Only) */
@media (min-width: 992px) {
  .sidebar-light-custom,
  div.sidebar.sidebar-light-custom,
  div.sidebar.sidebar-main.sidebar-expand-lg.sidebar-light-custom,
  html body div.sidebar.sidebar-light-custom,
  html
    body
    .page-content
    div.sidebar.sidebar-light-custom.sidebar-main.sidebar-expand-lg {
    position: fixed !important;
    top: 96px !important;
    left: 0 !important;
    bottom: 14px !important;
    height: calc(100vh - 110px) !important;
    min-height: calc(100vh - 110px) !important;
    overflow-y: auto !important;
    z-index: 1038 !important;
    /* Premium Solid Clean Design */
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    /* Subtle outer border */
    border: 1px solid #e2e8f0 !important;
    border-radius: 24px !important;
    /* Neutral drop shadow */
    box-shadow: 1px 0 10px rgba(0, 0, 0, 0.01) !important;
    scrollbar-width: none !important;
    transition:
      width 0.2s ease,
      box-shadow 0.2s ease !important;
  }

  /* Standard expanded width ONLY when NOT collapsed */
  .sidebar-light-custom:not(.sidebar-main-resized),
  div.sidebar.sidebar-light-custom:not(.sidebar-main-resized),
  div.sidebar.sidebar-main.sidebar-expand-lg.sidebar-light-custom:not(
      .sidebar-main-resized
    ),
  html body div.sidebar.sidebar-light-custom:not(.sidebar-main-resized) {
    width: 260px !important;
    min-width: 260px !important;
    max-width: 260px !important;
  }
}

/* Sidebar Auto-Hiding Scrollbar (Invisible when not hovering/scrolling) */
.sidebar,
.sidebar-light-custom,
.sidebar-content,
div.sidebar {
  scrollbar-width: none !important; /* Firefox */
}

.sidebar:hover,
.sidebar-light-custom:hover,
.sidebar-content:hover {
  scrollbar-width: thin !important;
}

/* Scrollbar Styling (Firefox) */
.sidebar,
.sidebar-light-custom,
.sidebar-content,
#navbar-search-results {
  scrollbar-width: thin !important;
  scrollbar-color: rgba(148, 163, 184, 0.4) transparent !important;
}

/* WebKit Scrollbar Styling (Chrome, Edge, Safari) */
.sidebar::-webkit-scrollbar,
.sidebar-light-custom::-webkit-scrollbar,
.sidebar-content::-webkit-scrollbar,
#navbar-search-results::-webkit-scrollbar {
  width: 4px !important;
  height: 4px !important;
}

.sidebar::-webkit-scrollbar-track,
.sidebar-light-custom::-webkit-scrollbar-track,
.sidebar-content::-webkit-scrollbar-track,
#navbar-search-results::-webkit-scrollbar-track {
  background: transparent !important;
}

.sidebar::-webkit-scrollbar-thumb,
.sidebar-light-custom::-webkit-scrollbar-thumb,
.sidebar-content::-webkit-scrollbar-thumb,
#navbar-search-results::-webkit-scrollbar-thumb {
  background: transparent !important;
  border-radius: 10px !important;
  transition: background 0.3s ease;
}

.sidebar:hover::-webkit-scrollbar-thumb,
.sidebar-light-custom:hover::-webkit-scrollbar-thumb,
.sidebar-content:hover::-webkit-scrollbar-thumb,
#navbar-search-results:hover::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4) !important;
}

.sidebar::-webkit-scrollbar-thumb:hover,
.sidebar-light-custom::-webkit-scrollbar-thumb:hover,
.sidebar-content::-webkit-scrollbar-thumb:hover,
#navbar-search-results::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.7) !important;
}

.sidebar-light-custom {
  background: #ffffff !important;
  backdrop-filter: none !important;
  border-right: 1px solid #e2e8f0 !important;
  box-shadow: 1px 0 10px rgba(0, 0, 0, 0.01) !important;
  width: 260px;
  transition:
    width 0.2s ease,
    left 0.2s ease;
}

.sidebar-resize-show {
  display: none !important;
}

/* ==========================================================================
   SIDEBAR COLLAPSED / RESIZED MODE (MATCH LAYOUT_1 IMAGE 2 100% PRECISELY)
   ========================================================================== */

/* 1. Sidebar Container Width in Collapsed Mode (Desktop Only) */
@media (min-width: 992px) {
  .sidebar-main-resized,
  .sidebar-collapsed,
  .sidebar-expand-lg.sidebar-main-resized,
  .sidebar-expand-lg.sidebar-collapsed,
  div.sidebar-main-resized,
  div.sidebar-collapsed,
  html body div.sidebar-main-resized,
  html body div.sidebar-collapsed {
    position: fixed !important;
    top: 96px !important;
    left: 0 !important;
    bottom: 14px !important;
    width: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
    height: calc(var(--real-vh, 100vh) - 110px) !important;
    min-height: calc(var(--real-vh, 100vh) - 110px) !important;
    overflow-y: auto !important;
  }
}

/* 2. Hide Text Labels, Submenus, Badges, Caret Arrows, and Shortcuts */
.sidebar-main-resized .sidebar-resize-hide,
.sidebar-collapsed .sidebar-resize-hide,
.sidebar-main-resized .nav-sidebar .nav-link > span,
.sidebar-collapsed .nav-sidebar .nav-link > span,
.sidebar-main-resized .nav-sidebar .nav-link::after,
.sidebar-collapsed .nav-sidebar .nav-link::after,
/* 2. Hide Text Labels, Submenus, Badges, Caret Arrows, and Shortcuts ONLY when NOT unfolded */
.sidebar-main-resized:not(.sidebar-main-unfold) .sidebar-resize-hide,
.sidebar-main-resized:not(.sidebar-main-unfold) .nav-sidebar .nav-link > span,
.sidebar-main-resized:not(.sidebar-main-unfold) .nav-sidebar .nav-link::after,
.sidebar-main-resized:not(.sidebar-main-unfold) .nav-sidebar .nav-item-submenu > .nav-link::after,
.sidebar-main-resized:not(.sidebar-main-unfold) .nav-group-sub,
.sidebar-main-resized:not(.sidebar-main-unfold) .sidebar-shortcuts-container,
.sidebar-main-resized:not(.sidebar-main-unfold) .badge {
  display: none !important;
}

/* 3. Three-dots indicator for section headers ONLY when NOT unfolded */
.sidebar-resize-show {
  display: none !important;
}
.sidebar-main-resized:not(.sidebar-main-unfold) .sidebar-resize-show {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 8px 0 !important;
  font-size: 1.1rem !important;
  color: #94a3b8 !important;
  margin: 0 auto !important;
}

.sidebar-main-resized:not(.sidebar-main-unfold) .nav-sidebar .nav-item-header {
  text-align: center !important;
  padding: 8px 0 4px 0 !important;
  margin: 0 !important;
}

/* 4. PERFECT CIRCULAR GLASS/SOFT PILL BUTTON FOR NAV LINKS ONLY when NOT unfolded */
.sidebar-main-resized:not(.sidebar-main-unfold) .nav-sidebar .nav-link,
.sidebar-main-resized:not(.sidebar-main-unfold)
  .nav-sidebar
  .nav-item
  > .nav-link,
.sidebar-main-resized:not(.sidebar-main-unfold)
  .nav-sidebar
  .nav-item-submenu
  > .nav-link,
.sidebar-expand-lg.sidebar-main-resized:not(.sidebar-main-unfold)
  .nav-sidebar
  .nav-link,
.sidebar-expand-lg.sidebar-main-resized:not(.sidebar-main-unfold)
  .nav-sidebar
  .nav-item-submenu
  > .nav-link {
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  padding: 0 !important;
  margin: 4px auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  text-align: center !important;
  position: relative !important;
  box-sizing: border-box !important;
  left: 0 !important;
  right: 0 !important;
  float: none !important;
}

/* Force Icon to be centered inside 44px circle with NO MARGIN/OFFSET ONLY when NOT unfolded */
.sidebar-main-resized:not(.sidebar-main-unfold) .nav-sidebar .nav-link i,
.sidebar-main-resized:not(.sidebar-main-unfold)
  .nav-sidebar
  .nav-item
  > .nav-link
  i,
.sidebar-main-resized:not(.sidebar-main-unfold)
  .nav-sidebar
  .nav-item-submenu
  > .nav-link
  i,
.sidebar-expand-lg.sidebar-main-resized:not(.sidebar-main-unfold)
  .nav-sidebar
  .nav-link
  i {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 1.2rem !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  transform: none !important;
}

/* PERFECT ACTIVE CIRCULAR BLUE PILL ONLY when NOT unfolded */
.sidebar-main-resized:not(.sidebar-main-unfold) .nav-sidebar .nav-link.active,
.sidebar-main-resized:not(.sidebar-main-unfold)
  .nav-sidebar
  .nav-item-submenu
  > .nav-link.active,
.sidebar-expand-lg.sidebar-main-resized:not(.sidebar-main-unfold)
  .nav-sidebar
  .nav-link.active,
.sidebar-expand-lg.sidebar-main-resized:not(.sidebar-main-unfold)
  .nav-sidebar
  .nav-item-submenu
  > .nav-link.active {
  background: #e8f0fe !important;
  color: #1a73e8 !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 14px rgba(26, 115, 232, 0.18) !important;
}

.sidebar-main-resized:not(.sidebar-main-unfold) .nav-sidebar .nav-link.active i,
.sidebar-main-resized:not(.sidebar-main-unfold)
  .nav-sidebar
  .nav-item-submenu
  > .nav-link.active
  i,
.sidebar-expand-lg.sidebar-main-resized:not(.sidebar-main-unfold)
  .nav-sidebar
  .nav-link.active
  i {
  color: #1a73e8 !important;
}

/* ==========================================================================
   HOVER UNFOLDED MODE (.sidebar-main-unfold) - FULL EXPANDED MENU DISPLAY
   ========================================================================== */
.sidebar-main-resized.sidebar-main-unfold,
.sidebar-expand-lg.sidebar-main-resized.sidebar-main-unfold,
div.sidebar-main-resized.sidebar-main-unfold {
  width: 260px !important;
  min-width: 260px !important;
  max-width: 260px !important;
  z-index: 1040 !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12) !important;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.95) 100%
  ) !important;
  backdrop-filter: blur(12px) saturate(140%) !important;
  transition:
    width 0.2s ease,
    box-shadow 0.2s ease !important;
}

/* Show all text labels, titles, submenus, and shortcuts on hover unfold */
.sidebar-main-resized.sidebar-main-unfold .sidebar-resize-hide,
.sidebar-main-resized.sidebar-main-unfold .nav-sidebar .nav-link > span,
.sidebar-main-resized.sidebar-main-unfold .nav-sidebar .nav-link::after,
.sidebar-main-resized.sidebar-main-unfold
  .nav-sidebar
  .nav-item-submenu
  > .nav-link::after,
.sidebar-main-resized.sidebar-main-unfold .sidebar-shortcuts-container {
  display: block !important;
}

.sidebar-main-resized.sidebar-main-unfold .sidebar-shortcuts-container {
  display: flex !important;
}

.sidebar-main-resized.sidebar-main-unfold .sidebar-resize-show {
  display: none !important;
}

.sidebar-main-resized.sidebar-main-unfold .nav-sidebar .nav-item-header {
  text-align: left !important;
  padding: 0.95rem 0.85rem 0.35rem 0.85rem !important;
}

.sidebar-main-resized.sidebar-main-unfold .nav-sidebar .nav-link,
.sidebar-main-resized.sidebar-main-unfold
  .nav-sidebar
  .nav-item-submenu
  > .nav-link {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0.48rem 0.75rem !important;
  padding-right: 2.2rem !important;
  margin: 1px 6px !important;
  border-radius: 12px !important;
  justify-content: flex-start !important;
  text-align: left !important;
}

.sidebar-main-resized.sidebar-main-unfold .nav-sidebar .nav-link i {
  margin-right: 10px !important;
  font-size: 0.98rem !important;
}

.sidebar-main-resized.sidebar-main-unfold .nav-sidebar .nav-link.active {
  border-radius: 12px !important;
  background-color: #e8f0fe !important;
  color: #1a73e8 !important;
  box-shadow: none !important;
}

.sidebar-main-resized.sidebar-main-unfold .nav-sidebar .nav-link.active:hover {
  background-color: #d2e3fc !important;
  color: #1a73e8 !important;
}

.sidebar-main-resized.sidebar-main-unfold
  .nav-sidebar
  .nav-link.active:hover
  i {
  color: #1a73e8 !important;
}

/* 6. Reposition sibling content-wrapper and footer cleanly when sidebar is collapsed */
@media (min-width: 992px) {
  .sidebar-main-resized ~ .content-wrapper,
  .sidebar-main-resized + .content-wrapper,
  .sidebar-collapsed + .content-wrapper,
  div.sidebar-main-resized ~ div.content-wrapper,
  div.sidebar-collapsed ~ div.content-wrapper,
  .sidebar-expand-lg.sidebar-main-resized ~ .content-wrapper {
    margin-left: 88px !important; /* 16px left + 72px sidebar. Internal padding handles the visual gap. */
    transition: margin-left 0.2s ease !important;
  }

  body.sidebar-main-resized .navbar-footer-fixed,
  body.sidebar-collapsed .navbar-footer-fixed,
  .sidebar-main-resized ~ .content-wrapper .navbar-footer-fixed,
  .sidebar-collapsed ~ .content-wrapper .navbar-footer-fixed,
  .sidebar-main-resized + .content-wrapper .navbar-footer-fixed,
  .sidebar-collapsed + .content-wrapper .navbar-footer-fixed,
  .sidebar-expand-lg.sidebar-main-resized
    ~ .content-wrapper
    .navbar-footer-fixed {
    left: 112px !important;
    transition: left 0.2s ease !important;
  }
}

/* Floating Glass Pill Footer Styling (Match layout_1 Style) */
.navbar-footer-fixed,
div.navbar.navbar-footer-fixed,
div.navbar.navbar-expand-lg.navbar-footer-fixed,
html body div.navbar.navbar-footer-fixed {
  position: fixed !important;
  bottom: 14px !important;
  left: 16px !important;
  right: 16px !important;
  z-index: 1030 !important;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.78) 0%,
    rgba(255, 255, 255, 0.48) 100%
  ) !important;
  backdrop-filter: blur(12px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(140%) !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  border-radius: 24px !important;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07) !important;
  padding: 10px 24px !important;
  min-height: 54px !important;
  margin: 0 !important;
  font-size: 0.9rem !important;
}

@media (min-width: 992px) {
  .navbar-footer-fixed,
  div.navbar.navbar-footer-fixed,
  div.navbar.navbar-expand-lg.navbar-footer-fixed,
  html body div.navbar.navbar-footer-fixed {
    left: 304px !important; /* Offset for comfortable 28px gap from floating sidebar (276px + 28px) */
  }
}

.sidebar-light-custom .nav-sidebar .nav-item-header {
  color: #94a3b8 !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  padding: 1.5rem 0.85rem 0.35rem 0.85rem !important;
  text-transform: uppercase;
}

.sidebar-light-custom .nav-sidebar .nav-link {
  color: #475569 !important;
  font-weight: 500 !important;
  font-size: 0.835rem !important;
  padding: 0.48rem 0.75rem !important;
  margin: 2px 8px !important;
  border-radius: 12px !important;
  display: flex;
  align-items: center;
  position: relative !important;
  transition: all 0.2s ease;
}

.sidebar-light-custom .nav-sidebar .nav-item-submenu > .nav-link {
  padding-right: 2.2rem !important; /* Leaves room for right chevron arrow so text like WhatsApp Gateway doesn't overlap */
}

.sidebar-light-custom .nav-sidebar .nav-link i {
  font-size: 0.98rem !important;
  margin-right: 10px !important;
  color: #64748b;
  transition: color 0.15s ease-in-out;
}

.sidebar-light-custom .nav-sidebar .nav-link:hover {
  background-color: rgba(241, 245, 249, 0.7) !important;
  color: #0f172a !important;
}

.sidebar-light-custom .nav-sidebar .nav-link:hover i {
  color: #0f172a !important;
}

/* Fix: Dropdown Caret Icon Hover State */
.sidebar-light-custom .nav-sidebar .nav-item-submenu > .nav-link:hover:after {
  color: #0f172a !important;
}

.sidebar-light-custom .nav-sidebar .nav-link.active {
  background-color: rgba(26, 115, 232, 0.12) !important;
  color: #1a73e8 !important;
  font-weight: 600 !important;
}

.sidebar-light-custom .nav-sidebar .nav-link.active i {
  color: #1a73e8 !important;
}

/* Fix: Active Link Hover State */
.sidebar-light-custom .nav-sidebar .nav-link.active:hover {
  background-color: rgba(26, 115, 232, 0.18) !important;
  color: #1a73e8 !important;
}

.sidebar-light-custom .nav-sidebar .nav-link.active:hover i {
  color: #1a73e8 !important;
}

.sidebar-light-custom
  .nav-sidebar
  .nav-item-submenu
  > .nav-link.active:hover:after {
  color: #1a73e8 !important;
}

/* Sidebar Submenu Spacing & Active Styling (Compact & Precise) */
.sidebar-light-custom .nav-group-sub,
.nav-group-sub {
  display: block; /* Force block to prevent Bootstrap .nav flex row */
  flex-direction: column; /* Fallback if flex is somehow preserved */
  padding-left: 0 !important;
  margin-left: 1.35rem !important;
  border-left: 1px solid rgba(59, 130, 246, 0.25) !important;
  background-color: rgba(248, 250, 252, 0.4) !important;
  border-radius: 0 0 14px 14px !important;
}

.sidebar-light-custom .nav-group-sub .nav-link,
.nav-group-sub .nav-link {
  padding: 6px 12px !important;
  margin: 2px 6px 2px 10px !important;
  font-size: 0.815rem !important;
  font-weight: 400 !important;
  color: #475569 !important;
  border-radius: 12px !important;
  transition: all 0.15s ease;
}

.sidebar-light-custom .nav-group-sub .nav-link:hover,
.nav-group-sub .nav-link:hover {
  background-color: rgba(241, 245, 249, 0.8) !important;
  color: #0f172a !important;
}

.sidebar-light-custom .nav-group-sub .nav-link.active,
.nav-group-sub .nav-link.active {
  background: #e8f0fe !important;
  color: #1a73e8 !important;
  font-weight: 600 !important;
  border-radius: 12px !important;
}

/* Fix: Submenu Active Link Hover State */
.sidebar-light-custom .nav-group-sub .nav-link.active:hover,
.nav-group-sub .nav-link.active:hover {
  background: #d2e3fc !important;
  color: #1a73e8 !important;
}

.sidebar-light-custom .nav-group-sub .nav-link.active:hover i,
.nav-group-sub .nav-link.active:hover i {
  color: #1a73e8 !important;
}

/* ==========================================================================
   MOBILE SIDEBAR DRAWER (< 992px)
   ========================================================================== */
@media (max-width: 991.98px) {
  /* Prevent background scrolling when mobile sidebar is open */
  body.sidebar-mobile-open {
    overflow: hidden !important;
  }

  /* Mobile Backdrop Overlay */
  .sidebar-mobile-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(15, 23, 42, 0.55) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;


    z-index: 1045 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition:
      opacity 0.28s ease,
      visibility 0.28s ease !important;
  }

  .sidebar-mobile-backdrop.show {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  /* Mobile Sidebar Container - Closed State (Hidden off-canvas) */
  .sidebar,
  .sidebar.sidebar-light-custom,
  div.sidebar.sidebar-light-custom,
  div.sidebar.sidebar-main.sidebar-expand-lg.sidebar-light-custom,
  .sidebar.sidebar-main.sidebar-expand-lg,
  html body div.sidebar.sidebar-light-custom,
  html
    body
    .page-content
    div.sidebar.sidebar-light-custom.sidebar-main.sidebar-expand-lg,
  html body .sidebar-main-resized,
  html body .sidebar-collapsed,
  html body .sidebar {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    margin: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    width: 290px !important;
    min-width: 290px !important;
    max-width: calc(100vw - 48px) !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 100% !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    overflow-y: auto !important;
    z-index: 1050 !important;
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-radius: 0 !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
    transform: translateX(-105%) !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition:
      transform 0.28s cubic-bezier(0.32, 0.72, 0, 1),
      box-shadow 0.28s ease,
      visibility 0.28s ease !important;
  }

  /* Mobile Sidebar Container - Open State (Slide in) */
  .sidebar-mobile-expanded,
  .sidebar-mobile-expanded.sidebar-light-custom,
  div.sidebar-mobile-expanded.sidebar.sidebar-light-custom,
  div.sidebar-mobile-expanded.sidebar.sidebar-main.sidebar-expand-lg.sidebar-light-custom,
  .sidebar-mobile-expanded.sidebar.sidebar-main.sidebar-expand-lg,
  html body div.sidebar-mobile-expanded.sidebar.sidebar-light-custom,
  html
    body
    .page-content
    div.sidebar-mobile-expanded.sidebar.sidebar-light-custom.sidebar-main.sidebar-expand-lg,
  html body div.sidebar-mobile-expanded {
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    margin: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 100% !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    transform: translateX(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
    box-shadow: 0 0 35px rgba(15, 23, 42, 0.35) !important;
  }

  /* Mobile Sidebar Header */
  .sidebar-light-custom .sidebar-section .sidebar-section-body {
    padding: 0.85rem 1rem 0.65rem 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid #f1f5f9 !important;
  }

  .sidebar-light-custom .sidebar-section .sidebar-section-body h5 {
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 !important;
    letter-spacing: -0.2px !important;
  }

  .sidebar-light-custom .sidebar-mobile-main-toggle {
    width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 50% !important;
    color: #475569 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
  }

  .sidebar-light-custom .sidebar-mobile-main-toggle i {
    font-size: 0.95rem !important;
  }

  .sidebar-light-custom .sidebar-mobile-main-toggle:hover,
  .sidebar-light-custom .sidebar-mobile-main-toggle:active {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
  }

  /* Normalization of menu items on mobile */
  html body .sidebar-light-custom .sidebar-resize-hide,
  html body .sidebar-light-custom.sidebar-main-resized .sidebar-resize-hide,
  html body .sidebar-light-custom.sidebar-collapsed .sidebar-resize-hide {
    display: block !important;
  }

  html body .sidebar-light-custom .sidebar-resize-show,
  html body .sidebar-light-custom.sidebar-main-resized .sidebar-resize-show,
  html body .sidebar-light-custom.sidebar-collapsed .sidebar-resize-show {
    display: none !important;
  }

  html body .sidebar-light-custom .nav-sidebar .nav-link > span,
  html
    body
    .sidebar-light-custom.sidebar-main-resized
    .nav-sidebar
    .nav-link
    > span,
  html
    body
    .sidebar-light-custom.sidebar-collapsed
    .nav-sidebar
    .nav-link
    > span {
    display: inline-block !important;
    font-size: 0.825rem !important;
    font-weight: 500 !important;
  }

  html body .sidebar-light-custom .nav-sidebar .nav-link::after,
  html
    body
    .sidebar-light-custom.sidebar-main-resized
    .nav-sidebar
    .nav-link::after,
  html
    body
    .sidebar-light-custom.sidebar-collapsed
    .nav-sidebar
    .nav-link::after,
  html
    body
    .sidebar-light-custom
    .nav-sidebar
    .nav-item-submenu
    > .nav-link::after,
  html
    body
    .sidebar-light-custom.sidebar-main-resized
    .nav-sidebar
    .nav-item-submenu
    > .nav-link::after,
  html
    body
    .sidebar-light-custom.sidebar-collapsed
    .nav-sidebar
    .nav-item-submenu
    > .nav-link::after {
    display: inline-block !important;
    font-size: 0.82rem !important;
    position: absolute !important;
    top: calc(var(--nav-link-padding-y) - 3px) !important;
    margin-top: calc(
      (var(--body-line-height-computed) - var(--body-font-size)) * 0.5
    ) !important;
    right: 0.8rem !important;
    bottom: auto !important;
  }

  html body .sidebar-light-custom .nav-sidebar .nav-link,
  html body .sidebar-light-custom.sidebar-main-resized .nav-sidebar .nav-link,
  html body .sidebar-light-custom.sidebar-collapsed .nav-sidebar .nav-link {
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 36px !important;
    max-height: none !important;
    padding: 0.46rem 0.75rem !important;
    margin: 2px 8px !important;
    border-radius: 10px !important;
    font-size: 0.825rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    background-color: transparent !important;
  }

  html body .sidebar-light-custom .nav-sidebar .nav-item-submenu > .nav-link {
    padding-right: 2rem !important;
  }

  html body .sidebar-light-custom .nav-sidebar .nav-link:hover,
  html
    body
    .sidebar-light-custom.sidebar-main-resized
    .nav-sidebar
    .nav-link:hover,
  html
    body
    .sidebar-light-custom.sidebar-collapsed
    .nav-sidebar
    .nav-link:hover {
    background-color: #f1f5f9 !important;
  }

  html body .sidebar-light-custom .nav-sidebar .nav-link.active,
  html
    body
    .sidebar-light-custom.sidebar-main-resized
    .nav-sidebar
    .nav-link.active,
  html
    body
    .sidebar-light-custom.sidebar-collapsed
    .nav-sidebar
    .nav-link.active {
    background-color: #e8f0fe !important;
    color: #1a73e8 !important;
  }

  html body .sidebar-light-custom .nav-sidebar .nav-link i,
  html body .sidebar-light-custom.sidebar-main-resized .nav-sidebar .nav-link i,
  html body .sidebar-light-custom.sidebar-collapsed .nav-sidebar .nav-link i {
    margin-right: 0.65rem !important;
    margin-left: 0 !important;
    font-size: 1.02rem !important;
    width: 20px !important;
    min-width: 20px !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: static !important;
    transform: none !important;
  }

  html body .sidebar-light-custom .nav-sidebar .nav-item-header,
  html
    body
    .sidebar-light-custom.sidebar-main-resized
    .nav-sidebar
    .nav-item-header,
  html
    body
    .sidebar-light-custom.sidebar-collapsed
    .nav-sidebar
    .nav-item-header {
    text-align: left !important;
    padding: 0.85rem 0.85rem 0.25rem 0.85rem !important;
    color: #94a3b8 !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
  }

  html
    body
    .sidebar-light-custom
    .nav-sidebar
    .nav-item-header
    .sidebar-resize-hide,
  html
    body
    .sidebar-light-custom.sidebar-main-resized
    .nav-sidebar
    .nav-item-header
    .sidebar-resize-hide,
  html
    body
    .sidebar-light-custom.sidebar-collapsed
    .nav-sidebar
    .nav-item-header
    .sidebar-resize-hide {
    color: #94a3b8 !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
  }

  html body .sidebar-light-custom .nav-group-sub {
    padding-left: 1rem !important;
  }

  html body .sidebar-light-custom .nav-group-sub .nav-link {
    padding: 0.38rem 0.75rem !important;
    font-size: 0.785rem !important;
    min-height: 32px !important;
  }
}

/* ==========================================================================
   TABLET & MOBILE RESPONSIVE LAYOUT (< 992px)
   ========================================================================== */
@media (max-width: 991.98px) {
  /* Aligment konten & kartu breadcrumb pada tablet/mobile: margin simetris kiri-kanan */
  html body:not(.login-page) .page-content .content,
  .content {
    padding: 1.25rem 16px 96px 16px !important;
  }

  .mx-content-align {
    margin-left: 16px !important;
    margin-right: 16px !important;
  }

  .navbar-footer-fixed,
  div.navbar.navbar-footer-fixed,
  div.navbar.navbar-expand-lg.navbar-footer-fixed,
  html body div.navbar.navbar-footer-fixed {
    left: 16px !important;
    right: 16px !important;
  }
}

/* ==========================================================================
   MOBILE & TABLET NAVBAR RESPONSIVE (< 992px)
   ========================================================================== */
@media (max-width: 991.98px) {
  /* Sembunyikan nama user & caret pada mode mobile/tablet agar hanya avatar bulat bersih yang tampil */
  .user-profile-pill .user-name-pill,
  .user-profile-pill .ph-caret-down {
    display: none !important;
  }

  /* Kunci logo SIMPKB di sisi kiri berdampingan dengan tombol hamburger */
  .navbar-floating-pill .navbar-brand-pill {
    margin-right: auto !important;
  }
}

/* ==========================================================================
   MOBILE & TABLET NAVBAR RESPONSIVE (< 768px)
   ========================================================================== */
@media (max-width: 767.98px) {
  /* Sembunyikan kontrol skala monitor & fullscreen di layar mobile/tablet kecil */
  .navbar-floating-pill #btn-scale-toggle,
  .navbar-floating-pill #btn-fullscreen {
    display: none !important;
  }

  /* Card Header & Filter Responsif di Layar Mobile (< 768px) */
  .glass-card .card-header h6,
  .glass-card > div[class*="justify-content-between"] h6 {
    font-size: 0.85rem !important;
    line-height: 1.35 !important;
  }

  .chart-filter-btn {
    padding: 3px 10px !important;
    font-size: 0.76rem !important;
  }
}

/* ==========================================================================
   MOBILE NAVBAR & LAYOUT PILL (< 576px)
   ========================================================================== */
@media (max-width: 575.98px) {
  /* Floating Navbar Pill Mobile Fit: simetris 12px kiri & kanan */
  .navbar-floating-pill,
  div.navbar.navbar-floating-pill,
  div.navbar.navbar-expand-lg.navbar-floating-pill,
  html body div.navbar.navbar-floating-pill {
    top: 8px !important;
    left: 12px !important;
    right: 12px !important;
    padding: 0 12px !important;
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    border-radius: 28px !important;
    box-sizing: border-box !important;
  }

  /* Compact Navbar Action Buttons on Mobile (<576px) */
  .navbar-floating-pill .mobile-sidebar-toggle-pill,
  .navbar-floating-pill .nav-bell-pill {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    flex: 0 0 32px !important;
  }

  .navbar-floating-pill .mobile-sidebar-toggle-pill i,
  .navbar-floating-pill .nav-bell-pill i {
    font-size: 1.15rem !important;
  }

  /* Spacing between right-side navbar items on mobile */
  .navbar-floating-pill .navbar-nav {
    gap: 12px !important;
  }

  /* Memberikan jarak lega antara ikon lonceng dan avatar agar tidak mepet */
  .navbar-floating-pill .dropdown-user {
    margin-left: 8px !important;
  }

  /* Compact notification counter badge on 32px bell (posisi presisi dalam tombol) */
  .navbar-floating-pill .nav-bell-pill .bell-badge-pill {
    top: -2px !important;
    right: 0px !important;
    min-width: 15px !important;
    height: 15px !important;
    font-size: 0.58rem !important;
    padding: 0 3px !important;
  }

  /* Responsive Brand Logo & Icon on Mobile */
  .navbar-brand-pill .navbar-brand-logo {
    max-height: 30px !important;
    max-width: 110px !important;
    width: auto !important;
    object-fit: contain !important;
  }

  .navbar-floating-pill .brand-icon-box {
    width: 32px !important;
    height: 32px !important;
    font-size: 1rem !important;
    border-radius: 9px !important;
  }

  .navbar-floating-pill .brand-text-title {
    font-size: 1.05rem !important;
    letter-spacing: -0.3px !important;
  }

  /* Aligment konten & kartu breadcrumb pada mobile: simetris 12px presisi sejajar navbar */
  html body:not(.login-page) .page-content .content,
  .content {
    padding: 1rem 12px 90px 12px !important;
  }

  .mx-content-align {
    margin-left: 12px !important;
    margin-right: 12px !important;
  }

  .page-header-light-custom .glass-card {
    padding: 8px 14px !important;
    border-radius: 18px !important;
  }

  /* Floating footer pada mobile: simetris 12px sejajar navbar & konten */
  .navbar-footer-fixed,
  div.navbar.navbar-footer-fixed,
  div.navbar.navbar-expand-lg.navbar-footer-fixed,
  html body div.navbar.navbar-footer-fixed {
    left: 12px !important;
    right: 12px !important;
    bottom: 8px !important;
    padding: 8px 14px !important;
    min-height: 48px !important;
    border-radius: 20px !important;
  }

  /* Top clearance mask & page-content spacing on mobile */
  .header-top-bar-mask {
    height: 64px !important;
  }

  body:not(.login-page) .page-content {
    padding-top: 72px !important;
  }

  /* User profile on mobile: borderless circular avatar only without awkward oval pill */
  .user-profile-pill,
  .navbar-floating-pill .user-profile-pill {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    height: 32px !important;
    align-self: center !important;
    margin-top: auto !important;
    margin-bottom: auto !important;
  }

  .user-profile-pill .user-name-pill,
  .user-profile-pill .ph-caret-down {
    display: none !important;
  }

  .user-avatar-pill {
    width: 32px !important;
    height: 32px !important;
  }

  /* Dropdown menus on mobile: fixed position tepat di bawah navbar simetris 12px, aman dari overflow layar */
  .dropdown-notif,
  .navbar-floating-pill .dropdown-notif {
    position: fixed !important;
    top: 66px !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    transform: none !important;
    border-radius: 20px !important;
    box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.18) !important;
  }

  .dropdown-profile,
  .navbar-floating-pill .dropdown-profile {
    position: fixed !important;
    top: 66px !important;
    left: auto !important;
    right: 12px !important;
    width: min(240px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
    transform: none !important;
  }
}

/* Limitless 4.0 Soft Crisp Card Design (Match Image 1 Template) */
.card-modern,
.glass-card,
.card,
.content .card-modern,
.page-content .card-modern,
.glass-card .card-modern {
  background-color: #ffffff !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.03),
    0 1px 3px rgba(0, 0, 0, 0.02) !important;
  transition: box-shadow 0.2s ease;
}

.card-modern:hover,
.glass-card:hover {
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.05),
    0 2px 6px rgba(0, 0, 0, 0.03) !important;
}

.stat-card-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  min-height: 88px;
  padding: 14px 16px;
  border-radius: 20px !important;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(248, 250, 252, 0.94) 100%
  );
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.stat-card-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
}

.stat-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.stat-icon-blue {
  background-color: #e0f2fe !important;
  color: #0284c7 !important;
}
.stat-icon-orange {
  background-color: #fef3c7 !important;
  color: #d97706 !important;
}
.stat-icon-green {
  background-color: #dcfce7 !important;
  color: #16a34a !important;
}
.stat-icon-red {
  background-color: #ffe4e6 !important;
  color: #e11d48 !important;
}
.stat-icon-purple {
  background-color: #f3e8ff !important;
  color: #9333ea !important;
}
.stat-icon-cyan,
.stat-icon-teal {
  background-color: #e0f2fe !important;
  color: #0284c7 !important;
}

/* Page Header Breadcrumb Area */
/* Custom Utility for perfectly aligning header cards with content wrapper padding (Desktop >= 992px) */
@media (min-width: 992px) {
  .mx-content-align {
    margin-left: 24px !important; /* Matches left padding of .content */
    margin-right: 0 !important; /* margin-right handled by .content-wrapper margin-right: 16px */
  }
}

.page-header-light-custom {
  background-color: transparent !important;
  padding: 0 !important;
  border-bottom: none !important;
  margin: 0 !important;
}

.page-header-light-custom .glass-card,
.page-header-light-custom > div {
  margin-top: 0 !important;
}

.page-header-light-custom .breadcrumb,
.page-header .breadcrumb {
  justify-content: flex-start !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
}

.page-title-custom {
  font-size: 1.35rem;
  font-weight: 700;
  color: #111827;
}

/* Ace Compatibility Utilities */
.ace-icon {
  display: inline-block;
  margin-right: 4px;
}
.bigger-110 {
  font-size: 110% !important;
}
.bigger-120 {
  font-size: 120% !important;
}
.bigger-130 {
  font-size: 130% !important;
}
.lighter {
  font-weight: 300 !important;
}
.bolder {
  font-weight: 700 !important;
}

.space-4 {
  margin-bottom: 4px !important;
  clear: both;
}
.space-6 {
  margin-bottom: 8px !important;
  clear: both;
}
.space-12 {
  margin-bottom: 16px !important;
  clear: both;
}
.space-24 {
  margin-bottom: 24px !important;
  clear: both;
}

.widget-box {
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.widget-header {
  background-color: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.widget-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.widget-body {
  padding: 1.25rem;
}
.widget-main {
  padding: 0;
}
.widget-main.no-padding {
  padding: 0 !important;
}

.btn-xs {
  padding: 0.2rem 0.4rem;
  font-size: 0.75rem;
  border-radius: 0.25rem;
}

.table-bordered {
  border: 1px solid #e5e7eb;
}

/* Clean Table Container without enclosing border box globally */
.content .table-responsive,
.page-content .content .table-responsive,
.glass-card .table-responsive,
.card-body .table-responsive,
.table-responsive,
.table-wrapper-rounded,
.content .table-responsive.border,
.content .table-responsive.shadow-sm,
.content .table-responsive.bg-white,
.content .table-responsive.rounded-3,
.content .table-responsive.rounded-4,
.glass-card .table-responsive.border,
.glass-card .table-responsive.shadow-sm,
.glass-card .table-responsive.bg-white,
.glass-card .table-responsive.rounded-3,
.glass-card .table-responsive.rounded-4 {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  overflow-x: auto;
}

.table {
  margin-bottom: 0;
  width: 100%;
  border-collapse: collapse;
  background: transparent;
}

/* Modern Clean Table Header */
.page-content .content .table thead th,
.page-content .content .card-modern .table thead th,
.page-content .content .glass-card .table thead th,
.page-content .content .dataTables_wrapper .table thead th,
.page-content .content table.dataTable thead th,
.content .table thead th {
  background-color: #f8fafc;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 14px;
  vertical-align: middle;
}

/* Table Striped Rows (Alternating Zebra Striping) */
.table-striped tbody tr:nth-of-type(odd),
.table-striped tbody tr:nth-of-type(odd) > td,
.table-striped tbody tr:nth-of-type(odd) > th,
.page-content .content .table-striped tbody tr:nth-of-type(odd),
.page-content .content .table-striped tbody tr:nth-of-type(odd) > td {
  background-color: #f8fafc;
}

.table-striped tbody tr:nth-of-type(even),
.table-striped tbody tr:nth-of-type(even) > td,
.table-striped tbody tr:nth-of-type(even) > th,
.page-content .content .table-striped tbody tr:nth-of-type(even),
.page-content .content .table-striped tbody tr:nth-of-type(even) > td {
  background-color: #ffffff;
}

/* Table Hover */
.table-hover tbody tr:hover,
.table-hover tbody tr:hover > td,
.table-hover tbody tr:hover > th,
.page-content .content .table-hover tbody tr:hover,
.page-content .content .table-hover tbody tr:hover > td {
  background-color: #f1f5f9;
}

/* Table Body Cells */
.page-content .content .table tbody td,
.page-content .content .card-modern .table tbody td,
.page-content .content .glass-card .table tbody td,
.page-content .content .table tbody th,
.page-content .content .card-modern .table tbody th,
.page-content .content .glass-card .table tbody th,
.page-content .content .dataTables_wrapper .table tbody td,
.page-content .content table.dataTable tbody td,
.content .table tbody td {
  padding: 10px 14px;
  border: none;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  font-size: 0.88rem;
  font-weight: 500;
  vertical-align: middle;
  line-height: 1.45;
}

/* Sub-text inside cells (Secondary details, vehicle sub-types, etc.) */
.table tbody td .dt-text-muted-xs,
.table tbody td .small,
.table tbody td small,
.table tbody td span.text-muted {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 400;
}

/* Specific weights */
.page-content .content .table tbody td .fw-bold,
.page-content .content .table tbody td strong {
  font-weight: 700;
}
.page-content .content .table tbody td .fw-semibold {
  font-weight: 600;
}
.page-content .content .table tbody td .fw-medium {
  font-weight: 500;
}

/* === COMPACT TABLE OVERRIDE untuk .tbl-lihat === */
.page-content .content table.tbl-lihat thead th,
.page-content .content .glass-card table.tbl-lihat thead th,
.content table.tbl-lihat thead th {
  padding: 7px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.table.tbl-lihat td,
.table.tbl-lihat th,
.glass-card table.tbl-lihat td,
.glass-card table.tbl-lihat th,
.content table.tbl-lihat td,
.content table.tbl-lihat th {
  padding: 7px 10px;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.4;
}

/* === VERTICAL GRID BORDER LINES KHUSUS UNTUK TABEL DATA KENDARAAN (KARTU INDUK) === */
table.tbl-data-kendaraan td,
table.tbl-data-kendaraan th,
.glass-card table.tbl-data-kendaraan td,
.glass-card table.tbl-data-kendaraan th,
.content table.tbl-data-kendaraan td,
.content table.tbl-data-kendaraan th {
  border: 1px solid #cbd5e1 !important;
}

table.tbl-data-kendaraan thead th,
.glass-card table.tbl-data-kendaraan thead th {
  border-bottom: 2px solid #94a3b8 !important;
  font-weight: 600 !important;
}

.page-content .table tbody tr:last-child td,
.content .table tbody tr:last-child td,
.table tbody tr:last-child td {
  border-bottom: none !important;
}

/* Modern Soft Pill Badges (Enlarged, Bold & Prominent for Text & Numbers) */
.page-content .table .badge,
.content .table .badge,
.card-modern .table .badge,
.glass-card .table .badge,
.table .badge,
.badge-info,
.badge-primary,
.badge-danger,
.badge-success,
.badge-warning {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 999px !important;
  letter-spacing: 0.05em !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1.2 !important;
}

.badge-info,
.badge-primary {
  background-color: #e0f2fe !important;
  color: #0284c7 !important;
  border: none !important;
  min-width: 46px !important;
}

.badge-danger {
  background-color: #ffe4e6 !important;
  color: #e11d48 !important;
  border: none !important;
  min-width: 46px !important;
}

.badge-success {
  background-color: #dcfce7 !important;
  color: #16a34a !important;
  border: none !important;
  min-width: 46px !important;
}

.badge-warning {
  background-color: #fef3c7 !important;
  color: #d97706 !important;
  border: none !important;
  min-width: 46px !important;
}

/* Modern Round Action Buttons inside Table (Match Reference Image Sisi Kanan) */
.table .btn-icon,
.table .btn-light {
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background-color: #f1f5f9 !important;
  color: #64748b !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.15s ease !important;
}

.table .btn-icon:hover,
.table .btn-light:hover {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
  transform: scale(1.08) !important;
}

/* Premium Squircle Action Buttons (For Testing Stations) */
.table .btn-squircle {
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: 1px solid transparent !important;
}

.table .btn-squircle i {
  font-size: 1.1rem !important;
  margin: 0 !important;
}

.table .btn-squircle.btn-success {
  background: linear-gradient(180deg, #16a34a, #15803d) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 5px rgba(21, 128, 61, 0.2) !important;
}

.table .btn-squircle.btn-success:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.35) !important;
}

.table .btn-squircle.btn-danger {
  background: linear-gradient(180deg, #ef4444, #dc2626) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 5px rgba(220, 38, 38, 0.2) !important;
}

.table .btn-squircle.btn-danger:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35) !important;
}

.page-content .table tbody tr:hover,
.content .table tbody tr:hover,
.card-modern .table tbody tr:hover,
.glass-card .table tbody tr:hover {
  background-color: #f8fafc;
}

.page-content .table.table-borderless tbody tr:hover,
.content .table.table-borderless tbody tr:hover,
.card-modern .table.table-borderless tbody tr:hover,
.glass-card .table.table-borderless tbody tr:hover {
  background-color: rgba(248, 250, 252, 0.75);
}

.page-content .table.table-borderless th,
.content .table.table-borderless th,
.card-modern .table.table-borderless th,
.glass-card .table.table-borderless th,
.page-content .table.table-borderless td,
.content .table.table-borderless td,
.card-modern .table.table-borderless td,
.glass-card .table.table-borderless td {
  border: none;
}

/* Improved dashboard card/table alignment and spacing */
.content .card-modern,
.page-content .card-modern,
.glass-card .card-modern {
  overflow: hidden;
}

/* Native date picker style for Rekonsiliasi filters */
.filter-pill input[type="date"] {
  border-radius: 999px;
  padding: 0.9rem 1.2rem;
  height: 56px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #475569;
}

.filter-pill input[type="date"]:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.12);
}

/* Standard form-control date inputs (Daftar Kendaraan & Dashboard Forms) */
.form-control[type="date"],
input[type="date"].form-control {
  border-radius: 10px !important;
  height: 38px !important;
  padding: 0.45rem 0.75rem !important;
  border: 1px solid #cbd5e1 !important;
  background-color: #ffffff !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  color: #1e293b !important;
}

.form-control[type="date"]:focus,
input[type="date"].form-control:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
  outline: none !important;
}

/* Remove blue underline hover state from dashboard action buttons and links */
.page-content .btn,
.page-content .btn:hover,
.page-content .btn:focus,
.page-content button,
.page-content button:hover,
.page-content button:focus,
.page-content a,
.page-content a:hover,
.page-content a:focus {
  text-decoration: none !important;
}

/* Glass Card (Match layout_1 Design) */
.glass-card {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(10px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(140%) !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  border-radius: 20px !important;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.06) !important;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.glass-card:hover {
  box-shadow: 0 12px 36px 0 rgba(31, 38, 135, 0.1) !important;
}

/* Page Header Glass Breadcrumb Card (Match layout_1) */
.ph2-breadcrumb-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(248, 250, 252, 0.92) 100%
  ) !important;
  backdrop-filter: blur(10px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(140%) !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06) !important;
  padding: 12px 18px !important;
  display: flex;
  align-items: center;
  min-height: 72px;
}

.ph2-breadcrumb-card .ph2-breadcrumb {
  gap: 10px;
}

.ph2-breadcrumb-card .ph2-breadcrumb-home,
.ph2-breadcrumb-card .ph2-breadcrumb-link,
.ph2-breadcrumb-card .ph2-breadcrumb-active {
  font-size: 0.95rem;
}

.ph2-breadcrumb-card .ph2-actions {
  margin-left: auto;
}

.ph2-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
}

.ph2-breadcrumb-home {
  color: #3b82f6;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  text-decoration: none !important;
}

.ph2-breadcrumb-sep {
  color: #94a3b8;
  font-size: 0.85rem;
}

.ph2-breadcrumb-link {
  color: #3b82f6;
  text-decoration: none !important;
  font-weight: 500;
}

.ph2-breadcrumb-active {
  color: #475569;
  font-weight: 600;
}

/* Reconciliation Donut Chart (safe HTML/CSS fallback) */
.rekon-chart-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.rekon-donut {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
}

.rekon-donut-inner {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.9);
}

.rekon-donut-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #475569;
}

.rekon-legend {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: center;
}

.rekon-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #475569;
}

.rekon-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}

/* Blur Circles (layout_1 Style) */
.ios-bg-blur-circle-1 {
  position: fixed;
  width: 600px;
  height: 600px;
  top: -150px;
  left: -150px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.12) 0%,
    rgba(168, 85, 247, 0.08) 50%,
    rgba(255, 255, 255, 0) 70%
  );
  filter: blur(24px);
  transform: translate3d(0, 0, 0);
  will-change: transform;
  backface-visibility: hidden;
  pointer-events: none;
  z-index: 0;
}

.ios-bg-blur-circle-2 {
  position: fixed;
  width: 700px;
  height: 700px;
  bottom: -200px;
  right: -150px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.1) 0%,
    rgba(14, 165, 233, 0.08) 50%,
    rgba(255, 255, 255, 0) 70%
  );
  filter: blur(24px);
  transform: translate3d(0, 0, 0);
  will-change: transform;
  backface-visibility: hidden;
  pointer-events: none;
  z-index: 0;
}

/* Card Header Collapsible Chevron Styling */
[data-bs-toggle="collapse"] i,
[data-toggle="collapse"] i,
button[data-bs-toggle="collapse"] i {
  transition: transform 0.2s ease-in-out !important;
  display: inline-block;
}

[data-bs-toggle="collapse"].collapsed i,
[data-toggle="collapse"].collapsed i,
button.collapsed i,
button.collapsed i.icon-arrow-up22,
a.collapsed i.ph-chevron-up {
  transform: rotate(180deg) !important;
}

/* Card Input Groups & Search Buttons Rounded Seamless Styling (Match Gambar 2) */
.card-modern .input-group,
.glass-card .input-group,
.input-group {
  height: 42px !important;
  border-radius: 10px !important;
  border: 1px solid #cbd5e1 !important;
  background-color: #ffffff !important;
  display: flex !important;
  align-items: stretch !important;
  overflow: hidden !important;
  transition: all 0.15s ease-in-out !important;
}

.card-modern .input-group:focus-within,
.glass-card .input-group:focus-within,
.input-group:focus-within {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

/* First child element in input group (Input or Icon box on left) */
.input-group > .form-control:first-child,
.input-group > .input-group-text:first-child {
  border: none !important;
  border-top-left-radius: 9px !important;
  border-bottom-left-radius: 9px !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

/* Middle child element in input group */
.input-group > .form-control:not(:first-child):not(:last-child),
.input-group > .input-group-text:not(:first-child):not(:last-child) {
  border: none !important;
  border-radius: 0 !important;
}

/* Last child element in input group (Input or Icon box on right) */
.input-group > .form-control:last-child,
.input-group > .input-group-text:last-child {
  border: none !important;
  border-top-right-radius: 9px !important;
  border-bottom-right-radius: 9px !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

/* Vertical divider line when input-group-text is on the right */
.input-group > .input-group-text:last-child {
  border-left: 1px solid #cbd5e1 !important;
  background-color: #f8fafc !important;
  color: #64748b !important;
  padding: 0 0.9rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Vertical divider line when input-group-text is on the left */
.input-group > .input-group-text:first-child {
  border-right: 1px solid #cbd5e1 !important;
  background-color: #f8fafc !important;
  color: #64748b !important;
  padding: 0 0.9rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.input-group > .form-control {
  box-shadow: none !important;
  outline: none !important;
  height: 100% !important;
  padding: 0.55rem 0.9rem !important;
  background: transparent !important;
  color: #1e293b !important;
  font-weight: 500 !important;
  font-size: 0.92rem !important;
}

.card-modern .input-group .btn,
.glass-card .input-group .btn,
.input-group .btn {
  border-top-right-radius: 9px !important;
  border-bottom-right-radius: 9px !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  margin: 0 !important;
  padding: 0.65rem 1.4rem !important;
  font-weight: 600 !important;
}

/* Responsive Rekon Donut Chart Styling */
.rekon-donut {
  width: 280px;
  height: 280px;
  max-width: 100%;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.rekon-donut-inner {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.9);
}

.rekon-donut-title {
  font-weight: 700;
  color: #1e293b;
  font-size: 0.95rem;
}

/* Mobile responsive scaling down so donut chart fits nicely without getting cut off */
@media (max-width: 576px) {
  .rekon-donut {
    width: 200px !important;
    height: 200px !important;
  }
  .rekon-donut-inner {
    width: 105px !important;
    height: 105px !important;
  }
  .rekon-donut-title {
    font-size: 0.78rem !important;
  }
}

/* Card Title Icon Box (Match User Reference Image) */
.card-title-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-right: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.card-title-icon-box.icon-box-primary,
.card-title-icon-box.icon-box-info {
  background-color: #f0f9ff !important;
  border: 1px solid #e0f2fe !important;
  color: #0284c7 !important;
}

.card-title-icon-box.icon-box-success {
  background-color: #f0fdf4 !important;
  border: 1px solid #dcfce7 !important;
  color: #16a34a !important;
}

.card-title-icon-box.icon-box-danger {
  background-color: #fff1f2 !important;
  border: 1px solid #ffe4e6 !important;
  color: #e11d48 !important;
}

/* ==========================================================================
   SIMPKB Dashboard KPI Cards Ã¢â‚¬â€ Penyempurnaan 2026-08-05
   ========================================================================== */

/* --------------------------------------------------------------------------
   KPI CARD Ã¢â‚¬â€ New design (menggantikan .stat-card-item untuk dashboard utama)
   -------------------------------------------------------------------------- */
.kpi-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 1rem 1rem 0.9rem 1rem;
  border-radius: 18px;
  background: #ffffff;
  border: 1.5px solid #e8edf3;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
  position: relative;
  overflow: hidden;
  min-height: 148px;
  cursor: pointer;
  text-decoration: none !important;
  color: inherit !important;
}

.kpi-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 18px 18px 0 0;
  opacity: 0.8;
}

.kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
  text-decoration: none !important;
  color: inherit !important;
}

.kpi-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-bottom: 0.25rem;
}

.kpi-body {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.kpi-value {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.1;
  color: #111827;
  letter-spacing: -0.03em;
}

.kpi-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
  margin-top: 0.15rem;
}

.kpi-sublabel {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-link-indicator {
  position: absolute;
  top: 14px;
  right: 14px;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1;
  pointer-events: none;
  transition:
    color 0.2s,
    transform 0.2s;
}

.kpi-card:hover .kpi-link-indicator {
  color: #94a3b8;
  transform: translateX(3px);
}

/* Color themes */
.kpi-blue::before {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}
.kpi-blue .kpi-icon-wrap {
  background: #eff6ff;
  color: #2563eb;
}

.kpi-orange::before {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}
.kpi-orange .kpi-icon-wrap {
  background: #fffbeb;
  color: #d97706;
}

.kpi-green::before {
  background: linear-gradient(90deg, #10b981, #34d399);
}
.kpi-green .kpi-icon-wrap {
  background: #f0fdf4;
  color: #059669;
}

.kpi-cyan::before {
  background: linear-gradient(90deg, #0ea5e9, #38bdf8);
}
.kpi-cyan .kpi-icon-wrap {
  background: #f0f9ff;
  color: #0284c7;
}

.kpi-red::before {
  background: linear-gradient(90deg, #ef4444, #f87171);
}
.kpi-red .kpi-icon-wrap {
  background: #fff1f2;
  color: #dc2626;
}

.kpi-purple::before {
  background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}
.kpi-purple .kpi-icon-wrap {
  background: #faf5ff;
  color: #7c3aed;
}

/* --------------------------------------------------------------------------
   DELTA BADGE Ã¢â‚¬â€ Perbandingan dengan kemarin
   -------------------------------------------------------------------------- */
.delta-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.69rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
  margin-top: 0.35rem;
  white-space: nowrap;
  max-width: 100%;
}

.delta-up {
  background: #dcfce7;
  color: #16a34a;
} /* naik, positif */
.delta-down {
  background: #fee2e2;
  color: #dc2626;
} /* turun, negatif */
.delta-good {
  background: #dcfce7;
  color: #16a34a;
} /* turun, positif (misal: belum uji turun = bagus) */
.delta-warn {
  background: #fef3c7;
  color: #d97706;
} /* naik, perlu diperhatikan (tidak lulus naik) */
.delta-neutral {
  background: #f1f5f9;
  color: #64748b;
} /* sama / baru */

/* --------------------------------------------------------------------------
   KPI EMPTY STATE
   -------------------------------------------------------------------------- */
.kpi-empty-state {
  text-align: center;
  padding: 1.5rem 1rem 0.5rem;
  color: #94a3b8;
}

.kpi-empty-state i {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.kpi-empty-state p {
  font-size: 0.88rem;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 0.25rem;
}

/* --------------------------------------------------------------------------
   TABLE Ã¢â‚¬â€ Highlight baris hari ini (Rencana Pengujian)
   -------------------------------------------------------------------------- */
.table-today-highlight {
  background: linear-gradient(90deg, #f0f9ff, #ffffff) !important;
  border-left: 3px solid #0ea5e9;
}

.table-today-highlight td {
  background: transparent !important;
}

/* --------------------------------------------------------------------------
   RESPONSIVE KPI ROW
   Desktop XL (Ã¢â€°Â¥1200px):  6 kartu / baris Ã¢â€ â€™ col-xl-2 (sudah di HTML)
   Desktop (Ã¢â€°Â¥992px):      3 kartu / baris
   Tablet  (Ã¢â€°Â¥576px):      2 kartu / baris Ã¢â€ â€™ col-sm-6 (sudah di HTML via col-6)
   Mobile  (<576px):      2 kartu / baris (col-6)
   -------------------------------------------------------------------------- */
@media (max-width: 575.98px) {
  .kpi-value {
    font-size: 1.5rem !important;
  }
  .kpi-card {
  width: 100%;
    min-height: 130px;
    padding: 0.8rem;
  }
  .kpi-icon-wrap {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
  .kpi-sublabel {
    display: none;
  } /* sembunyikan di HP kecil */
  .kpi-link-indicator {
    top: 10px;
    right: 10px;
    font-size: 0.85rem;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .kpi-value {
    font-size: 1.65rem;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .kpi-value {
    font-size: 1.75rem;
  }
}

/* --------------------------------------------------------------------------
   REKONSILIASI Ã¢â‚¬â€ Donut chart
   -------------------------------------------------------------------------- */
.rekon-donut {
  width: 340px;
  height: 340px;
  border-radius: 50%;
  position: relative;
  margin: 0 auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.rekon-donut-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.rekon-donut-title {
  text-align: center;
  line-height: 1.2;
}

/* --------------------------------------------------------------------------
   DATE RANGE INPUT FOCUS STATE
   -------------------------------------------------------------------------- */
#tgl_range:focus,
#tgl_range.active {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18) !important;
  background-color: #ffffff !important;
  outline: none !important;
}

/* --------------------------------------------------------------------------
   COLLAPSE TOGGLE ARROW ROTATION
   -------------------------------------------------------------------------- */
.btn-collapse-toggle[aria-expanded="false"] i {
  transform: rotate(180deg);
  transition: transform 0.2s ease;
}
.btn-collapse-toggle[aria-expanded="true"] i {
  transform: rotate(0deg);
  transition: transform 0.2s ease;
}

/* --------------------------------------------------------------------------
   KPI ROW Ã¢â‚¬â€ Pastikan tinggi kartu sama di satu baris (stretch)
   -------------------------------------------------------------------------- */
.kpi-row > [class*="col"] {
  display: flex;
}

.kpi-row > [class*="col"] > a,
.kpi-row > [class*="col"] > div,
.kpi-row > [class*="col"] > .kpi-card {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   CHART STYLES
   -------------------------------------------------------------------------- */
.chart-container {
  position: relative;
  width: 100%;
  min-height: 350px;
}

.chart-skeleton {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: 12px;
  z-index: 5;
  animation: pulse 1.5s infinite;
}

.chart-empty {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  z-index: 4;
  text-align: center;
  padding: 20px;
}

.chart-filter-btn {
  border-radius: 20px;
  padding: 4px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  transition: all 0.2s;
}

.chart-filter-btn:hover {
  background: #f1f5f9;
}

.chart-filter-btn.active {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
}

.stat-mini-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}
.stat-mini-card.active-state {
  background: #eff6ff;
  border-color: #bfdbfe;
}
.stat-mini-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: auto;
  padding-top: 0.25rem;
  line-height: 1.2;
}
.stat-mini-label {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
  line-height: 1.25;
}

@media (max-width: 575.98px) {
  .stat-mini-card {
    padding: 8px 10px;
  }
  .stat-mini-value {
    font-size: 1.15rem;
  }
  .stat-mini-label {
    font-size: 0.74rem;
  }
}

/* Page Title Header Icon Box Styling */
.header-icon-box,
.page-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: 11px;
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
  font-size: 1.2rem;
  margin-right: 10px;
  vertical-align: middle;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.08);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.header-icon-box > i,
.page-title-icon > i {
  margin: 0;
  padding: 0;
  font-size: 1.2rem;
  color: #2563eb;
  line-height: 1;
  display: inline-block;
}

h4.fw-bold > i:first-child,
.d-flex > h4 > i:first-child {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  border-radius: 11px !important;
  background: rgba(59, 130, 246, 0.12) !important;
  color: #2563eb !important;
  font-size: 1.2rem !important;
  margin-right: 10px !important;
  vertical-align: middle !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.08) !important;
  flex-shrink: 0 !important;
  line-height: 38px !important;
  text-align: center !important;
}

/* Ensure flex alignment on page title headers */
h4.fw-bold,
.glass-card h4,
.glass-card h5 {
  display: inline-flex !important;
  align-items: center !important;
}

/* --------------------------------------------------------------------------
   SELECT2 MODERN LIGHT THEME STYLING
   -------------------------------------------------------------------------- */
.select2-container .select2-selection--single,
.select2-container--default .select2-selection--single {
  height: 38px !important;
  padding: 0.375rem 0.75rem !important;
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: #374151 !important;
  background-color: #ffffff !important;
  background-image: none !important;
  border: 1px solid #d1d5db !important;
  border-radius: 6px !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
  display: flex !important;
  align-items: center !important;
  position: relative !important;
  box-sizing: border-box !important;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  color: #374151 !important;
  line-height: normal !important;
  padding-left: 0 !important;
  padding-right: 40px !important;
  width: 100% !important;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  right: 10px !important;
  width: 14px !important;
  height: 14px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none !important;
  background: transparent !important;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__arrow::before,
.select2-container--default
  .select2-selection--single
  .select2-selection__arrow::after {
  content: none !important;
  display: none !important;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__arrow
  b {
  border-color: #6b7280 transparent transparent transparent !important;
  border-style: solid !important;
  border-width: 5px 4.5px 0 4.5px !important;
  height: 0 !important;
  width: 0 !important;
  position: static !important;
  top: auto !important;
  left: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-block !important;
}

.select2-container--default.select2-container--open
  .select2-selection--single
  .select2-selection__arrow
  b {
  border-color: transparent transparent #6b7280 transparent !important;
  border-width: 0 4.5px 5px 4.5px !important;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__clear {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  color: #9ca3af !important;
  font-weight: 600 !important;
  font-size: 1.1rem !important;
  line-height: 1 !important;
  cursor: pointer !important;
  position: absolute !important;
  right: 28px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 2 !important;
  float: none !important;
  margin: 0 !important;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__clear::before,
.select2-container--default
  .select2-selection--single
  .select2-selection__clear::after {
  content: none !important;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__clear:hover {
  color: #ef4444 !important;
}

.select2-container--open .select2-selection--single {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18) !important;
}

/* Force Datepicker & DateRangePicker Popup to Open Downwards Below Input & Stay Above Headers */
.datepicker-dropdown,
.datepicker-picker,
.datepicker,
.daterangepicker {
  z-index: 1070 !important;
}

/* Ensure single datepicker popup opens downwards and is positioned cleanly below input */
.datepicker-dropdown.datepicker-orient-top {
  top: auto !important;
}

/* Button Click Ripple / Expand Color Ring Effect (Spread & Fade Out) */
.btn,
button,
a.btn,
input[type="submit"].btn {
  transform: none !important;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease !important;
}

.btn:hover,
button:hover,
a.btn:hover {
  transform: none !important;
}

@keyframes buttonSpreadFadePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.55);
  }
  60% {
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

@keyframes buttonSpreadFadePulseSuccess {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
  }
  60% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

@keyframes buttonSpreadFadePulseDanger {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55);
  }
  60% {
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

@keyframes buttonSpreadFadePulseWarning {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55);
  }
  60% {
    box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

.btn:active,
.btn:focus-visible,
button:active,
button:focus-visible {
  animation: buttonSpreadFadePulse 0.4s ease-out !important;
}

.btn-primary:active,
.btn-primary:focus-visible {
  animation: buttonSpreadFadePulse 0.4s ease-out !important;
}

.btn-success:active,
.btn-success:focus-visible {
  animation: buttonSpreadFadePulseSuccess 0.4s ease-out !important;
}

.btn-danger:active,
.btn-danger:focus-visible {
  animation: buttonSpreadFadePulseDanger 0.4s ease-out !important;
}

.btn-warning:active,
.btn-warning:focus-visible {
  animation: buttonSpreadFadePulseWarning 0.4s ease-out !important;
}

/* --------------------------------------------------------------------------
   MODERN FORM-SELECT & SELECT2 DROPDOWN STYLING
   -------------------------------------------------------------------------- */
.form-select,
select.form-control {
  height: 42px !important;
  padding: 0.5rem 2.5rem 0.5rem 1rem !important;
  font-size: 0.92rem !important;
  font-weight: 500 !important;
  color: #1e293b !important;
  background-color: #ffffff !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  background-size: 14px 12px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03) !important;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
}

.form-select:focus,
select.form-control:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
  outline: none !important;
}

.select2-container .select2-selection--single,
.select2-container--default .select2-selection--single {
  height: 42px !important;
  border-radius: 10px !important;
  border: 1px solid #cbd5e1 !important;
  background-color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  position: relative !important;
  padding: 0 !important;
}

.select2-container--open .select2-selection--single,
.select2-container--focus .select2-selection--single {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
  padding-left: 1rem !important;
  padding-right: 2.8rem !important;
  color: #1e293b !important;
  font-weight: 500 !important;
  font-size: 0.92rem !important;
  line-height: 40px !important;
  height: 40px !important;
  display: block !important;
  width: 100% !important;
}

.select2-dropdown {
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  box-shadow:
    0 10px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.04) !important;
  overflow: hidden !important;
  z-index: 1065 !important;
  margin-top: 4px !important;
}

.select2-results__option {
  padding: 9px 14px !important;
  font-size: 0.9rem !important;
  color: #334155 !important;
  border-radius: 6px !important;
  margin: 2px 6px !important;
}

.select2-container--default
  .select2-results__option--highlighted[aria-selected] {
  background-color: #3b82f6 !important;
  color: #ffffff !important;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
  background-color: #eff6ff !important;
  color: #1d4ed8 !important;
  font-weight: 600 !important;
}

/* =====================================================================
   SWEETALERT2 Ã¢â‚¬â€ MODAL MEMPROSES (LOADING) MODERN STYLE
   ===================================================================== */

/* Container modal */
.swal2-popup {
  border-radius: 20px !important;
  padding: 2rem 2.2rem !important;
  box-shadow:
    0 20px 60px -10px rgba(0, 0, 0, 0.15),
    0 4px 20px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  font-family: "Inter", sans-serif !important;
}

/* Judul */
.swal2-title {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  padding: 0 !important;
  margin-bottom: 6px !important;
}

/* Teks deskripsi */
.swal2-html-container {
  font-size: 0.85rem !important;
  color: #64748b !important;
  margin: 0 0 16px 0 !important;
}

/* Container aksi */
.swal2-actions {
  justify-content: center !important;
  width: 100% !important;
}

/* Tombol konfirmasi */
.swal2-confirm {
  border-radius: 10px !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  padding: 8px 22px !important;
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
  border: none !important;
}
.swal2-confirm:hover {
  opacity: 0.9 !important;
}

/* Tombol cancel */
.swal2-cancel {
  border-radius: 10px !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  padding: 8px 22px !important;
  background: #f1f5f9 !important;
  color: #64748b !important;
  border: 1px solid #e2e8f0 !important;
}

/* =====================================================================
   KHUSUS SWEETALERT KONFIRMASI SINGKRON SRUT (swal-srut-singkron-modal)
   ===================================================================== */
.swal-srut-singkron-modal.swal2-popup {
  width: 440px !important;
  max-width: calc(100% - 1.5rem) !important;
  padding: 1.85rem 1.65rem !important;
}
.swal-srut-singkron-modal .swal2-actions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  margin-top: 1.5rem !important;
  margin-bottom: 0.25rem !important;
  width: 100% !important;
}
.swal-srut-singkron-modal .swal2-actions button.swal2-styled {
  margin: 0 !important;
}
.swal-srut-singkron-modal .swal2-confirm {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 9px 20px !important;
  border-radius: 10px !important;
}
.swal-srut-singkron-modal .swal2-cancel {
  display: inline-flex !important;
  align-items: center !important;
  padding: 9px 22px !important;
  border-radius: 10px !important;
}
@media (max-width: 480px) {
  .swal-srut-singkron-modal .swal2-actions {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .swal-srut-singkron-modal .swal2-actions .swal2-confirm,
  .swal-srut-singkron-modal .swal2-actions .swal2-cancel {
    width: 100% !important;
    max-width: 260px !important;
    min-height: 40px !important;
    margin: 0 !important;
  }
}

/* Background overlay lebih gelap & blur (hanya untuk modal dialog konfirmasi) */
.swal2-backdrop-show {
  background: rgba(15, 23, 42, 0.45) !important;
  backdrop-filter: blur(4px) !important;
}

/* Pastikan jika mode toast, TIDAK ADA background gelap dan TIDAK memblokir layar */
body.swal2-toast-shown .swal2-container,
.swal2-container.swal2-backdrop-show:has(.swal2-toast),
body.swal2-toast-shown .swal2-backdrop-show {
  background: transparent !important;
  backdrop-filter: none !important;
  pointer-events: none !important;
}

body.swal2-toast-shown .swal2-popup.swal2-toast,
.swal2-popup.swal2-toast {
  pointer-events: auto !important;
  padding: 0.65rem 1rem !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
  width: auto !important;
  max-width: 340px !important;
}

body.swal2-toast-shown .swal2-title,
.swal2-popup.swal2-toast .swal2-title {
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  margin-bottom: 0 !important;
}

/* Soft Primary Button (Glassmorphism UI) */
.btn-soft-primary {
  background-color: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  border: none;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-soft-primary:hover {
  background-color: rgba(37, 99, 235, 0.15);
  color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}
.btn-soft-primary:active {
  transform: translateY(0);
}

/* Button Standardization */
.btn-action-primary {
  background: linear-gradient(180deg, #0d6efd, #0b5ed7) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15) !important;
  transition: all 0.2s ease !important;
}
.btn-action-primary:hover {
  background: linear-gradient(180deg, #0d6efd, #0b5ed7) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 15px rgba(13, 110, 253, 0.3) !important;
  color: #fff !important;
}
.btn-action-secondary {
  background-color: #eff6ff !important;
  border: 1px solid transparent !important;
  color: #2563eb !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
}
.btn-action-secondary:hover {
  background-color: #dbeafe !important;
  color: #1d4ed8 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1) !important;
}

/* Limitless 4.0 Modern Form Control Styling */
.glass-card .form-control,
.glass-card .form-select,
.glass-card select.form-control {
  border-radius: 10px !important;
  border: 1px solid #cbd5e1 !important;
  padding: 0.55rem 0.9rem !important;
  font-size: 0.92rem !important;
  font-weight: 500 !important;
  color: #1e293b !important;
  background-color: #ffffff !important;
}

.glass-card .form-control:focus,
.glass-card .form-select:focus,
.glass-card select.form-control:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
  background-color: #ffffff !important;
  outline: none !important;
}

.glass-card textarea.form-control {
  min-height: 80px !important;
  border-radius: 10px !important;
}

.glass-card .col-form-label {
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: #475569 !important;
  line-height: 1.3 !important;
  text-align: left !important;
  padding-left: 0.75rem !important;
}

.glass-card .col-form-label.text-primary {
  color: #1d4ed8 !important;
}

.btn-round {
  border-radius: 10px !important;
  padding: 0.55rem 1.4rem !important;
  font-weight: 600 !important;
}

.alert-inline-danger {
  border-radius: 20px !important;
  background-color: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  color: #991b1b !important;
}

.btn-action-cancel {
  background-color: #ffffff !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
  transition: all 0.2s ease !important;
}
.btn-action-cancel:hover {
  background-color: #ef4444 !important;
  color: #ffffff !important;
  border-color: #ef4444 !important;
}

.btn.btn-link.text-muted {
  transition: all 0.2s ease !important;
  border-radius: 8px; /* Give it a shape for the background hover */
  padding: 0.4rem 0.8rem !important; /* Give it padding so the background is visible */
}

.btn.btn-link.text-muted:hover {
  background-color: #f1f5f9 !important; /* Slate 100 / Secondary Gray */
  color: #475569 !important;
  text-decoration: none !important;
}

/* Premium Spec Sheet Table (Anti Grid-Prison & Hierarchy Fix) */
.tbl-spec {
  border-color: #e2e8f0 !important;
}

/* Base table style (HIGH SPECIFICITY to override global table rules) */
html body .glass-card .table.tbl-spec tbody td,
html body .glass-card .table.tbl-spec tbody th,
html body .table.tbl-spec tbody td,
html body .table.tbl-spec tbody th {
  border: 1px solid #e2e8f0 !important; /* Force all 4 borders to appear, overriding global border: none */
  vertical-align: middle !important;
  padding: 0.5rem 0.75rem !important; /* Compact padding for smaller font */
  font-size: 0.85rem !important; /* Slightly increased per user request */
  font-weight: normal !important; /* Reset the aggressive fw-600 from global */
  color: #1e293b !important; /* Enforce dark slate text color, overriding any blue defaults */
}

html body .glass-card .table.tbl-spec tbody td.fw-bold,
html body .table.tbl-spec tbody td.fw-bold {
  font-weight: 700 !important; /* Restore bold for specific elements */
}

/* Hover effect */
.tbl-spec tr:hover > td {
  background-color: #f1f5f9 !important; /* Subtle blue-gray hover */
}

/* Inner tables if any */
.tbl-spec table td {
  border: none !important;
  padding: 0.25rem 0 !important;
}

/* Extracted from inline styles */
.tbl-spec-title {
  text-transform: uppercase !important;
  letter-spacing: 0.2px !important;
  font-size: 0.9rem !important; /* Slightly larger than labels, but not oversized */
}

.date-badge {
  border-radius: 8px !important;
  font-size: 0.8rem !important;
}

/* Vehicle Photo Gallery Component */
.photo-container {
  background-color: #000 !important;
}
.photo-thumbnail {
  object-fit: cover !important;
  aspect-ratio: 4/3 !important;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  display: block !important;
  width: 100% !important;
}
.photo-thumbnail:hover {
  transform: scale(1.05) !important;
}
.photo-caption {
  font-size: 0.75rem !important;
  letter-spacing: 0.5px !important;
}

.photo-caption-badge {
  bottom: 8px !important;
  left: 8px !important;
  background: rgba(15, 23, 42, 0.75) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  color: #ffffff !important;
  padding: 0.25rem 0.7rem !important;
  border-radius: 20px !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.8px !important;
  pointer-events: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  z-index: 2 !important;
}

/* Premium Status Badges */
.badge-status {
  display: inline-block !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  padding: 3px 8px !important;
  border-radius: 4px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
}

.badge-status-active,
.badge-status-success {
  background: rgba(25, 135, 84, 0.12) !important;
  color: #198754 !important;
  border: 1px solid rgba(25, 135, 84, 0.35) !important;
}

.badge-status-inactive {
  background: rgba(108, 117, 125, 0.12) !important;
  color: #6c757d !important;
  border: 1px solid rgba(108, 117, 125, 0.35) !important;
}

.badge-status-warning {
  background: rgba(255, 193, 7, 0.15) !important;
  color: #b45309 !important;
  border: 1px solid rgba(255, 193, 7, 0.35) !important;
}

.badge-status-danger {
  background: rgba(220, 53, 69, 0.12) !important;
  color: #dc3545 !important;
  border: 1px solid rgba(220, 53, 69, 0.35) !important;
}

.badge-status-info {
  background: rgba(13, 202, 240, 0.12) !important;
  color: #0891b2 !important;
  border: 1px solid rgba(13, 202, 240, 0.3) !important;
}

/* Premium Dropdown Styling */
.dropdown-menu {
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
  border-radius: 8px !important;
  padding: 0.4rem !important;
}

a.dropdown-item,
.dropdown-item {
  color: #333333 !important;
  border-radius: 6px !important;
  padding: 0.45rem 0.8rem !important;
  font-weight: 500 !important;
  transition: all 0.15s ease !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #f8f9fa !important;
  color: #212529 !important;
}

.dropdown-item.text-danger {
  color: #ef4444 !important;
}

.dropdown-item.text-danger:hover {
  background-color: #fef2f2 !important;
  color: #b91c1c !important;
}

.dropdown-item i {
  color: #6c757d !important;
}

.dropdown-item.text-danger i {
  color: #ef4444 !important;
}

.dropdown-item:hover i {
  color: #495057 !important;
}

.dropdown-item.text-danger:hover i {
  color: #b91c1c !important;
}

/* Primary Color */
.dropdown-item.text-primary {
  color: #3b82f6 !important;
}
.dropdown-item.text-primary:hover {
  background-color: #eff6ff !important;
  color: #1d4ed8 !important;
}
.dropdown-item.text-primary i {
  color: #3b82f6 !important;
}
.dropdown-item.text-primary:hover i {
  color: #1d4ed8 !important;
}

/* Warning Color */
.dropdown-item.text-warning {
  color: #f59e0b !important;
}
.dropdown-item.text-warning:hover {
  background-color: #fffbeb !important;
  color: #b45309 !important;
}
.dropdown-item.text-warning i {
  color: #f59e0b !important;
}
.dropdown-item.text-warning:hover i {
  color: #b45309 !important;
}

/* Success Color */
.dropdown-item.text-success {
  color: #10b981 !important;
}
.dropdown-item.text-success:hover {
  background-color: #ecfdf5 !important;
  color: #047857 !important;
}
.dropdown-item.text-success i {
  color: #10b981 !important;
}
.dropdown-item.text-success:hover i {
  color: #047857 !important;
}

/* Info Color */
.dropdown-item.text-info {
  color: #0ea5e9 !important;
}
.dropdown-item.text-info:hover {
  background-color: #f0f9ff !important;
  color: #0369a1 !important;
}
.dropdown-item.text-info i {
  color: #0ea5e9 !important;
}
.dropdown-item.text-info:hover i {
  color: #0369a1 !important;
}

/* Dropdown Trigger Icon */
a.list-icons-item,
.list-icons-item {
  color: #6c757d !important;
}
.list-icons-item:hover {
  color: #333333 !important;
}

/* ============================================================
   PREMIUM ALERTS & DATATABLES GLOBAL FIXES
   ============================================================ */

/* Premium Alert Boxes */
.alert-premium {
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  margin: 0;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.alert-premium.alert-danger {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.alert-premium.alert-success {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.alert-icon-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  border-radius: 12px;
  flex-shrink: 0;
}

/* DataTables Global UI Fixes */
.dataTables_filter input[type="search"] {
  padding-left: 2.2rem !important;
}

.dataTables_filter .form-control-feedback-icon {
  left: 0px !important;
}

.dataTables_filter > label {
  display: inline-flex !important;
  align-items: center !important;
  margin-bottom: 0 !important;
  font-weight: 500;
  gap: 0.5rem !important;
}

/* DataTables Unified Capsule Search Bar (Global) */
.dataTables_filter .dt-search-group,
.dataTables_filter .rekap-search-group,
.dataTables_filter .dt-search-group *,
.dataTables_filter .rekap-search-group * {
  box-sizing: border-box !important;
}

.dataTables_filter .dt-search-group,
.dataTables_filter .rekap-search-group {
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  min-width: 260px;
  width: auto;
  max-width: 440px;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  flex-wrap: nowrap !important;
  border-radius: 9px !important;
  border: 1px solid #cbd5e1 !important;
  background-color: #ffffff !important;
  overflow: hidden !important;
  padding: 0 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.dataTables_filter .dt-search-group:focus-within,
.dataTables_filter .rekap-search-group:focus-within {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

.dataTables_filter .dt-search-group input[type="search"],
.dataTables_filter .dt-search-group input,
.dataTables_filter .rekap-search-group input[type="search"] {
  height: 100% !important;
  min-height: 100% !important;
  max-height: 100% !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  background-color: transparent !important;
  padding: 0 0.85rem !important;
  font-size: 0.85rem !important;
  line-height: normal !important;
  margin: 0 !important;
}

.dataTables_filter .dt-search-group input[type="search"]::-webkit-search-cancel-button,
.dataTables_filter .dt-search-group input[type="search"]::-webkit-search-decoration,
.dataTables_filter .rekap-search-group input[type="search"]::-webkit-search-cancel-button,
.dataTables_filter .rekap-search-group input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.dataTables_filter .dt-search-group .btn-dt-search,
.dataTables_filter .rekap-search-group #btn-cari-rekap {
  height: 100% !important;
  min-height: 100% !important;
  max-height: 100% !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 1.1rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 500 !important;
  font-size: 0.82rem !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
}

.dataTables_filter .dt-search-group .btn-dt-reset,
.dataTables_filter .rekap-search-group #btn-reset-rekap {
  height: 100% !important;
  min-height: 100% !important;
  max-height: 100% !important;
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  border: none !important;
  border-left: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: #f8fafc !important;
  color: #64748b !important;
  flex-shrink: 0 !important;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.dataTables_filter .dt-search-group .btn-dt-reset:hover,
.dataTables_filter .rekap-search-group #btn-reset-rekap:hover {
  background-color: #fee2e2 !important;
  color: #ef4444 !important;
}

.dataTables_length select {
  background-color: rgba(255, 255, 255, 0.6) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  border-radius: 8px !important;
  min-width: 75px !important;
  padding: 0.35rem 1.75rem 0.35rem 0.75rem !important;
  font-weight: 500;
  color: #495057;
  outline: none !important;
}

.dataTables_length select:focus {
  background-color: #ffffff !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

.table-responsive {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

.table-responsive .dropdown-menu,
.dropdown-menu.show {
  z-index: 1065 !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

/* DataTables Controls & Spacing */
.datatable-header,
.dataTables_wrapper > .row:first-child {
  padding-bottom: 1.1rem;
  margin-bottom: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.datatable-header .dataTables_filter,
.datatable-header .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_length {
  margin: 0 !important;
  float: none !important;
}

@media (max-width: 991.98px) {
  .datatable-header,
  .dataTables_wrapper > .row:first-child {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
  }
  .dataTables_filter {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
  }
  .dataTables_filter > label {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    margin-bottom: 0 !important;
    gap: 0.35rem !important;
  }
  .dataTables_filter > label > span {
    margin-right: 0 !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: #64748b !important;
    float: none !important;
  }
  .dataTables_filter .form-control-feedback {
    width: 100% !important;
    display: block !important;
  }
  .dataTables_filter input[type="search"],
  .dataTables_filter input,
  .dataTables_filter .form-control {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .dataTables_filter .dt-search-group,
  .dataTables_filter .rekap-search-group {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }
  .dataTables_filter .dt-search-group input[type="search"],
  .dataTables_filter .dt-search-group input,
  .dataTables_filter .rekap-search-group input[type="search"] {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: 1% !important;
    max-width: none !important;
  }
  .dataTables_length {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
  }
  .dataTables_length > label {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    margin-bottom: 0 !important;
  }
  .dataTables_length > label > span {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: #64748b !important;
    float: none !important;
  }
  .dataTables_length select {
    min-width: 80px !important;
  }
}

.datatable-footer,
.dataTables_wrapper > .row:last-child {
  padding-top: 1.1rem;
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

.datatable-scroll {
  width: 100%;
  overflow-x: auto;
}

.dataTable thead th.sorting,
.dataTable thead th.sorting_asc,
.dataTable thead th.sorting_desc {
  padding-right: 24px !important;
  position: relative !important;
  white-space: nowrap !important;
}

.dataTable thead th.sorting:before,
.dataTable thead th.sorting:after,
.dataTable thead th.sorting_asc:before,
.dataTable thead th.sorting_asc:after,
.dataTable thead th.sorting_desc:before,
.dataTable thead th.sorting_desc:after {
  position: absolute !important;
  right: 6px !important;
  font-size: 0.65rem !important;
  opacity: 0.5;
}

/* Nuke all table row/cell border radius from all.min.css and datatables */
html body table.table tbody tr td:first-child,
html body table.table tbody tr td:last-child,
html body table.table thead tr th:first-child,
html body table.table thead tr th:last-child,
html body table.table tbody tr td,
html body table.table thead tr th,
html body table.table tr,
html body table.table tbody tr:nth-of-type(odd) td,
html body table.table-striped tbody tr td {
  border-radius: 0 !important;
}

/* ============================================================
   PREMIUM DATATABLES PAGINATION & RESPONSIVE CONTAINMENT
   ============================================================ */
/* Pastikan wrapper DataTables tidak terdistorsi bila dibungkus table-responsive */
.table-responsive:has(.dataTables_wrapper) {
  overflow-x: visible;
}

.dataTables_wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.dataTables_wrapper .datatable-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.datatable-footer {
  padding: 1.25rem 0 0.5rem 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
  margin-top: 0.75rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.datatable-footer .dataTables_info {
  font-size: 0.82rem;
  color: #6c757d;
  font-weight: 500;
  margin: 0 !important;
  padding: 0 !important;
}

.datatable-footer .dataTables_paginate {
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100%;
}

.dataTables_paginate .pagination {
  margin: 0;
  gap: 0.35rem; /* Separate the buttons from a train into islands */
  max-width: 100%;
  display: flex;
  align-items: center;
}

/* Hilangkan border bawaan dan jadikan background transparan secara default */
.dataTables_paginate .page-item .page-link {
  border: none !important;
  background: transparent !important;
  color: #6c757d !important;
  border-radius: 8px !important; /* Soft pill shape */
  padding: 0.4rem 0.85rem !important;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.2, 0.9, 0.2, 1);
}

/* Hover state untuk tombol yang tidak aktif */
.dataTables_paginate .page-item:not(.active):not(.disabled) .page-link:hover {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #212529 !important;
  transform: translateY(-1px);
}

/* Active State (Halaman saat ini) */
.dataTables_paginate .page-item.active .page-link {
  background: #0d6efd !important; /* Premium Blue Accent */
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25) !important; /* Efek Elevasi / Melayang Biru */
  border-radius: 8px !important;
}

/* Disabled State (Prev/Next bila mentok) */
.dataTables_paginate .page-item.disabled .page-link {
  background: transparent !important;
  color: #ced4da !important;
  opacity: 0.7;
  cursor: not-allowed;
}

/* Tata letak untuk mobile screen */
@media (max-width: 767.98px) {
  .datatable-footer {
    flex-direction: column !important;
    gap: 0.85rem !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center;
    width: 100% !important;
    max-width: 100% !important;
    padding: 1rem 0 0.5rem 0 !important;
  }

  .datatable-footer .dataTables_info {
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
  }

  .datatable-footer .dataTables_paginate {
    width: 100%;
    display: flex;
    justify-content: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .datatable-footer .dataTables_paginate::-webkit-scrollbar {
    display: none;
  }

  .dataTables_paginate .pagination {
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .dataTables_paginate .page-item .page-link {
    padding: 0.35rem 0.65rem !important;
    font-size: 0.78rem;
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .dataTables_paginate .page-item.previous .page-link,
  .dataTables_paginate .page-item.next .page-link {
    padding: 0.35rem 0.75rem !important;
    font-size: 0.78rem;
  }
}

@media (max-width: 575.98px) {
  .dataTables_paginate .pagination {
    gap: 0.2rem;
  }

  .dataTables_paginate .page-item .page-link {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.74rem;
    min-width: 28px;
    height: 28px;
    border-radius: 6px !important;
  }

  .dataTables_paginate .page-item.previous .page-link,
  .dataTables_paginate .page-item.next .page-link {
    padding: 0.25rem 0.55rem !important;
    font-size: 0.74rem;
  }
}

/* --- MIGRATED FROM v_lihat_kendaraan.php --- */

/* ============================================================
       PREMIUM TYPOGRAPHY & LAYOUT (Design Taste Refinement)
       ============================================================ */

/* Set font-size for better legibility (0.875rem instead of 0.82rem) */
table.tbl-lihat {
  font-size: 0.875rem !important;
}

table.tbl-lihat td,
table.tbl-lihat th,
table.tbl-lihat span,
table.tbl-lihat a,
table.tbl-lihat small,
table.tbl-lihat div,
table.tbl-lihat p {
  font-size: 0.875rem !important;
  line-height: 1.5 !important;
}

/* Looser padding for breathing room */
table.tbl-lihat td,
table.tbl-lihat th {
  padding: 8px 12px !important;
  vertical-align: middle !important;
}

/* Premium subtle table headers */
table.tbl-lihat thead th {
  white-space: nowrap !important;
  font-weight: 600 !important;
  font-size: 0.8rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: #64748b !important;
  background-color: #f8fafc !important;
  border-bottom: 2px solid #e2e8f0 !important;
}

/* Card header loose */
.card-header.py-3 {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

/* Premium Title Styling */
.card-header h5 {
  font-size: 1.15rem !important;
  letter-spacing: -0.02em !important;
  color: #0f172a !important;
}

/* Micro-Typography for Sub-Headers */
.section-title-header {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #64748b !important;
  margin-top: 1.25rem !important;
  margin-bottom: 0.75rem !important;
}

/* Pastikan dropdown menu melayang keluar kartu tanpa memicu scrollbar */
.glass-card {
  position: relative;
  z-index: 1;
  overflow: visible !important;
}

.glass-card:has(.dropdown-menu.show),
.glass-card.active-dropdown {
  z-index: 1050 !important;
}

.glass-card .card-body {
  overflow: visible !important;
}

.glass-card .table-responsive {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

.glass-card .table-responsive .dropdown-menu,
.dropdown-menu.show {
  z-index: 1065 !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.photo-hover-zoom:hover {
  transform: scale(1.06) !important;
}

/* --- MIGRATED FROM v_lihat_kendaraan.php --- */

table.tbl-lihat td .badge-status {
  display: inline-block !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  padding: 1px 6px !important;
  border-radius: 4px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
}

table.tbl-lihat td .badge-status-active {
  background: rgba(25, 135, 84, 0.12) !important;
  color: #198754 !important;
  border: 1px solid rgba(25, 135, 84, 0.35) !important;
}

table.tbl-lihat td .badge-status-inactive {
  background: rgba(108, 117, 125, 0.12) !important;
  color: #6c757d !important;
  border: 1px solid rgba(108, 117, 125, 0.35) !important;
}

/* --- MIGRATED FROM v_detail_uji.php --- */

/* ===================== DETAIL UJI STYLES ===================== */
.detail-info-row {
  display: flex;
  align-items: flex-start;
  padding: 7px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.84rem;
}

.detail-info-row:last-child {
  border-bottom: none;
}

.detail-info-label {
  width: 145px;
  flex-shrink: 0;
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding-top: 1px;
}

.detail-info-value {
  color: #1e293b;
  font-weight: 500;
  flex: 1;
}

.section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #94a3b8;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 8px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title i {
  font-size: 14px;
  color: #3b82f6;
}

/* Badge cells untuk tabel hasil */
.badge-cell {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.badge-cell-success {
  background: #dcfce7;
  color: #15803d;
}

.badge-cell-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.badge-cell-secondary {
  background: #f1f5f9;
  color: #94a3b8;
}

/* Tabel hasil uji - MAX SPECIFICITY */
html body .glass-card .table.tbl-hasil,
html body .table.tbl-hasil {
  font-size: 0.85rem !important;
}

html body .glass-card .table.tbl-hasil thead th,
html body .table.tbl-hasil thead th {
  background: #f1f5f9 !important;
  color: #334155 !important;
  font-weight: 700 !important;
  font-size: 0.8rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  padding: 12px 10px !important;
  border: 1px solid #cbd5e1 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

html body .glass-card .table.tbl-hasil tbody td,
html body .table.tbl-hasil tbody td {
  padding: 8px 10px !important;
  border: 1px solid #cbd5e1 !important;
  vertical-align: middle !important;
  text-align: center !important;
  line-height: 1.7 !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  color: #334155 !important;
}

.tbl-hasil tbody tr:hover {
  background: #eef2ff;
}

/* Nilai cells - soft semantic colors (readable, not noisy) */
.nilai-pass {
  color: #166534;
}

.nilai-fail {
  color: #991b1b;
}

/* ===================== FOTO KENDARAAN (4 COLUMNS) ===================== */
.foto-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 992px) {
  .foto-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.foto-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #f1f5f9;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: zoom-in;
}

.foto-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 50%);
  pointer-events: none;
  opacity: 0.8;
  transition: opacity 0.5s ease;
}

.foto-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.2);
}

.foto-item:hover::after {
  opacity: 1;
}

.foto-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.foto-item:hover img {
  transform: scale(1.05);
}

.foto-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 10;
  background: rgba(15, 23, 42, 0.65); /* slate-900 */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  text-transform: capitalize;
  letter-spacing: 0.3px;
  pointer-events: none; /* so click passes through to link */
}

/* Clean up generic link styling inside grid */
.foto-item a {
  display: block;
  width: 100%;
  height: 100%;
}

/* Catatan kerusakan (Premium UI) */
.catatan-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.catatan-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  transition: width 0.2s ease;
}

.catatan-row.belum::before {
  background: #e11d48;
}

.catatan-row.sudah::before {
  background: #059669;
}

.catatan-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  border-color: #cbd5e1;
}

.icon-status {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.icon-status-belum {
  background: #fff1f2;
  color: #e11d48;
}

.icon-status-sudah {
  background: #ecfdf5;
  color: #059669;
}

/* --- EXTRACTED INLINE STYLES FROM v_detail_uji.php --- */
.icon-gradient-blue {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.icon-gradient-blue i {
  font-size: 22px;
  color: #fff;
}
.subtitle-sm {
  font-size: 0.8rem;
  color: #94a3b8;
}
.badge-result-lg {
  color: #fff;
  padding: 6px 18px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.badge-result-success {
  background: linear-gradient(135deg, #16a34a, #15803d);
}
.badge-result-danger {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
}
.table-wrapper-rounded {
  border: none;
  background: transparent;
  overflow: visible;
}
.empty-state-box {
  background: #f8fafc;
  border-radius: 12px;
  border: 1px dashed #e2e8f0;
  font-size: 0.84rem;
}
.empty-state-icon {
  font-size: 28px;
  color: #cbd5e1;
  display: block;
  margin-bottom: 6px;
}
.empty-state-icon-lg {
  font-size: 48px;
  color: #cbd5e1;
  display: block;
  margin-bottom: 12px;
}
.note-resolved {
  font-size: 0.85rem;
  text-decoration: line-through;
  color: #64748b;
}
.note-unresolved {
  font-size: 0.85rem;
  color: #1e293b;
}
.text-xs {
  font-size: 0.75rem;
}
.text-sm-custom {
  font-size: 0.78rem;
}
.icon-sm {
  font-size: 11px;
}
.text-purple {
  color: #8b5cf6 !important;
}
.fs-18 {
  font-size: 18px;
}
.fs-24 {
  font-size: 24px;
}

.badge-status-lg {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
}

/* ===================== SECTION DIVIDER (Premium Separator) ===================== */
.section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 20px;
  max-width: 100%;
  overflow: hidden;
}

.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1 1 12px;
  min-width: 8px;
  height: 1px;
  background: #e2e8f0;
}

.section-divider-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #334155;
  text-align: center;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  line-height: 1.4;
  max-width: 100%;
  flex: 0 1 auto;
}

@media (max-width: 575.98px) {
  .section-divider {
    gap: 8px;
    margin: 20px 0 16px;
  }
  .section-divider-label {
    font-size: 0.76rem;
    letter-spacing: 0.5px;
    line-height: 1.35;
  }
  .section-divider::before,
  .section-divider::after {
    min-width: 6px;
  }
}

/* Catatan Grid Detailed Layout */
.catatan-grid {
  display: flex;
  flex-direction: column;
}

.catatan-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.catatan-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
  color: #64748b;
}

/* Minimalist Catatan List */
.catatan-list-wrapper {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
}
.catatan-item-compact {
  display: flex;
  align-items: flex-start;
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  gap: 14px;
  transition: background 0.2s ease;
}
.catatan-item-compact:last-child {
  border-bottom: none;
}
.catatan-item-compact:hover {
  background: #f8fafc;
}

.catatan-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.catatan-item-compact.is-pending .catatan-dot {
  background: #e11d48;
  box-shadow: 0 0 0 3px #ffe4e6;
}
.catatan-item-compact.is-resolved .catatan-dot {
  background: #10b981;
  box-shadow: 0 0 0 3px #d1fae5;
}

.catatan-content {
  flex-grow: 1;
  min-width: 0;
}
.catatan-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}
.catatan-desc {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 4px;
  line-height: 1.5;
}
.catatan-meta {
  font-size: 0.75rem;
  color: #94a3b8;
  display: flex;
  gap: 16px;
  margin-top: 8px;
}
.catatan-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.badge-pending {
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-resolved {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
}

/* DANGER HEADER ICON BOX OVERRIDES (CLEAN ARCHITECTURE) */
.header-icon-box.header-icon-box-danger {
  background-color: rgba(220, 53, 69, 0.12);
  color: #dc3545;
  box-shadow: 0 2px 6px rgba(220, 53, 69, 0.08);
}
.header-icon-box.header-icon-box-danger > i {
  color: #dc3545;
}

/* WARNING HEADER ICON BOX OVERRIDES (CLEAN ARCHITECTURE) */
.header-icon-box.header-icon-box-warning {
  background-color: rgba(255, 193, 7, 0.15);
  color: #f59e0b;
  box-shadow: 0 2px 6px rgba(255, 193, 7, 0.08);
}
.header-icon-box.header-icon-box-warning > i {
  color: #f59e0b;
}

/* Form Validation */
:root body .is-invalid.is-invalid,
:root body .is-invalid.is-invalid .select2-selection,
:root body .input-group:has(.is-invalid) {
  border-color: #dc3545 !important;
  background-color: #fff8f8 !important;
}
:root body .input-group:has(.is-invalid) > .form-control {
  background-color: transparent !important;
}

/* Custom Validation Badges for Forms */
.badge-lulus {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}
.badge-gagal {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* Parent container highlighting using :has() for nested inputs */
.input-group:has(.input-lulus) {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}
.input-group:has(.input-gagal) {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

/* Uji Item Dev Custom Badges */
.badge-soft-blue {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background-color: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Premium Table Font Sizes */
.table-premium,
.table-premium th,
.table-premium td {
  font-size: 0.82rem;
}
.text-sm-premium {
  font-size: 0.82rem;
}

/* Soft Pastel Buttons for Uji Items */
.table .btn-squircle.btn-soft-danger {
  background-color: rgba(239, 68, 68, 0.1) !important;
  color: #ef4444 !important;
  border: 1px solid rgba(239, 68, 68, 0.05) !important;
  box-shadow: none !important;
}
.table .btn-squircle.btn-soft-danger:hover {
  background-color: rgba(239, 68, 68, 0.15) !important;
  color: #dc2626 !important;
  transform: translateY(-1px) !important;
}

.table .btn-squircle.btn-soft-success {
  background-color: rgba(34, 197, 94, 0.15) !important;
  color: #16a34a !important;
  border: 1px solid rgba(34, 197, 94, 0.1) !important;
  box-shadow: none !important;
}
.table .btn-squircle.btn-soft-success:hover {
  background-color: rgba(34, 197, 94, 0.25) !important;
  color: #15803d !important;
  transform: translateY(-1px) !important;
}

/* Dropdown CCTV Button Exception */
.table .btn-squircle.btn-cctv-dropdown {
  width: auto !important;
  min-width: 46px;
  padding-left: 8px !important;
  padding-right: 6px !important;
}

/* Force icon color inheritance */
.table .btn-squircle.btn-soft-danger i,
.table .btn-squircle.btn-soft-danger span {
  color: #ef4444 !important;
}

.table .btn-squircle.btn-soft-success i,
.table .btn-squircle.btn-soft-success span {
  color: #16a34a !important;
}

.table .btn-squircle.btn-danger i,
.table .btn-squircle.btn-danger span,
.table .btn-squircle.btn-danger:hover i,
.table .btn-squircle.btn-danger:hover span,
.table .btn-squircle.btn-success i,
.table .btn-squircle.btn-success span,
.table .btn-squircle.btn-success:hover i,
.table .btn-squircle.btn-success:hover span,
.table .btn-primary i,
.table .btn-primary span,
.table .btn-primary:hover i,
.table .btn-primary:hover span,
.table a.btn-primary i,
.table a.btn-primary span,
.table a.btn-primary:hover i,
.table a.btn-primary:hover span {
  color: #ffffff !important;
}

/* Force 4:3 Ratio for all Photo Containers */
.photo-container {
  aspect-ratio: 4/3 !important;
  display: flex;
  flex-direction: column;
}
.cctv-fallback-container,
.cctv-offline-container {
  flex-grow: 1;
}

/* CCTV Fallback Typography */
.cctv-error-title,
.cctv-offline-title {
  display: block !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  margin-bottom: 2px !important;
}

.cctv-error-desc {
  display: block !important;
  font-size: 0.75rem !important;
  line-height: 1.4 !important;
  max-width: 90% !important;
  margin: 0 auto !important;
}

/* =========================================================================
   PREMIUM FILE UPLOAD (DROPZONE)
   ========================================================================= */
.custom-file-upload {
  border: 2px dashed rgba(148, 163, 184, 0.6) !important;
  border-radius: 16px !important;
  background-color: #f8fafc !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  min-height: 200px !important;
  overflow: hidden !important;
  aspect-ratio: 4/3 !important;
}

.custom-file-upload:hover {
  border-color: #3b82f6 !important;
  background-color: #ffffff !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 25px -5px rgba(59, 130, 246, 0.15) !important;
}

.custom-file-upload.has-image {
  border: 2px solid transparent !important;
  background-color: transparent !important;
}

.upload-overlay {
  opacity: 0 !important;
  background: rgba(15, 23, 42, 0.65) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  transition: opacity 0.3s ease-in-out !important;
}

.custom-file-upload.has-image:hover .upload-overlay {
  opacity: 1 !important;
}

.upload-placeholder .ph-upload-simple {
  display: inline-block;
  transition: transform 0.3s ease;
}

.custom-file-upload:hover .upload-placeholder .ph-upload-simple {
  transform: translateY(-5px);
  color: #3b82f6 !important;
}

/* Table Column Widths */
.w-50px {
  width: 50px !important;
}
.w-90px {
  width: 90px !important;
}
.w-140px {
  width: 140px !important;
}
.w-170px {
  width: 170px !important;
}

/* Rounded Overrides */
.rounded-10px {
  border-radius: 10px !important;
}
/* WARNING HEADER ICON BOX OVERRIDES (CLEAN ARCHITECTURE) */

/* SIMPKB Theme Segmented Toggles (Visual Tests) */
.btn-toggle-success,
.btn-toggle-danger,
.btn-primary {
  background-color: #f1f3f5;
  color: #868e96;
  border: 1px solid #dee2e6;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
}
.btn-toggle-success:hover,
.btn-toggle-danger:hover,
.btn-primary:hover {
  background-color: #e9ecef;
}
.btn-check:checked + .btn-toggle-success {
  background: linear-gradient(180deg, #16a34a, #15803d) !important;
  color: #ffffff !important;
  border-color: #15803d !important;
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.3) !important;
}

.btn-toggle-danger:hover {
  background-color: #fef2f2 !important;
  color: #ef4444 !important;
  border-color: #ef4444 !important;
}

.btn-check:checked + .btn-toggle-danger {
  background: linear-gradient(180deg, #ef4444, #dc2626) !important;
  color: #ffffff !important;
  border-color: #dc2626 !important;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3) !important;
}

.btn-toggle-primary:hover {
  background-color: #eff6ff !important;
  color: #2563eb !important;
  border-color: #2563eb !important;
}

.btn-check:checked + .btn-toggle-primary {
  background: linear-gradient(180deg, #0d6efd, #0b5ed7) !important;
  color: #ffffff !important;
  border-color: #0b5ed7 !important;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3) !important;
}
.btn-taste-success,
.btn-taste-danger,
.btn-taste-primary {
  background-color: #f1f3f5;
  color: #868e96;
  border: 1px solid #dee2e6;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
}
.btn-taste-success:hover,
.btn-taste-danger:hover,
.btn-taste-primary:hover {
  background-color: #e9ecef;
}
.btn-check:checked + .btn-taste-success {
  background-color: #20c997; /* Soft Premium Green */
  color: white;
  border-color: #20c997;
  box-shadow: 0 4px 10px rgba(32, 201, 151, 0.2);
}
.btn-check:checked + .btn-taste-danger {
  background-color: #ff6b6b; /* Soft Premium Red */
  color: white;
  border-color: #ff6b6b;
  box-shadow: 0 4px 10px rgba(255, 107, 107, 0.2);
}
.btn-check:checked + .btn-taste-primary {
  background-color: #339af0; /* Soft Premium Blue */
  color: white;
  border-color: #339af0;
  box-shadow: 0 4px 10px rgba(51, 154, 240, 0.2);
}

/* Taste Design: Specific hierarchy selectors to override global icon colors without !important */
div.badge-lulus i[class*="ph-"],
div.badge-lulus i[class*="ph-"] {
  color: #16a34a;
}
div.badge-gagal i[class*="ph-"] {
  color: #dc2626;
}

/* Utilitas tambahan SIMPKB 2026 */
.min-w-90px {
  min-width: 90px;
}
.h-42px {
  height: 42px;
}

/* Premium Scrollbar for Search Results */
.navbar-floating-pill {
  z-index: 1039;
}

#navbar-search-results {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
}

#navbar-search-results::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

#navbar-search-results::-webkit-scrollbar-track {
  background: transparent;
}

#navbar-search-results::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 10px;
  transition: background 0.3s;
}

#navbar-search-results:hover::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.6);
}

#navbar-search-results::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.8);
}

.navbar-search-results-box {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 280px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  z-index: 9999;
  overflow: hidden;
  max-height: 360px;
  overflow-y: auto;
}

.btn-action-success {
  background-color: #ffffff !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
  transition: all 0.2s ease !important;
}
.btn-action-success:hover {
  background-color: #10b981 !important;
  color: #ffffff !important;
  border-color: #10b981 !important;
}

/* Datatables Simple Table Formats */
.table-responsive #simple-table td,
.table-responsive #simple-table th {
  padding: 5px 8px;
  vertical-align: middle;
}

.table-responsive #simple-table tbody tr {
  line-height: 1.3;
}

.table-responsive #simple-table thead th.sorting,
.table-responsive #simple-table thead th.sorting_asc,
.table-responsive #simple-table thead th.sorting_desc {
  padding-right: 22px;
  position: relative;
  white-space: nowrap;
}

.table-responsive #simple-table thead th.text-center.sorting,
.table-responsive #simple-table thead th.text-center.sorting_asc,
.table-responsive #simple-table thead th.text-center.sorting_desc {
  padding-right: 24px;
  padding-left: 12px;
}

.table-responsive #simple-table thead th.sorting:before,
.table-responsive #simple-table thead th.sorting:after,
.table-responsive #simple-table thead th.sorting_asc:before,
.table-responsive #simple-table thead th.sorting_asc:after,
.table-responsive #simple-table thead th.sorting_desc:before,
.table-responsive #simple-table thead th.sorting_desc:after {
  position: absolute;
  right: 6px;
  font-size: 0.65rem;
  opacity: 0.5;
}

/* Rounded Input Group for Dashboards */
.glass-card .input-group,
.container-fluid .input-group {
  border-radius: 9px;
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  transition: all 0.15s ease-in-out;
  height: 38px;
}

.glass-card .input-group:focus-within,
.container-fluid .input-group:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.glass-card .input-group > .form-control:first-child,
.glass-card .input-group .form-control:first-child,
.container-fluid .input-group > .form-control:first-child,
.container-fluid .input-group .form-control:first-child {
  border: none;
  border-radius: 9px 0 0 9px;
  box-shadow: none;
  outline: none;
  height: 100%;
  padding: 0.55rem 0.9rem;
  background: transparent;
}

.glass-card .input-group > .input-group-text:last-child,
.glass-card .input-group .input-group-text:last-child,
.container-fluid .input-group > .input-group-text:last-child,
.container-fluid .input-group .input-group-text:last-child {
  border: none;
  border-left: 1px solid #cbd5e1;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: 9px;
  border-bottom-right-radius: 9px;
  background-color: #f8fafc;
  color: #64748b;
  padding: 0 0.9rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* General Utilities */
.cursor-pointer {
  cursor: pointer !important;
}
.min-w-180px {
  min-width: 180px !important;
}
.w-40px {
  width: 40px !important;
}
.w-220px {
  width: 220px !important;
}
.table-wrapper-rounded {
  border: none;
  background: transparent;
  min-height: 250px;
}
.table-sm-custom {
  font-size: 0.9rem !important;
}

/* Datatables Text Formatting */
.dt-text-xs {
  font-size: 0.85rem !important;
}
.dt-text-sm {
  font-size: 0.9rem !important;
}
.dt-text-bold {
  font-weight: 700;
}
.dt-text-semibold {
  font-weight: 600;
}
.dt-text-muted-xs {
  font-size: 0.8rem !important;
  color: #6c757d;
  display: block;
}
.dt-text-darker {
  color: #475569;
}

/* Custom Soft Badges for Datatables */
.badge-soft {
  display: inline-block;
  font-size: 0.8rem !important;
  font-weight: 600;
  padding: 2px 7px !important;
  border-radius: 4px;
}
.badge-soft-danger {
  background: rgba(220, 53, 69, 0.12);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.35);
}
.badge-soft-success {
  background: rgba(25, 135, 84, 0.12);
  color: #198754;
  border: 1px solid rgba(25, 135, 84, 0.35);
}
.badge-soft-primary {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.badge-soft-info {
  background: rgba(13, 202, 240, 0.12);
  color: #0891b2;
  border: 1px solid rgba(13, 202, 240, 0.3);
}
.badge-soft-warning {
  background: rgba(255, 193, 7, 0.15);
  color: #b45309;
  border: 1px solid rgba(255, 193, 7, 0.35);
}

/* Glass UI Header Refactor */
.z-1039 {
  z-index: 1039 !important;
}
.tracking-wide {
  letter-spacing: 0.5px;
}
.status-indicator-glow {
  width: 6px;
  height: 6px;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
}

.navbar-search-results-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 280px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  z-index: 9999;
  overflow: hidden;
  max-height: 360px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
}
.navbar-search-results-dropdown::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.navbar-search-results-dropdown::-webkit-scrollbar-track {
  background: transparent;
}
.navbar-search-results-dropdown::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 10px;
  transition: background 0.3s;
}
.navbar-search-results-dropdown:hover::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.6);
}
.navbar-search-results-dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.8);
}
.dropdown-notif {
  width: 360px !important;
  max-width: calc(100vw - 24px) !important;
  border-radius: 16px !important;
  right: 0 !important;
  left: auto !important;
  top: calc(100% + 8px) !important;
  margin: 0 !important;
}

.bg-purple {
  --bs-bg-opacity: 1;
  background-color: rgba(124, 58, 237, var(--bs-bg-opacity)) !important;
}
.bg-purple.bg-opacity-10,
.bg-opacity-10.bg-purple {
  --bs-bg-opacity: 0.1 !important;
  background-color: rgba(124, 58, 237, 0.1) !important;
}
.bg-purple.bg-opacity-20,
.bg-opacity-20.bg-purple {
  --bs-bg-opacity: 0.2 !important;
  background-color: rgba(124, 58, 237, 0.2) !important;
}
.text-purple {
  color: #7c3aed !important;
}
.badge.bg-purple,
.badge-purple,
.badge-soft-purple {
  background-color: #f3e8ff !important;
  color: #7c3aed !important;
  border: 1px solid rgba(124, 58, 237, 0.25) !important;
}
.dropdown-profile {
  border-radius: 14px;
  padding: 6px;
  min-width: 200px;
}

/* Breadcrumb Styles */
.tabular-nums {
  font-variant-numeric: tabular-nums;
}
.breadcrumb-icon-box {
  width: 28px;
  height: 28px;
  background: #eff6ff;
  border-radius: 8px;
  flex-shrink: 0;
}

/* ==========================================================================
   GLASS CARD & LOGIN STYLES
   ========================================================================== */

/* Menghilangkan layer luar yang membuat form terlihat numpuk/berlapis ganda */
.login-form {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  width: 100%;
  max-width: 24rem;
}

/* Glass Card Customization untuk Login dan Komponen Lainnya */
.glass-card {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: 1rem !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
  overflow: visible !important;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

/* Efek pada Card saat di-hover */
.glass-card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08) !important;
}

/* Mematikan efek glow/blur biru bawaan tema */
.card-liquid-glow,
.card-liquid-glow2,
.card-liquid-edge {
  display: none !important;
}

/* --- Animasi Hover Halus & Elegan --- */
.login-form .btn-primary,
.login-form .form-control {
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

/* Efek tombol elegan */
.login-form .btn-primary:hover {
  box-shadow: 0 10px 25px rgba(0, 122, 255, 0.35) !important;
  filter: brightness(1.08);
}

.login-form .btn-primary:active {
  box-shadow: 0 5px 15px rgba(0, 122, 255, 0.2) !important;
}

/* Efek fokus pada input yang lembut */
.login-form .form-control:focus {
  border-color: #007aff !important;
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.15) !important;
}

/* Styling spesifik untuk gambar Captcha CI4 */
.captcha-preview img {
  width: 150px !important;
  height: 34px !important;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Penyesuaian jarak Icon dalam input */
.login-form .form-control-feedback-start .form-control {
  padding-left: 3.2rem !important;
}

.login-form .form-control-feedback-start .form-control-feedback-icon {
  width: 3.2rem !important;
  left: 0 !important;
}

/* Memastikan warna text-danger benar-benar merah untuk pesan error */
.glass-card small.text-danger,
.text-danger {
  color: #ef4444 !important;
}

/* Utility classes */
.login-content-area {
  padding-bottom: 8vh;
  flex: 1;
}

/* Force page-content to have zero margin-top to fix off-center issue */
body .page-content {
  margin-top: 0 !important;
}

.password-toggle-btn {
  z-index: 10;
  cursor: pointer;
}

.captcha-wrapper {
  gap: 12px;
}

.turnstile-wrapper {
  position: relative;
  z-index: 9999;
  pointer-events: auto;
}

.footer-text-small {
  font-size: 0.85rem;
}

.footer-link-custom {
  opacity: 0.8;
  transition: opacity 0.3s;
}

.footer-link-custom:hover {
  opacity: 1;
}

/* Inline styles replacements */
.ps-2-5em {
  padding-left: 2.5em !important;
}
.switch-2em {
  width: 2em !important;
  height: 1.1em !important;
}
.text-xs-caps {
  font-size: 0.75rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}
.fs-09rem {
  font-size: 0.9rem !important;
}
.fs-115rem {
  font-size: 1.15rem !important;
}
.fs-085rem {
  font-size: 0.85rem !important;
}
.min-w-80px {
  min-width: 80px !important;
}
.max-w-180px {
  max-width: 180px !important;
}

.h-42px {
  height: 42px !important;
}
.tracking-wide {
  letter-spacing: 0.5px !important;
}

/* Dropdown Hover & Fixes */
.dropdown-hover:hover .dropdown-menu {
  display: block;
  margin-top: 0;
  animation: fadeDropdown 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}
@keyframes fadeDropdown {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.btn-action-primary.dropdown-toggle:active,
.btn-action-primary.dropdown-toggle.show {
  transform: none !important;
}

.dropdown-hover:hover .btn-action-primary {
  transform: none !important;
}

.btn-action-primary:active,
.btn-action-primary.show,
.btn-action-primary.dropdown-toggle.show {
  background: linear-gradient(180deg, #0a58ca, #0b5ed7) !important;
  color: #fff !important;
  transform: translateY(1px) !important;
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
}

/* ==========================================================================
   TV LIVE MONITOR — Hasil Uji (v_hasil_uji.php)
   Locked to 100vh, zero scroll, 2-column layout for TV screens.
   ========================================================================== */

.tv-monitor-body {
  height: 100vh !important;
  width: 100vw !important;
  overflow: hidden !important;
  margin: 0;
  padding: 12px 12px 24px 12px;
  background: #f1f5f9;
  display: flex;
  flex-direction: column;
}

.tv-monitor-grid {
  display: flex;
  gap: 12px;
  flex: 1;
  min-height: 0; /* flex child shrink fix */
  overflow: hidden;
}

.tv-col-left {
  flex: 0 0 32%; /* Narrower left column for identity/notes */
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow: hidden;
}

.tv-col-right {
  flex: 1; /* Wider right column (68%) for parameters and landscape photos */
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow: hidden;
}

.tv-damage-box {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

html body .tv-damage-box .tv-damage-title {
  text-align: center;
  width: 100%;
}

/* Premium Status Banners for TV */
.tv-banner-lulus {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}
.tv-banner-gagal {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}
.tv-banner-tunggu {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.tv-banner-icon {
  font-size: 3rem;
}
.tv-banner-text {
  font-size: 2rem;
}

/* Typography Utilities to replace inline styles */
.tv-icon-xl {
  font-size: 2.8rem;
}
.tv-icon-xxl {
  font-size: 5rem;
}
.tv-title-lg {
  font-size: 1.6rem;
  letter-spacing: 1px;
}
.tv-text-md {
  font-size: 0.95rem;
}
.tv-text-sm {
  font-size: 0.85rem;
}
.tv-text-xs {
  font-size: 0.7rem;
}
.tv-icon-param {
  font-size: 1.3rem;
}
.tv-empty-box {
  max-width: 500px;
}

html body .tv-empty-box .tv-empty-logo {
  height: 100px;
  width: auto;
  object-fit: contain;
}
.tv-min-h-0 {
  min-height: 0 !important;
}
.tv-badge {
  min-height: 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}
.tv-badge-sm {
  font-size: 0.85rem; /* Diperbesar agar jelas dari jarak jauh */
  padding: 6px 14px;
  letter-spacing: 1px;
  font-weight: 800; /* Extra Bold */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08); /* Efek melayang sedikit */
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Punchy Colors for TV distance viewing */
.tv-badge-sm.bg-success {
  background-color: #16a34a !important; /* Hijau solid yang lebih terang & menyala */
  color: #ffffff !important;
}
.tv-badge-sm.bg-danger {
  background-color: #dc2626 !important; /* Merah terang menyala */
  color: #ffffff !important;
}
.tv-wrap-label {
  max-width: 100px;
  white-space: normal;
}

/* Constrain images loaded via AJAX inside the foto panel */
.tv-col-right #dt_foto {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tv-col-right #dt_foto .row {
  flex: 1;
  margin: 0;
  min-height: 0;
}

.tv-col-right #dt_foto .row > div {
  height: 50%; /* Assume 2 rows */
  padding: 4px;
}

.tv-col-right #dt_foto img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.tv-photo-card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 16px; /* Elegant large radius */
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: #fff;
}

.tv-photo-label {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.75); /* Slate 900 */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
/* =========================================================================
   UNIVERSAL 3D SKEUOMORPHIC GLOSS PILL BUTTON SYSTEM (Dashboard & Apps)
   Using High-Specificity Hierarchical Selectors (No !important)
   ========================================================================= */

/* Base Button Shape & Interaction */
html body .btn,
html body .page-content .btn,
html body .content-wrapper .btn,
html body .content .btn,
html body .modal .btn,
html body .card .btn,
html body button.btn,
html body a.btn,
html body input[type="submit"].btn,
html body input[type="button"].btn,
html body .swal2-actions .swal2-confirm,
html body .swal2-actions .swal2-cancel {
  border-radius: 9999px;
  font-weight: 600;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  text-decoration: none;
}

html body .btn:hover,
html body .page-content .btn:hover,
html body .content-wrapper .btn:hover,
html body .content .btn:hover,
html body button.btn:hover,
html body a.btn:hover,
html body input[type="submit"].btn:hover,
html body .swal2-actions .swal2-confirm:hover,
html body .swal2-actions .swal2-cancel:hover {
  transform: translateY(-2px);
}

html body .btn:active,
html body .page-content .btn:active,
html body .content-wrapper .btn:active,
html body .content .btn:active,
html body button.btn:active,
html body a.btn:active,
html body input[type="submit"].btn:active,
html body .swal2-actions .swal2-confirm:active,
html body .swal2-actions .swal2-cancel:active {
  transform: translateY(1px);
}

/* 1. Primary Blue 3D Pill */
html body .btn-primary,
html body .page-content .btn-primary,
html body .content-wrapper .btn-primary,
html body .content .btn-primary,
html body .card .btn-primary,
html body .btn-action-primary,
html body .page-content .btn-action-primary,
html body .swal2-actions .swal2-confirm.btn-primary,
html body .swal2-actions .swal2-styled.swal2-confirm {
  background: linear-gradient(180deg, #38bdf8 0%, #2563eb 50%, #1d4ed8 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.55),
    inset 0 -2px 3px rgba(0, 0, 0, 0.3),
    0 4px 14px -2px rgba(29, 78, 216, 0.4),
    0 2px 5px rgba(0, 0, 0, 0.1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
html body .btn-primary:hover,
html body .page-content .btn-primary:hover,
html body .content-wrapper .btn-primary:hover,
html body .content .btn-primary:hover,
html body .card .btn-primary:hover,
html body .btn-action-primary:hover,
html body .page-content .btn-action-primary:hover,
html body .swal2-actions .swal2-confirm.btn-primary:hover,
html body .swal2-actions .swal2-styled.swal2-confirm:hover {
  background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 50%, #1e40af 100%);
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.7),
    inset 0 -2px 3px rgba(0, 0, 0, 0.3),
    0 8px 20px -2px rgba(29, 78, 216, 0.5),
    0 3px 8px rgba(0, 0, 0, 0.15);
  color: #ffffff;
}
html body .btn-primary:active,
html body .page-content .btn-primary:active,
html body .content-wrapper .btn-primary:active,
html body .content .btn-primary:active,
html body .swal2-actions .swal2-styled.swal2-confirm:active {
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.4),
    inset 0 -1px 1px rgba(255, 255, 255, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 2. Success Green 3D Pill */
html body .btn-success,
html body .page-content .btn-success,
html body .content-wrapper .btn-success,
html body .content .btn-success,
html body .card .btn-success {
  background: linear-gradient(180deg, #4ade80 0%, #16a34a 50%, #15803d 100%);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.6),
    inset 0 -2px 3px rgba(0, 0, 0, 0.25),
    0 4px 14px -2px rgba(22, 163, 74, 0.4),
    0 2px 5px rgba(0, 0, 0, 0.1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
html body .btn-success:hover,
html body .page-content .btn-success:hover,
html body .content-wrapper .btn-success:hover,
html body .content .btn-success:hover,
html body .card .btn-success:hover {
  background: linear-gradient(180deg, #86efac 0%, #22c55e 50%, #166534 100%);
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.75),
    inset 0 -2px 3px rgba(0, 0, 0, 0.25),
    0 8px 20px -2px rgba(22, 163, 74, 0.5),
    0 3px 8px rgba(0, 0, 0, 0.15);
  color: #ffffff;
}
html body .btn-success:active,
html body .page-content .btn-success:active,
html body .content-wrapper .btn-success:active,
html body .content .btn-success:active {
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.4),
    inset 0 -1px 1px rgba(255, 255, 255, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 3. Danger Red 3D Pill */
html body .btn-danger,
html body .page-content .btn-danger,
html body .content-wrapper .btn-danger,
html body .content .btn-danger,
html body .card .btn-danger {
  background: linear-gradient(180deg, #f87171 0%, #dc2626 50%, #b91c1c 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.55),
    inset 0 -2px 3px rgba(0, 0, 0, 0.3),
    0 4px 14px -2px rgba(220, 38, 38, 0.4),
    0 2px 5px rgba(0, 0, 0, 0.1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
html body .btn-danger:hover,
html body .page-content .btn-danger:hover,
html body .content-wrapper .btn-danger:hover,
html body .content .btn-danger:hover,
html body .card .btn-danger:hover {
  background: linear-gradient(180deg, #fca5a5 0%, #ef4444 50%, #991b1b 100%);
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.7),
    inset 0 -2px 3px rgba(0, 0, 0, 0.3),
    0 8px 20px -2px rgba(220, 38, 38, 0.5),
    0 3px 8px rgba(0, 0, 0, 0.15);
  color: #ffffff;
}
html body .btn-danger:active,
html body .page-content .btn-danger:active,
html body .content-wrapper .btn-danger:active,
html body .content .btn-danger:active {
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.4),
    inset 0 -1px 1px rgba(255, 255, 255, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 4. Warning Yellow / Amber 3D Pill */
html body .btn-warning,
html body .page-content .btn-warning,
html body .content-wrapper .btn-warning,
html body .content .btn-warning,
html body .card .btn-warning {
  background: linear-gradient(180deg, #fde047 0%, #f59e0b 50%, #d97706 100%);
  color: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.7),
    inset 0 -2px 3px rgba(180, 83, 9, 0.35),
    0 4px 14px -2px rgba(217, 119, 6, 0.4),
    0 2px 5px rgba(0, 0, 0, 0.1);
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}
html body .btn-warning:hover,
html body .page-content .btn-warning:hover,
html body .content-wrapper .btn-warning:hover,
html body .content .btn-warning:hover,
html body .card .btn-warning:hover {
  background: linear-gradient(180deg, #fef08a 0%, #fbbf24 50%, #ea580c 100%);
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.85),
    inset 0 -2px 3px rgba(180, 83, 9, 0.35),
    0 8px 20px -2px rgba(217, 119, 6, 0.5),
    0 3px 8px rgba(0, 0, 0, 0.15);
  color: #0f172a;
}
html body .btn-warning:active,
html body .page-content .btn-warning:active,
html body .content-wrapper .btn-warning:active,
html body .content .btn-warning:active {
  box-shadow:
    inset 0 2px 4px rgba(180, 83, 9, 0.5),
    inset 0 -1px 1px rgba(255, 255, 255, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 5. Info Cyan / Light Blue 3D Pill */
html body .btn-info,
html body .page-content .btn-info,
html body .content-wrapper .btn-info,
html body .content .btn-info,
html body .card .btn-info {
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 50%, #0369a1 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.55),
    inset 0 -2px 3px rgba(0, 0, 0, 0.25),
    0 4px 14px -2px rgba(2, 132, 199, 0.4),
    0 2px 5px rgba(0, 0, 0, 0.1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
html body .btn-info:hover,
html body .page-content .btn-info:hover,
html body .content-wrapper .btn-info:hover,
html body .content .btn-info:hover,
html body .card .btn-info:hover {
  background: linear-gradient(180deg, #7dd3fc 0%, #0ea5e9 50%, #0284c7 100%);
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.7),
    inset 0 -2px 3px rgba(0, 0, 0, 0.25),
    0 8px 20px -2px rgba(2, 132, 199, 0.5),
    0 3px 8px rgba(0, 0, 0, 0.15);
  color: #ffffff;
}

/* 6. Dark Navy / Dark 3D Pill */
html body .btn-dark,
html body .page-content .btn-dark,
html body .content-wrapper .btn-dark,
html body .content .btn-dark,
html body .card .btn-dark {
  background: linear-gradient(180deg, #334155 0%, #1e293b 50%, #0f172a 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.4),
    inset 0 -2px 3px rgba(0, 0, 0, 0.5),
    0 4px 14px -2px rgba(15, 23, 42, 0.4),
    0 2px 5px rgba(0, 0, 0, 0.15);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
html body .btn-dark:hover,
html body .page-content .btn-dark:hover,
html body .content-wrapper .btn-dark:hover,
html body .content .btn-dark:hover,
html body .card .btn-dark:hover {
  background: linear-gradient(180deg, #475569 0%, #334155 50%, #1e293b 100%);
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.5),
    inset 0 -2px 3px rgba(0, 0, 0, 0.5),
    0 8px 20px -2px rgba(15, 23, 42, 0.5),
    0 3px 8px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

/* 7. Secondary / Light / Cancel 3D Pill */
html body .btn-secondary,
html body .page-content .btn-secondary,
html body .content-wrapper .btn-secondary,
html body .content .btn-secondary,
html body .btn-light,
html body .page-content .btn-light,
html body .content-wrapper .btn-light,
html body .content .btn-light,
html body .btn-default,
html body .btn-action-cancel,
html body .page-content .btn-action-cancel,
html body .swal2-actions .swal2-cancel {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
  color: #475569;
  border: 1px solid #cbd5e1;
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.95),
    inset 0 -2px 3px rgba(0, 0, 0, 0.05),
    0 3px 10px -2px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.05);
}
html body .btn-secondary:hover,
html body .page-content .btn-secondary:hover,
html body .content-wrapper .btn-secondary:hover,
html body .content .btn-secondary:hover,
html body .btn-light:hover,
html body .page-content .btn-light:hover,
html body .content-wrapper .btn-light:hover,
html body .content .btn-light:hover,
html body .btn-default:hover,
html body .btn-action-cancel:hover,
html body .page-content .btn-action-cancel:hover,
html body .swal2-actions .swal2-cancel:hover {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
  color: #1e293b;
  border-color: #94a3b8;
  box-shadow:
    inset 0 1.5px 1px #ffffff,
    inset 0 -2px 3px rgba(0, 0, 0, 0.08),
    0 6px 16px -2px rgba(0, 0, 0, 0.12);
}

/* Compact Pill Padding for Small Buttons */
html body .btn-sm,
html body .page-content .btn-sm,
html body .content-wrapper .btn-sm,
html body .content .btn-sm {
  padding: 6px 16px;
  font-size: 0.82rem;
}
html body .btn-xs,
html body .page-content .btn-xs,
html body .content-wrapper .btn-xs,
html body .content .btn-xs {
  padding: 4px 12px;
  font-size: 0.75rem;
}
html body .btn-lg,
html body .page-content .btn-lg,
html body .content-wrapper .btn-lg,
html body .content .btn-lg {
  padding: 12px 28px;
  font-size: 1rem;
}

/* === LAPORAN HUB MODULE (Hierarchical & Strict No !important) === */
.page-content .content .laporan-card .laporan-title,
.content .glass-card .laporan-title {
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.page-content .content .laporan-card .laporan-list,
.content .glass-card .laporan-list,
.page-content .content .laporan-card .laporan-list li,
.content .glass-card .laporan-list li {
  font-size: 0.9rem;
  line-height: 1.8;
}

.page-content .content .laporan-card .laporan-list li a,
.content .glass-card .laporan-list li a,
.page-content .content .laporan-card .laporan-link,
.content .glass-card .laporan-link {
  font-size: 0.9rem;
  color: #0284c7;
  transition: color 0.15s ease-in-out;
}

.page-content .content .laporan-card .laporan-list li a:hover,
.content .glass-card .laporan-list li a:hover,
.page-content .content .laporan-card .laporan-link:hover,
.content .glass-card .laporan-link:hover {
  color: #0369a1;
  text-decoration: underline;
}

/* === ULTRA-MODERN FLOATING BACKUP WIDGET (Glassmorphism & Micro-Panel) === */
html body #backup-progress-widget.backup-progress-widget,
html body #backup-progress-widget,
html body .backup-progress-widget,
.page-content .backup-progress-widget,
body .backup-progress-widget,
#backup-progress-widget {
  position: fixed;
  top: auto;
  bottom: 85px;
  right: 24px;
  left: auto;
  margin: 0;
  width: 440px;
  max-width: calc(100vw - 32px);
  z-index: 99999;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 20px 45px -10px rgba(15, 23, 42, 0.18),
    0 4px 16px -2px rgba(15, 23, 42, 0.08);
  transition:
    width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease;
  font-family: inherit;
}

html body #backup-progress-widget .backup-widget-header,
.page-content .backup-progress-widget .backup-widget-header,
body .backup-progress-widget .backup-widget-header {
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid #f1f5f9;
  user-select: none;
  cursor: pointer;
}

html body #backup-progress-widget .backup-widget-header-left,
.page-content .backup-progress-widget .backup-widget-header-left,
body .backup-progress-widget .backup-widget-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

html body #backup-progress-widget .backup-widget-status-badge,
.page-content .backup-progress-widget .backup-widget-status-badge,
body .backup-progress-widget .backup-widget-status-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #4f46e5;
  font-size: 16px;
}

html body #backup-progress-widget .backup-widget-status-badge .spinner-border,
.page-content
  .backup-progress-widget
  .backup-widget-status-badge
  .spinner-border,
body .backup-progress-widget .backup-widget-status-badge .spinner-border {
  width: 15px;
  height: 15px;
  border-width: 2px;
  color: #4f46e5;
}

html body #backup-progress-widget .backup-widget-title-wrapper,
.page-content .backup-progress-widget .backup-widget-title-wrapper,
body .backup-progress-widget .backup-widget-title-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

html body #backup-progress-widget .backup-widget-title,
.page-content .backup-progress-widget .backup-widget-title,
body .backup-progress-widget .backup-widget-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html body #backup-progress-widget .backup-widget-task-badge,
.page-content .backup-progress-widget .backup-widget-task-badge,
body .backup-progress-widget .backup-widget-task-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  background: #e0e7ff;
  color: #4338ca;
  letter-spacing: 0.2px;
  flex-shrink: 0;
}

html body #backup-progress-widget .backup-widget-header-actions,
.page-content .backup-progress-widget .backup-widget-header-actions,
body .backup-progress-widget .backup-widget-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

html body #backup-progress-widget .backup-widget-btn-toggle,
html body #backup-progress-widget .backup-widget-btn-close,
.page-content .backup-progress-widget .backup-widget-btn-toggle,
.page-content .backup-progress-widget .backup-widget-btn-close {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  padding: 0;
  font-size: 14px;
  transition: all 0.15s ease;
}

html body #backup-progress-widget .backup-widget-btn-toggle:hover,
html body #backup-progress-widget .backup-widget-btn-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Body and Micro-panel styling */
html body #backup-progress-widget .backup-widget-body,
.page-content .backup-progress-widget .backup-widget-body,
body .backup-progress-widget .backup-widget-body {
  padding: 12px 14px;
}

html body #backup-progress-widget .backup-task-item,
.page-content .backup-progress-widget .backup-task-item,
body .backup-progress-widget .backup-task-item {
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 10px;
  transition: all 0.2s ease;
}

html body #backup-progress-widget .backup-task-item:last-of-type,
.page-content .backup-progress-widget .backup-task-item:last-of-type,
body .backup-progress-widget .backup-task-item:last-of-type {
  margin-bottom: 0;
}

html body #backup-progress-widget .backup-task-header,
.page-content .backup-progress-widget .backup-task-header,
body .backup-progress-widget .backup-task-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

html body #backup-progress-widget .backup-task-info,
.page-content .backup-progress-widget .backup-task-info,
body .backup-progress-widget .backup-task-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

html body #backup-progress-widget .backup-task-icon-box,
.page-content .backup-progress-widget .backup-task-icon-box,
body .backup-progress-widget .backup-task-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

html body #backup-progress-widget .backup-task-icon-box i,
.page-content .backup-progress-widget .backup-task-icon-box i,
body .backup-progress-widget .backup-task-icon-box i {
  font-size: 18px;
  line-height: 1;
}

html body #backup-progress-widget .backup-task-icon-db,
.page-content .backup-progress-widget .backup-task-icon-db {
  background: #eef2ff;
  color: #4f46e5;
}

html body #backup-progress-widget .backup-task-icon-files,
.page-content .backup-progress-widget .backup-task-icon-files {
  background: #e0f2fe;
  color: #0284c7;
}

html body #backup-progress-widget .backup-task-text,
.page-content .backup-progress-widget .backup-task-text,
body .backup-progress-widget .backup-task-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

html body #backup-progress-widget .backup-task-name,
.page-content .backup-progress-widget .backup-task-name,
body .backup-progress-widget .backup-task-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
}

html body #backup-progress-widget .backup-task-status,
.page-content .backup-progress-widget .backup-task-status,
body .backup-progress-widget .backup-task-status {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
  line-height: 1.3;
}

html body #backup-progress-widget .backup-task-meta,
.page-content .backup-progress-widget .backup-task-meta,
body .backup-progress-widget .backup-task-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

html body #backup-progress-widget .backup-task-percent,
.page-content .backup-progress-widget .backup-task-percent,
body .backup-progress-widget .backup-task-percent {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 2px 6px;
  border-radius: 6px;
}

html body #backup-progress-widget .backup-task-cancel-btn,
.page-content .backup-progress-widget .backup-task-cancel-btn,
body .backup-progress-widget .backup-task-cancel-btn {
  font-size: 11px;
  line-height: 1.4;
  font-weight: 600;
  border: 1px solid #fecdd3;
  background-color: #ffffff;
  color: #e11d48;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 20px;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

html body #backup-progress-widget .backup-task-cancel-btn:hover,
.page-content .backup-progress-widget .backup-task-cancel-btn:hover,
body .backup-progress-widget .backup-task-cancel-btn:hover {
  background-color: #fee2e2;
  color: #be123c;
  border-color: #fca5a5;
  transform: translateY(-1px);
}

html body #backup-progress-widget .backup-task-dl-btn,
.page-content .backup-progress-widget .backup-task-dl-btn,
body .backup-progress-widget .backup-task-dl-btn {
  font-size: 11px;
  line-height: 1.4;
  font-weight: 600;
  text-decoration: none;
  border-radius: 20px;
  padding: 2px 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #bbf7d0;
  background-color: #f0fdf4;
  color: #16a34a;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 0.15s ease;
  cursor: pointer;
}

html body #backup-progress-widget .backup-task-dl-btn i,
.page-content .backup-progress-widget .backup-task-dl-btn i,
body .backup-progress-widget .backup-task-dl-btn i {
  color: #16a34a;
  font-size: 13px;
  line-height: 1;
}

html body #backup-progress-widget .backup-task-dl-btn:hover,
.page-content .backup-progress-widget .backup-task-dl-btn:hover,
body .backup-progress-widget .backup-task-dl-btn:hover {
  background-color: #dcfce7;
  color: #15803d;
  border-color: #86efac;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.18);
}

html body #backup-progress-widget .backup-task-dl-btn:hover i,
.page-content .backup-progress-widget .backup-task-dl-btn:hover i,
body .backup-progress-widget .backup-task-dl-btn:hover i {
  color: #15803d;
}

html body #backup-progress-widget .backup-task-progress-wrap,
.page-content .backup-progress-widget .backup-task-progress-wrap,
body .backup-progress-widget .backup-task-progress-wrap {
  width: 100%;
}

/* Progressive Flux Glass Progress Bar */
html body #backup-progress-widget .backup-progress-track,
.page-content .backup-progress-widget .backup-progress-track,
body .backup-progress-widget .backup-progress-track {
  height: 14px;
  border-radius: 9999px;
  background: #f1f5f9;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.08),
    inset 0 -1px 2px rgba(255, 255, 255, 0.9);
  border: none;
  overflow: hidden;
  margin-bottom: 0;
  padding: 0;
  position: relative;
}

html body #backup-progress-widget .backup-progress-bar,
.page-content .backup-progress-widget .backup-progress-bar,
body .backup-progress-widget .backup-progress-bar {
  height: 100%;
  border-radius: 9999px;
  position: relative;
  overflow: hidden;
  background-image: none;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Database Flux Bar (Signature Vivid Blue -> Cyan) */
html body #backup-progress-widget .backup-bar-db,
.page-content .backup-progress-widget .backup-bar-db {
  width: 0%;
  background: linear-gradient(
    90deg,
    #1d6ffb 0%,
    #3ca0ff 35%,
    #74e1ff 55%,
    #3ca0ff 78%,
    #1d6ffb 100%
  );
  box-shadow:
    0 0 16px rgba(29, 111, 251, 0.45),
    0 0 30px rgba(116, 225, 255, 0.3),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.7),
    inset 0 -2px 3px rgba(0, 40, 120, 0.35);
}

/* Files Flux Bar (Vivid Sky -> Cyan) */
html body #backup-progress-widget .backup-bar-files,
.page-content .backup-progress-widget .backup-bar-files {
  width: 0%;
  background: linear-gradient(
    90deg,
    #0284c7 0%,
    #38bdf8 35%,
    #7dd3fc 55%,
    #38bdf8 78%,
    #0284c7 100%
  );
  box-shadow:
    0 0 16px rgba(2, 132, 199, 0.45),
    0 0 30px rgba(125, 211, 252, 0.3),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.7),
    inset 0 -2px 3px rgba(3, 105, 161, 0.35);
}

/* Success Flux Bar (Emerald Glow) */
html body #backup-progress-widget .backup-bar-success,
.page-content .backup-progress-widget .backup-bar-success,
body .backup-progress-widget .backup-bar-success {
  background: linear-gradient(
    90deg,
    #059669 0%,
    #10b981 35%,
    #6ee7b7 55%,
    #10b981 78%,
    #059669 100%
  );
  box-shadow:
    0 0 16px rgba(16, 185, 129, 0.45),
    0 0 30px rgba(110, 231, 183, 0.3),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.7),
    inset 0 -2px 3px rgba(6, 78, 59, 0.35);
}

/* Danger Flux Bar (Rose Glow) */
html body #backup-progress-widget .backup-bar-danger,
.page-content .backup-progress-widget .backup-bar-danger,
body .backup-progress-widget .backup-bar-danger {
  background: linear-gradient(
    90deg,
    #e11d48 0%,
    #f43f5e 35%,
    #fda4af 55%,
    #f43f5e 78%,
    #e11d48 100%
  );
  box-shadow:
    0 0 16px rgba(225, 29, 72, 0.45),
    0 0 30px rgba(253, 164, 175, 0.3),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.7),
    inset 0 -2px 3px rgba(136, 19, 55, 0.35);
}

/* Moving Sheen Sweep Animation */
html body #backup-progress-widget .backup-progress-bar::after,
.page-content .backup-progress-widget .backup-progress-bar::after,
body .backup-progress-widget .backup-progress-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.65) 50%,
    transparent 100%
  );
  mix-blend-mode: screen;
  pointer-events: none;
  animation: fluxSheenSweep 1.6s linear infinite;
}

@keyframes fluxSheenSweep {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(210%);
  }
}

html body #backup-progress-widget .backup-progress-hint,
.page-content .backup-progress-widget .backup-progress-hint,
body .backup-progress-widget .backup-progress-hint {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

html body #backup-progress-widget .backup-task-meta,
.page-content .backup-progress-widget .backup-task-meta,
body .backup-progress-widget .backup-task-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

html body #backup-progress-widget .backup-task-percent,
.page-content .backup-progress-widget .backup-task-percent,
body .backup-progress-widget .backup-task-percent {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 2px 6px;
  border-radius: 6px;
}

html body #backup-progress-widget .backup-task-cancel-btn,
.page-content .backup-progress-widget .backup-task-cancel-btn,
body .backup-progress-widget .backup-task-cancel-btn {
  font-size: 11px;
  line-height: 1.4;
  font-weight: 600;
  border: 1px solid #fecdd3;
  background-color: #ffffff;
  color: #e11d48;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 20px;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

html body #backup-progress-widget .backup-task-cancel-btn:hover,
.page-content .backup-progress-widget .backup-task-cancel-btn:hover,
body .backup-progress-widget .backup-task-cancel-btn:hover {
  background-color: #fee2e2;
  color: #be123c;
  border-color: #fca5a5;
  transform: translateY(-1px);
}

html body #backup-progress-widget .backup-task-dl-btn,
.page-content .backup-progress-widget .backup-task-dl-btn,
body .backup-progress-widget .backup-task-dl-btn {
  font-size: 11px;
  line-height: 1.4;
  font-weight: 600;
  text-decoration: none;
  border-radius: 20px;
  padding: 2px 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #bbf7d0;
  background-color: #f0fdf4;
  color: #16a34a;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 0.15s ease;
  cursor: pointer;
}

html body #backup-progress-widget .backup-task-dl-btn i,
.page-content .backup-progress-widget .backup-task-dl-btn i,
body .backup-progress-widget .backup-task-dl-btn i {
  color: #16a34a;
  font-size: 13px;
  line-height: 1;
}

html body #backup-progress-widget .backup-task-dl-btn:hover,
.page-content .backup-progress-widget .backup-task-dl-btn:hover,
body .backup-progress-widget .backup-task-dl-btn:hover {
  background-color: #dcfce7;
  color: #15803d;
  border-color: #86efac;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.18);
}

html body #backup-progress-widget .backup-task-dl-btn:hover i,
.page-content .backup-progress-widget .backup-task-dl-btn:hover i,
body .backup-progress-widget .backup-task-dl-btn:hover i {
  color: #15803d;
}

html body #backup-progress-widget .backup-task-progress-wrap,
.page-content .backup-progress-widget .backup-task-progress-wrap,
body .backup-progress-widget .backup-task-progress-wrap {
  width: 100%;
}

/* Progressive Flux Glass Progress Bar */
html body #backup-progress-widget .backup-progress-track,
.page-content .backup-progress-widget .backup-progress-track,
body .backup-progress-widget .backup-progress-track {
  height: 14px;
  border-radius: 9999px;
  background: #f1f5f9;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.08),
    inset 0 -1px 2px rgba(255, 255, 255, 0.9);
  border: none;
  overflow: hidden;
  margin-bottom: 0;
  padding: 0;
  position: relative;
}

html body #backup-progress-widget .backup-progress-bar,
.page-content .backup-progress-widget .backup-progress-bar,
body .backup-progress-widget .backup-progress-bar {
  height: 100%;
  border-radius: 9999px;
  position: relative;
  overflow: hidden;
  background-image: none;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Database Flux Bar (Signature Vivid Blue -> Cyan) */
html body #backup-progress-widget .backup-bar-db,
.page-content .backup-progress-widget .backup-bar-db {
  width: 0%;
  background: linear-gradient(
    90deg,
    #1d6ffb 0%,
    #3ca0ff 35%,
    #74e1ff 55%,
    #3ca0ff 78%,
    #1d6ffb 100%
  );
  box-shadow:
    0 0 16px rgba(29, 111, 251, 0.45),
    0 0 30px rgba(116, 225, 255, 0.3),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.7),
    inset 0 -2px 3px rgba(0, 40, 120, 0.35);
}

/* Files Flux Bar (Vivid Sky -> Cyan) */
html body #backup-progress-widget .backup-bar-files,
.page-content .backup-progress-widget .backup-bar-files {
  width: 0%;
  background: linear-gradient(
    90deg,
    #0284c7 0%,
    #38bdf8 35%,
    #7dd3fc 55%,
    #38bdf8 78%,
    #0284c7 100%
  );
  box-shadow:
    0 0 16px rgba(2, 132, 199, 0.45),
    0 0 30px rgba(125, 211, 252, 0.3),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.7),
    inset 0 -2px 3px rgba(3, 105, 161, 0.35);
}

/* Success Flux Bar (Emerald Glow) */
html body #backup-progress-widget .backup-bar-success,
.page-content .backup-progress-widget .backup-bar-success,
body .backup-progress-widget .backup-bar-success {
  background: linear-gradient(
    90deg,
    #059669 0%,
    #10b981 35%,
    #6ee7b7 55%,
    #10b981 78%,
    #059669 100%
  );
  box-shadow:
    0 0 16px rgba(16, 185, 129, 0.45),
    0 0 30px rgba(110, 231, 183, 0.3),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.7),
    inset 0 -2px 3px rgba(6, 78, 59, 0.35);
}

/* Danger Flux Bar (Rose Glow) */
html body #backup-progress-widget .backup-bar-danger,
.page-content .backup-progress-widget .backup-bar-danger,
body .backup-progress-widget .backup-bar-danger {
  background: linear-gradient(
    90deg,
    #e11d48 0%,
    #f43f5e 35%,
    #fda4af 55%,
    #f43f5e 78%,
    #e11d48 100%
  );
  box-shadow:
    0 0 16px rgba(225, 29, 72, 0.45),
    0 0 30px rgba(253, 164, 175, 0.3),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.7),
    inset 0 -2px 3px rgba(136, 19, 55, 0.35);
}

/* Moving Sheen Sweep Animation */
html body #backup-progress-widget .backup-progress-bar::after,
.page-content .backup-progress-widget .backup-progress-bar::after,
body .backup-progress-widget .backup-progress-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.65) 50%,
    transparent 100%
  );
  mix-blend-mode: screen;
  pointer-events: none;
  animation: fluxSheenSweep 1.6s linear infinite;
}

@keyframes fluxSheenSweep {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(210%);
  }
}

html body #backup-progress-widget .backup-progress-hint,
.page-content .backup-progress-widget .backup-progress-hint,
body .backup-progress-widget .backup-progress-hint {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Collapsed Floating Capsule */
html body #backup-progress-widget.backup-widget-collapsed,
body #backup-progress-widget.backup-widget-collapsed {
  width: 360px;
  box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.14);
}

/* ==========================================================================
   UNIVERSAL MODERN MODAL SYSTEM (Limitless 4.0 / Apple-Grade Glassmorphism)
   ========================================================================== */

body .modal-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  z-index: 1050 !important;
  background-color: rgba(15, 23, 42, 0.45) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

body .modal-backdrop.fade {
  opacity: 0 !important;
  transition: opacity 0.15s linear !important;
}

body .modal-backdrop.show {
  opacity: 1 !important;
}

body .modal {
  z-index: 1055 !important;
  position: fixed !important;
  inset: 0 !important;
}

/* Universal Modal Content Frame */
body .modal-content {
  border-radius: 18px !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  box-shadow:
    0 24px 48px -12px rgba(15, 23, 42, 0.18),
    0 4px 12px 0 rgba(15, 23, 42, 0.05) !important;
  background-color: #ffffff !important;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Universal Modal Header */
body .modal-header {
  padding: 1.1rem 1.4rem !important;
  border-bottom: 1px solid #f1f5f9 !important;
  background-color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

body .modal-header .modal-title {
  font-weight: 700 !important;
  color: #0f172a !important;
  font-size: 1.05rem !important;
  line-height: 1.35 !important;
  letter-spacing: -0.2px !important;
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
}

/* Universal Modern Close Button (.btn-close & legacy .close) */
body .modal-header .btn-close,
body .modal-header .close {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 50% !important;
  color: #64748b !important;
  font-size: 1.15rem !important;
  line-height: 1 !important;
  cursor: pointer !important;
  opacity: 1 !important;
  text-shadow: none !important;
  box-shadow: none !important;
  transition: all 0.2s ease !important;
  outline: none !important;
  float: none !important;
}

body .modal-header .btn-close:hover,
body .modal-header .close:hover {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
  transform: scale(1.05);
}

body .modal-header .close span {
  display: inline-block;
  line-height: 1;
  margin-top: -2px;
}

/* Universal Modal Body */
body .modal-body {
  padding: 1.25rem 1.4rem !important;
  color: #334155;
  font-size: 0.92rem;
  line-height: 1.5;
  -webkit-overflow-scrolling: touch;
}

/* Universal Modal Footer */
body .modal-footer {
  padding: 0.95rem 1.4rem !important;
  border-top: 1px solid #f1f5f9 !important;
  background-color: #fafbfc !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px;
}

/* Fullscreen Modal Override */
body .modal-dialog.modal-fullscreen {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body .modal-dialog.modal-fullscreen .modal-content {
  height: 100% !important;
  max-height: 100% !important;
  min-height: 100% !important;
  border: 0 !important;
  border-radius: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

body .modal-dialog.modal-fullscreen .modal-body {
  overflow-y: auto !important;
  flex: 1 1 auto !important;
}

/* Mobile & Small Screen Optimization (< 576px) */
@media (max-width: 575.98px) {
  body .modal-dialog:not(.modal-fullscreen) {
    margin: 0.75rem auto !important;
    width: calc(100% - 1.5rem) !important;
    max-width: calc(100% - 1.5rem) !important;
  }

  body .modal-dialog:not(.modal-fullscreen) .modal-content {
    max-height: calc(100dvh - 1.5rem) !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 16px !important;
  }

  body .modal-dialog:not(.modal-fullscreen) .modal-header {
    padding: 0.85rem 1rem !important;
    flex-shrink: 0 !important;
  }

  body .modal-dialog:not(.modal-fullscreen) .modal-header .modal-title {
    font-size: 0.95rem !important;
  }

  body .modal-dialog:not(.modal-fullscreen) .modal-body {
    padding: 1rem !important;
    overflow-y: auto !important;
    flex: 1 1 auto !important;
  }

  body .modal-dialog:not(.modal-fullscreen) .modal-footer {
    padding: 0.75rem 1rem !important;
    flex-shrink: 0 !important;
    flex-direction: column-reverse !important;
    gap: 8px !important;
  }

  body .modal-dialog:not(.modal-fullscreen) .modal-footer > * {
    width: 100% !important;
    margin: 0 !important;
    min-height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}
body .modal-backdrop {
  z-index: 1050;
}

body .modal {
  z-index: 1055;
}

body .modal-dialog.modal-fullscreen {
  width: 100% !important;
  max-width: 100% !important;
  height: 100vh;
  margin: 0;
  padding: 0;
}

body .modal-dialog.modal-fullscreen .modal-content {
  height: 100vh;
  border: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
}

body .modal-dialog.modal-fullscreen .modal-body {
  overflow-y: auto;
  flex: 1 1 auto;
}

/* --- SRUT DISTINCTIVE ACTION BUTTONS --- */
.btn-srut-lihat {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border: 1px solid transparent;
  font-weight: 600;
  padding: 0.45rem 1.15rem;
  border-radius: 50rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
  cursor: pointer;
  text-decoration: none;
}
.btn-srut-lihat:hover,
.btn-srut-lihat:focus {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.btn-srut-singkron {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  border: 1px solid transparent;
  font-weight: 600;
  padding: 0.45rem 1.15rem;
  border-radius: 50rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.25);
  cursor: pointer;
  text-decoration: none;
}
.btn-srut-singkron:hover,
.btn-srut-singkron:focus {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
}

.btn-srut-salin {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border: 1px solid transparent;
  font-weight: 600;
  padding: 0.45rem 1.15rem;
  border-radius: 50rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
  cursor: pointer;
  text-decoration: none;
}
.btn-srut-salin:hover,
.btn-srut-salin:focus {
  background: linear-gradient(135deg, #059669, #047857);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

@media (max-width: 575.98px) {
  .btn-srut-singkron,
  .btn-srut-salin,
  .btn-srut-lihat {
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
  }
}

/* --- COMPACT & REFINED SRUT MODAL STYLING --- */
#modal_srut.modal,
#modal_salin_srut_checkbox.modal {
  padding-left: 0 !important;
  padding-right: 0 !important;
  overflow-x: hidden;
}

#modal_srut .modal-dialog,
#modal_salin_srut_checkbox .modal-dialog {
  width: calc(100% - 1rem) !important;
  max-width: 1140px;
  margin: 0.5rem auto !important;
}

@media (min-width: 992px) {
  #modal_srut .modal-dialog,
  #modal_salin_srut_checkbox .modal-dialog {
    width: 90% !important;
    max-width: 1140px;
    margin: 1.75rem auto !important;
  }
}

#modal_srut .modal-content,
#modal_salin_srut_checkbox .modal-content {
  max-height: calc(100vh - 1rem);
  overflow-x: hidden;
  border-radius: 12px;
}

#modal_srut .modal-header {
  padding: 0.45rem 0.85rem;
}
#modal_srut .modal-header .modal-title {
  font-size: 0.925rem;
  line-height: 1.2;
}
#modal_srut .modal-header .text-muted {
  font-size: 0.75rem;
}
#modal_srut .modal-body,
#modal_salin_srut_checkbox .modal-body {
  padding: 0.85rem 1rem;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: #ffffff;
}
#modal_srut .srut-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding-bottom: 0.35rem;
  margin-bottom: 0.65rem;
  border-bottom: 1.5px solid #e2e8f0;
}
#modal_srut .srut-section-title i {
  color: #2563eb;
  font-size: 1.05rem;
}
#modal_srut h6.text-primary {
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.65rem;
  margin-bottom: 0.35rem;
}
#modal_srut .modal-body .row,
#modal_srut .modal-body .mb-3.row,
#modal_srut .modal-body .mb-2.row {
  margin-bottom: 0.35rem !important;
}
#modal_srut .col-form-label {
  font-size: 0.775rem;
  padding-top: 0.12rem;
  padding-bottom: 0.12rem;
  color: #64748b;
  font-weight: 600;
  line-height: 1.25;
}
#modal_srut .form-control {
  padding: 0.26rem 0.6rem !important;
  font-size: 0.8125rem !important;
  min-height: 31px !important;
  height: 31px !important;
  border-radius: 7px !important;
  border: 1px solid #cbd5e1 !important;
  line-height: 1.3 !important;
}
#modal_srut .input-group,
#modal_salin_srut_checkbox .input-group {
  height: 31px !important;
  min-height: 31px !important;
  border-radius: 7px !important;
  border: 1px solid #cbd5e1 !important;
  background-color: #f8fafc !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  overflow: hidden !important;
  width: 100% !important;
  box-shadow: none !important;
}
#modal_srut .input-group > .form-control,
#modal_salin_srut_checkbox .input-group > .form-control {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  height: 100% !important;
  min-height: 29px !important;
  padding: 0.26rem 0.6rem !important;
  font-size: 0.8125rem !important;
  line-height: 1.3 !important;
  border-radius: 0 !important;
  background: transparent !important;
  flex: 1 1 auto !important;
  width: 1% !important;
}
#modal_srut .input-group > .input-group-text,
#modal_salin_srut_checkbox .input-group > .input-group-text {
  border: none !important;
  border-left: 1px solid #cbd5e1 !important;
  border-radius: 0 !important;
  background-color: #f1f5f9 !important;
  color: #64748b !important;
  padding: 0 0.6rem !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  height: 100% !important;
  min-height: 29px !important;
  min-width: 50px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  flex-shrink: 0 !important;
  margin-left: 0 !important;
}
#modal_srut .modal-footer {
  padding: 0.75rem 1.25rem !important;
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
}
#modal_srut .modal-footer .justify-content-end {
  gap: 12px !important;
}
#modal_srut .modal-footer .btn-srut-singkron,
#modal_srut .modal-footer .btn-srut-salin,
#modal_srut .modal-footer .btn-secondary {
  padding: 0.45rem 1rem !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  min-height: 38px !important;
  border-radius: 50rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.2s ease !important;
}
#modal_srut .modal-footer .btn-secondary {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
}
#modal_srut .modal-footer .btn-secondary:hover {
  background: #e2e8f0 !important;
  color: #1e293b !important;
  border-color: #94a3b8 !important;
}
@media (max-width: 575.98px) {
  #modal_srut .modal-footer {
    padding: 0.75rem 0.85rem 0.95rem !important;
  }
  #modal_srut .modal-footer .justify-content-end {
    gap: 10px !important;
  }
  #modal_srut .modal-footer .btn-srut-singkron,
  #modal_srut .modal-footer .btn-srut-salin,
  #modal_srut .modal-footer .btn-secondary {
    padding: 0.42rem 0.65rem !important;
    font-size: 0.78rem !important;
    min-height: 38px !important;
    gap: 5px !important;
  }
}

.srut-checkbox-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  transition: all 0.2s ease;
}
.srut-checkbox-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.srut-checkbox-item {
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.srut-checkbox-item:hover {
  background-color: #f8fafc;
}
.srut-checkbox-item .form-check-input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Updated Field Glow / Pulse Animation */
@keyframes srutFieldPulse {
  0% {
    background-color: #dcfce7;
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25);
  }
  50% {
    background-color: #f0fdf4;
    border-color: #059669;
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.35);
  }
  100% {
    background-color: #ffffff;
    border-color: #cbd5e1;
    box-shadow: none;
  }
}

.srut-highlight-updated {
  animation: srutFieldPulse 3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ==========================================================================
   Skeleton Loading Animation for Reports & Tables
   ========================================================================== */
@keyframes reportSkeletonShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-report-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background-color: #ffffff;
  padding: 1.25rem;
}

.skeleton-report-card .skeleton-shimmer-box {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: reportSkeletonShimmer 1.6s infinite linear;
  border-radius: 6px;
  display: inline-block;
  vertical-align: middle;
}

.skeleton-report-card .skeleton-header-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.skeleton-report-card .skeleton-title {
  height: 20px;
  width: 280px;
}

.skeleton-report-card .skeleton-title-wide {
  height: 20px;
  width: 320px;
}

.skeleton-report-card .skeleton-btn {
  height: 32px;
  width: 130px;
  border-radius: 8px;
}

.skeleton-report-card .skeleton-cell {
  height: 14px;
  margin-left: auto;
  margin-right: auto;
}

/* Specific cell widths in report skeleton */
.skeleton-report-card .skeleton-cell-date-wide {
  width: 85px;
}
.skeleton-report-card .skeleton-cell-date-std {
  width: 130px;
  margin-left: 0;
}
.skeleton-report-card .skeleton-cell-col-header-std {
  width: 90px;
  margin-left: 0;
}
.skeleton-report-card .skeleton-cell-col-no {
  width: 25px;
}
.skeleton-report-card .skeleton-cell-col-stat {
  width: 75px;
}
.skeleton-report-card .skeleton-cell-num-xs {
  width: 20px;
}
.skeleton-report-card .skeleton-cell-num-sm {
  width: 24px;
}
.skeleton-report-card .skeleton-cell-num-md {
  width: 32px;
}
.skeleton-report-card .skeleton-cell-num-lg {
  width: 45px;
}
.skeleton-report-card .skeleton-cell-num-xl {
  width: 50px;
}
.skeleton-report-card .skeleton-cell-price-sm {
  width: 55px;
  margin-right: 0;
}
.skeleton-report-card .skeleton-cell-price-md {
  width: 65px;
  margin-right: 0;
}
.skeleton-report-card .skeleton-cell-price-lg {
  width: 75px;
  margin-right: 0;
}
.skeleton-report-card .skeleton-cell-price-xl {
  width: 85px;
  margin-right: 0;
}
.skeleton-report-card .skeleton-cell-price-xxl {
  width: 95px;
  margin-right: 0;
}
.skeleton-report-card .skeleton-cell-group-wide {
  width: 220px;
}
.skeleton-report-card .skeleton-cell-subgroup-wide {
  width: 50px;
}
.skeleton-report-card .skeleton-cell-total-label-wide {
  width: 140px;
}
.skeleton-report-card .skeleton-cell-total-label-std {
  width: 80px;
}
.skeleton-report-card .skeleton-cell-total-num-sm {
  width: 30px;
}
.skeleton-report-card .skeleton-cell-total-num-md {
  width: 40px;
}
.skeleton-report-card .skeleton-cell-total-num-lg {
  width: 50px;
}

/* Table column header widths */
.skeleton-report-card .skeleton-th-no-sm {
  width: 45px;
}
.skeleton-report-card .skeleton-th-month-wide {
  width: 110px;
}
.skeleton-report-card .skeleton-th-date-std {
  width: 180px;
}
.skeleton-report-card .skeleton-th-stat-std {
  width: 75px;
}
.skeleton-report-card .skeleton-th-val-sm {
  width: 45px;
}
.skeleton-report-card .skeleton-th-val-md {
  width: 50px;
}
.skeleton-report-card .skeleton-th-val-lg {
  width: 65px;
}
.skeleton-report-card .skeleton-th-val-xl {
  width: 70px;
}
.skeleton-report-card .skeleton-th-val-xxl {
  width: 75px;
}
.skeleton-report-card .skeleton-th-val-price {
  width: 80px;
}
.skeleton-report-card .skeleton-th-val-price-lg {
  width: 90px;
}
.skeleton-report-card .skeleton-th-val-total {
  width: 100px;
}

.skeleton-report-card .table th,
.skeleton-report-card .table td {
  border-color: #f1f5f9;
}

/* Form Cursor Helper Class */
.cursor-pointer-input {
  cursor: pointer;
}

/* ------------------------------------------------------------------------------
 *  SIMPKB Auto-Fit Display Scale & Compact Layout (LCD 7"+ / High-DPI Support)
 * ---------------------------------------------------------------------------- */

/* Scale selector pill & dropdown in navbar */
.navbar-nav .dropdown-scale-menu {
  min-width: 230px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow:
    0 10px 25px -5px rgba(0, 0, 0, 0.08),
    0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

.dropdown-scale-menu .dropdown-item {
  font-size: 0.84rem;
  display: flex;
  align-items: center;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.dropdown-scale-menu .dropdown-item:hover {
  background-color: #f1f5f9;
}

.dropdown-scale-menu .dropdown-item.active {
  background-color: #eff6ff;
  color: #2563eb;
  font-weight: 600;
}

/* Compact layout mode when scale factor < 0.9 or LCD 7"-10" / High-DPI (Windows 150%) is active (Desktop Only) */
@media (min-width: 992px) {
  html.screen-fit-compact body:not(.login-page) .page-content {
    padding-top: 96px !important;
    padding-bottom: 96px !important;
  }

  html.screen-fit-compact .sidebar-light-custom,
  html.screen-fit-compact div.sidebar.sidebar-light-custom,
  html.screen-fit-compact
    div.sidebar.sidebar-main.sidebar-expand-lg.sidebar-light-custom,
  html.screen-fit-compact body div.sidebar.sidebar-light-custom,
  html.screen-fit-compact
    body
    .page-content
    div.sidebar.sidebar-light-custom.sidebar-main.sidebar-expand-lg,
  html.screen-fit-compact .sidebar-main,
  html.screen-fit-compact .sidebar-main.sidebar-main-resized,
  html.screen-fit-compact .sidebar.sidebar-main.sidebar-expand-lg {
    top: 96px !important;
    bottom: 14px !important;
    height: calc(var(--real-vh, 100vh) - 110px) !important;
    min-height: calc(var(--real-vh, 100vh) - 110px) !important;
    position: fixed !important;
    border-radius: 24px !important;
  }

  html.screen-fit-compact .header-top-bar-mask {
    height: 72px !important;
  }

  html.screen-fit-compact body .page-content .content {
    padding-left: clamp(10px, 1.5vw, 20px);
    padding-right: clamp(10px, 1.5vw, 20px);
  }

  html.screen-fit-compact .card {
    margin-bottom: 1rem;
  }

  html.screen-fit-compact .card .card-header {
    padding: 0.75rem 1rem;
  }

  html.screen-fit-compact .card .card-body {
    padding: 0.85rem 1rem;
  }

  /* Compact tables for dense data view on LCD 7"+ */
  html.screen-fit-compact .table th,
  html.screen-fit-compact .table td {
    padding: 0.45rem 0.6rem;
    font-size: 0.84rem;
  }
}

/* Floating scale button on login screen */
.login-scale-floating {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1050;
}

.login-scale-floating .btn-scale-login {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 30px;
  padding: 6px 14px;
  font-size: 0.82rem;
  color: #475569;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.login-scale-floating .btn-scale-login:hover {
  background: #ffffff;
  color: #2563eb;
  border-color: #cbd5e1;
}

/* Login screen compact adaptation */
@media (max-height: 680px) {
  .page-content .content .login-form {
    width: clamp(20rem, 90vw, 23rem);
  }

  .login-form .card-body {
    padding: 1.25rem 1.25rem;
  }

  .login-form .mb-3 {
    margin-bottom: 0.65rem;
  }

  .login-form .mb-4 {
    margin-bottom: 0.85rem;
  }

  .login-form .h-48px {
    height: 38px;
  }
}

/* Lightweight floating toast notification for scale change (no dark backdrop) */
.simpkb-floating-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  border-radius: 30px;
  padding: 8px 18px;
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow:
    0 10px 25px -3px rgba(0, 0, 0, 0.12),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.simpkb-floating-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------------------------------------------------------
 *  Login Page Layout & Elements (Class Hierarchy - No !important)
 * ---------------------------------------------------------------------------- */
html body.login-page {
  height: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background-color: #f3f4f8;
}

html body.login-page .page-content {
  padding: 0;
  min-height: 100vh;
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background-color: #f3f4f8;
}

html body.login-page .content-wrapper {
  margin: 0;
  padding: 0;
  width: 100%;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  background-color: #f3f4f8;
}

html body.login-page .content-inner {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
}

html body.login-page .page-content .content {
  padding: 1rem;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  width: 100%;
}

html body.login-page .login-form {
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 0;
  width: 24rem;
}

html body.login-page .login-form .card {
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  background: #ffffff;
  background-image: none;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

html body.login-page .login-form .card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

html body.login-page .login-form .btn-primary {
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

html body.login-page .login-form .btn-primary:hover {
  box-shadow: 0 10px 25px rgba(0, 122, 255, 0.35);
  filter: brightness(1.08);
}

html body.login-page .login-form .btn-primary:active {
  box-shadow: 0 5px 15px rgba(0, 122, 255, 0.2);
}

html body.login-page .login-form .form-control {
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

html body.login-page .login-form .form-control:focus {
  border-color: #007aff;
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.15);
}

html body.login-page .login-form .captcha-preview img {
  width: 150px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

html body.login-page .login-form .form-control-feedback-start .form-control {
  padding-left: 3.2rem;
}

html
  body.login-page
  .login-form
  .form-control-feedback-start
  .form-control-feedback-icon {
  width: 3.2rem;
  left: 0;
}

html body.login-page .toggle-password-btn {
  z-index: 10;
  cursor: pointer;
}

html body.login-page .turnstile-container {
  position: relative;
  z-index: 9999;
  pointer-events: auto;
}

html body.login-page .login-footer {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.85rem;
  pointer-events: auto;
  z-index: 10;
}

html body.login-page .login-footer-link {
  opacity: 0.8;
  transition: opacity 0.3s;
}

html body.login-page .login-footer-link:hover {
  opacity: 1;
}

@media (max-height: 650px) {
  html body.login-page .page-content {
    height: auto;
    overflow-y: auto;
  }
  html body.login-page .login-footer {
    position: relative;
    padding: 1rem 0;
    bottom: auto;
  }
}

/* ===================== DETAIL MODAL KEY-VALUE TABLE ===================== */
html body .modal-content .modal-detail-table {
  table-layout: fixed;
  width: 100%;
}
html body .modal-content .modal-detail-table td {
  padding: 0.35rem 0.25rem;
  font-size: 0.82rem;
  vertical-align: top;
}

/* ===================== PROSES UJI MOBILE RESPONSIVENESS ===================== */
body [id^="cek_"][id$="_feedback"],
body [id^="cek_"][id$="_invalid"] {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  body .w-100-mobile {
    width: 100%;
  }

  /* Compact validation badges on mobile */
  body [id^="cek_"][id$="_feedback"] .badge-lulus,
  body [id^="cek_"][id$="_feedback"] .badge-gagal,
  body [id^="cek_"][id$="_invalid"] .badge-lulus,
  body [id^="cek_"][id$="_invalid"] .badge-gagal {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    font-size: 0.75rem;
  }

  /* Compact segmented toggle buttons in visual test accordions */
  body .btn-toggle-success,
  body .btn-toggle-danger {
    padding: 0.35rem 0.4rem;
    font-size: 0.78rem;
    text-align: center;
    min-height: 32px;
  }

  /* Compact photo thumbnail & badges on mobile */
  body .photo-container .photo-caption-badge {
    bottom: 4px;
    left: 4px;
    font-size: 0.65rem;
    padding: 0.18rem 0.5rem;
  }

  /* CCTV fallback container text */
  body .cctv-fallback-container .cctv-error-title {
    font-size: 0.8rem;
  }
  body .cctv-fallback-container .cctv-error-desc {
    font-size: 0.68rem;
    line-height: 1.2;
  }

  /* Visual test card item label on narrow col-6 cards */
  body .accordion-body .fw-bold.text-dark.text-sm.text-center {
    line-height: 1.2;
    word-break: break-word;
    hyphens: auto;
  }

  /* Table input-group fixes on mobile: prevent wrapping, maximize space for typed numbers */
  body .table .input-group {
    flex-wrap: nowrap !important;
    min-width: 110px !important;
  }
  body .table .input-group > .form-control {
    padding-left: 0.45rem !important;
    padding-right: 0.45rem !important;
    font-size: 0.85rem !important;
    min-width: 0 !important;
  }
  body .table .input-group > .input-group-text {
    padding-left: 0.4rem !important;
    padding-right: 0.4rem !important;
    font-size: 0.8rem !important;
    flex-shrink: 0 !important;
  }
}

/* Global table input-group anti-wrap rule */
body .table .input-group {
  flex-wrap: nowrap !important;
}
body .table .input-group > .input-group-text {
  flex-shrink: 0 !important;
}

/* ------------------------------------------------------------------------------
 * Responsive Mobile Tabs Styling (Settings & General Nav Pills)
 * ---------------------------------------------------------------------------- */
.setting-tabs-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.setting-tabs-wrapper::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

@media (max-width: 767.98px) {
  /* Maintain clean unified capsule pills on mobile */
  .setting-tabs-wrapper ul.setting-nav-pills {
    display: inline-flex;
    flex-wrap: nowrap;
    min-width: max-content;
  }
  .setting-tabs-wrapper ul.setting-nav-pills .nav-link {
    font-size: 0.85rem;
    padding: 6px 14px;
    white-space: nowrap;
  }
}

/* ------------------------------------------------------------------------------
 * Dynamic Process & CCTV Sort Items (Edit Group Uji & Group CCTV)
 * ---------------------------------------------------------------------------- */
.proses-sort-item {
  display: flex;
  flex-direction: column;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.625rem;
  gap: 0.625rem;
  transition: all 0.2s ease;
}
.proses-sort-item:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
}
.proses-sort-item .proses-sort-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-grow: 1;
  min-width: 0;
  color: #1e293b;
  font-weight: 600;
  word-break: break-word;
}
.proses-sort-item .proses-sort-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 0.5rem;
  border-top: 1px dashed #e2e8f0;
  gap: 0.75rem;
  flex-shrink: 0;
}
.proses-sort-item .urutan-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.proses-sort-item .urutan-input-wrapper label {
  margin-bottom: 0;
  color: #64748b;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
}
.proses-sort-item .urutan-input-wrapper .urutan-input {
  width: 65px;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  font-weight: 600;
  text-align: center;
}
.proses-sort-item .btn-remove-proses {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid #fee2e2;
  color: #ef4444;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.15s ease;
}
.proses-sort-item .btn-remove-proses:hover {
  background-color: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

@media (min-width: 576px) {
  .proses-sort-item {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 1rem;
    gap: 1rem;
  }
  .proses-sort-item .proses-sort-controls {
    width: auto;
    padding-top: 0;
    border-top: none;
    justify-content: flex-end;
  }
  .proses-sort-item .urutan-input-wrapper {
    border-left: 1px solid #e2e8f0;
    padding-left: 0.75rem;
  }
}

/* ------------------------------------------------------------------------------
 * Workflow Notification Count Pills
 * ---------------------------------------------------------------------------- */
.notif-count-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 22px !important;
  height: 22px !important;
  padding: 0 6px !important;
  border-radius: 999px !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-align: center !important;
  letter-spacing: 0 !important;
  font-variant-numeric: tabular-nums !important;
  flex-shrink: 0 !important;
}
.notif-count-pill.notif-count-warning {
  background-color: #fef3c7 !important;
  color: #d97706 !important;
  border: 1px solid rgba(217, 119, 6, 0.28) !important;
}
.notif-count-pill.notif-count-danger {
  background-color: #ffe4e6 !important;
  color: #e11d48 !important;
  border: 1px solid rgba(225, 29, 72, 0.28) !important;
}
.notif-count-pill.notif-count-purple {
  background-color: #f3e8ff !important;
  color: #7c3aed !important;
  border: 1px solid rgba(124, 58, 237, 0.28) !important;
}

/* ==========================================================================
   SweetAlert2 Enhanced Modal & Action Buttons
   ========================================================================== */
.swal2-container .swal2-popup {
  border-radius: 1.25rem;
  padding: 1.75rem 1.25rem;
  font-family: inherit;
}

.swal2-container .swal2-popup .swal2-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.swal2-container .swal2-popup .swal2-html-container {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0.5rem 0 1.5rem;
}

.swal2-container .swal2-popup .swal2-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 1.25rem;
  width: 100%;
  box-sizing: border-box;
}

.swal2-container .swal2-popup .swal2-actions button {
  margin: 0;
  font-weight: 600;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

/* Mobile: Stack buttons full-width with clean generous gap */
@media (max-width: 576px) {
  .swal2-container .swal2-popup {
    width: calc(100% - 2rem);
    padding: 1.5rem 1.25rem;
    margin: auto;
  }

  .swal2-container .swal2-popup .swal2-actions {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 0 0.5rem;
  }

  .swal2-container .swal2-popup .swal2-actions .btn,
  .swal2-container .swal2-popup .swal2-actions .swal2-styled {
    width: 100%;
    margin: 0;
    padding: 0.65rem 1rem;
    box-sizing: border-box;
    text-align: center;
    justify-content: center;
    display: inline-flex;
    align-items: center;
  }
}

/* CCTV Module Custom Styles */
.cctv-card {
  border-radius: 1.25rem;
  border: 1px solid rgba(226, 232, 240, 0.8) !important; /* Refined subtle border */
  box-shadow:
    0 4px 20px -2px rgba(148, 163, 184, 0.05),
    0 2px 6px -1px rgba(148, 163, 184, 0.03) !important; /* Tinted Slate Shadow */
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s ease;
}
.cctv-card:hover {
  transform: translateY(-6px);
  border-color: rgba(203, 213, 225, 1) !important;
  box-shadow:
    0 20px 40px -4px rgba(148, 163, 184, 0.12),
    0 8px 16px -4px rgba(148, 163, 184, 0.08) !important; /* Deep, soft float */
}
.cctv-play-btn {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}
.cctv-play-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.25);
}
.cctv-play-icon {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.cctv-type-badge {
  font-size: 0.7rem;
}
.cctv-action-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.cctv-action-terminal:hover {
  background-color: #f0fdf4 !important;
}
.cctv-action-edit:hover {
  background-color: #eff6ff !important;
}
.cctv-action-delete:hover {
  background-color: #fef2f2 !important;
}

.cctv-empty-icon-circle {
  width: 80px;
  height: 80px;
}
.cctv-modal-icon {
  width: 40px;
  height: 40px;
}

.cctv-code-block {
  font-family: "Consolas", monospace;
  font-size: 0.85rem;
  word-break: break-all;
  white-space: pre-wrap;
  background-color: transparent !important;
  color: #fff !important;
}
.cctv-modal-content {
  border-radius: 1.25rem;
}
.cctv-modal-footer {
  border-bottom-left-radius: 1.25rem;
  border-bottom-right-radius: 1.25rem;
}

@keyframes ping {
  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Premium Solid Badges (Taste Design) */
#cameraList .cctv-card .badge.cctv-badge-solid-success {
  background-color: #198754 !important; /* Standard Green */
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3) !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  padding: 0.6rem 1.75rem !important;
}
#cameraList .cctv-card .badge.cctv-badge-solid-danger {
  background-color: #dc3545 !important; /* Standard Red */
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3) !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  padding: 0.6rem 1.75rem !important;
}

/* Premium Action Buttons Physics */
.cctv-card .cctv-action-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #f8fafc !important;
  border: 1px solid transparent !important;
  box-shadow: 0 2px 4px rgba(148, 163, 184, 0.05) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.cctv-card .cctv-action-btn:hover {
  transform: translateY(-2px) scale(1.05);
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 8px 16px -4px rgba(148, 163, 184, 0.15) !important;
}
.cctv-card .cctv-action-btn:active {
  transform: translateY(1px) scale(0.95);
  box-shadow: 0 1px 2px rgba(148, 163, 184, 0.1) !important;
}


/* ==========================================================================
   MOBILE & TABLET HIGH-PERFORMANCE SCROLL & RENDERING OPTIMIZATIONS
   ========================================================================== */

/* Hardware Accelerated & Low-Latency Touch Scrolling untuk DataTables */
.datatable-scroll,
.dataTables_wrapper .datatable-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  transform: translateZ(0);
}

/* Akselerasi touch scrolling pada semua wrapper tabel responsif */
.table-responsive {
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
}

/* Optimasi Khusus Layar Tablet & HP (< 992px): Mencegah patah-patah & stutter pada GPU lama (misal 2016) */
@media (max-width: 991.98px) {
  /* 1. Sembunyikan lingkaran blur fixed latar belakang agar GPU tidak terbebani multi-pass Gaussian blur */
  body .ios-bg-blur-circle-1,
  body .ios-bg-blur-circle-2 {
    display: none !important;
  }

  /* 2. Nonaktifkan backdrop-filter pada card dan navbar floating agar scroll 60 FPS stabil */
  body .glass-card,
  body .page-header-light-custom .glass-card,
  body .ph2-breadcrumb-card,
  body .navbar-floating-pill,
  body .navbar-footer-fixed {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05) !important;
  }

  /* 3. Matikan transisi berat saat interaksi touch di mobile/tablet untuk mencegah repaint */
  body .glass-card {
    transition: none !important;
  }

  /* 4. Hindari transform paksa pada setiap baris tr karena menyebabkan baris berikutnya menindih dropdown baris sebelumnya */
  .dataTable tbody tr {
    transform: none;
  }
}


/* ==========================================================================
   GLOBAL DATATABLES ENHANCEMENTS FOR MOBILE & TABLET UX
   ========================================================================== */

/* Universal Touch & Momentum Scrolling Support */
.dataTables_scrollBody,
.dt-touch-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  transform: translateZ(0);
}

/* Sleek Horizontal Scrollbar khusus container DataTables */
.datatable-scroll::-webkit-scrollbar,
.dataTables_scrollBody::-webkit-scrollbar,
.dt-touch-scroll::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar {
  height: 5px;
}
.datatable-scroll::-webkit-scrollbar-track,
.dataTables_scrollBody::-webkit-scrollbar-track,
.dt-touch-scroll::-webkit-scrollbar-track,
.table-responsive::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 4px;
}
.datatable-scroll::-webkit-scrollbar-thumb,
.dataTables_scrollBody::-webkit-scrollbar-thumb,
.dt-touch-scroll::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 4px;
}
.datatable-scroll::-webkit-scrollbar-thumb:hover,
.dataTables_scrollBody::-webkit-scrollbar-thumb:hover,
.dt-touch-scroll::-webkit-scrollbar-thumb:hover,
.table-responsive::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.6);
}

/* Touch Ergonomics & Cell Alignment di Tablet & Mobile */
@media (max-width: 991.98px) {
  .dataTable .btn-sm,
  .dataTable .dropdown-toggle {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .dataTable td,
  .dataTable th {
    vertical-align: middle;
  }
}

/* ==========================================================================
   UNIVERSAL TABLE DROPDOWN STACKING & OVERFLOW FIX (DESKTOP & MOBILE)
   Mencegah menu dropdown tenggelam di bawah baris berikutnya / terpotong tabel.
   ========================================================================== */

/* 1. Elevasi Stacking Context Baris dan Sel saat Dropdown Aktif */
.table-responsive tbody tr:has(.dropdown-menu.show),
.table-responsive tbody tr.dropdown-active-row,
.datatable-scroll tbody tr:has(.dropdown-menu.show),
.datatable-scroll tbody tr.dropdown-active-row,
.dataTable tbody tr:has(.dropdown-menu.show),
.dataTable tbody tr.dropdown-active-row,
table tbody tr:has(.dropdown-menu.show),
table tbody tr.dropdown-active-row {
  position: relative !important;
  z-index: 1060 !important;
  transform: none !important;
}

.table-responsive tbody td:has(.dropdown-menu.show),
.table-responsive tbody td.dropdown-active-cell,
.datatable-scroll tbody td:has(.dropdown-menu.show),
.datatable-scroll tbody td.dropdown-active-cell,
.dataTable tbody td:has(.dropdown-menu.show),
.dataTable tbody td.dropdown-active-cell,
table tbody td:has(.dropdown-menu.show),
table tbody td.dropdown-active-cell {
  position: relative !important;
  z-index: 1060 !important;
  transform: none !important;
}

/* 2. Bebaskan Stacking Context pada kontainer scroll saat dropdown terbuka */
.datatable-scroll:has(.dropdown-menu.show),
.datatable-scroll.has-active-dropdown,
.dataTables_wrapper .datatable-scroll:has(.dropdown-menu.show),
.dataTables_wrapper .datatable-scroll.has-active-dropdown,
.dataTables_scrollBody:has(.dropdown-menu.show),
.dataTables_scrollBody.has-active-dropdown {
  transform: none !important;
}

/* 3. Dropdown Menu Styling di dalam tabel */
.table-responsive .dropdown-menu,
.datatable-scroll .dropdown-menu,
.dataTable .dropdown-menu {
  z-index: 1070 !important;
  position: absolute !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18) !important;
}

/* 4. Ruang aman pada mobile agar dropdown tidak terpotong vertikal di batas bawah tabel */
@media (max-width: 991.98px) {
  .table-responsive:has(.dropdown-menu.show),
  .table-responsive.has-active-dropdown,
  .datatable-scroll:has(.dropdown-menu.show),
  .datatable-scroll.has-active-dropdown,
  .dataTables_scrollBody:has(.dropdown-menu.show),
  .dataTables_scrollBody.has-active-dropdown {
    padding-bottom: 140px !important;
    margin-bottom: -140px !important;
  }

  .table-responsive .dropdown-menu-end,
  .datatable-scroll .dropdown-menu-end,
  .dataTable .dropdown-menu-end {
    right: 0 !important;
    left: auto !important;
  }
}

/* Modal Preview SIM BLUe - High-End Vanguard UI */
#modal_preview_bluecore .bc-passport-card {
  background: #f8fafc;
  color: #0f172a;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
#modal_preview_bluecore .bc-sub-val {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 600;
}
#modal_preview_bluecore .bc-verified-pill {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #059669;
  font-size: 0.75rem;
  font-weight: 600;
}
#modal_preview_bluecore .bc-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
  display: inline-block;
}
#modal_preview_bluecore #bc_period_list {
  padding: 10px 10px 16px 8px;
  margin-top: 6px;
}
#modal_preview_bluecore #bc_details_content {
  padding: 10px 8px 16px 6px;
  margin-top: 6px;
}
#modal_preview_bluecore .bc-period-card {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  margin-bottom: 12px;
}
#modal_preview_bluecore .bc-period-card:last-child {
  margin-bottom: 4px;
}
#modal_preview_bluecore .bc-period-card:hover {
  border-color: #93c5fd;
  background-color: #f8fafc;
  transform: translateY(-1px);
}
#modal_preview_bluecore .bc-period-card.is-active {
  border: 1.5px solid #2563eb;
  border-left: 4.5px solid #2563eb;
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}
#modal_preview_bluecore #bc_period_list::-webkit-scrollbar,
#modal_preview_bluecore #bc_details_content::-webkit-scrollbar {
  width: 5px;
}
#modal_preview_bluecore #bc_period_list::-webkit-scrollbar-track,
#modal_preview_bluecore #bc_details_content::-webkit-scrollbar-track {
  background: transparent;
}
#modal_preview_bluecore #bc_period_list::-webkit-scrollbar-thumb,
#modal_preview_bluecore #bc_details_content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
#modal_preview_bluecore #bc_period_list::-webkit-scrollbar-thumb:hover,
#modal_preview_bluecore #bc_details_content::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
#modal_preview_bluecore .bc-btn-apply {
  transition: all 0.2s ease;
}
#modal_preview_bluecore .bc-btn-apply:active {
  transform: scale(0.98);
}
#modal_preview_bluecore .bc-btn-icon-wrapper {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.22);
}
#modal_preview_bluecore .bc-photo-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid #e2e8f0;
  aspect-ratio: 4 / 3;
  width: 100%;
}
#modal_preview_bluecore .bc-photo-card a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
  background: #0f172a;
}
#modal_preview_bluecore .bc-photo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #0f172a;
  display: block;
  transition: transform 0.3s ease;
}
#modal_preview_bluecore .bc-photo-card:hover .bc-photo-img {
  transform: scale(1.04);
}
#modal_preview_bluecore .bc-photo-overlay {
  position: absolute;
  bottom: 6px;
  left: 6px;
  right: 6px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(2px);
  border-radius: 4px;
  padding: 2px 4px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  pointer-events: none;
  z-index: 2;
}
#modal_preview_bluecore .bc-bento-chip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 10px;
  text-align: center;
}
#modal_preview_bluecore .bc-bento-label {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 2px;
}
#modal_preview_bluecore .bc-bento-val {
  font-size: 1.15rem;
  font-weight: 800;
  font-family: monospace;
  color: #0f172a;
  line-height: 1.2;
}

/* Badge Status Compatibility for Bluecore Modal & System-wide */
.badge-status-primary {
  background: rgba(59, 130, 246, 0.12) !important;
  color: #2563eb !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
}

#modal_preview_bluecore .badge-status {
  display: inline-block;
  font-size: 0.78rem !important;
  font-weight: 600;
  padding: 3px 8px !important;
  border-radius: 4px;
  line-height: 1.2;
  letter-spacing: normal;
}

#modal_preview_bluecore .modal-header .header-icon-box {
  margin-right: 14px;
  flex-shrink: 0;
}




