/* Tiger Admin — plain, roomy, big touch targets. Same school colors. */
:root {
  --orange: #e85d04;
  --orange-dark: #b44300;
  --black: #131313;
  --ink: #242424;
  --muted: #5f5b54;
  --line: #e3ddd0;
  --sand: #f5f1e9;
  --ok-bg: #eef6ee;
  --ok-line: #b9d8b9;
}
* { box-sizing: border-box; }
body {
  margin: 0; color: var(--ink); background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px; line-height: 1.6;
}
h1 { font-size: 1.7rem; color: var(--black); margin: 0 0 0.5rem; }
h2 { font-size: 1.25rem; color: var(--black); margin: 1.5rem 0 0.5rem; }
p { margin: 0 0 1rem; }
a { color: var(--orange-dark); }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 22px; }
.wrap.narrow { max-width: 520px; }
.lede { color: var(--muted); font-size: 1.05rem; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 0.9rem; margin: 0.25rem 0 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.sitebar { background: var(--black); border-bottom: 3px solid var(--orange); color: #fff; }
.sitebar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 0.8rem; padding-bottom: 0.8rem; }
.sitebar .brand { font-family: Georgia, serif; font-size: 1.25rem; font-weight: 700; }
.sitebar .brand small { font-family: inherit; font-weight: 400; font-size: 0.82rem; color: #c9c9c9; margin-left: 0.5rem; }
.sitebar .who { font-size: 0.92rem; color: #e8e8e8; }
.sitebar .who a { color: #ffb37a; }
.topnav { background: #1e1e1e; }
.topnav { display: flex; flex-wrap: wrap; gap: 0.2rem; padding: 0.45rem 22px; max-width: 880px; margin: 0 auto; }
.topnav a { color: #f2f2f2; text-decoration: none; font-weight: 600; font-size: 0.93rem; padding: 0.45rem 0.8rem; border-radius: 8px; white-space: nowrap; }
.topnav a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.topnav > a[aria-current], .topnav details.current > summary { background: rgba(232, 93, 4, 0.28); color: #fff; }
.topnav details.menu { position: relative; }
.topnav summary { list-style: none; cursor: pointer; color: #f2f2f2; font-weight: 600; font-size: 0.93rem; padding: 0.45rem 0.8rem; border-radius: 8px; white-space: nowrap; }
.topnav summary::-webkit-details-marker { display: none; }
.topnav summary::after { content: ""; display: inline-block; margin-left: 0.45rem; vertical-align: 0.2em; border: 0.3em solid transparent; border-top-color: currentColor; border-bottom: 0; }
.topnav summary:hover, .topnav details[open] > summary { background: rgba(255, 255, 255, 0.12); color: #fff; }
.topnav .menulist { position: absolute; top: calc(100% + 0.3rem); left: 0; z-index: 20; min-width: 220px; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0.35rem; box-shadow: 0 8px 24px rgba(19, 19, 19, 0.18); }
.topnav .menulist a { color: var(--ink); font-weight: 600; }
.topnav .menulist a:hover { background: var(--sand); color: var(--black); }
.topnav .menulist a[aria-current] { color: var(--orange-dark); background: var(--sand); }
main .wrap { padding-top: 2rem; padding-bottom: 3rem; }

.flash { background: var(--ok-bg); border: 1px solid var(--ok-line); border-radius: 8px; padding: 0.8rem 1rem; }
.flash.error { background: #fdf0f1; border-color: #e5a3ac; }

.dashgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.dashcard { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem; text-decoration: none; color: var(--ink); background: #fff; box-shadow: 0 1px 2px rgba(19, 19, 19, 0.06); }
.dashcard:hover { border-color: var(--orange); }
.dashnum { display: block; font-size: 2rem; font-weight: 800; color: var(--black); font-variant-numeric: tabular-nums; }
.dashtitle { display: block; font-weight: 700; font-size: 1.05rem; color: var(--black); }
.dashhint { display: block; color: var(--muted); font-size: 0.9rem; }

.card { border: 1px solid var(--line); border-radius: 12px; padding: 1.4rem; background: #fff; box-shadow: 0 1px 2px rgba(19, 19, 19, 0.06); margin-top: 1rem; }
label { display: block; font-weight: 650; margin: 1rem 0 0.3rem; color: var(--black); }
label.check { display: flex; align-items: center; gap: 0.6rem; font-size: 1.02rem; background: var(--sand); border: 1px solid var(--line); border-radius: 8px; padding: 0.8rem 1rem; margin-top: 1.25rem; cursor: pointer; }
label.check input { width: 1.3rem; height: 1.3rem; accent-color: var(--orange); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], select, textarea {
  width: 100%; max-width: 560px; padding: 0.7rem 0.8rem; font-size: 1rem; font-family: inherit;
  border: 1.5px solid #c9c2b4; border-radius: 8px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.18); }
input[type=file] { font-size: 0.95rem; }
textarea { resize: vertical; }
.thumb { max-width: 280px; height: auto; border-radius: 8px; border: 1px solid var(--line); }

.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  background: var(--orange); color: #fff !important; font-weight: 700;
  padding: 0.7rem 1.4rem; border-radius: 999px; font-size: 1rem; margin-right: 0.5rem;
}
.btn:hover { background: var(--orange-dark); }
.btn.ghost { background: #fff; color: var(--black) !important; border: 1.5px solid var(--black); }
.btn.ghost:hover { background: var(--black); color: #fff !important; }
.btn.small { padding: 0.4rem 0.9rem; font-size: 0.88rem; border-radius: 8px; margin-right: 0.25rem; }
.btn.danger { background: #fff; color: #a31225 !important; border: 1.5px solid #a31225; }
.btn.danger:hover { background: #a31225; color: #fff !important; }
button[disabled] { opacity: 0.35; cursor: default; }
form.danger { margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }

table.rows { width: 100%; border-collapse: collapse; margin-top: 1rem; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
table.rows td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.rows tr:last-child td { border-bottom: 0; }
td.actions { white-space: nowrap; text-align: right; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
label.inline-label { display: inline; margin: 0 0.5rem 0 0; }
.totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin: 1.25rem 0; }
.total { border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; background: var(--sand); }
.totalnum { display: block; font-size: 1.6rem; font-weight: 800; color: var(--black); font-variant-numeric: tabular-nums; }
.totallabel { display: block; color: var(--muted); font-size: 0.92rem; }
form.inline { display: inline; }
form.inline input[type=text] { width: 150px; padding: 0.4rem 0.6rem; font-size: 0.88rem; }
.badge { display: inline-block; font-size: 0.8rem; font-weight: 700; border-radius: 999px; padding: 0.15rem 0.7rem; }
.badge.on { background: var(--ok-bg); border: 1px solid var(--ok-line); color: #2c6b2c; }
.badge.off { background: #f1efe9; border: 1px solid var(--line); color: var(--muted); }

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
footer .wrap { padding-top: 1.25rem; padding-bottom: 1.5rem; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .topnav details[open] { flex-basis: 100%; }
  .topnav .menulist { position: static; margin-top: 0.3rem; box-shadow: none; }
  td.actions { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
