/* =========================================
   1. IMPORT FONTS & GLOBAL STYLES
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@300;400;600;700&display=swap');

body {
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #f5f6fa;
  overflow-x: hidden; /* Mencegah scroll menyamping */
}

/* Logika Scroll saat Splash Screen Aktif */
body.splash-active {
  overflow: hidden;
}

body.loaded {
  overflow: auto;
}

/* =========================================
   GLOBAL UTILITIES (SCREEN ONLY)
   ========================================= */
/* Sembunyikan elemen khusus print saat di layar biasa */
.print-header, 
.print-solusi {
  display: none;
}

/* =========================================
   2. LAYOUT WRAPPER & SIDEBAR
   ========================================= */
#wrapper {
  display: flex;
  width: 100%;
  transition: all 0.3s;
  position: relative;
  
}

/* Sidebar Configuration */
#sidebar-wrapper {
  min-height: 100vh;
  width: 17rem;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  height: 100%;
  background-color: #1e1e2d; /* Warna Gelap Sidebar */
  color: #fff;
  transition: margin 0.3s ease-in-out, box-shadow 0.3s;
  
  /* Default Mobile: Tersembunyi */
  margin-left: -17rem;
  border-right: none !important;
}

/* Judul Sidebar */
#sidebar-wrapper .sidebar-heading {
  padding: 1.2rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  background-color: #1e3c72;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 10px;
  height: 69px;
}

/* Container Menu */
#sidebar-wrapper .list-group {
  width: 17rem;
  padding: 1rem 0;
}

/* Item Menu */
#sidebar-wrapper .list-group-item {
  background-color: transparent;
  color: #aeb7c2;
  border: none;
  padding: 0.9rem 1.5rem;
  font-weight: 500;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

#sidebar-wrapper .list-group-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  padding-left: 1.8rem;
}

#sidebar-wrapper .list-group-item.active {
  background-color: #2b2b40;
  color: #ffffff;
  font-weight: 600;
  border-left: 3px solid #0d6efd;
}

#sidebar-wrapper .list-group-item i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

#sidebarToggle:hover {
    color: #0d6efd !important; /* Berubah jadi biru saat di-hover */
    transform: scale(1.1);     /* Sedikit membesar */
}
#sidebarToggle:active {
    transform: scale(0.95);    /* Efek 'tertekan' saat diklik */
}

/* Label Kategori */
.sidebar-category {
  color: #6c757d;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 1.5rem 0 0.5rem 0;
  padding: 0 1.5rem;
}

/* Menu Logout */
.menu-logout {
  color: #ff6b6b !important;
  margin-top: 40px;
  border-top: 1px solid rgb(255 255 255 / 10%) !important;
}



/* =========================================
   3. KONTEN UTAMA & RESPONSIVE
   ========================================= */
#page-content-wrapper {
  width: 100%;
  min-height: 100vh;
  transition: margin 0.3s ease-in-out;
}

/* TAMPILAN DESKTOP (> 768px) */
@media (min-width: 768px) {
  #sidebar-wrapper { margin-left: 0; box-shadow: none; }
  #page-content-wrapper { margin-left: 17rem; width: calc(100% - 17rem); }
  
  /* Toggle di Desktop */
  body.sb-sidenav-toggled #sidebar-wrapper { margin-left: -17rem; }
  body.sb-sidenav-toggled #page-content-wrapper { margin-left: 0; width: 100%; }
}

/* TAMPILAN MOBILE (< 768px) */
@media (max-width: 768px) {
  #sidebar-wrapper { margin-left: -17rem; }
  #page-content-wrapper { margin-left: 0; width: 100%; }
  
  /* Toggle di Mobile */
  body.sb-sidenav-toggled #sidebar-wrapper { 
    margin-left: 0; 
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5); 
  }
  
  /* Backdrop Gelap */
  body.sb-sidenav-toggled #wrapper::before {
    content: ""; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5); z-index: 9990; backdrop-filter: blur(2px);
  }
  
  body.sb-sidenav-toggled { overflow: hidden; }
}

/* =========================================
   4. NAVBAR DASHBOARD (HEADER ATAS)
   ========================================= */
.navbar-dashboard, .navbar {
  height: 70px;
  background: linear-gradient(90deg, #1e3c72 0%, #2a5298 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 0 1rem;
  z-index: 1030;
  position: sticky; 
  top: 0;
  display: flex;
  align-items: center;
}

/* ATURAN UMUM: Teks & Icon Menu Navigasi jadi Putih */
.navbar-dashboard .navbar-brand,
.navbar-dashboard .nav-link,
.navbar-dashboard i,
.navbar .navbar-brand,
.navbar .nav-link,
.navbar i {
    color: #ffffff !important;
}

/* PENGECUALIAN: Tombol Login */
.navbar-dashboard .btn i,
.navbar .btn i {
    color: inherit !important; 
}

.navbar .text-primary-custom i {
    color: #1e3c72 !important;
}

/* =========================================
   5. SPLASH SCREEN (FIXED)
   ========================================= */
#splash-screen {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background-color: #ffffff;
  z-index: 2147483647 !important; 
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  /* Transisi opacity dan visibility agar smooth */
  transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
  opacity: 1;
  visibility: visible;
}

.splash-icon { font-size: 4rem; color: #1e3c72; margin-bottom: 15px; animation: pulse 2s infinite; }
.splash-title { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 1.5rem; color: #101828; letter-spacing: -0.5px; margin-bottom: 5px; }
.splash-subtitle { font-family: 'Inter', sans-serif; font-size: 0.9rem; color: #667085; }
.custom-loader {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    /* Warna border transparan (ring luar) */
    border: 4px solid rgba(30, 60, 114, 0.15);
    /* Warna border atas (indikator putar) */
    border-top-color: #1e3c72;
    margin-top: 30px;
    
    /* REVISI: Durasi dipercepat jadi 1s dan pakai ease-in-out biar elastis */
    animation: chase 1s infinite ease-in-out;
}

/* Class untuk menyembunyikan splash screen */
.splash-hidden { 
  opacity: 0; 
  visibility: hidden; 
  /* PENTING: Agar user bisa klik tombol di belakangnya saat splash memudar */
  pointer-events: none; 
}

/* Logika Footer saat Splash */
body.splash-active #mobileBottomNav { display: none !important; opacity: 0; }

/* Animations */
@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.05); opacity: 0.8; } 100% { transform: scale(1); opacity: 1; } }
@keyframes bounceIcon { 0% { transform: scale(1); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
/* Pastikan Keyframes ini tetap ada */
@keyframes chase {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* =========================================
   6. COMPONENTS (Card, Badges, Timeline)
   ========================================= */
/* Cards */
.card { border: none; border-radius: 12px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); overflow: hidden; }
.card-header { background: #fff; border-bottom: 1px solid #eee; padding: 20px; font-weight: 600; color: #333; }
.btn-primary-custom { background: linear-gradient(90deg, #d53369 0%, #daae51 100%); border: none; color: white; font-weight: 600; }

/* Badges / Utilities */
.bg-soft-danger { background-color: rgba(220, 53, 69, 0.1); color: #dc3545; border: 1px solid rgba(220, 53, 69, 0.2); }
.bg-soft-warning { background-color: rgba(255, 193, 7, 0.1); color: #856404; border: 1px solid rgba(255, 193, 7, 0.2); }
.bg-soft-success { background-color: rgba(25, 135, 84, 0.1); color: #198754; border: 1px solid rgba(25, 135, 84, 0.2); }
.bg-soft-primary { background-color: rgba(13, 110, 253, 0.1); color: #0d6efd; border: 1px solid rgba(13, 110, 253, 0.2); }
.bg-soft-info { background-color: rgba(13, 202, 240, 0.1); color: #0dcaf0; border: 1px solid rgba(13, 202, 240, 0.2); }

.status-badge { font-size: 0.7rem; padding: 5px 12px; border-radius: 50px; text-transform: capitalize; font-weight: bold; }

/* Timeline */
.btn-detail-custom { font-size: 0.7rem !important; padding: 5px 12px !important; text-transform: capitalize; font-weight: bold; line-height: 1; border-radius: 50px !important; }
.solusi-box { border-left: 3px solid #198754; background-color: #f8fff9; padding: 8px 12px; margin-top: 10px; border-radius: 0 4px 4px 0; font-size: 0.85rem; }
.timeline-steps { position: relative; padding-left: 30px; list-style: none; }
.timeline-steps::before { content: ""; position: absolute; left: 7px; top: 5px; bottom: 5px; width: 2px; background: #e9ecef; }
.timeline-step-item { position: relative; padding-bottom: 20px; }
.timeline-step-dot { position: absolute; left: -30px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid #dee2e6; z-index: 3; }

.step-pending .timeline-step-dot { background: #dc3545; border-color: #f8d7da; }
.step-process .timeline-step-dot { background: #ffc107; border-color: #fff3cd; }
.step-success .timeline-step-dot { background: #198754; border-color: #d1e7dd; }

.pulse-dot { position: absolute; left: -30px; width: 16px; height: 16px; border-radius: 50%; z-index: 2; }
.pulse-dot::after { content: ""; position: absolute; width: 100%; height: 100%; border-radius: 50%; background: inherit; animation: pulse-animation 1.5s infinite; opacity: 0.6; }
@keyframes pulse-animation { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(2.5); opacity: 0; } }
.step-pending .pulse-dot { background-color: #dc3545; }
.step-process .pulse-dot { background-color: #ffc107; }
.step-success .pulse-dot { background-color: #198754; }

/* =========================================
   7. MOBILE BOTTOM NAV & FAB
   ========================================= */
#mobileBottomNav {
  position: fixed !important; bottom: 0 !important; left: 0 !important; width: 100% !important;
  height: 75px; 
  /* PERBAIKAN DI SINI: Turunkan z-index jadi 1040 (Di bawah Modal Backdrop 1050) */
  z-index: 1040 !important; 
  background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 0, 0, 0.05); box-shadow: 0 -5px 15px rgba(0,0,0,0.08);
  padding-bottom: env(safe-area-inset-bottom);
  transform: none !important; top: auto !important; display: flex; transition: transform 0.3s ease-in-out;
}

.nav-item-link {
  color: #adb5bd; transition: color 0.3s, transform 0.2s; position: relative;
  padding: 5px 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-decoration: none !important; -webkit-tap-highlight-color: transparent;
}

#mobileBottomNav .nav-item-link i {
  font-size: 1.4rem;
  margin-bottom: 4px;
  display: block;
  line-height: 1;
  color: #adb5bd !important; 
}

.nav-item-link.active { color: #0d6efd; }
.nav-item-link.active i { transform: translateY(-3px); }
#mobileBottomNav .nav-item-link.active i { color: #0d6efd !important; }

.nav-item-link:active { color: #0d6efd; transform: scale(0.9); }
.nav-item-link:active i { animation: bounceIcon 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.nav-label { font-size: 10px; font-weight: 600; margin-top: 3px; display: block; }

/* Center FAB */
.center-fab {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: white !important; box-shadow: 0 10px 25px rgba(13, 110, 253, 0.4);
  margin-top: -35px; border: 5px solid #fff; position: relative; 
  /* Z-Index harus sama atau sedikit di atas nav tapi tetap di bawah modal */
  z-index: 1041; 
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); -webkit-tap-highlight-color: transparent;
}
.center-fab i { font-size: 1.8rem; transition: transform 0.2s; color: #ffffff !important; }
.center-fab:active { transform: scale(0.85); box-shadow: 0 2px 10px rgba(13, 110, 253, 0.2); }
.center-fab:active i { transform: rotate(90deg); }

/* =========================================
   FLOATING ACTION BUTTON (FAB) & ANIMASI
   ========================================= */

/* 1. Container Tombol */
.fab-container {
  position: fixed; 
  right: 15px; 
  bottom: 50px; 
  z-index: 1045; /* Di bawah Modal (1055) tapi di atas konten lain */
  
  /* Transisi Halus untuk Efek Muncul/Hilang */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Status Default: Muncul */
  transform: scale(1);
  opacity: 1;
  visibility: visible;
}

/* 2. LOGIKA HILANG SAAT MODAL MUNCUL (Otomatis dari Bootstrap) */
body.modal-open .fab-container {
  transform: scale(0) translateY(20px); /* Mengecil & Turun */
  opacity: 0;           /* Transparan */
  visibility: hidden;   /* Tidak bisa diklik */
  pointer-events: none;
}

/* 3. Styling Tombol Bulat */
.btn-fab {
  width: 60px; 
  height: 60px; 
  border-radius: 50%;
  display: flex; 
  align-items: center; 
  justify-content: center;
  font-size: 24px; 
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  
  /* Animasi Berdenyut Terus Menerus */
  animation: btnPulse 2s infinite ease-in-out; 
}

/* 4. Definisi Animasi Denyut (Pulse) */
@keyframes btnPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  }
  50% {
    transform: scale(1.05); /* Membesar 5% */
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.5); /* Glow Biru */
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  }
}

/* 5. Efek Hover (Saat Mouse Diarahkan) */
.btn-fab:hover {
  animation-play-state: paused; /* Stop denyut agar mudah diklik */
  transform: scale(1.1);        /* Membesar sedikit */
  cursor: pointer;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* 6. Efek Klik (Saat Tombol Ditekan) */
.btn-fab:active { 
  transform: scale(0.95);
}

/* 7. Responsif Mobile & Desktop */
@media (min-width: 768px) {
  /* Di Laptop jadi lonjong ada teksnya */
  .btn-fab { 
    width: auto; 
    height: auto; 
    border-radius: 50px; 
    padding: 12px 25px; 
    font-size: 16px; 
  }
  .btn-fab i { margin-right: 8px; font-size: 18px; }
}

@media (max-width: 768px) {
  /* Di HP posisi agak naik biar gak ketutup navbar bawah */
  .fab-container { bottom: 100px; right: 20px; }
}
/* =========================================
   8. MODALS & DATATABLES & PAGINATION (FIXED Z-INDEX)
   ========================================= */

/* 1. NAVBAR (Turunkan Level) */
/* Pastikan ini lebih rendah dari Backdrop & Modal */
.navbar, .navbar-dashboard, .sticky-top {
    z-index: 900 !important; 
}

/* Sidebar juga di level menengah */
#sidebar-wrapper {
    z-index: 910 !important;
}

/* 2. MODAL BACKDROP (Layar Gelap) */
/* Bootstrap default 1050, kita pastikan di atas Navbar */
.modal-backdrop { 
    z-index: 1050 !important; 
}

/* 3. MODAL CONTENT (Pop Up) */
/* Harus di atas Backdrop (1050) */
.modal { 
    z-index: 1060 !important; 
}

/* 4. PLUGIN LAINNYA (Harus paling atas) */

/* Kalender Flatpickr (agar muncul di atas modal) */
.flatpickr-calendar { 
    z-index: 1070 !important; 
}

/* SweetAlert / Toast (agar notifikasi muncul paling depan) */
.swal2-container {
    z-index: 1080 !important;
}
/* =========================================
   9. FOOTER CUSTOM
   ========================================= */
.footer-custom {
  margin-top: 1.5rem;        
  padding-top: 1rem;         
  padding-bottom: 1rem;
  width: 100%;
  font-size: 0.9rem;        
}

.footer-custom .container {
  border-top: 1px solid #dee2e6; 
  padding-top: 1rem;              
}

/* =========================================
   10. MOBILE OPTIMIZATION (KHUSUS LAYAR KECIL)
   Mengoptimalkan ukuran font & padding di HP
   ========================================= */

@media (max-width: 768px) {
  
  /* 1. NAVBAR & HEADER */
  .navbar-brand {
    font-size: 1.1rem !important; /* Kecilkan judul navbar */
  }
  .navbar-brand img {
    width: 28px !important; /* Kecilkan logo navbar */
    height: 28px !important;
  }
  /* Subtitle di navbar mobile */
  .navbar .d-block.fw-bold { font-size: 0.85rem !important; }
  .navbar .d-block.text-white-50 { font-size: 0.65rem !important; }


  /* 2. PAGE TITLE & SUBTITLE */
  h3.fw-bold {
    font-size: 1.25rem !important; /* Judul Halaman Utama */
    margin-bottom: 0.25rem !important;
  }
  p.text-muted {
    font-size: 0.8rem !important; /* Deskripsi di bawah judul */
    line-height: 1.4;
  }


  /* 3. CARD & TABEL */
  .card-header h6 {
    font-size: 0.9rem !important; /* Judul Card (Riwayat) */
  }
  
  /* DataTables Font Adjustment */
  table.dataTable thead th, 
  table.dataTable tbody td {
    font-size: 0.75rem !important; /* Kecilkan isi tabel */
    padding: 8px 5px !important;    /* Kurangi padding sel */
  }
  
  /* Nama Pelapor di Tabel */
  .fw-bold.text-dark { font-size: 0.8rem !important; } 
  
  /* Nama Aset / Masalah */
  .fw-bold.text-primary.small { font-size: 0.75rem !important; }
  
  /* Badge Status */
  .status-badge {
    font-size: 0.6rem !important;
    padding: 3px 8px !important;
  }


  /* 4. MODAL (POPUP) */
  .modal-title {
    font-size: 1.1rem !important;
  }
  .modal-header p.small {
    font-size: 0.75rem !important;
  }
  .modal-body label {
    font-size: 0.75rem !important; /* Label Form */
  }
  .modal-body input, 
  .modal-body select, 
  .modal-body textarea {
    font-size: 0.85rem !important; /* Input text */
    padding: 0.6rem 0.75rem !important; /* Kurangi tinggi input */
  }
  
  /* Kita targetkan ID modalnya agar lebih spesifik */
#modalBuatLaporan .modal-title {
    /* Gunakan clamp agar responsif (Mobile kecil, Desktop besar) */
    font-size: clamp(1.25rem, 3vw, 1.8rem) !important;
}

/* OOPSIONAL: Jika ingin label form juga sedikit lebih besar khusus di modal ini */
#modalBuatLaporan .modal-body label {
    font-size: 0.85rem !important; 
}
  
  /* Timeline di Modal Tracking */
  .timeline-content .fw-bold { font-size: 0.8rem !important; }
  .timeline-content small { font-size: 0.7rem !important; }
  .timeline-content p { font-size: 0.75rem !important; }


  /* 5. COMPONENTS LAIN (TOAST & NAV) */
  
  /* SweetAlert Toast - FIX ERROR EDITOR */
  .swal2-container .swal2-title {
      font-size: 1rem !important;
  }
  .swal2-popup {
      font-size: 0.8rem !important;
      padding: 0.5em !important;
  }

  /* Footer Bottom Nav Label */
  .nav-label {
    font-size: 9px !important; /* Label menu bawah */
  }
  #mobileBottomNav i {
    font-size: 1.2rem !important; /* Icon menu bawah */
  }
  
  /* Button FAB (Tambah Laporan) */
  .btn-fab {
    width: 50px !important;
    height: 50px !important;
    font-size: 20px !important;
  }
  .fab-container {
    bottom: 90px !important; /* Naikkan sedikit agar tidak tertutup nav */
    right: 15px !important;
  }

  /* 6. FIX LAYOUT BAWAH (FINAL ADJUSTMENT) */
  
  #page-content-wrapper {
    padding-bottom: 50px !important; 
  }

  body > .container {
    padding-bottom: 100px !important; 
  }

  /* C. Reset container dalam wrapper agar tidak double */
  #page-content-wrapper .container,
  #page-content-wrapper .container-fluid {
    padding-bottom: 0 !important;
  }
}

/* =========================================
   12. DATATABLES LAYOUT FIX (DESKTOP)
   ========================================= */

/* Add padding to the top controls (Show entries & Search) */
.dataTables_wrapper .row:first-child {
    padding: 15px 15px 5px 15px; /* Top, Right, Bottom, Left */
    margin-right: 0;
    margin-left: 0;
}

/* Add padding to the bottom controls (Info & Pagination) */
.dataTables_wrapper .row:last-child {
    padding: 5px 15px 15px 15px; /* Top, Right, Bottom, Left */
    margin-right: 0;
    margin-left: 0;
}

/* --- TAMBAHAN BARU --- */
div.dataTables_wrapper div.dataTables_filter label {
    font-weight: normal;
    white-space: nowrap;
    text-align: left;
    margin: 10px;
}

/* Ensure the table itself fits well */
div.dataTables_wrapper div.dataTables_length select {
    width: auto;
    display: inline-block;
}

/* Fix for small screens to prevent overflow if necessary */
@media (max-width: 768px) {
    .dataTables_wrapper .row:first-child,
    .dataTables_wrapper .row:last-child {
        padding: 10px;
    }
}


/* =========================================
   13. GLOBAL PRINT STYLES (CETAK PDF)
   ========================================= */
@media print {
  /* 1. Atur Kertas Landscape & Margin Tipis */
  @page {
    size: landscape;
    margin: 10mm 10mm 10mm 10mm; /* Atas Kanan Bawah Kiri */
  }

  /* 2. Sembunyikan Elemen Non-Cetak (Termasuk DataTables Controls) */
  .no-print,
  .navbar,
  .navbar-dashboard,
  #sidebar-wrapper,
  #mobileBottomNav,
  .fab-container,
  .btn,
  .modal,
  .modal-backdrop,
  form,
  .footer-custom,
  #installContainer,
  /* HIDE DATATABLES CONTROLS (Penting!) */
  .dataTables_filter,    /* Kotak Cari */
  .dataTables_length,    /* Dropdown Show entries */
  .dataTables_info,      /* Teks Showing 1 of... */
  .dataTables_paginate,  /* Tombol Next/Prev */
  div.dataTables_wrapper .row:first-child, /* Baris atas tabel */
  div.dataTables_wrapper .row:last-child   /* Baris bawah tabel */
  {
    display: none !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
  }

  /* 3. Reset Layout Agar Full Width & Tinggi Otomatis */
  html, body, #wrapper, #page-content-wrapper {
    width: 100% !important;
    height: auto !important; /* Mencegah halaman kosong ke-2 */
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: white !important;
    display: block !important; /* Matikan Flexbox */
    overflow: visible !important;
  }

  /* 4. Reset Container & Card */
  .container, .container-fluid, .card, .card-body {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }

  /* 5. Styling Tabel Cetak (Agar Garis Rapi) */
  .table-responsive {
    overflow: visible !important;
    display: block !important;
    width: 100% !important;
  }
  
  .table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-bottom: 0 !important;
  }
  
  .table th, .table td {
    border: 1px solid #000 !important; /* Border hitam tegas */
    padding: 8px 10px !important;
    font-size: 10pt !important; /* Ukuran font pas untuk cetak */
    color: #000 !important;
    vertical-align: top !important;
    white-space: normal !important; /* Text wrap aktif */
  }
  
  /* Hilangkan border ganda pada thead */
  .table thead th {
    border-bottom: 2px solid #000 !important;
  }

  /* 6. Header Laporan (Hanya Muncul saat Print) */
  .print-header {
    display: block !important;
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
  }

  .print-header h4 {
      font-size: 16pt !important;
      font-weight: bold !important;
      color: #000 !important;
      margin-bottom: 5px !important;
  }

  .print-header small {
      font-size: 10pt !important;
      color: #333 !important;
  }

  .print-solusi {
    display: block !important;
    font-family: inherit;
  }

  /* 7. Paksa Warna Badge Status Muncul */
  .badge, 
  .bg-soft-success, 
  .bg-soft-warning, 
  .bg-soft-danger {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
    border: 1px solid #999; /* Border tipis agar jelas di printer BW */
    color: #000 !important; /* Teks badge jadi hitam agar terbaca */
    font-weight: bold;
  }
  
  /* Warna Background Badge Khusus Print */
  .bg-soft-success { background-color: #d1e7dd !important; }
  .bg-soft-warning { background-color: #fff3cd !important; }
  .bg-soft-danger { background-color: #f8d7da !important; }
}

/* =========================================
   14. NOTIFICATION DROPDOWN (BARU)
   Mengatur tampilan dropdown notifikasi simetris
   ========================================= */

/* Desktop & General Style */
.dropdown-notif-wide {
    width: 360px !important; /* Lebar default desktop */
    border: none;
    border-radius: 10px;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
    padding: 0;
    overflow: hidden;
    margin-top: 10px; /* Jarak dari navbar */
}

/* Scroll Area */
.notif-scroll-area {
    max-height: 320px;
    overflow-y: auto;
}
.notif-scroll-area::-webkit-scrollbar { width: 5px; }
.notif-scroll-area::-webkit-scrollbar-thumb { background-color: #dee2e6; border-radius: 10px; }

/* Item Notifikasi */
.notif-item {
    transition: background 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
    border-bottom: 1px solid #f2f2f2;
}
.notif-item:hover {
    background-color: #f8f9fa; /* Hover abu muda */
}

/* Dot Indikator Status */
.status-dot-theme {
    height: 10px; width: 10px;
    border-radius: 50%;
    display: inline-block;
}

/* === NOTIFICATION RED DOT (LONCENG) === */
.notification-dot {
    position: absolute;
    top: 3px;     /* Atur posisi vertikal dari atas ikon */
    right: 0px;   /* Atur posisi horizontal dari kanan ikon */
    width: 9px;   /* Diameter dot */
    height: 9px;
    background-color: #dc3545; /* Merah Danger Bootstrap */
    border: 1.5px solid #fff;  /* Border putih agar terpisah dari ikon */
    border-radius: 50%;        /* Membuat bentuk lingkaran */
    z-index: 10;
}

/* === MOBILE SYMMETRIC STYLE (PENTING) === */
@media (max-width: 768px) {
    /* Mengubah posisi dropdown jadi Fixed (Modal-like) */
    .dropdown-menu.dropdown-notif-wide {
        position: fixed !important;
        top: 70px !important; /* Pas di bawah navbar */
        left: 50% !important;
        transform: translateX(-50%) !important; /* Geser agar benar-benar tengah */
        width: 92% !important; /* Lebar simetris */
        max-width: 400px;
        margin: 5px auto;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        z-index: 1055 !important;
    }

    /* Hilangkan panah dropdown jika ada */
    .dropdown-menu.dropdown-notif-wide::before,
    .dropdown-menu.dropdown-notif-wide::after {
        display: none !important;
    }
}

/* =========================================
   15. [BARU] HOVER EFFECTS UNTUK CARD
   ========================================= */
.hover-shadow {
  transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}

.hover-shadow:hover {
  transform: translateY(-5px); /* Kartu naik sedikit */
  box-shadow: 0 10px 20px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06) !important;
  border-color: #bcd0f5 !important; /* Border jadi agak biru */
  cursor: pointer;
}

/* =========================================
   16. EMPTY STATE IMAGE STYLE
   ========================================= */
.empty-img {
    width: 180px;       /* Ukuran gambar diatur disini */
    max-width: 60%;     /* Agar aman di HP */
    opacity: 0.9;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.empty-img:hover {
    transform: scale(1.1) rotate(5deg); 
    cursor: pointer;
}

/* =========================================
   17. FIX SCROLLBAR & GAP SAAT MODAL BUKA
   ========================================= */

/* 1. Paksa scrollbar tetap ada agar layout tidak loncat */
body.modal-open {
    overflow-y: scroll !important; /* Scrollbar tetap terlihat */
    padding-right: 0 !important;   /* Hapus padding tambahan Bootstrap */
}

/* 2. Pastikan Navbar tidak ikut bergeser/mengecil */
.navbar, 
.navbar-dashboard, 
.sticky-top, 
.fixed-top {
    padding-right: 0 !important;
    margin-right: 0 !important;
}
/* Efek fokus pada input clean */
.form-control.bg-light:focus, 
.form-select.bg-light:focus {
    background-color: #fff !important; /* Saat diklik jadi putih */
    box-shadow: 0 0 0 4px rgba(30, 60, 114, 0.1); /* Glow halus biru */
    border: 1px solid #e9ecef !important;
}

