* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f4f6f8;
    color: #222;
    line-height: 1.5;
}

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

.topbar { background: #0b6b3a; color: #fff; padding: 14px 0; }
.topbar h1 { margin: 0 0 8px; font-size: 20px; }
.topbar nav a {
    color: #d7f0e2; text-decoration: none; margin-right: 16px;
    font-size: 14px; padding-bottom: 2px;
}
.topbar nav a:hover { color: #fff; }
.topbar nav a.active { color: #fff; border-bottom: 2px solid #fff; }

main { padding: 24px 0 40px; }
h2 { margin-top: 0; color: #0b6b3a; }
h3 { margin-bottom: 8px; }

.card {
    background: #fff; border: 1px solid #e2e6ea; border-radius: 6px;
    padding: 18px; margin-bottom: 20px;
}

form .field { margin-bottom: 12px; }
label { display: block; font-size: 14px; margin-bottom: 4px; font-weight: 600; }
input[type=text], input[type=date], input[type=search], select {
    width: 100%; padding: 8px 10px; border: 1px solid #ccd2d8;
    border-radius: 4px; font-size: 14px;
}
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row .field { flex: 1; min-width: 180px; }

button, .btn {
    display: inline-block; background: #0b6b3a; color: #fff; border: 0;
    padding: 8px 16px; border-radius: 4px; font-size: 14px; cursor: pointer;
    text-decoration: none;
}
button:hover, .btn:hover { background: #095c31; }
.btn-sm { padding: 4px 10px; font-size: 13px; }
.btn-grey { background: #6c757d; }
.btn-grey:hover { background: #5a6268; }
.btn-red { background: #c0392b; }
.btn-red:hover { background: #a93226; }

table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #e2e6ea; font-size: 14px; }
th { background: #eef2f5; }
tr:hover td { background: #f9fbfc; }

.badge { padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.badge-hadir { background: #d4edda; color: #155724; }
.badge-tidak { background: #f8d7da; color: #721c24; }

.alert { padding: 10px 14px; border-radius: 4px; margin-bottom: 16px; font-size: 14px; }
.alert-ok { background: #d4edda; color: #155724; }
.alert-err { background: #f8d7da; color: #721c24; }

.stats { display: flex; gap: 12px; flex-wrap: wrap; }
.stat { flex: 1; min-width: 120px; text-align: center; background: #fff;
        border: 1px solid #e2e6ea; border-radius: 6px; padding: 14px; }
.stat .num { font-size: 28px; font-weight: 700; color: #0b6b3a; }
.stat .lbl { font-size: 13px; color: #555; }

.muted { color: #777; font-size: 14px; }
.actions { white-space: nowrap; }
.footer { border-top: 1px solid #e2e6ea; padding: 16px 0; color: #777; }
