:root {
  --primary: #2952a3;
  --primary-dark: #1e3d7a;
  --bg: #f4f6fa;
  --card: #ffffff;
  --border: #dde3ed;
  --text: #1f2937;
  --muted: #6b7280;
  --success: #1a7f37;
  --warn: #b8860b;
  --danger: #c0392b;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}
.topbar {
  background: var(--primary);
  color: white;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar h1 { font-size: 17px; margin: 0; font-weight: 600; }
.topbar .who { font-size: 13px; opacity: 0.9; }
.topbar button {
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  margin-left: 10px;
}
.topbar button:hover { background: rgba(255,255,255,0.28); }
.container { max-width: 1000px; margin: 24px auto; padding: 0 16px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}
.card h2 { margin-top: 0; font-size: 16px; }
label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 4px; }
input, select, textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}
textarea { resize: vertical; min-height: 60px; }
.btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  margin-top: 16px;
}
.btn:hover { background: var(--primary-dark); }
.btn.secondary { background: #6b7280; }
.btn.danger { background: var(--danger); }
.btn.small { padding: 6px 10px; font-size: 12px; margin-top: 0; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 9px 8px; border-bottom: 1px solid var(--border); text-align: left; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; }
.badge { padding: 3px 9px; border-radius: 12px; font-size: 11px; font-weight: 700; display: inline-block; }
.badge.Submitted, .badge.Generated { background: #e0e7ff; color: #3730a3; }
.badge.Completed { background: #d1fae5; color: var(--success); }
.badge.PendingApproval { background: #fef3c7; color: var(--warn); }
.badge.Approved { background: #dbeafe; color: #1d4ed8; }
.badge.Rejected { background: #fee2e2; color: var(--danger); }
.error { color: var(--danger); font-size: 13px; margin-top: 8px; }
.success-msg { color: var(--success); font-size: 13px; margin-top: 8px; }
.hint { color: var(--muted); font-size: 12px; margin-top: 4px; }
.login-wrap {
  display: flex; align-items: center; justify-content: center; min-height: 100vh;
}
.login-card { width: 360px; }
.login-card h1 { text-align: center; font-size: 19px; }
.demo-accounts { font-size: 12px; color: var(--muted); margin-top: 14px; line-height: 1.6; }
.nav-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.nav-tabs a {
  text-decoration: none; color: var(--muted); padding: 8px 14px; border-radius: 6px; font-size: 13px; font-weight: 600;
}
.nav-tabs a.active, .nav-tabs a:hover { background: var(--primary); color: white; }
.flex-row { display: flex; gap: 10px; align-items: center; }
.modal-bg {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  align-items: center; justify-content: center; z-index: 50;
}
.modal-bg.open { display: flex; }
.modal { background: white; border-radius: 10px; padding: 20px; width: 420px; max-width: 92vw; }
