.admin-body {
  min-height: 100vh;
  background: var(--cream);
}

.hidden { display: none !important; }

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 300px 1fr;
}

.admin-aside {
  min-height: 100vh;
  position: sticky;
  top: 0;
  padding: 38px;
  background: var(--green);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.admin-logo {
  width: 190px;
  height: 120px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: white;
  border-radius: 20px;
}
.admin-logo img { width: 100%; }

.admin-aside h1 {
  font-family: var(--serif);
  font-size: 3.7rem;
  line-height: .95;
  font-weight: 500;
  margin: 0;
}

.admin-main {
  padding: 55px;
}

.login-card {
  max-width: 480px;
  margin: 10vh auto 0;
  padding: 40px;
  border-radius: 28px;
  background: white;
  box-shadow: var(--shadow);
}

.login-card h2,
.dashboard-head h2 {
  font-family: var(--serif);
  font-size: 3.5rem;
  line-height: 1;
  font-weight: 500;
  margin: 0 0 15px;
}

.admin-alert {
  max-width: 850px;
  margin: 0 auto 20px;
  background: #fff0dd;
  border: 1px solid #e5c28f;
  padding: 15px 18px;
  border-radius: 14px;
  font-size: .83rem;
}

.dashboard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.ghost-button {
  border: 1px solid var(--border);
  background: white;
  border-radius: 999px;
  padding: 11px 18px;
  cursor: pointer;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.stats-grid article {
  background: white;
  border-radius: 22px;
  padding: 25px;
  border: 1px solid var(--border);
}

.stats-grid span {
  display: block;
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 1;
}

.stats-grid small {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.table-card {
  background: white;
  border-radius: 26px;
  border: 1px solid var(--border);
  padding: 22px;
}

.table-tools {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.table-tools input,
.table-tools select {
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
}

.table-tools input { flex: 1; }

.table-scroll { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .78rem;
}

th {
  text-align: left;
  font-size: .64rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(51,51,51,.6);
}

th, td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

td strong { display: block; }

td small {
  display: block;
  color: rgba(51,51,51,.62);
}

.status-select {
  min-width: 135px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 8px;
  background: var(--cream);
}

.admin-status {
  margin: 15px 2px 0;
  font-size: .75rem;
}

@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-aside {
    min-height: auto;
    position: static;
    padding: 20px 24px;
    flex-direction: row;
    align-items: center;
  }
  .admin-logo { width: 145px; height: 80px; }
  .admin-aside > div { display: none; }
  .admin-main { padding: 28px 20px; }
}

@media (max-width: 620px) {
  .stats-grid { grid-template-columns: 1fr; }
  .table-tools { flex-direction: column; }
  .login-card { padding: 26px 20px; }
}
