body { background: #f4f6f8; }
.topbar { background: #0d6efd; color: #fff; padding: 10px 16px;
  display: flex; justify-content: space-between; align-items: center; }
.topbar .brand { font-weight: 700; font-size: 1.1rem; }
.topbar-user { font-size: .9rem; }
.layout { display: flex; align-items: stretch; min-height: calc(100vh - 46px); }
.sidebar { width: 220px; flex-shrink: 0; background: #fff; border-right: 1px solid #dee2e6;
  padding: 12px 8px; }
.sidebar-grup { font-size: .75rem; font-weight: 700; text-transform: uppercase;
  color: #6c757d; padding: 14px 10px 4px; }
.sidebar-link { display: block; padding: 8px 10px; border-radius: 6px;
  color: #212529; text-decoration: none; }
.sidebar-link:hover { background: #e9ecef; }
.sidebar-link.aktif { background: #0d6efd; color: #fff; }
.content { flex: 1; padding: 20px; min-width: 0; }
.card-stat { border: 0; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.card-stat .nilai { font-size: 1.5rem; font-weight: 700; }
.table-responsive { background: #fff; border-radius: 8px; }
@media (max-width: 767px) {
  .layout { flex-direction: column; }
  .sidebar { width: 100%; display: flex; overflow-x: auto; border-right: 0;
    border-bottom: 1px solid #dee2e6; padding: 8px; gap: 4px; }
  .sidebar-grup { display: none; }
  .sidebar-link { white-space: nowrap; }
  .content { padding: 12px; }
  .topbar-user { display: none; }
}
@media print {
  .no-print { display: none !important; }
  .layout { display: block; }
  .content { padding: 0; }
  body { background: #fff; }
}

/* Logo PDAM Tirtamarta (latar transparan) */
.topbar .brand { display: inline-flex; align-items: center; gap: 8px; }
.logo-badge { background: #fff; border-radius: 8px; padding: 3px 8px; display: inline-flex; align-items: center; }
.logo-img { height: 32px; width: auto; }
.login-logo { height: 72px; width: auto; }
