/* Staff panel (pages under /admin). */
.who-name { margin-left: auto; font-weight: 600; color: var(--soft); }
.error { background: #fde3e4; color: #a3262d; border-radius: 16px; padding: 12px 16px; font-weight: 700; margin-top: 14px; }
.error[hidden] { display: none; }
.dash .card h3 { scroll-margin-top: 90px; }
.dash table { min-width: 100%; }
.dash td { vertical-align: middle; }
td.empty { color: var(--soft); text-align: center; padding: 18px 4px; }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions .btn { padding: 6px 14px; font-size: .85rem; margin-left: 6px; }
button.btn { border: 0; cursor: pointer; font-family: "Fredoka", sans-serif; }
button.btn:disabled { opacity: .6; cursor: default; }
.dash .hint { margin: -6px 0 14px; }
.mini-form { display: flex; flex-wrap: wrap; gap: 0 12px; align-items: end; margin-top: 16px; padding-top: 14px; border-top: 2px dashed #ffe9b8; }
.mini-form > label { flex: 1 1 120px; }
.mini-form fieldset { border: 0; flex: 1 1 100%; margin-bottom: 10px; font-weight: 800; font-size: .86rem; }
.mini-form fieldset label { display: inline-flex; gap: 4px; align-items: center; margin: 4px 10px 0 0; }
.mini-form fieldset input { width: auto; }
.mini-form .btn { margin-bottom: 10px; }
.dash .card { overflow-x: auto; }
.book-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 14px; align-items: end; }
.book-grid .btn { margin-bottom: 10px; }
.done.bad { background: #fde3e4; color: #a3262d; }
.menu-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.menu-day { background: var(--cream); border-radius: 18px; padding: 14px; }
.menu-day h4 { font: 600 1.1rem "Fredoka", sans-serif; margin-bottom: 8px; }
.menu-day input, .menu-day textarea { background: #fff; }
textarea { font: 600 .92rem "Nunito", sans-serif; border: 2px solid #ffe9b8; border-radius: 14px; padding: 8px 12px; color: var(--navy); width: 100%; resize: vertical; }
.menu-day small { font-weight: 800; color: var(--soft); }
@media (max-width: 1300px) { .menu-grid { grid-template-columns: repeat(3, 1fr); } .book-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .menu-grid, .book-grid { grid-template-columns: minmax(0, 1fr); }
  .who-name { display: none; }
  .row-actions .btn { display: block; margin: 4px 0 0 auto; }
}

/* views */
.dash [hidden] { display: none !important; }
#menu-form .btn-soft { margin-bottom: 10px; }
input.spots { width: 90px; background: var(--cream); }
td.full { color: #a3262d; font-weight: 800; }

/* set-password link notice, parent portal */
.link-box { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 0; }
.link-box p { flex: 1 1 100%; }
.link-box input { flex: 1 1 320px; background: #fff; }
.hello { font-size: 2rem; text-shadow: none; }
.kids { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 18px; }
.kid-card p { margin-top: 4px; font-weight: 700; }
.kid-card p.sub { font-weight: 400; font-size: .95rem; margin-top: 2px; }
.kid-card .ok { margin-left: 8px; }

/* tour states and the change dialog */
.state { display: inline-block; font-weight: 800; font-size: .82rem; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.state.ok { background: #dff5e9; color: #1f8a55; }
.state.wait { background: #fff3cf; color: #8a6400; }
.state.bad { background: #fde3e4; color: #a3262d; }
.state.past { background: #e9ecf3; color: #5a6381; }
dialog { border: 0; border-radius: 28px; padding: 26px 28px; width: min(420px, 92vw); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); color: var(--navy); margin: auto; }
dialog::backdrop { background: rgba(35, 44, 71, .6); }
dialog h3 { font: 600 1.3rem "Fredoka", sans-serif; margin-bottom: 6px; }
