body { 
  background-color: #f4f6f9; 
  padding: 10px; 
  font-size: 16px; 
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.card { 
  box-shadow: 0 4px 8px rgba(0,0,0,0.1); 
  border: none; 
  border-radius: 12px;
  background: white;
}
#app-content { display: none; }
.btn { min-height: 44px; font-size: 16px; border-radius: 8px; }
.form-control, .form-select { min-height: 44px; font-size: 16px; }

.logo-sekolah {
  width: 100px; 
  height: 100px; 
  object-fit: contain;
  border-radius: 50%; 
  padding: 8px; 
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15); 
  margin-bottom: 10px;
}

.nav-tabs-app { 
  display: flex; 
  gap: 4px; 
  overflow-x: auto; 
  padding-bottom: 4px; 
  border-bottom: 1px solid #dee2e6; 
}
.nav-tabs-app .nav-link {
  border-radius: 8px 8px 0 0;
  color: #333; 
  font-weight: 500;
  padding: 10px 16px;
  white-space: nowrap;
  background: #e9ecef; 
  border: none;
  cursor: pointer;
}
.nav-tabs-app .nav-link.active { 
  background: white; 
  color: #0d6efd; 
  font-weight: bold; 
}

.table-responsive { max-height: 500px; overflow-y: auto; }

.badge-status { font-size: 11px; padding: 4px 8px; border-radius: 6px; }
.badge-pending { background: #ffc107; color: #000; }
.badge-approved { background: #198754; color: #fff; }
.badge-rejected { background: #dc3545; color: #fff; }

#loading-overlay {
  position: fixed; top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.5); color: white;
  display: none; justify-content: center; align-items: center;
  z-index: 9999; font-size: 18px;
}
#loading-overlay.active { display: flex; }

@media (max-width: 768px) {
  body { padding: 8px; }
  .table-responsive { max-height: none; }
  h2 { font-size: 1.3rem; }
  #tabel-laporan thead, #tabel-rhk thead, #tabel-user thead { display: none; }
  #tabel-laporan tr, #tabel-rhk tr, #tabel-user tr {
    display: block; margin-bottom: 10px;
    border: 1px solid #ddd; border-radius: 8px;
    padding: 8px; background: white;
  }
  #tabel-laporan td, #tabel-rhk td, #tabel-user td {
    display: block; text-align: left;
    border: none; padding: 4px 0;
  }
  #tabel-laporan td::before, #tabel-rhk td::before, #tabel-user td::before {
    content: attr(data-label) ": ";
    font-weight: bold; color: #555;
    display: inline-block; min-width: 80px;
  }
}

@media (max-width: 768px) {
  .table-responsive { 
    overflow-x: hidden !important;
  }
  table { 
    font-size: 13px; 
  }
  /* Sembunyikan kolom yang tidak penting */
  #tabel-laporan th:nth-child(1),
  #tabel-laporan td:nth-child(1),   /* No */
  #tabel-laporan th:nth-child(6),
  #tabel-laporan td:nth-child(6)    /* Foto */
  {
    display: none;
  }
}

.nav-tabs-app {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.nav-tabs-app::-webkit-scrollbar { display: none; }