:root{--navy:#243b8f;--navy2:#172967;--ink:#20283a;--muted:#687386;--line:#e3e7ef;--bg:#f5f7fb;--white:#fff;--green:#168454;--amber:#a96908;--red:#b33b43}
*{box-sizing:border-box}body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:var(--bg);color:var(--ink)}
header{background:linear-gradient(115deg,var(--navy2),var(--navy));color:#fff;padding:22px max(22px,calc((100% - 1160px)/2))}
.brand{font-size:13px;letter-spacing:2px;font-weight:800;opacity:.9}.brand strong{font-size:23px;letter-spacing:.3px;display:block;margin-top:5px}
header p{margin:8px 0 0;color:#e3e9ff;font-size:14px}
nav{background:#fff;border-bottom:1px solid var(--line);display:flex;gap:8px;padding:10px max(18px,calc((100% - 1160px)/2));flex-wrap:wrap}
nav a{display:inline-block;text-decoration:none;padding:11px 16px;border-radius:8px;font-weight:700;color:var(--muted)}
nav a.active{background:#edf1ff;color:var(--navy)}
main{max-width:1160px;margin:28px auto;padding:0 18px 50px}
h1{font-size:27px;margin:0 0 7px;color:#1d2d69}h2{font-size:19px;margin:0 0 14px}h3{font-size:16px;margin:0}
.sub{color:var(--muted);margin:0 0 22px;line-height:1.5}
.panel,.batch{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px;margin-bottom:20px;box-shadow:0 4px 18px #1c2c5508}
.filters{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end}
label{font-size:12px;font-weight:750;color:#4e596d;display:block;margin-bottom:7px}
input,select{width:100%;padding:12px;border:1px solid #d7ddea;border-radius:8px;background:#fff;color:var(--ink);font:inherit}
button.primary{background:var(--navy);color:#fff;border:0;border-radius:8px;padding:12px 17px;font-weight:750;cursor:pointer}
button.primary:hover{background:var(--navy2)}button.secondary{background:#edf1ff;color:var(--navy);border:1px solid #d9e0ff;border-radius:8px;padding:10px 13px;font-weight:700;cursor:pointer}
button.danger{background:#fff1f1;color:var(--red);border:1px solid #f1d1d3;border-radius:8px;padding:9px 12px;font-weight:700;cursor:pointer}
button:disabled{opacity:.5;cursor:not-allowed}
.batch-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.batch{display:flex;flex-direction:column;gap:13px;margin:0}
.batch-top{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.pill{font-size:11px;font-weight:800;padding:5px 9px;border-radius:20px;white-space:nowrap}
.open{background:#e8f7ef;color:var(--green)}.full{background:#fff3df;color:var(--amber)}.closed,.cancelled{background:#fcebed;color:var(--red)}
.date{font-size:19px;font-weight:800;color:#253777}.time{font-size:14px;color:#566176;margin-top:5px}
.meta{display:flex;gap:15px;flex-wrap:wrap;color:var(--muted);font-size:12px}
.batch-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:auto}
.small{font-size:12px;color:var(--muted)}.empty{padding:35px;text-align:center;color:var(--muted);border:1px dashed #ccd3e0;border-radius:12px}
.hidden{display:none!important}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:18px}
.stat{background:#f7f8fc;border:1px solid var(--line);border-radius:10px;padding:14px}.stat b{display:block;font-size:24px;color:var(--navy);margin-top:5px}
.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:13px}th,td{text-align:left;padding:12px 10px;border-bottom:1px solid var(--line);white-space:nowrap}th{color:#59647a;background:#f8f9fc;font-size:11px;text-transform:uppercase;letter-spacing:.4px}
.actions{display:flex;gap:7px;flex-wrap:wrap}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:13px}.form-grid .wide{grid-column:1/-1}
.notice{padding:12px 14px;background:#f0f4ff;border-left:3px solid var(--navy);border-radius:6px;color:#46516a;font-size:13px;line-height:1.5}
.warning{padding:12px 14px;background:#fff8e9;border-left:3px solid #d59a32;border-radius:6px;color:#73531b;font-size:12px;line-height:1.5}
.success{padding:14px;background:#e8f7ef;border-left:3px solid var(--green);border-radius:6px;color:#175d3e;font-size:14px;line-height:1.6}
footer{text-align:center;color:#8a93a4;font-size:12px;padding:22px}
.narrow{max-width:620px}.stack{display:grid;gap:14px}.inline-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:15px}
@media(max-width:700px){.filters,.batch-grid,.stats,.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.batch-foot{align-items:flex-start;flex-direction:column}header{padding:20px}nav{padding:9px 12px}main{margin-top:20px}}
.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-logo {
  display: block;
  width: 180px;
  height: auto;
  object-fit: contain;
  cursor: pointer;
}

/* VET fee row */
#batchGrid .fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 0;
}

#batchGrid .fee-row strong {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
}

/* Batch selection row */
#batchGrid .batch-foot {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 10px;
  margin-top: 0;
}

@media (max-width: 700px) {
  #batchGrid .batch-foot {
    flex-direction: row;
    align-items: center;
  }
}
.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-logo {
  display: block;
  width: 180px;
  height: auto;
  object-fit: contain;
}

.home-link {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease;
}

.home-link:hover {
  color: #f4771b;
}