:root {
  font-family: Inter, "Microsoft YaHei", system-ui, sans-serif;
  color: #172033;
  background: #f5f7fb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.hidden {
  display: none !important;
}

.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #172554, #2563eb);
}

.box {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  width: min(430px, calc(100% - 32px));
  box-shadow: 0 20px 60px #0004;
}

.box h1 {
  margin: 0 0 8px;
}

.muted {
  color: #667085;
  font-size: 13px;
}

.field {
  margin: 15px 0;
}

.field label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
}

.field input,
.field select {
  width: 100%;
  padding: 10px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  font: inherit;
}

.primary,
.secondary {
  border: 0;
  border-radius: 8px;
  padding: 10px 15px;
  cursor: pointer;
  font-weight: 650;
}

.primary {
  color: #fff;
  background: #2563eb;
}

.secondary {
  color: #1d4ed8;
  background: #eef2ff;
}

.login button {
  width: 100%;
  margin-top: 8px;
}

.error {
  padding: 10px;
  border-radius: 8px;
  margin: 12px 0;
  color: #b42318;
  background: #fef2f2;
  font-size: 13px;
}

.layout {
  display: flex;
  min-height: 100vh;
}

.side {
  width: 230px;
  padding: 24px 14px;
  color: #cbd5e1;
  background: #111827;
}

.brand {
  margin: 0 8px 24px;
  color: #fff;
  font-size: 19px;
  font-weight: 800;
}

.brand small {
  display: block;
  margin-top: 5px;
  color: #9ca3af;
  font-size: 11px;
}

.nav button,
.nav a {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 8px;
  margin: 3px 0;
  color: #cbd5e1;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: none;
}

.nav button:hover,
.nav button.active,
.nav a:hover {
  color: #fff;
  background: #263244;
}

.main {
  flex: 1;
  min-width: 0;
}

.top {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.top h1 {
  font-size: 21px;
}

.content {
  max-width: 1250px;
  padding: 28px 32px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.card {
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 16px;
  background: #fff;
}

.metric {
  font-size: 28px;
  font-weight: 750;
}

.success {
  color: #067647;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.toolbar h2 {
  margin: 0;
  font-size: 19px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 12px 8px;
  border-bottom: 1px solid #edf0f4;
  font-size: 14px;
  text-align: left;
}

.table th {
  color: #667085;
}

.pill {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 99px;
  color: #067647;
  background: #ecfdf3;
  font-size: 12px;
}

.gray {
  color: #667085;
  background: #f2f4f7;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: #11182766;
}

.modal .box {
  width: min(520px, 100%);
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

@media (max-width: 700px) {
  .side {
    width: 64px;
    padding: 18px 8px;
  }

  .brand {
    font-size: 0;
  }

  .brand::before {
    content: "CR";
    font-size: 18px;
  }

  .brand small,
  .nav button span,
  .nav a span {
    display: none;
  }

  .content {
    padding: 20px;
  }

  .top {
    padding: 0 20px;
  }
}
