/* ---------- admin ---------- */
.wrap-admin { max-width: 1080px; }

.login-card {
  max-width: 420px;
  margin: 6vh auto 0;
  background: #fff;
  border: 1px solid var(--garis);
  border-radius: 20px;
  padding: 28px 24px 22px;
  box-shadow: var(--shadow);
  text-align: center;
}
.login-card .brand-logo { margin: 0 auto 16px; }
.brand-logo.big { width: 54px; height: 54px; border-radius: 16px; }
.brand-logo.big svg { width: 28px; height: 28px; }
.login-card h1 { font-size: 21px; margin: 0 0 6px; color: var(--hijau-900); }
.login-card .muted { font-size: 13.5px; margin: 0 0 20px; }
.login-card form { text-align: left; }
.login-card .field { margin-bottom: 14px; }
.login-card .foot { margin-top: 18px; }
.login-card .foot a { color: var(--hijau-700); text-decoration: none; font-weight: 600; }

.admin-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 14px;
  margin-bottom: 18px;
}
.admin-head h1 { font-size: 24px; margin: 0 0 3px; color: var(--hijau-900); letter-spacing: -.3px; }
.admin-head .muted { margin: 0; font-size: 13px; }
.ghost.small { width: auto; margin: 0; padding: 9px 15px; font-size: 13px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.stat {
  background: #fff; border: 1px solid var(--garis); border-radius: 14px;
  padding: 13px 15px; box-shadow: var(--shadow);
}
.stat-label { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px; color: var(--teks-lembut); font-weight: 700; }
.stat strong { display: block; font-size: 24px; color: var(--hijau-800); letter-spacing: -.5px; margin-top: 2px; }

.toolbar { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.toolbar-row { display: flex; gap: 10px; align-items: stretch; }
.toolbar-row .search { flex: 1 1 auto; min-height: 48px; }
.toolbar-row .select-only { flex: 0 0 190px; min-height: 48px; }
.toolbar .submit { margin: 0; padding: 13px 20px; font-size: 14.5px; flex: 0 0 auto; width: auto; }
.toolbar-row .control input, .toolbar-row .control select { font-size: 15px; padding: 12px 0; }

.tablecard {
  background: #fff; border: 1px solid var(--garis); border-radius: 16px;
  box-shadow: var(--shadow); overflow: auto;
}
table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 880px; }
thead th {
  text-align: left; padding: 12px 14px; font-size: 11.5px; text-transform: uppercase;
  letter-spacing: .4px; color: var(--teks-lembut); background: #f8fbf9;
  border-bottom: 1px solid var(--garis); white-space: nowrap;
}
tbody td { padding: 12px 14px; border-bottom: 1px solid #eff4f1; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafdfb; }
.c-no { width: 46px; }
.c-act { width: 44px; }
td.no { color: var(--teks-lembut); }
td.nama { font-weight: 700; }
td.kode, td.wa { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; white-space: nowrap; }
td.waktu { white-space: nowrap; color: var(--teks-lembut); font-size: 12.5px; }
.pill {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  background: var(--hijau-50); color: var(--hijau-700);
  font-size: 12px; font-weight: 700; border: 1px solid var(--hijau-100);
  white-space: nowrap;
}
.kat {
  display: inline-block; padding: 3px 9px; border-radius: 7px;
  background: #eef2fb; color: #3b4a7a;
  font-size: 11.5px; font-weight: 700; border: 1px solid #dde4f5;
  white-space: nowrap;
}
.del {
  border: 0; background: transparent; color: #b3c4be; cursor: pointer;
  font-size: 16px; line-height: 1; padding: 6px; border-radius: 8px;
}
.del:hover { color: var(--merah); background: #fdecea; }
.empty { margin: 0; padding: 34px 16px; text-align: center; color: var(--teks-lembut); font-size: 13.5px; }

@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .stat:last-child { display: none; }
  .toolbar-row { flex-wrap: wrap; }
  .toolbar-row .select-only { flex: 1 1 100%; }
  .admin-head h1 { font-size: 20px; }
}
