:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-soft: #eef5ea;
  --text: #1f2b1e;
  --muted: #66725f;
  --border: #d8e0d2;
  --primary: #2f7d32;
  --primary-dark: #1f5b22;
  --accent: #8bc34a;
  --warning: #9b5d17;
  --danger: #b23b3b;
  --radius: 18px;
  --shadow: 0 12px 32px rgba(31, 43, 30, 0.08);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f7f6f2 0%, #eef5ea 100%);
}
a { color: inherit; text-decoration: none; }
.layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar {
  background: #17351d;
  color: #fff;
  padding: 24px;
}
.brand {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}
.brand small { display: block; font-size: 12px; color: #c6ddc8; margin-top: 6px; }
.nav a {
  display: block;
  padding: 12px 14px;
  margin-bottom: 8px;
  border-radius: 12px;
  color: #e9f5ea;
}
.nav a:hover, .nav a.active { background: rgba(255,255,255,0.12); }
.main { padding: 24px; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.stat { background: var(--surface-soft); }
.btn {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-secondary { background: #ebf3e6; color: var(--primary-dark); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; border-bottom: 1px solid var(--border); text-align: left; }
.badge { display: inline-block; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-green { background: #dff0d8; color: #215f24; }
.badge-yellow { background: #fff0cc; color: #8a5a00; }
.badge-blue { background: #ddeeff; color: #1d5e92; }
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-top: 6px;
  margin-bottom: 14px;
  background: #fff;
}
label { font-weight: 600; font-size: 14px; }
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-card {
  width: min(960px, 100%);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(23,53,29,.15);
}
.hero-pane {
  background: radial-gradient(circle at top left, #8bc34a, #2f7d32 60%, #17351d 100%);
  color: #fff;
  padding: 42px;
}
.hero-pane h1 { font-size: 42px; margin: 0 0 12px; }
.hero-pane p { color: rgba(255,255,255,.9); line-height: 1.7; }
.form-pane { padding: 38px; }
.invoice {
  max-width: 900px; margin: auto; background: #fff; padding: 30px; border-radius: 22px; border: 1px solid var(--border);
}
@media (max-width: 900px) {
  .layout, .login-card, .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .sidebar { padding-bottom: 10px; }
}
