:root {
  /* palette taken from the DA seal: deep field green, wheat gold */
  --brand: #0f5a2e; --brand-2: #0a4423; --green: #1a8a3f; --green-soft: #e4f3e8;
  --gold: #f5a800; --gold-soft: #ffd35c; --bg: #f6f8f2; --card: #fff; --ink: #13281b; --muted: #566a5c;
  --line: #dfe6da; --red: #b4322b; --red-soft: #fbeceb; --amber-soft: #fff4d6; --amber: #8a6200;
  --radius: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.5; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.02em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.muted { color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 14px; padding: 12px 20px; border-radius: 10px; background: var(--brand); color: #fff; text-decoration: none; }
.btn:hover { background: var(--brand-2); }
.btn.gold { background: var(--gold); color: #2b1d00; }
.btn.gold:hover { background: #e09a00; }
.btn.ghost { background: transparent; color: var(--brand); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--green-soft); }
.btn.sm { padding: 7px 12px; font-size: 13px; }
.btn.ok { background: var(--green); } .btn.no { background: var(--red); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* public site */
.topbar { background: #fff; border-bottom: 3px solid var(--gold); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; text-decoration: none; color: var(--brand); }
.logo { width: 44px; height: 44px; border-radius: 50%; object-fit: contain; background: #fff; flex-shrink: 0; }
.brand small { display: block; font-size: 9.5px; letter-spacing: .14em; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.hero { background: radial-gradient(circle at 85% 20%, #1a8a3f55, transparent 45%), linear-gradient(135deg, var(--brand-2), var(--brand) 70%, #14773b); color: #fff; padding: 72px 0 96px; border-bottom: 6px solid var(--gold); }
.hero h1 { font-size: clamp(32px, 5.6vw, 54px); max-width: 18ch; }
.hero p { max-width: 54ch; color: #d5ead9; font-size: 17px; margin: 18px 0 28px; }
.hero .eyebrow { color: var(--gold-soft); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-top: -56px; }
.stat { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: var(--radius); padding: 18px 20px; }
.stat .l { font-size: 12px; color: var(--muted); font-weight: 600; }
.stat .v { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.stat.big { background: var(--brand); color: #fff; border: 0; border-top: 3px solid var(--gold); } .stat.big .l, .stat.big .s { color: #bfdcc6; } .stat.big .v { color: var(--gold-soft); }
section.block { padding: 56px 0 0; }
section.block h2 { font-size: 28px; margin: 6px 0 8px; color: var(--brand); }
.grid2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { font-size: 17px; margin-bottom: 4px; }
.num { width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: #2b1d00; display: grid; place-items: center; font-weight: 800; margin-bottom: 10px; }
footer.site { margin-top: 72px; background: var(--brand-2); border-top: 4px solid var(--gold); padding: 28px 0 40px; font-size: 13px; color: #bfdcc6; }
footer.site .tag { color: var(--gold-soft); font-weight: 700; margin-bottom: 6px; }
footer.site small { display: block; margin-top: 8px; opacity: .75; }

/* bar chart */
.chart { display: flex; align-items: flex-end; gap: 14px; height: 190px; margin-top: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--line); position: relative; }
.chart .m { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 4px; height: 100%; position: relative; }
.chart .bar { width: 38%; max-width: 26px; border-radius: 5px 5px 0 0; min-height: 2px; }
.chart .bar.in { background: var(--green); } .chart .bar.out { background: var(--gold); }
.chart .m span { position: absolute; bottom: -22px; font-size: 11px; color: var(--muted); }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }

/* meter */
.meter { height: 12px; border-radius: 99px; background: var(--red-soft); overflow: hidden; display: flex; margin: 14px 0 8px; }
.meter b { background: var(--green); display: block; }

/* tables / lists */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; }
.tablewrap { overflow-x: auto; }
.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.pill.approved, .pill.active { background: var(--green-soft); color: var(--green); }
.pill.pending { background: var(--amber-soft); color: var(--amber); }
.pill.rejected, .pill.expired { background: var(--red-soft); color: var(--red); }

/* login */
.loginbox { max-width: 440px; margin: 0 auto; border-top: 4px solid var(--gold); }
.tabs { display: flex; gap: 4px; background: #e9efe5; padding: 4px; border-radius: 10px; margin-bottom: 16px; }
.tabs button { flex: 1; border: 0; background: transparent; padding: 9px; border-radius: 8px; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; color: var(--muted); }
.tabs button.on { background: #fff; color: var(--brand); box-shadow: 0 1px 2px #0001; }

/* forms */
label { display: block; font-size: 13px; font-weight: 700; margin: 14px 0 6px; }
input, select, textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, select:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { border: 1px solid var(--line); background: #fff; padding: 8px 14px; border-radius: 99px; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; }
.chip:hover { border-color: var(--green); background: var(--green-soft); }
.notice { padding: 12px 14px; border-radius: 10px; font-size: 13px; margin-top: 14px; background: var(--amber-soft); color: var(--amber); }
.notice.good { background: var(--green-soft); color: var(--brand); }
.notice.bad { background: var(--red-soft); color: var(--red); }
.paybox { border: 1px dashed #b9c9b6; border-radius: 12px; padding: 14px 16px; margin-top: 12px; background: #fbfdf8; font-size: 14px; }
.paybox b { font-variant-numeric: tabular-nums; }

/* app shell */
.shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.side { background: linear-gradient(180deg, var(--brand), var(--brand-2)); color: #e3f0e6; padding: 20px 14px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; border-right: 4px solid var(--gold); }
.side .brandcard { background: #fff; color: var(--ink); border-radius: 16px; padding: 14px; margin-bottom: 18px; }
.side .ws { font-size: 10px; letter-spacing: .14em; font-weight: 700; margin: 0 8px 14px; color: #b3cdb9; }
.side .ws:before { content: ''; display: inline-block; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; margin-right: 8px; }
.side nav { display: flex; flex-direction: column; gap: 4px; }
.side nav a { padding: 11px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 14px; display: block; border-left: 3px solid transparent; }
.side nav a small { display: block; font-weight: 400; font-size: 12px; color: #9fbea8; }
.side nav a:hover { background: #ffffff0d; }
.side nav a.on { background: #ffffff1a; border-left-color: var(--gold); color: #fff; }
.side .out { margin-top: auto; border-top: 1px solid #ffffff1f; padding-top: 14px; font-size: 14px; }
.side .out button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 8px 12px; }
.side .tagline { font-size: 12px; color: var(--gold-soft); padding: 8px 12px 0; font-weight: 600; line-height: 1.4; }
.main { min-width: 0; }
.apptop { background: #fff; border-bottom: 1px solid var(--line); height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; font-size: 14px; }
.apptop .crumb { color: var(--muted); }
.page { padding: 32px 28px 64px; max-width: 980px; }
.page h1 { font-size: 36px; color: var(--brand); }
.page .sub { color: var(--muted); margin: 8px 0 0; }
.page .rule { height: 3px; background: linear-gradient(90deg, var(--gold) 64px, var(--line) 64px); margin: 18px 0 24px; }
.balcard { background: linear-gradient(135deg, var(--brand), #14773b); color: #fff; border-radius: 20px; padding: 24px; border-bottom: 5px solid var(--gold); }
.balcard .l { font-size: 13px; color: #c8e3cf; } .balcard .v { font-size: 44px; font-weight: 800; color: var(--gold-soft); letter-spacing: -.02em; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.menubtn { display: none; }

@media (max-width: 860px) {
  .grid2, .cols { grid-template-columns: 1fr; }
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 30% 0 0; z-index: 20; height: 100vh; transform: translateX(-102%); transition: transform .2s; }
  .side.open { transform: none; }
  .menubtn { display: inline-block; margin-right: 12px; }
  .page { padding: 24px 16px 56px; } .apptop { padding: 0 16px; }
  .page h1 { font-size: 30px; }
}
