* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f7fb;
  color: #111;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: #1f2937;
  color: #fff;
}
main {
  padding: 20px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 16px;
}
.card {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}
.full {
  grid-column: 1 / -1;
}
.hidden {
  display: none;
}
form {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}
input,
select,
button {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #ccd3df;
}
button {
  cursor: pointer;
  border: 1px solid #3b82f6;
  background: #3b82f6;
  color: #fff;
}
button:hover {
  background: #2563eb;
}
.message {
  color: #b91c1c;
  min-height: 20px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}
.stat {
  background: #eef2ff;
  border-radius: 8px;
  padding: 10px;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
th,
td {
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  padding: 8px;
  font-size: 14px;
}
.pill {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  color: #fff;
}
.approve {
  background: #16a34a;
}
.reject {
  background: #dc2626;
}
.limited {
  background: #d97706;
}
.cap-item {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px;
  margin-top: 8px;
}
.cap-detail {
  font-size: 13px;
  color: #374151;
  margin-top: 4px;
}
