:root {
  --bg: #f1f5f9;
  --surface: #ffffff;
  --primary: #1e3a8a;
  --primary-light: #eff6ff;
  --accent: #d97706;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --success: #059669;
  --danger: #dc2626;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; }
.layout { display: flex; min-height: 100vh; }
.sidebar { width: 255px; background: var(--primary); color: #fff; display: flex; flex-direction: column; flex-shrink: 0; }
.brand { padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.14); }
.brand h2 { font-size: 16px; font-weight: 700; letter-spacing: 0.3px; }
.brand p { font-size: 12px; color: #bfdbfe; margin-top: 3px; }
.nav { padding: 14px 10px; flex: 1; }
.nav-title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px; color: #93c5fd; padding: 10px 12px 6px; font-weight: 700; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: #e2e8f0; text-decoration: none; border-radius: 8px; margin-bottom: 3px; font-size: 14px; transition: 0.15s; }
.nav a:hover, .nav a.active { background: rgba(255,255,255,0.16); color: #fff; font-weight: 600; }
.sidebar-footer { padding: 14px 16px; border-top: 1px solid rgba(255,255,255,0.14); font-size: 12px; color: #dbeafe; }
.sidebar-footer a { color: #fde68a; text-decoration: none; font-weight: 600; display: inline-block; margin-top: 6px; }
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar { background: var(--surface); border-bottom: 1px solid var(--border); padding: 14px 24px; display: flex; justify-content: space-between; align-items: center; }
.topbar h1 { font-size: 19px; font-weight: 700; }
.topbar .meta { font-size: 13px; color: var(--muted); }
.content { padding: 24px; max-width: 1280px; width: 100%; margin: 0 auto; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; margin-bottom: 22px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.stat-card .label { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.stat-card .value { font-size: 28px; font-weight: 800; color: var(--primary); margin-top: 6px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.card-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.card-header h3 { font-size: 16px; font-weight: 700; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; border: none; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; transition: 0.15s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #1e40af; }
.btn-success { background: var(--success); color: #fff; }
.btn-outline { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: #f8fafc; font-weight: 700; color: #334155; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: #334155; }
.form-group input, .form-group select { width: 100%; padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; background: #fff; }
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 13.5px; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--primary-light); color: var(--primary); }
@media (max-width: 768px) { .layout { flex-direction: column; } .sidebar { width: 100%; } }
@media print { .no-print { display: none !important; } body { background: #fff; } .content { padding: 0; } }
