:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #18202a;
  --muted: #6b7280;
  --line: #d9e0ea;
  --primary: #1f6feb;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}
.hero { margin-bottom: 18px; }
.hero h1 { margin: 0 0 8px; font-size: 32px; }
.hero p { margin: 0; color: var(--muted); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: 0 6px 18px rgba(20, 32, 60, 0.04);
}
.card h2 { margin-top: 0; }
.grid {
  display: grid;
  gap: 16px;
}
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.top-gap { margin-top: 16px; }
label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}
input, select, button {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 14px;
}
button {
  width: auto;
  min-width: 140px;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 700;
}
button.secondary {
  background: #eef3fb;
  color: #16335f;
  border: 1px solid #c9d8f1;
}
.actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.status {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f1f5f9;
}
.muted { color: var(--muted); }
.stat .label {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}
.stat .value {
  font-size: 30px;
  font-weight: 700;
}
.table-wrap { overflow: auto; margin-top: 12px; }
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1100px;
}
th, td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}
thead th {
  position: sticky;
  top: 0;
  background: white;
}
small { display: block; color: var(--muted); margin-top: 5px; }
@media (max-width: 1000px) {
  .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; }
  .actions { flex-direction: column; }
  button { width: 100%; }
}
