:root {
  --bg: #f6f7f9;
  --panel: #ffffff;
  --ink: #18212f;
  --muted: #647084;
  --line: #d9dee7;
  --blue: #1769e0;
  --green: #15803d;
  --yellow: #a16207;
  --red: #b42318;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--ink);
}
a { color: inherit; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 224px;
  background: #18212f;
  color: #fff;
  padding: 20px 14px;
}
.brand {
  font-weight: 700;
  font-size: 22px;
  margin: 4px 8px 24px;
}
.sidebar nav { display: grid; gap: 4px; }
.sidebar a {
  text-decoration: none;
  color: #d8deea;
  padding: 10px 12px;
  border-radius: 6px;
}
.sidebar a.active, .sidebar a:hover { background: #273449; color: #fff; }
.main { margin-left: 224px; padding: 24px; }
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}
h1 { margin: 0 0 6px; font-size: 28px; letter-spacing: 0; }
h2 { font-size: 18px; margin: 0 0 14px; }
p { color: var(--muted); margin: 0; }
.grid { display: grid; gap: 16px; }
.grid.cards { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.panel, .card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}
.card strong { display: block; font-size: 24px; margin-top: 8px; }
.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  font: inherit;
  background: #fff;
}
.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  padding: 8px 14px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}
.button.ghost { background: #e8edf5; color: var(--ink); }
.actions { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 13px; font-weight: 700; }
.status { display: inline-block; border-radius: 999px; padding: 4px 8px; font-size: 12px; font-weight: 700; }
.green { background: #dcfce7; color: var(--green); }
.yellow { background: #fef3c7; color: var(--yellow); }
.red { background: #fee2e2; color: var(--red); }
.muted { color: var(--muted); }
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login .panel { width: min(420px, 100%); }
@media (max-width: 760px) {
  .sidebar { position: static; width: auto; }
  .main { margin-left: 0; padding: 16px; }
  .topbar { align-items: flex-start; }
  table { font-size: 13px; }
}
