* { box-sizing: border-box; }
body {
    font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: #f4f5f7;
    margin: 0;
    color: #1c1c1e;
}
.container { max-width: 1000px; margin: 24px auto; padding: 0 16px; }

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1f2937;
    color: #fff;
    padding: 12px 24px;
}
.topbar .brand { font-weight: 700; }
.topbar nav a {
    color: #cbd5e1;
    text-decoration: none;
    margin-right: 16px;
    padding: 6px 10px;
    border-radius: 4px;
}
.topbar nav a.active, .topbar nav a:hover { background: #374151; color: #fff; }
.topbar .user-info a { color: #fca5a5; text-decoration: none; margin-left: 12px; }

.page-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }

.btn {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
}
.btn-secondary {
    display: inline-block;
    background: #e5e7eb;
    color: #1c1c1e;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    margin-left: 8px;
}

.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; }
.data-table th, .data-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid #eee; }
.data-table th { background: #f9fafb; font-size: 13px; text-transform: uppercase; color: #6b7280; }
.row-actions a { margin-right: 10px; font-size: 13px; color: #2563eb; text-decoration: none; }

.ledger-form, .login-box {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    max-width: 480px;
}
.ledger-form label, .login-box label { display: block; margin: 12px 0 4px; font-size: 13px; color: #374151; }
.ledger-form input, .ledger-form select, .ledger-form textarea,
.login-box input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}
.form-row { display: flex; gap: 16px; }
.form-row > div { flex: 1; }
.form-actions { margin-top: 20px; }
.error-list { color: #b91c1c; background: #fee2e2; padding: 10px 14px; border-radius: 6px; }

.login-wrap { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-box h1 { font-size: 20px; margin-top: 0; }
.login-box button { margin-top: 20px; width: 100%; }
.login-box .error { color: #b91c1c; }
