@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Open+Sans:wght@400;600&display=swap');
:root{
  --green:#1a4731;--green-2:#245e42;--green-3:#2d7a56;
  --gold:#c9a84c;--gold-soft:#e0c47a;
  --paper:#faf9f6;--ink:#1a1a1a;--soft:#5a5a5a;--line:#ddd8ce;--card:#fff;
}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:'Open Sans',sans-serif;background:var(--paper);color:var(--ink);line-height:1.55;-webkit-font-smoothing:antialiased}
.topbar{display:flex;justify-content:space-between;align-items:center;background:var(--green);color:#fff;padding:13px 22px;border-bottom:3px solid var(--gold)}
.brand{font-family:'Montserrat',sans-serif;font-weight:700;font-size:15px;letter-spacing:.3px;display:flex;align-items:center;gap:11px}
.crest{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:2px solid var(--gold);border-radius:6px;font-size:11px;font-weight:700;color:var(--gold)}
.userbox{display:flex;align-items:center;gap:12px;font-size:13px}
.who{color:#c9ddd0}
.wrap{max-width:760px;margin:28px auto;padding:0 16px}
.card{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:26px;box-shadow:0 1px 4px rgba(0,0,0,.05)}
.center{text-align:center}
h1{font-family:'Montserrat',sans-serif;color:var(--green);font-size:23px;font-weight:700;margin:0 0 6px}
h2{font-family:'Montserrat',sans-serif;color:var(--green-2);font-size:15px;font-weight:600;margin:24px 0 8px;border-bottom:2px solid var(--gold);padding-bottom:6px;display:inline-block}
.muted{color:var(--soft)}.small{font-size:13px}
label{display:block;font-size:13px;font-weight:600;color:var(--green);margin:12px 0 0}
input,select,textarea{width:100%;margin-top:5px;padding:9px 11px;border:1px solid var(--line);border-radius:8px;font:inherit;background:#fdfcf9;font-size:13px}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--green-3);box-shadow:0 0 0 3px rgba(29,120,84,.12)}
textarea{resize:vertical;font-weight:400}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.check{display:flex;align-items:flex-start;gap:9px;font-weight:400;grid-column:1/-1;background:#f0f7f3;border:1px solid #b8d9c7;border-radius:8px;padding:10px 12px;margin-top:12px;font-size:13px}
.check input{width:auto;margin-top:3px}
.emergency{background:#fdf3e7;border-left:4px solid var(--gold);border-radius:0 8px 8px 0;padding:12px 14px;font-size:13px;margin:14px 0;color:#5a3e0a}
.students-head{display:flex;justify-content:space-between;align-items:center}
.student-row{border:1px solid #b8d9c7;border-radius:10px;padding:14px;margin:12px 0;background:#f7fbf9}
.student-row__head{display:flex;justify-content:space-between;align-items:center}
.student-row__num{font-weight:700;color:var(--green);font-size:13px;font-family:'Montserrat',sans-serif}
.btn{margin-top:18px;background:var(--green);color:#fff;border:0;border-radius:8px;padding:11px 20px;font-weight:700;cursor:pointer;font-family:'Montserrat',sans-serif;font-size:13px;letter-spacing:.3px}
.btn:hover{background:var(--green-2)}
.btn.ghost{background:transparent;color:var(--green);border:1.5px solid var(--green);margin-top:0}
.btn.ghost:hover{background:#f0f7f3}
.btn:disabled{opacity:.6;cursor:default}
.link-btn{background:none;border:0;color:var(--gold);font:inherit;cursor:pointer;text-decoration:underline;padding:0;font-size:13px}
.userbox .link-btn{color:#c9ddd0}
.check-big{width:56px;height:56px;border-radius:50%;background:var(--green-3);color:#fff;font-size:28px;display:flex;align-items:center;justify-content:center;margin:0 auto 14px}
.ils-logo-bar{text-align:center;padding:4px 0 14px;border-bottom:1px solid var(--line);margin-bottom:18px}
.ils-logo-bar img{height:52px}
.toast{position:fixed;left:50%;bottom:-80px;transform:translateX(-50%);background:var(--green);color:#fff;padding:12px 18px;border-radius:8px;font-size:14px;transition:bottom .3s;max-width:90%;z-index:999}
.toast.show{bottom:24px}
.toast.err{background:#9a3b2a}
@media(max-width:560px){.grid{grid-template-columns:1fr}.students-head{flex-direction:column;align-items:flex-start;gap:8px}}

/* ---- people search dropdown ---- */
.name-wrap{position:relative}
.people-dropdown{background:#fff;border:1px solid #b8d9c7;border-radius:10px;box-shadow:0 4px 16px rgba(0,0,0,.12);max-height:260px;overflow-y:auto}
.people-item{padding:9px 13px;cursor:pointer;border-bottom:.5px solid #eef5f1;display:flex;justify-content:space-between;align-items:center;gap:8px}
.people-item:last-child{border-bottom:none}
.people-item:hover,.people-item.focused{background:#f0f7f3}
.people-name{font-size:13px;font-weight:500;color:#1a4731}
.people-badge{font-size:11px;padding:2px 8px;border-radius:999px;background:#e0f0e8;color:#1a4731;white-space:nowrap;flex-shrink:0}
.people-badge.staff{background:#fdf3e7;color:#5a3e0a}
.s-id[readonly]{background:#f0f7f3;color:#5a5a5a;cursor:default}
