/* Pohon Duit — gaya mengikuti Pohon Parfum: hijau gelap #2D4A3D, kartu putih, ramah HP. */
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; background: #f2f4f1; color: #222; font-size: 16px; }
a { color: #2D4A3D; }
.topbar { background: #2D4A3D; color: #fff; padding: 12px 16px; position: sticky; top: 0; z-index: 10; }
.topbar .brand { font-size: 20px; font-weight: 700; text-decoration: none; color: #fff; }
.topbar .brand small { font-weight: 400; opacity: .8; font-size: 13px; }
.nav { display: flex; gap: 4px; overflow-x: auto; padding: 8px 12px; background: #fff; border-bottom: 1px solid #ddd; position: sticky; top: 52px; z-index: 9; }
.nav a { flex: 0 0 auto; padding: 8px 12px; border-radius: 20px; text-decoration: none; color: #333; font-size: 14px; }
.nav a.aktif { background: #2D4A3D; color: #fff; }
.nav .logout { margin-left: auto; }
.container { max-width: 960px; margin: 0 auto; padding: 16px 12px 40px; }
h1 { font-size: 22px; margin: 4px 0 12px; }
h2 { font-size: 18px; margin: 20px 0 8px; }
.card { background: #fff; border-radius: 10px; padding: 16px; margin-bottom: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.stat { background: #fff; border-radius: 10px; padding: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.stat .label { font-size: 13px; color: #666; }
.stat .nilai { font-size: 22px; font-weight: 700; margin-top: 4px; word-break: break-word; }
.stat .nilai.hijau { color: #1e7d32; }
.stat .nilai.merah { color: #c62828; }
.stat .sub { font-size: 12px; color: #888; margin-top: 4px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 8px 6px; border-bottom: 1px solid #eee; text-align: left; vertical-align: top; }
th { color: #666; font-size: 12px; text-transform: uppercase; }
td.angka, th.angka { text-align: right; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
label { display: block; font-size: 13px; color: #555; margin: 10px 0 4px; }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid #ccc; border-radius: 8px; font-size: 16px; background: #fff; }
input:focus, select:focus { outline: 2px solid #2D4A3D; border-color: #2D4A3D; }
button, .btn { display: inline-block; padding: 11px 18px; border: none; border-radius: 8px; font-size: 16px; cursor: pointer; text-decoration: none; background: #2D4A3D; color: #fff; }
button.btn-secondary, .btn-secondary { background: #e0e0e0; color: #222; }
button.btn-danger, .btn-danger { background: #c62828; color: #fff; }
button.btn-kecil, .btn-kecil { padding: 6px 10px; font-size: 13px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 12px; font-size: 14px; }
.alert-ok { background: #e8f5e9; color: #1b5e20; border: 1px solid #a5d6a7; }
.alert-error { background: #fdecea; color: #7f1d1d; border: 1px solid #f5c6cb; }
.alert-info { background: #e3f2fd; color: #0d47a1; border: 1px solid #90caf9; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 12px; background: #e8f5e9; color: #1b5e20; }
.badge.abu { background: #eee; color: #555; }
.badge.kuning { background: #fff8e1; color: #7a5c00; }
.progress { height: 10px; background: #eee; border-radius: 5px; overflow: hidden; }
.progress > div { height: 100%; background: #2D4A3D; }
.progress.lewat > div { background: #c62828; }
.bar-chart { display: flex; align-items: flex-end; gap: 3px; height: 90px; padding-top: 8px; }
.bar-chart .bar { flex: 1; background: #2D4A3D; border-radius: 3px 3px 0 0; min-height: 2px; }
.bar-chart .bar.neg { background: #c62828; }
.muted { color: #777; font-size: 13px; }
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 16px; }
.login-box { background: #fff; border-radius: 12px; padding: 28px 22px; width: 100%; max-width: 380px; box-shadow: 0 2px 12px rgba(0,0,0,.12); }
.login-box h1 { text-align: center; color: #2D4A3D; }
.login-box .subtitle { text-align: center; color: #777; margin-top: -6px; }
.footer { text-align: center; color: #999; font-size: 12px; padding: 20px; }
