:root {
  --hijau: #1e6f46;
  --hijau-dark: #14512f;
  --bg: #f2f4f3;
  --border: #d7ddda;
  --text: #22292a;
  --muted: #667070;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.topbar {
  background: var(--hijau);
  color: #fff;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar .brand {
  font-weight: 600;
  font-size: 16px;
}

.topbar .brand small {
  display: block;
  font-weight: 400;
  font-size: 12px;
  opacity: .85;
}

.topbar a.logout {
  color: #fff;
  background: rgba(255,255,255,.15);
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
}

.topbar a.logout:hover { background: rgba(255,255,255,.28); }

.container {
  max-width: 960px;
  margin: 24px auto;
  padding: 0 16px;
}

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--hijau) 0%, var(--hijau-dark) 55%, #0d2f1c 100%);
  padding: 16px;
}

.login-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}

.login-card h1 {
  font-size: 18px;
  margin: 0 0 4px;
  color: var(--hijau-dark);
}

.login-card p.subtitle {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 13px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

input[type=text], input[type=password], input[type=search], select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}

input:focus, select:focus { outline: 2px solid var(--hijau); border-color: var(--hijau); }

button, .btn {
  display: inline-block;
  background: var(--hijau);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

button:hover, .btn:hover { background: var(--hijau-dark); }

.btn.secondary {
  background: #fff;
  color: var(--hijau-dark);
  border: 1px solid var(--hijau);
}

.btn.secondary:hover { background: #eaf3ee; }

.btn.block { width: 100%; }

.alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

.alert.error { background: #fdecec; color: #a4222a; border: 1px solid #f3c1c4; }
.alert.success { background: #e8f6ee; color: #1e6f46; border: 1px solid #bfe6cd; }

.card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
  overflow: hidden;
}

.card h2 {
  margin: 0;
  font-size: 14px;
  background: #eef3f0;
  padding: 12px 16px;
  color: var(--hijau-dark);
  border-bottom: 1px solid var(--border);
}

table.info {
  width: 100%;
  border-collapse: collapse;
}

table.info tr:nth-child(even) td { background: #fafbfa; }

table.info th, table.info td {
  padding: 9px 16px;
  text-align: left;
  font-size: 13.5px;
  vertical-align: top;
  border-top: 1px solid var(--border);
}

table.info th {
  width: 42%;
  color: var(--muted);
  font-weight: 500;
}

table.grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

table.grid th, table.grid td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
}

table.grid th { background: #eef3f0; color: var(--hijau-dark); }

.status-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.status-pill.belum { background: #fdf1dc; color: #915c00; }
.status-pill.sudah { background: #e8f6ee; color: #1e6f46; }

.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stat-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}

.stat-box .num { font-size: 26px; font-weight: 700; color: var(--hijau-dark); }
.stat-box .label { font-size: 12.5px; color: var(--muted); }

.toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.toolbar input[type=search] { margin-bottom: 0; max-width: 280px; }

a { color: var(--hijau-dark); }

.small { font-size: 12px; color: var(--muted); }

.pagetitle { margin: 0 0 16px; font-size: 20px; color: var(--hijau-dark); }

@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
  .container { max-width: 100%; margin: 0; }
}
