* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    background: #f4f6fa;
    color: #1b2436;
}
.navbar {
    background: #0D1E58;
    color: #fff;
}
.navbar-isi {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navbar-judul { font-weight: 700; font-size: 1.05rem; }
.navbar-kanan { display: flex; align-items: center; gap: 12px; }
.navbar-user { opacity: .85; font-size: .9rem; }
.navbar-logout {
    color: #fff;
    background: rgba(255,255,255,.15);
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: .9rem;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
}

.konten { max-width: 1100px; margin: 0 auto; padding: 20px 16px 60px; }
.konten-sempit { max-width: 640px; }

.baris-judul {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
h1 { font-size: 1.3rem; margin: 0; }

.tombol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    background: #e7eaf1;
    color: #1b2436;
    font-weight: 600;
    min-height: 40px;
    border: none;
    cursor: pointer;
    font-size: .95rem;
}
.tombol-utama { background: #0D1E58; color: #fff; }

.kartu-ringkasan {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}
.ringkasan-item {
    background: #fff;
    border-radius: 10px;
    padding: 12px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    flex: 1;
    min-width: 120px;
}
.ringkasan-label { display: block; font-size: .78rem; color: #6b7585; margin-bottom: 4px; }

.lencana {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    text-transform: capitalize;
}
.lencana-berjalan, .lencana-item-proses, .lencana-item-menunggu { background: #fff3cd; color: #8a6400; }
.lencana-selesai, .lencana-item-sukses { background: #d7f5e0; color: #157a3a; }
.lencana-dibatalkan, .lencana-item-gagal { background: #fde0e0; color: #a3211f; }

.angka-sukses { color: #157a3a; font-weight: 700; }
.angka-gagal { color: #a3211f; font-weight: 700; }

.tabel-bungkus { overflow-x: auto; background: #fff; border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.tabel { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tabel th, .tabel td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #edf0f5; white-space: nowrap; }
.tabel th { background: #f8f9fc; font-weight: 700; color: #4a5368; }
.aksi a { color: #0D1E58; text-decoration: none; font-weight: 600; }

.kosong, .info-proses, .bantuan { color: #6b7585; font-size: .92rem; }
.info-proses { margin: 10px 0 18px; }

.halaman-nav { margin-top: 16px; display: flex; gap: 6px; flex-wrap: wrap; }
.halaman-nav a {
    padding: 6px 12px; border-radius: 6px; background: #fff; text-decoration: none;
    color: #1b2436; box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.halaman-nav a.aktif { background: #0D1E58; color: #fff; }

form label { display: block; font-weight: 600; margin: 14px 0 6px; font-size: .92rem; }
form input[type=text], form input[type=password], form textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #d6dae3;
    font-size: 1rem;
    background: #fff;
}
form textarea { font-family: monospace; }
form button { margin-top: 18px; width: 100%; }

.peringatan {
    background: #fde0e0; color: #a3211f; padding: 10px 14px;
    border-radius: 8px; margin-bottom: 14px; font-size: .92rem;
}

.halaman-login { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.kotak-login {
    background: #fff; border-radius: 14px; padding: 28px 24px; width: 100%; max-width: 380px;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
.kotak-login h1 { text-align: center; margin-bottom: 2px; }
.kotak-login .sub { text-align: center; color: #6b7585; margin: 0 0 16px; font-size: .85rem; }
.kotak-login form button { background: #0D1E58; color: #fff; }

@media (max-width: 560px) {
    .tabel { font-size: .82rem; }
    .baris-judul { flex-direction: column; align-items: stretch; }
    .baris-judul .tombol { width: 100%; }
}
