:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --line: #dbe4ef;
  --text: #1f2937;
  --muted: #64748b;
  --nav: #0f2747;
  --accent: #1e5aa8;
  --success: #dff7e8;
  --error: #fde2e1;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; background: var(--bg); color: var(--text); }
.layout { display: flex; min-height: 100vh; }
.sidebar { width: 250px; background: var(--nav); color: #fff; padding: 24px 18px; }
.brand { font-size: 1.4rem; font-weight: bold; margin-bottom: 24px; }
.sidebar nav { display: flex; flex-direction: column; gap: 10px; }
.sidebar a { color: #fff; text-decoration: none; padding: 10px 12px; border-radius: 10px; }
.sidebar a:hover { background: rgba(255,255,255,0.1); }
.content { flex: 1; padding: 24px; }
.topbar { display:flex; justify-content:space-between; align-items:flex-start; gap: 16px; margin-bottom: 22px; }
.user-pill { background:#fff; border:1px solid var(--line); padding:10px 14px; border-radius:999px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-bottom: 20px; box-shadow: 0 4px 12px rgba(15,39,71,0.05); }
.grid { display:grid; gap:20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stat { padding:20px; border-radius:16px; background: linear-gradient(135deg, #eff6ff, #ffffff); border:1px solid var(--line); }
.stat h3 { margin:0 0 8px; font-size:14px; color:var(--muted); }
.stat p { margin:0; font-size:28px; font-weight:bold; }
table { width:100%; border-collapse: collapse; background:#fff; border-radius: 12px; overflow:hidden; }
th, td { padding: 12px; border-bottom:1px solid var(--line); text-align:left; vertical-align: top; }
th { background:#eef4fb; }
form.inline, .toolbar { display:flex; flex-wrap:wrap; gap:12px; align-items:end; }
label { display:block; font-weight:bold; margin-bottom:6px; }
input, select, textarea { width:100%; padding:10px 12px; border:1px solid #c9d6e3; border-radius:10px; background:#fff; }
textarea { min-height: 110px; }
button, .btn { background:var(--accent); color:#fff; border:none; padding:10px 14px; border-radius:10px; cursor:pointer; text-decoration:none; display:inline-block; }
.btn.secondary { background:#475569; }
.btn.light { background:#eef4fb; color:#183153; border:1px solid var(--line); }
.alert { padding:12px 14px; border-radius:12px; margin-bottom:16px; }
.alert.success { background:var(--success); }
.alert.error { background:var(--error); }
.badge { display:inline-block; padding:4px 10px; border-radius:999px; background:#eef4fb; font-size:12px; }
.login-wrap { max-width:460px; margin:8vh auto; }
.help { color: var(--muted); font-size: 14px; }
