/* Minimal mobile-first styles. Large touch targets for use in the barn. */
:root { --fg:#1f2a1f; --bg:#f7f6f1; --accent:#3d6b35; --warn:#a4471c; --muted:#6b6f68; }
* { box-sizing: border-box; }
body { margin:0; font: 16px/1.5 system-ui, sans-serif; color:var(--fg); background:var(--bg); }
.topbar { display:flex; justify-content:space-between; align-items:center; gap:1rem;
  padding:.75rem 1rem; background:var(--accent); color:#fff; flex-wrap:wrap; }
.topbar a, .topbar button { color:#fff; background:none; border:0; font:inherit; cursor:pointer; }
.topbar nav { display:flex; gap:1rem; align-items:center; }
.topbar form { margin:0; }
.brand { font-weight:700; font-size:1.2rem; text-decoration:none; }
main { padding:1rem; max-width:60rem; margin:0 auto; }
.tiles { display:grid; grid-template-columns:repeat(auto-fill, minmax(9rem, 1fr)); gap:.75rem; }
.tile { background:#fff; border-radius:.5rem; padding:1rem; box-shadow:0 1px 2px #0002; }
.tile .n { display:block; font-size:2rem; font-weight:700; color:var(--accent); }
.muted { color:var(--muted); }
.warn { color:var(--warn); font-weight:600; }
.ok { color:var(--accent); }
.narrow { max-width: 26rem; margin: 2rem auto; }
.form { display:flex; flex-direction:column; gap:.75rem; }
.field { display:flex; flex-direction:column; gap:.25rem; font-weight:600; }
input, select, textarea { font:inherit; padding:.6rem; border:1px solid #bbb; border-radius:.4rem; background:#fff; }
.btn { display:inline-block; font:inherit; padding:.7rem 1.2rem; border:0; border-radius:.4rem;
  background:var(--accent); color:#fff; text-decoration:none; cursor:pointer; min-height:44px; }
.errorlist { color:var(--warn); margin:0; padding-left:1rem; }
.messages { background:#fff; border-left:4px solid var(--accent); padding:.5rem 1rem; list-style:none; }
.small { font-size:.85rem; }
.tabs { display:flex; gap:1rem; margin-bottom:1rem; border-bottom:1px solid #ccc; }
.tabs a { padding:.5rem 0; text-decoration:none; color:var(--muted); }
.tabs a.active { color:var(--fg); border-bottom:3px solid var(--accent); font-weight:600; }
.filters { display:flex; flex-wrap:wrap; gap:.75rem; align-items:end; margin-bottom:1rem; }
.filters label { display:flex; flex-direction:column; font-size:.85rem; }
.log { list-style:none; padding:0; }
.log > li { background:#fff; border-radius:.4rem; padding:.6rem .8rem; margin-bottom:.5rem; box-shadow:0 1px 2px #0001; }
.log-head { display:flex; flex-wrap:wrap; gap:.5rem; align-items:baseline; }
.log-head time { color:var(--muted); font-size:.85rem; }
.action { font-size:.8rem; padding:0 .4rem; border-radius:.3rem; background:#e8efe6; }
.action-2 { background:#f6e1d8; }
.changes { margin:.3rem 0 0; padding-left:1.2rem; font-size:.9rem; }
del { color:var(--warn); } ins { color:var(--accent); text-decoration:none; }
.table-wrap { overflow-x:auto; }
table { border-collapse:collapse; width:100%; background:#fff; }
th, td { text-align:left; padding:.4rem .6rem; border-bottom:1px solid #eee; }
tr.warn td { color:var(--warn); }
.pagination { display:flex; gap:1rem; justify-content:center; margin:1rem 0; }
