/* SI Retribusi Sampah - gaya tambahan di atas AdminLTE 3.2 */

.brand-link .brand-logo { background: none; opacity: 1; max-height: 38px; margin-top: -4px; }

.avatar-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: #28a745;
  color: #fff;
  font-weight: 700;
}
.avatar-lg { width: 4.5rem; height: 4.5rem; font-size: 1.9rem; }
.user-panel .info { padding-left: .6rem; max-width: 170px; }
.user-panel .info small { display: block; }

.table td, .table th { vertical-align: middle; }
.table .aksi { white-space: nowrap; }

/* Halaman login */
.login-page { background: linear-gradient(160deg, #155d2c 0%, #28a745 55%, #9fdcae 100%); }
.login-logo-img { width: 92px; height: 92px; object-fit: contain; }
.login-box .card { border-radius: .6rem; }

/* Grid status pembayaran 12 bulan */
.periode-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .5rem; }
.periode-cell { border-radius: .35rem; padding: .5rem .6rem; border: 1px solid transparent; line-height: 1.3; }
.periode-cell .bulan { font-weight: 600; display: block; }
.periode-cell small { display: block; }
.periode-lunas { background: #e8f6ec; border-color: #9fd5ae; color: #155d2c; }
.periode-tunggak { background: #fdecee; border-color: #f1aeb5; color: #842029; }
.periode-belum { background: #f4f6f9; border-color: #dee2e6; color: #6c757d; }

/* Halaman error */
.error-wrap { padding-top: 12vh; }

/* Cetak */
.print-only { display: none; }
.kop { position: relative; border-bottom: 3px double #212529; padding-bottom: .5rem; margin-bottom: 1rem; text-align: center; }
.kop-logo { position: absolute; left: 0; top: 0; width: 70px; height: 70px; object-fit: contain; }
.kop h4, .kop h5 { margin: 0; font-weight: 700; }
.ttd { margin-top: 2.5rem; }
.ttd .nama { margin-top: 4rem; font-weight: 700; text-decoration: underline; }

.kwitansi-wrap { max-width: 820px; margin: 24px auto; }
.kwitansi { background: #fff; padding: 28px 32px; border: 1px solid #dee2e6; border-radius: .4rem; }
.kwitansi .table td, .kwitansi .table th { padding: .35rem .5rem; }
.kwitansi .terbilang { font-style: italic; background: #f4f6f9; padding: .5rem .75rem; border-left: 4px solid #28a745; }

@media print {
  @page { margin: 12mm; }
  body { background: #fff !important; font-size: 11pt; }
  .print-only { display: block !important; }
  .no-print, .main-sidebar, .main-header, .main-footer, .content-header,
  .dataTables_length, .dataTables_filter, .dataTables_paginate, .dataTables_info, .btn, .alert {
    display: none !important;
  }
  .content-wrapper { margin-left: 0 !important; background: #fff !important; }
  .layout-navbar-fixed .wrapper .content-wrapper { margin-top: 0 !important; padding-top: 0 !important; }
  .card { box-shadow: none !important; border: 0 !important; }
  .card-header { background: none !important; border: 0 !important; padding-left: 0; }
  .kwitansi-wrap { margin: 0; max-width: none; }
  .kwitansi { border: 0; padding: 0; }
}

/* Halaman peran & hak akses */
.izin-grup { margin-bottom: 1.1rem; }
.izin-grup:last-child { margin-bottom: 0; }
.izin-grup .custom-control-label { cursor: pointer; }
.izin-grup .custom-control-label code { color: #6c757d; }
.izin-grup .custom-control-input:checked ~ .custom-control-label { font-weight: 600; }

/* Peta penandaan lokasi */
.peta-kotak { width: 100%; border: 1px solid #dee2e6; border-radius: .25rem; z-index: 0; }
.peta-pilih { height: 360px; }
.peta-sebaran { height: 520px; }
.peta-kecil { height: 260px; }
.penanda-titik { display: block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 3px rgba(0,0,0,.5); }
.penanda-hijau { background: #28a745; }
.penanda-kuning { background: #ffc107; }
.penanda-merah { background: #dc3545; }
.penanda-abu { background: #6c757d; }
.peta-legenda span { display: inline-flex; align-items: center; margin-right: .9rem; font-size: .85rem; }
.peta-legenda .penanda-titik { margin-right: .35rem; }
@media print { .peta-kotak { display: none !important; } }

/* Pinpoint wajib retribusi */
.pinpoint-wr svg { display: block; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.pinpoint-aktif svg { animation: pinpoint-muncul .25s ease-out; }
@keyframes pinpoint-muncul { from { transform: translateY(-8px); opacity: .3; } to { transform: none; opacity: 1; } }
.peta-mode-tandai { cursor: crosshair; }
.peta-mode-tandai .leaflet-container { cursor: crosshair; }

/* Catatan status peta dasar */
.peta-catatan { max-width: 320px; padding: .45rem .6rem; border-radius: .25rem; font-size: .8rem; line-height: 1.35; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.peta-catatan-info { background: #fff; color: #495057; }
.peta-catatan-peringatan { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.peta-catatan-gagal { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Titik perkiraan hasil pencarian alamat */
.penanda-auto { background: repeating-linear-gradient(45deg, #ffc107, #ffc107 3px, #fff 3px, #fff 6px); }
.pinpoint-otomatis svg { opacity: .92; }

/* Pratinjau bukti pembayaran */
.bukti-pratinjau { max-height: 260px; object-fit: contain; background: #f4f6f9; width: 100%; }
.custom-file-label::after { content: "Pilih"; }

/* Editor konten & form menu */
.editor-teks { font-family: SFMono-Regular, Menlo, Consolas, monospace; font-size: .92rem; line-height: 1.55; resize: vertical; min-height: 18rem; }
.editor-konten .nav-pills .nav-link.active { background: #28a745; }
.konten-artikel h2 { font-size: 1.35rem; margin: 1.4rem 0 .5rem; }
.konten-artikel h3 { font-size: 1.1rem; margin: 1.2rem 0 .4rem; }
.konten-artikel blockquote { margin: 1rem 0; padding: .6rem .9rem; background: #fff8e1; border-left: 4px solid #e0a800; }
.ikon-pilihan { display: flex; flex-wrap: wrap; gap: .25rem; }
.ikon-pilihan .btn { width: 2.2rem; }

/* SweetAlert2 menyesuaikan tampilan AdminLTE */
.swal2-popup { font-family: inherit; border-radius: .5rem; }
.swal2-title { font-size: 1.35rem; }
.swal2-html-container { font-size: 1rem; }
.swal2-actions .btn { min-width: 110px; }
.swal2-container.swal2-top-end { top: 3.5rem; }      /* toast tidak menutupi navbar */
.swal2-timer-progress-bar { background: rgba(40, 167, 69, .55); }
@media print { .swal2-container { display: none !important; } }

/* Pengingat WhatsApp */
.wa-latar { background: #efeae2; border-radius: .5rem; padding: .9rem; min-height: 8rem; }
.wa-gelembung { background: #d9fdd3; border-radius: .5rem; padding: .5rem .7rem; font-size: .9rem; line-height: 1.45;
                white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); color: #111b21; }
.wa-latar .wa-gelembung { display: inline-block; max-width: 100%; border-top-right-radius: 0; }
details > summary { cursor: pointer; }
/* Tombol di dalam callout tidak ikut gaya tautan callout AdminLTE */
.callout a.btn { text-decoration: none; }
.callout a.btn-success, .callout a.btn-primary, .callout a.btn-danger, .callout a.btn-info { color: #fff; }
/* Di ponsel, baris tabel antrean ditumpuk seperti kartu agar tombol aksi
   (mis. "Buka WhatsApp") langsung terlihat tanpa menggeser tabel ke samping. */
@media (max-width: 767.98px) {
  .tabel-tumpuk thead { display: none; }
  .tabel-tumpuk, .tabel-tumpuk tbody, .tabel-tumpuk tr, .tabel-tumpuk td { display: block; width: 100%; }
  .tabel-tumpuk tr { border-top: 1px solid #dee2e6; padding: .5rem 0; }
  .tabel-tumpuk td { border: 0 !important; padding: .15rem .25rem; max-width: none !important; }
  .tabel-tumpuk td.aksi { text-align: left !important; padding-top: .45rem; }
  .tabel-tumpuk td.aksi .btn { margin-bottom: .25rem; }
}

/* Impor CSV */
.daftar-gulir { max-height: 22rem; overflow-y: auto; }
.daftar-gulir thead th { position: sticky; top: 0; background: #fff; z-index: 1; }
.impor-ket { min-width: 16rem; }
.impor-ket > div + div { margin-top: .15rem; }
.text-warning-dark { color: #8a6100; }
.impor-saring .nav-link { padding: .3rem .8rem; }
