.admin-body {
  background: #f4f7f4;
  min-height: 100vh;
}
.admin-top {
  height: 70px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  position: sticky;
  top: 0;
  z-index: 20;
}
.admin-top > span {
  font-weight: 700;
  color: var(--muted);
  font-size: 13px;
}
.admin-wrap {
  max-width: 1120px;
  margin: 30px auto;
  padding: 0 20px 60px;
}
.admin-welcome {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 14px;
}
.admin-welcome h1 {
  font-size: 34px;
  margin: 6px 0 0;
}
.notice {
  padding: 14px 18px;
  background: #fff5d8;
  color: #775a10;
  border-radius: 12px;
  margin: 18px 0;
  font-size: 13px;
  font-weight: 600;
}
.admin-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0 18px;
}
.tab-btn {
  border: 1px solid var(--line);
  background: white;
  color: #43554a;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.tab-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.admin-stats article, .admin-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}
.admin-stats span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.admin-stats b {
  display: block;
  font-size: 24px;
  margin-top: 8px;
  color: var(--green);
}
.admin-card {
  margin-top: 18px;
}
.admin-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.admin-card h2 {
  font-size: 20px;
  margin: 0;
}
.table-wrap {
  overflow-x: auto;
}
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.data-table th, table.data-table td {
  text-align: left;
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
}
table.data-table th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #eef4ef;
  color: var(--green);
}
.badge.warn {
  background: #fff5d8;
  color: #8a6508;
}
.badge.danger {
  background: #fcebea;
  color: #a33;
}
@media (max-width: 760px) {
  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-top {
    padding: 0 14px;
  }
  .admin-top > span {
    display: none;
  }
  .admin-wrap {
    margin: 20px auto;
  }
}
