* { box-sizing: border-box; }
body {
  margin: 0;
  background: #f5f4f8;
  color: #19171d;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
.layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}
.side {
  background: #17141a;
  color: #fff;
  padding: 28px 18px;
}
.brand {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 28px;
}
.nav a {
  display: block;
  padding: 13px 14px;
  border-radius: 8px;
  color: #d7d3dc;
  margin-bottom: 6px;
}
.nav a.active, .nav a:hover {
  background: #2b2730;
  color: #fff;
}
.main {
  padding: 28px;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
h1 {
  margin: 0;
  font-size: 28px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.card {
  background: #fff;
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(30, 28, 36, 0.06);
}
.num {
  font-size: 28px;
  font-weight: 900;
  color: #12725f;
}
.muted { color: #7c7782; }
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}
th, td {
  padding: 13px 14px;
  border-bottom: 1px solid #eeeef2;
  text-align: left;
  vertical-align: top;
}
th {
  background: #fbfafc;
  color: #5c5862;
  font-size: 13px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 18px;
  background: #17141a;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.btn.blue { background: #1479df; }
.login {
  display: grid;
  place-items: center;
  min-height: 100vh;
}
.login-box {
  width: min(420px, calc(100vw - 32px));
  background: #fff;
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 16px 45px rgba(30, 28, 36, 0.12);
}
input, textarea, select {
  width: 100%;
  height: 42px;
  border: 1px solid #e1dfe5;
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
}
label {
  display: block;
  margin: 12px 0 6px;
  font-weight: 700;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
textarea { height: 110px; padding-top: 10px; }
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .side { position: static; }
  .cards { grid-template-columns: 1fr 1fr; }
}
