body {
  font-family: "Tahoma", "Arial", sans-serif;
  background: #f4f6f9;
  color: #202733;
}

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

.sidebar {
  background: #17212f;
  color: #fff;
  padding: 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar .brand {
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.sidebar a {
  color: #dce7f7;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 4px;
}

.sidebar a.active,
.sidebar a:hover {
  background: #26364c;
  color: #fff;
}

.content {
  min-width: 0;
}

.topbar {
  background: #fff;
  border-bottom: 1px solid #dde3ea;
  padding: 14px 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.page-body {
  padding: 22px;
}

.metric {
  border: 1px solid #dde3ea;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  min-height: 104px;
}

.metric span {
  color: #64748b;
  font-size: .86rem;
}

.metric strong {
  display: block;
  font-size: 1.75rem;
  margin-top: 8px;
}

.panel {
  background: #fff;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  padding: 18px;
}

.table > :not(caption) > * > * {
  vertical-align: middle;
}

.badge-soft {
  background: #eef4ff;
  color: #0d6efd;
}

.test-mode-banner {
  background: #fff3cd;
  color: #664d03;
  border: 1px solid #ffecb5;
  padding: 8px 12px;
  border-radius: 6px;
}

.form-control,
.form-select,
.btn {
  border-radius: 6px;
}

@media (max-width: 992px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: relative;
    height: auto;
  }

  .sidebar nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .page-body {
    padding: 14px;
  }
}
