* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; background: #eef1f5; color: #1f2937; }
.topbar { background: #1e3a5f; color: #fff; padding: 12px 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.topbar .brand { font-size: 19px; font-weight: 700; }
.topbar .wsname { background: #2c5282; border-radius: 999px; padding: 3px 12px; font-size: 13px; }
.topbar nav { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.topbar nav a, .topbar .who { color: #dbeafe; text-decoration: none; font-size: 14.5px; padding: 7px 10px; border-radius: 8px; }
.topbar nav a:hover { background: #2c5282; color: #fff; }
.topbar .who { color: #93c5fd; }
.badge { background: #dc2626; color: #fff; border-radius: 999px; padding: 0 7px; font-size: 12px; font-weight: 700; }
.wrap { max-width: 1150px; margin: 0 auto; padding: 18px 14px 40px; }
.card { background: #fff; border-radius: 12px; padding: 18px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(15,23,42,.08); }
.card h2 { font-size: 17px; margin-bottom: 12px; color: #1e3a5f; }
.card h3 { font-size: 15px; margin: 12px 0 8px; color: #1e3a5f; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.acct { border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px; }
.acct .an { font-weight: 700; font-size: 15px; }
.acct .bal { font-size: 22px; font-weight: 700; margin: 6px 0 2px; }
.acct .sub { font-size: 12.5px; color: #6b7280; }
.pos { color: #047857; } .neg { color: #b91c1c; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { padding: 8px 9px; border-bottom: 1px solid #eef2f7; text-align: left; vertical-align: top; }
th { color: #475569; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
td.amt, th.amt { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.uncat td { background: #fff7ed; }
.tablewrap { overflow-x: auto; }
input, select, textarea { font-size: 16px; padding: 9px 11px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: #1f2937; }
input:focus, select:focus, textarea:focus { outline: 2px solid #93c5fd; border-color: #2c5282; }
label { display: block; font-size: 13px; color: #475569; margin: 10px 0 4px; }
.btn { display: inline-block; background: #1e3a5f; color: #fff; border: 0; border-radius: 9px; padding: 10px 16px; font-size: 15px; cursor: pointer; text-decoration: none; }
.btn:hover { background: #2c5282; }
.btn.small { padding: 6px 11px; font-size: 13.5px; }
.btn.grey { background: #64748b; } .btn.red { background: #b91c1c; } .btn.green { background: #047857; }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.alert { border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; font-size: 15px; }
.alert.error { background: #fef2f2; border: 2px solid #b91c1c; color: #7f1d1d; font-weight: 600; }
.alert.success { background: #ecfdf5; border: 2px solid #047857; color: #064e3b; font-weight: 600; }
.muted { color: #6b7280; font-size: 13px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 12px; }
.filters label { margin: 0 0 4px; }
.loginbox { max-width: 400px; margin: 60px auto; }
.qcat { max-width: 210px; }
@media (max-width: 640px) { .topbar nav { margin-left: 0; } .acct .bal { font-size: 19px; } }
