:root {
  --app-bg: #f5f7fb;
  --app-border: #e4e8ef;
}

body {
  background: var(--app-bg);
  color: #25313c;
  min-height: 100vh;
}

.main-container {
  max-width: 1500px;
}

.page-header {
  margin-bottom: 1.5rem;
}

.card,
.metric-card {
  border-radius: 1rem;
}

.metric-card {
  background: #fff;
  border: 1px solid var(--app-border);
  padding: 1.1rem 1.2rem;
  box-shadow: 0 .125rem .35rem rgba(0,0,0,.045);
  height: 100%;
}

.metric-card span {
  display: block;
  color: #6c757d;
  font-size: .86rem;
  margin-bottom: .35rem;
}

.metric-card strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.2;
}

.metric-card .metric-text {
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.chart-wrap {
  min-height: 300px;
  position: relative;
}

.form-card {
  max-width: 1000px;
}

.empty-state {
  text-align: center;
  color: #6c757d;
  padding: 2rem 1rem !important;
}

.purchase-total {
  font-size: 1.25rem;
  background: #eef4ff;
  border: 1px solid #dbe8ff;
  padding: .8rem 1rem;
  border-radius: .75rem;
}

.login-shell {
  min-height: calc(100vh - 3rem);
  display: grid;
  place-items: center;
  padding: 1.5rem 0;
}

.login-card {
  width: min(100%, 430px);
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #0d6efd;
  color: #fff;
  font-size: 1.9rem;
}

.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  gap: .75rem;
}

.table > :not(caption) > * > * {
  padding: .8rem .75rem;
}

@media (max-width: 767.98px) {
  .main-container { padding-left: .75rem; padding-right: .75rem; }
  .metric-card strong { font-size: 1.2rem; }
  .chart-wrap { min-height: 240px; }
  .table { font-size: .92rem; }
}
