:root {
  --bg: #f6f7fb;
  --card: #fff;
  --text: #1a1f2c;
  --muted: #5a6478;
  --border: #e3e6ee;
  --accent: #f56040;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 10% 10%, #ffe6e0 0, transparent 45%),
    radial-gradient(circle at 90% 20%, #e7f0ff 0, transparent 40%), var(--bg);
}
.admin-wrap { max-width: 1080px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.brand-link { text-decoration: none; }
.brand-logo { width: clamp(180px, 30vw, 320px); height: auto; display: block; }
.logout {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 10px;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
}
.login-card { max-width: 420px; margin: 2.2rem auto 0; }
.login-form { display: grid; gap: 0.55rem; margin-top: 0.8rem; }
input {
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 0.75rem;
  font-size: 1rem;
}
button, .btn {
  border: 0;
  border-radius: 10px;
  height: 42px;
  padding: 0 1rem;
  background: linear-gradient(135deg, #fd7e4f, var(--accent));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
button:disabled { opacity: 0.7; cursor: wait; }
.muted { color: var(--muted); margin: 0.25rem 0 0; }
.status { min-height: 1.5rem; margin: 0.6rem 0 0; color: #cf4e2e; font-weight: 600; }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.kpi h2 { margin: 0; font-size: 0.92rem; color: var(--muted); }
.kpi-value { margin: 0.45rem 0 0; font-size: 1.8rem; font-weight: 800; }
.kpi-note { margin: 0.2rem 0 0; font-size: 0.8rem; color: var(--muted); }
.section { margin-top: 0.9rem; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; }
.section-head h2 { margin: 0; font-size: 1.05rem; }
.actions { display: flex; gap: 0.5rem; }
.table-wrap { overflow: auto; margin-top: 0.65rem; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { border-bottom: 1px solid var(--border); padding: 0.55rem 0.4rem; text-align: left; font-size: 0.92rem; }
th { color: var(--muted); font-weight: 700; }
@media (max-width: 900px) {
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .summary-grid { grid-template-columns: 1fr; }
}
