:root {
  --brand: #1e7a4c;
  --brand-dark: #14532d;
  --brand-light: #e8f5ee;
  --bg: #f4f6f5;
}

body {
  background: var(--bg);
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: .2px;
}

.sidebar {
  min-height: calc(100vh - 56px);
  background: #fff;
  border-right: 1px solid #e5e7eb;
}

.sidebar .nav-link {
  color: #33403a;
  border-radius: 8px;
  padding: .55rem .8rem;
  margin-bottom: 2px;
  font-size: .93rem;
}

.sidebar .nav-link.active {
  background: var(--brand-light);
  color: var(--brand-dark);
  font-weight: 600;
}

.sidebar .nav-link:hover {
  background: #f1f3f2;
}

.sidebar .nav-header {
  text-transform: uppercase;
  font-size: .7rem;
  color: #8a938d;
  padding: .8rem .8rem .2rem;
  letter-spacing: .06em;
}

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

.btn-brand:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}

.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  border: 1px solid #eef0ef;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}

.stat-card .stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.stat-card .stat-label {
  color: #6b756f;
  font-size: .85rem;
}

.card {
  border: 1px solid #eef0ef;
  border-radius: 12px;
}

.table thead th {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #6b756f;
  border-bottom-width: 1px;
  white-space: nowrap;
}

.badge-status {
  font-weight: 500;
  font-size: .78rem;
}

.low-stock {
  color: #b02a37;
  font-weight: 600;
}

.doc-title {
  font-weight: 700;
  color: var(--brand-dark);
}

a { text-decoration: none; }

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
}

.login-card {
  width: 380px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
}
