:root {
  --navy: #1D2848;
  --navy-light: #2b3a63;
  --yellow: #F0E953;
  --bg: #f5f6fa;
  --card: #ffffff;
  --text: #1D2848;
  --muted: #6b7280;
  --border: #e3e5ec;
  --danger: #c0392b;
  --success: #1e8449;
}
* { box-sizing: border-box; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
}
a { color: var(--navy); }
.topbar {
  background: var(--navy);
  color: #fff;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar .brand { font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.topbar .brand .dot { width: 10px; height: 10px; background: var(--yellow); border-radius: 50%; display: inline-block; }
.topbar .role-tag { background: var(--yellow); color: var(--navy); padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; margin-left: 8px; }
.topbar button, .btn-logout {
  background: transparent; border: 1px solid rgba(255,255,255,0.4); color: #fff;
  padding: 7px 14px; border-radius: 6px; cursor: pointer; font-size: 0.85rem;
}
.topbar button:hover { background: rgba(255,255,255,0.1); }
.container { max-width: 1200px; margin: 0 auto; padding: 24px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 20px; margin-bottom: 20px;
}
.card h2, .card h3 { margin-top: 0; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 800px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.stat {
  background: var(--navy); color: #fff; border-radius: 10px; padding: 16px;
}
.stat .label { font-size: 0.78rem; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.03em; }
.stat .value { font-size: 1.6rem; font-weight: 700; margin-top: 4px; }
.stat.yellow { background: var(--yellow); color: var(--navy); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; }
tr:hover { background: #fafafe; }
.table-wrap { overflow-x: auto; }
input, select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--border); border-radius: 6px;
  font-size: 0.9rem; font-family: inherit; margin-top: 4px; background: #fff; color: var(--text);
}
label { font-size: 0.82rem; font-weight: 600; color: var(--navy); display: block; margin-top: 10px; }
form .row { display: flex; gap: 12px; flex-wrap: wrap; }
form .row > div { flex: 1; min-width: 160px; }
button.primary, .btn {
  background: var(--navy); color: #fff; border: none; padding: 10px 18px; border-radius: 6px;
  cursor: pointer; font-weight: 600; font-size: 0.9rem; margin-top: 14px;
}
button.primary:hover { background: var(--navy-light); }
button.secondary { background: var(--yellow); color: var(--navy); border: none; padding: 9px 16px; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 0.85rem; }
button.ghost { background: transparent; border: 1px solid var(--border); color: var(--text); padding: 7px 12px; border-radius: 6px; cursor: pointer; font-size: 0.82rem; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.pill.pending { background: #fff3cd; color: #8a6d00; }
.pill.fulfilled { background: #d4edda; color: var(--success); }
.pill.void { background: #f8d7da; color: var(--danger); }
.pill.on { background: #d4edda; color: var(--success); }
.pill.off { background: #eee; color: #888; }
.pill.overdue { background: #f8d7da; color: var(--danger); }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 20px; flex-wrap: wrap; }
.tabs button {
  background: none; border: none; padding: 10px 16px; cursor: pointer; font-weight: 600; color: var(--muted);
  border-bottom: 3px solid transparent; font-size: 0.9rem;
}
.tabs button.active { color: var(--navy); border-bottom-color: var(--yellow); }
.msg { padding: 10px 14px; border-radius: 6px; margin: 10px 0; font-size: 0.88rem; }
.msg.error { background: #fdecea; color: var(--danger); border: 1px solid #f5c6cb; }
.msg.success { background: #eafaf1; color: var(--success); border: 1px solid #c3e6cb; }
.muted { color: var(--muted); font-size: 0.85rem; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--navy); padding: 20px; }
.login-box { background: #fff; border-radius: 14px; padding: 36px; width: 100%; max-width: 400px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.login-box h1 { font-size: 1.3rem; margin-bottom: 4px; }
.login-box .sub { color: var(--muted); font-size: 0.85rem; margin-bottom: 20px; }
.role-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.role-links a { font-size: 0.8rem; color: rgba(255,255,255,0.85); text-decoration: none; border: 1px solid rgba(255,255,255,0.3); padding: 6px 12px; border-radius: 999px; }
.role-links a:hover { background: rgba(255,255,255,0.1); }
.brandmark { text-align: center; color: #fff; margin-bottom: 24px; }
.brandmark .dot { width: 12px; height: 12px; background: var(--yellow); border-radius: 50%; display: inline-block; margin-right: 8px; }
.brandmark h1 { font-size: 1.4rem; margin: 8px 0 2px; }
.brandmark p { color: rgba(255,255,255,0.7); font-size: 0.85rem; margin: 0; }
.info-panel { background: linear-gradient(135deg, var(--navy), var(--navy-light)); color: #fff; border-radius: 10px; padding: 18px 20px; }
.info-panel h3 { margin-top: 0; color: var(--yellow); }
.info-panel .kv { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.12); font-size: 0.88rem; }
.info-panel .kv:last-child { border-bottom: none; }
.badge-type { font-size: 0.72rem; padding: 2px 8px; border-radius: 999px; background: var(--yellow); color: var(--navy); font-weight: 700; }
.badge-type.workshop { background: #dbe4ff; color: #1d3a8a; }
.checkbox-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.checkbox-row label { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.checkbox-row input { width: auto; margin: 0; }
.placeholder-note { font-size: 0.78rem; color: var(--muted); font-style: italic; }
footer.foot { text-align: center; color: var(--muted); font-size: 0.78rem; padding: 20px; }

/* Change-password dialog (shared.js openChangePassword) */
.modal-backdrop { display: none; position: fixed; inset: 0; background: rgba(29,40,72,0.55); z-index: 1000; align-items: center; justify-content: center; padding: 16px; }
.modal { width: 100%; max-width: 420px; margin: 0; }
