.app-shell { max-width: 1000px; margin: 0 auto; padding: 0 20px 60px; }

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    background: #1e3a8a;
    color: #fff;
    padding: 14px 20px;
    border-radius: 0 0 8px 8px;
    margin: 0 -20px 24px;
}
.navbar-brand { font-weight: bold; font-size: 15px; }
.navbar-links { list-style: none; display: flex; gap: 16px; margin: 0; padding: 0; flex-wrap: wrap; }
.navbar-links a { color: #dbeafe; text-decoration: none; font-size: 14px; }
.navbar-links a:hover { color: #fff; text-decoration: underline; }

.app-content h1 { font-size: 20px; margin-bottom: 16px; }

.flash { padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.flash-success { background: #dcfce7; color: #166534; }
.flash-error { background: #fee2e2; color: #991b1b; }

.toolbar { margin-bottom: 16px; }
.btn {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    border: none;
    cursor: pointer;
}
.btn-primary { background: #1e3a8a; color: #fff; }
.btn-primary:hover { background: #1e40af; }
.btn-secondary { background: #e5e7eb; color: #111827; }
.btn-danger { background: #fee2e2; color: #991b1b; }
.btn-small { padding: 4px 10px; font-size: 12px; }

table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #e5e7eb; font-size: 14px; }
th { background: #f3f4f6; font-weight: 600; }
tr:last-child td { border-bottom: none; }
.actions { display: flex; gap: 6px; }

form.card {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    max-width: 640px;
}
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; color: #374151; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}
.form-group textarea { resize: vertical; min-height: 70px; }
.form-actions { margin-top: 20px; display: flex; gap: 10px; }
.section-title { font-size: 14px; font-weight: bold; margin: 24px 0 12px; color: #1e3a8a; border-top: 1px solid #e5e7eb; padding-top: 16px; }
.empty-state { padding: 24px; text-align: center; color: #6b7280; background: #fff; border-radius: 8px; }

.terbilang-panel {
    margin: 16px 0;
    padding: 14px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}
.terbilang-panel summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    color: #1e3a8a;
}
.terbilang-panel[open] summary { margin-bottom: 4px; }
.terbilang-panel .form-group:last-child { margin-bottom: 0; }
