:root {
  --brand: #226b5c;
  --brand-dark: #184b42;
  --accent: #d78928;
  --bg: #f6f7f2;
  --text: #202522;
  --muted: #66706a;
  --line: #dde2dc;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.navbar {
  background: var(--brand-dark);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  background: #fff;
  color: var(--brand-dark);
  font-weight: 800;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  background: #ffffff;
  border-right: 1px solid var(--line);
}

.sidebar .nav-link {
  color: var(--text);
  border-radius: 6px;
  padding: .65rem .75rem;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover {
  background: #e8f2ee;
  color: var(--brand-dark);
}

.page-title {
  color: var(--brand-dark);
  font-weight: 750;
}

.metric {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  height: 100%;
}

.metric span {
  color: var(--muted);
  font-size: .88rem;
}

.metric strong {
  display: block;
  font-size: 1.55rem;
  color: var(--brand-dark);
}

.panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.table thead th {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: .78rem;
  padding: .2rem .55rem;
}

.status-pending {
  background: #fff3cd;
  color: #7a5600;
}

.status-paid,
.status-delivered {
  background: #d8f3e5;
  color: #14583a;
}

.status-partial {
  background: #e2e8ff;
  color: #24378a;
}

@media (max-width: 991.98px) {
  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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