:root {
  --bg: #f4f6f2;
  --card: #ffffff;
  --text: #1d2a21;
  --muted: #66746a;
  --green: #315f3d;
  --green-dark: #21412b;
  --line: #d9e1da;
  --danger: #9b2f2f;
  --gold: #c9972d;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
.site-header { background: var(--green); color: white; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 14px 24px; flex-wrap: wrap; }
.brand a { color: white; font-weight: 800; font-size: 1.25rem; }
.site-header nav { display: flex; gap: 12px; flex-wrap: wrap; }
.site-header nav a { color: white; font-weight: 600; }
.container { width: min(1180px, calc(100% - 32px)); margin: 24px auto; }
.footer { text-align: center; color: var(--muted); padding: 24px; }
h1 { margin-top: 0; }
.card, .auth-card, .stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.auth-card { max-width: 430px; margin: 40px auto; }
label { display: flex; flex-direction: column; font-weight: 700; gap: 6px; }
input, select, textarea { width: 100%; padding: 11px; border: 1px solid #cbd6ce; border-radius: 8px; font-size: 1rem; background: white; }
textarea { min-height: 90px; }
button, .button { display: inline-block; border: 0; border-radius: 8px; padding: 11px 15px; background: var(--green); color: white; font-weight: 800; cursor: pointer; text-decoration: none; }
button:hover, .button:hover { background: var(--green-dark); text-decoration: none; }
.button.secondary { background: #eef4ef; color: var(--green); border: 1px solid var(--line); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 20px; align-items: center; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.wide { grid-column: 1 / -1; }
.stat-grid { display: grid; grid-template-columns: repeat(5, minmax(140px, 1fr)); gap: 14px; margin: 20px 0; }
.stat strong { display: block; font-size: 2rem; color: var(--green); }
.stat span { color: var(--muted); }
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #edf3ee; }
tr:last-child td { border-bottom: 0; }
.badge { display: inline-block; border-radius: 999px; padding: 4px 9px; font-size: .85rem; font-weight: 800; background: #e7ebee; color: #36424d; }
.badge-sprayed { background: #dff1e4; color: #1f6b36; }
.badge-scheduled { background: #fff1cf; color: #7c5700; }
.badge-pending { background: #e9eefc; color: #314c8c; }
.badge-cancelled { background: #f8dddd; color: var(--danger); }
.alert { border-radius: 8px; padding: 12px; margin: 12px 0; }
.alert.error { background: #ffe8e8; color: var(--danger); }
.alert.success { background: #e1f4e7; color: #1e6c36; }
.muted { color: var(--muted); }
.inline { display: inline; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
#draw-map, #view-map { width: 100%; min-height: 520px; border-radius: 12px; border: 1px solid var(--line); overflow: hidden; }
@media (max-width: 760px) {
  .form-grid, .two-col, .stat-grid { grid-template-columns: 1fr; }
  .site-header { align-items: flex-start; }
  table { display: block; overflow-x: auto; }
}
