
:root {
  --bg: #f4f7f4;
  --card: #ffffff;
  --ink: #19342f;
  --muted: #5f756f;
  --line: #dce7e2;
  --accent: #2f6f58;
  --accent-2: #e8f5ee;
  --danger: #b42318;
  --warn: #b7791f;
  --ok: #237a57;
  --shadow: 0 18px 45px rgba(25,52,47,.10);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(47,111,88,.16), transparent 34rem),
    linear-gradient(135deg, #f7faf8 0%, #eef5f1 100%);
}
.app-shell { max-width: 1240px; margin: 0 auto; padding: 28px; }
.hero {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 22px; padding: 28px; border-radius: 28px; background: #143a31; color: white; box-shadow: var(--shadow);
}
.hero h1 { margin: 0; font-size: clamp(2rem, 5vw, 4.2rem); letter-spacing: -.04em; }
.eyebrow { margin: 0 0 12px; opacity: .72; font-weight: 700; text-transform: uppercase; font-size: .76rem; letter-spacing: .12em; }
.subtitle { margin: 12px 0 0; opacity: .86; }
.language-box { min-width: 180px; }
.language-box label { display: block; margin-bottom: 8px; opacity: .8; }
select, input {
  width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 12px 13px;
  font: inherit; background: white; color: var(--ink);
}
main { display: grid; gap: 18px; }
.panel {
  background: rgba(255,255,255,.88); border: 1px solid rgba(220,231,226,.8); border-radius: 24px;
  padding: 22px; box-shadow: var(--shadow); backdrop-filter: blur(10px);
}
.panel-title { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 18px; }
.panel-title h2 { margin: 0; font-size: 1.2rem; }
.panel-title p { margin: 6px 0 0; color: var(--muted); }
.grid-form { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 14px; }
label span { display: block; margin-bottom: 7px; font-weight: 700; font-size: .88rem; color: var(--muted); }
.button-row { display: flex; gap: 10px; align-items: end; }
button {
  border: 0; border-radius: 14px; padding: 12px 16px; font-weight: 800; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
button:hover { transform: translateY(-1px); }
.primary { background: var(--accent); color: white; box-shadow: 0 12px 24px rgba(47,111,88,.24); }
.ghost { background: var(--accent-2); color: var(--accent); }
.message { min-height: 24px; margin-top: 12px; font-weight: 700; color: var(--danger); }
.filters { display: flex; gap: 12px; min-width: 420px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpis article { padding: 18px; border-radius: 20px; background: var(--accent-2); }
.kpis strong { display: block; font-size: 2rem; line-height: 1; }
.kpis span { display: block; margin-top: 8px; color: var(--muted); font-weight: 700; }
.status-bars { display: grid; gap: 10px; margin-top: 16px; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 46px; gap: 12px; align-items: center; }
.bar { height: 16px; background: #edf3f0; border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0%; background: var(--accent); border-radius: 999px; }
.badge { display: inline-block; padding: 6px 10px; border-radius: 999px; font-weight: 800; font-size: .78rem; }
.badge.Completed { background: #e4f6ee; color: var(--ok); }
.badge.Overdue { background: #fee4e2; color: var(--danger); }
.badge.Active { background: #e0f2fe; color: #075985; }
.badge.DueSoon { background: #fef3c7; color: var(--warn); }
.badge.Upcoming { background: #f1f5f9; color: #334155; }
.table-wrap { overflow: auto; max-height: 560px; border-radius: 18px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 1040px; background: white; }
th, td { padding: 12px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { position: sticky; top: 0; background: #f8fbf9; z-index: 1; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
td small { display: block; color: var(--muted); margin-top: 2px; }
@media (max-width: 900px) {
  .app-shell { padding: 14px; }
  .hero, .panel-title { flex-direction: column; align-items: stretch; }
  .grid-form { grid-template-columns: 1fr; }
  .filters { min-width: auto; flex-direction: column; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
