/* ============================================================
   Arayat Sports Center — staff / admin back office
   Every class is prefixed .adm- (or scoped to body[data-route="staff"])
   so nothing here leaks into the guest views.
   ============================================================ */

/* ---------- sport colour tokens ---------- */
.adm-sp-basketball { --sp: #f47b20; --sp-bg: #fff1e4; --sp-ink: #9a4307; }
.adm-sp-volleyball { --sp: #1f56e0; --sp-bg: #e7eeff; --sp-ink: #0a2f97; }
.adm-sp-pickleball { --sp: #14995a; --sp-bg: #e1f5ea; --sp-ink: #0b6338; }
.adm-sp-badminton  { --sp: #7c3aed; --sp-bg: #f0e8ff; --sp-ink: #5520b5; }
.adm-sp-other      { --sp: #d6336c; --sp-bg: #fde8ef; --sp-ink: #9c1846; }

body[data-route="staff"] { background: var(--bg); }
body[data-route="staff"] #app { min-height: 100dvh; }
.adm-num { font-variant-numeric: tabular-nums; }
.adm-mt { margin-top: 14px; }
.adm-due { color: var(--danger); font-weight: 700; }
.adm-warn-txt { color: var(--warn); font-weight: 600; }
.adm-ellipsis { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }
.adm-prewrap { white-space: pre-wrap; }
.adm-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--sp, var(--muted)); margin-right: 8px; vertical-align: 0; flex: none; }
.adm-dot-pending { background: repeating-linear-gradient(135deg, var(--warn) 0 2px, #fff 2px 4px); box-shadow: inset 0 0 0 1.5px var(--warn); }
.adm-tag { display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 1px 6px; border-radius: 6px; background: var(--orange-100); color: var(--orange-600); vertical-align: 1px; }
.adm-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); font-family: var(--font); font-size: .78rem; font-weight: 700; vertical-align: 3px; margin-left: 4px; }

/* ============================================================
   Shell
   ============================================================ */
.adm { min-height: 100dvh; }
.adm-main { min-width: 0; padding: 20px var(--gutter) calc(96px + var(--safe-b)); }
.adm-main-inner { max-width: 1440px; margin: 0 auto; }

/* Sidebar (≥1024) */
.adm-side { display: none; }
@media (min-width: 1024px) {
  .adm { display: grid; grid-template-columns: 236px minmax(0, 1fr); }
  .adm-side {
    display: flex; flex-direction: column; gap: 8px; position: sticky; top: 0; height: 100dvh; overflow-y: auto;
    padding: 18px 14px; color: #fff;
    background: radial-gradient(500px 300px at 0% 0%, rgba(47, 95, 224, .45), transparent 60%), linear-gradient(180deg, var(--blue-800), var(--blue-950));
  }
  .adm-main { padding: 26px 28px 40px; }
}
@media (min-width: 1280px) { .adm { grid-template-columns: 256px minmax(0, 1fr); } .adm-main { padding: 28px 36px 48px; } }

.adm-brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 18px; color: #fff; text-decoration: none !important; }
.adm-brand img { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.25); }
.adm-brand strong { display: block; font-family: var(--font-display); font-size: 1.35rem; letter-spacing: .02em; line-height: 1; }
.adm-brand small { display: block; font-size: .72rem; opacity: .7; margin-top: 3px; letter-spacing: .04em; }
.adm-nav { display: grid; gap: 4px; }
.adm-nav-link {
  display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 14px; border-radius: 12px;
  color: rgba(255,255,255,.82); font-weight: 600; text-decoration: none !important; transition: background .15s, color .15s;
}
.adm-nav-link:hover { background: rgba(255,255,255,.09); color: #fff; }
.adm-nav-link.is-active { background: #fff; color: var(--blue-800); box-shadow: 0 8px 20px -10px rgba(0,0,0,.5); }
.adm-nav-link.adm-nav-new { background: var(--orange-500); color: #fff; margin: 6px 0; box-shadow: 0 8px 18px -8px rgba(244,123,32,.8); }
.adm-nav-link.adm-nav-new:hover { background: var(--orange-600); }
.adm-nav-link.adm-nav-new.is-active { outline: 2px solid #fff; outline-offset: 2px; }
.adm-nav-sub { font-size: .88rem; min-height: 40px; color: rgba(255,255,255,.65); }
.adm-side-foot { margin-top: auto; display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); }

.adm-user { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: rgba(255,255,255,.08); }
.adm-user strong { display: block; font-size: .92rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-user small { display: block; font-size: .74rem; opacity: .7; }
.adm-user-light { background: var(--blue-50); color: var(--ink); margin-bottom: 12px; }
.adm-avatar {
  flex: none; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-500), #ff9f4d); color: #fff; font-weight: 800; font-size: .82rem; letter-spacing: .02em; border: 0;
}
.adm-logout { color: #fff; background: rgba(255,255,255,.08); }
.adm-logout:hover { background: rgba(255,255,255,.18); }

/* Top bar (<1024) */
.adm-top {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px;
  height: calc(58px + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) var(--gutter) 0;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line);
}
.adm-top-brand img { width: 34px; height: 34px; border-radius: 50%; }
.adm-top-title { flex: 1; min-width: 0; line-height: 1.15; }
.adm-top-title small { display: block; font-size: .7rem; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.adm-top-title strong { display: block; font-family: var(--font-display); font-size: 1.15rem; }
.adm-avatar-btn { width: 44px; height: 44px; cursor: pointer; }
@media (min-width: 1024px) { .adm-top { display: none; } }

/* Bottom tabs (<1024) */
.adm-tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px 6px calc(6px + var(--safe-b)); background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); box-shadow: 0 -6px 20px -12px rgba(4,35,122,.25);
}
.adm-tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 54px;
  border: 0; background: none; border-radius: 12px; color: var(--ink-3); font-size: .7rem; font-weight: 600;
  text-decoration: none !important; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.adm-tab.is-active { color: var(--blue-700); }
.adm-tab.is-active .adm-tab-ico { background: var(--blue-50); }
.adm-tab-ico { display: grid; place-items: center; width: 44px; height: 28px; border-radius: 999px; transition: background .15s; }
.adm-tab-new .adm-tab-ico { width: 46px; height: 32px; background: var(--orange-500) !important; color: #fff; box-shadow: 0 6px 14px -6px rgba(244,123,32,.8); }
.adm-tab-new { color: var(--orange-600) !important; }
@media (min-width: 1024px) { .adm-tabs { display: none; } }
@media (max-width: 1023px) { body[data-route="staff"] .toasts { bottom: calc(84px + var(--safe-b)); } }

/* "More" menu sheet */
.adm-menu { display: grid; gap: 4px; }
.adm-menu-link {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 0 14px; border-radius: 12px;
  border: 0; background: none; color: var(--ink); font-weight: 600; text-align: left; text-decoration: none !important; cursor: pointer;
}
.adm-menu-link span { flex: 1; }
.adm-menu-link:hover, .adm-menu-link.is-active { background: var(--blue-50); color: var(--blue-700); }
.adm-menu-danger { color: var(--danger); }
.adm-menu-danger:hover { background: var(--danger-bg); color: var(--danger); }

/* ============================================================
   Page head, stats, panels
   ============================================================ */
.adm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 18px; }
.adm-head-text { min-width: 0; }
.adm-eyebrow { font-size: .8rem; font-weight: 600; color: var(--ink-3); margin-bottom: 4px; }
.adm-h1 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; margin: 0; }
.adm-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.adm-h2 { font-size: 1.1rem; font-weight: 700; margin: 0; }
.adm-h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 12px; }
.adm-h4 { font-family: var(--font); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 700; margin: 16px 0 10px; }
@media (max-width: 600px) {
  .adm-head { align-items: flex-start; }
  .adm-head-actions { width: 100%; }
  .adm-head-actions .btn { flex: 1; }
}

.adm-stats { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 18px; }
.adm-stats > :last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 720px) { .adm-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .adm-stats > :last-child:nth-child(odd) { grid-column: auto; } }
@media (min-width: 1024px) { .adm-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); } .adm-stats-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .adm-stats-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.adm-stat { padding: 14px 16px; position: relative; overflow: hidden; }
.adm-stat-k { font-size: .72rem; color: var(--ink-3); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.adm-stat-v { font-family: var(--font-display); font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 800; line-height: 1.2; margin-top: 4px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.adm-stat-s { font-size: .76rem; color: var(--ink-3); margin-top: 2px; }
.adm-stat-warn { border-color: #f6d79a; background: linear-gradient(180deg, #fffaf0, #fff); }
.adm-stat-warn .adm-stat-v { color: var(--warn); }
.adm-stat-ok .adm-stat-s { color: var(--ok); font-weight: 600; }

.adm-panel { padding: 16px; min-width: 0; }
.adm-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
@media (min-width: 720px) { .adm-panel { padding: 20px; } }
.adm-empty-card { max-width: 520px; margin: 40px auto; }

/* ============================================================
   Login
   ============================================================ */
.adm-login { position: relative; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px calc(24px + var(--safe-b)); overflow: hidden; }
.adm-login-dots { position: absolute; inset: 0; opacity: .35; mask-image: radial-gradient(600px 400px at 50% 30%, #000, transparent); -webkit-mask-image: radial-gradient(600px 400px at 50% 30%, #000, transparent); }
.adm-login-card {
  position: relative; width: 100%; max-width: 380px; background: #fff; color: var(--ink); border-radius: 28px;
  padding: 28px 24px 22px; text-align: center; box-shadow: 0 30px 80px -24px rgba(0,0,0,.55);
}
.adm-login-logo { width: 88px; height: 88px; border-radius: 50%; margin: -72px auto 12px; box-shadow: 0 0 0 6px #fff, 0 12px 30px -10px rgba(0,0,0,.4); }
.adm-login-h { font-size: 1.6rem; margin: 0; }
.adm-login-sub { margin: 4px 0 16px; }
.adm-pin-dots { display: flex; justify-content: center; gap: 16px; margin-bottom: 6px; }
.adm-pin-dots span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); transition: background .12s, border-color .12s, transform .12s; }
.adm-pin-dots span.is-on { background: var(--blue-700); border-color: var(--blue-700); transform: scale(1.08); }
.adm-pin-msg { min-height: 22px; font-size: .85rem; font-weight: 600; color: var(--danger); margin-bottom: 6px; }
.adm-pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.adm-key {
  height: 62px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 700; color: var(--ink); cursor: pointer; transition: background .12s, transform .06s; -webkit-tap-highlight-color: transparent;
}
.adm-key:hover { background: var(--blue-50); border-color: var(--blue-100); }
.adm-key:active { transform: scale(.96); background: var(--blue-100); }
.adm-key-fn { font-family: var(--font); font-size: .95rem; font-weight: 600; color: var(--ink-2); background: #fff; }
.adm-login-hint { margin: 16px 0 6px; font-size: .82rem; color: var(--ink-3); background: var(--orange-100); color: #8a4510; border-radius: 10px; padding: 8px; }
.adm-login-back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-weight: 600; font-size: .9rem; }
.adm-login-card.is-shake { animation: adm-shake .38s ease; }
@keyframes adm-shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
@media (max-height: 640px) { .adm-key { height: 52px; } .adm-login-logo { width: 64px; height: 64px; margin-top: -56px; } }

/* ============================================================
   Today
   ============================================================ */
.adm-today { display: grid; gap: 16px; }
@media (min-width: 1024px) { .adm-today { grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); align-items: start; } }

.adm-tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.adm-tl-item {
  display: grid; grid-template-columns: 84px 4px minmax(0, 1fr); gap: 4px 12px; align-items: center;
  padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: #fff; cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.adm-tl-item:hover { border-color: var(--blue-100); box-shadow: var(--shadow-sm); background: var(--blue-50); }
.adm-tl-time strong { display: block; font-size: .95rem; font-variant-numeric: tabular-nums; }
.adm-tl-time span { display: block; font-size: .72rem; color: var(--ink-3); }
.adm-tl-bar { align-self: stretch; border-radius: 4px; background: var(--sp); }
.adm-tl-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-tl-meta { font-size: .82rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-tl-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.adm-tl-acts { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.adm-tl-acts .btn { --bh: 44px; flex: 1 1 0; }
@media (min-width: 600px) {
  .adm-tl-item { grid-template-columns: 92px 4px minmax(0, 1fr) auto; }
  .adm-tl-acts { grid-column: auto; flex-wrap: nowrap; }
  .adm-tl-acts .btn { flex: none; }
}
@media (min-width: 1024px) and (max-width: 1200px) {
  .adm-tl-item { grid-template-columns: 84px 4px minmax(0, 1fr); }
  .adm-tl-acts { grid-column: 3; }
}
.adm-tl-item.is-live { border-color: var(--blue-500); box-shadow: 0 0 0 1px var(--blue-500) inset; background: linear-gradient(90deg, var(--blue-50), #fff 60%); }
.adm-tl-item.is-overdue { border-color: #f6d79a; }
.adm-tl-item.is-cancelled, .adm-tl-item.is-no_show { opacity: .6; }
.adm-tl-item.is-cancelled .adm-tl-name { text-decoration: line-through; }
.adm-tl-item.is-pending .adm-tl-bar { background: repeating-linear-gradient(180deg, var(--sp) 0 5px, transparent 5px 9px); }
.adm-live { display: inline-block; margin-left: 6px; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #fff; background: var(--blue-600); border-radius: 6px; padding: 2px 6px; vertical-align: 2px; animation: adm-pulse 2s ease-in-out infinite; }
@keyframes adm-pulse { 50% { opacity: .65; } }
.adm-now { list-style: none; display: flex; align-items: center; gap: 8px; color: var(--danger); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 2px 0; }
.adm-now::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 4px var(--danger-bg); flex: none; }
.adm-now::after { content: ''; flex: 1; height: 2px; background: var(--danger); border-radius: 2px; opacity: .7; }

.adm-needs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.adm-need { display: grid; gap: 10px; padding: 12px; border-radius: 14px; border: 1px solid #f6e2b6; background: #fffcf4; cursor: pointer; transition: box-shadow .15s; }
.adm-need:hover { box-shadow: var(--shadow-sm); }
.adm-need-name { display: flex; align-items: center; font-weight: 700; min-width: 0; }
.adm-need-meta { font-size: .82rem; color: var(--ink-3); }
.adm-need-acts { display: flex; gap: 8px; }
.adm-need-acts .btn { flex: 1; --bh: 44px; }

/* ============================================================
   Schedule
   ============================================================ */
.adm-sched-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.adm-datenav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.adm-date-input { width: auto; min-width: 150px; min-height: 44px; padding: 8px 12px; }
.adm-sched-sum { font-size: .9rem; color: var(--ink-2); }
@media (max-width: 480px) { .adm-datenav { width: 100%; } .adm-date-input { flex: 1; min-width: 0; } }

.adm-week { display: flex; align-items: stretch; gap: 6px; margin-bottom: 14px; }
.adm-week-nav { flex: none; width: 36px; border: 1px solid var(--line); background: #fff; border-radius: 12px; cursor: pointer; color: var(--ink-2); display: grid; place-items: center; }
.adm-week-nav:hover { color: var(--blue-700); border-color: var(--blue-100); }
.adm-week-days { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.adm-day {
  display: grid; justify-items: center; gap: 3px; padding: 8px 4px; min-height: 76px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; cursor: pointer; transition: border-color .15s, background .15s; min-width: 0;
}
.adm-day:hover { border-color: var(--blue-100); background: var(--blue-50); }
.adm-day-w { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 700; }
.adm-day-n { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; line-height: 1; }
.adm-day-bar { width: 80%; height: 5px; border-radius: 99px; background: var(--muted-bg); overflow: hidden; }
.adm-day-bar span { display: block; height: 100%; background: var(--blue-500); border-radius: 99px; }
.adm-day-c { font-size: .66rem; color: var(--ink-3); white-space: nowrap; }
.adm-day-c b { color: var(--warn); }
.adm-day.is-today .adm-day-n { color: var(--orange-500); }
.adm-day.is-active { background: var(--blue-700); border-color: var(--blue-700); color: #fff; box-shadow: 0 8px 18px -10px rgba(10,54,176,.8); }
.adm-day.is-active .adm-day-w, .adm-day.is-active .adm-day-c { color: rgba(255,255,255,.8); }
.adm-day.is-active .adm-day-bar { background: rgba(255,255,255,.25); }
.adm-day.is-active .adm-day-bar span { background: #fff; }
.adm-day.is-active.is-today .adm-day-n { color: #ffd2ad; }
.adm-day.is-active .adm-day-c b { color: #ffd2ad; }
@media (max-width: 480px) { .adm-day-c { display: none; } .adm-day { min-height: 62px; } .adm-week-nav { width: 28px; } }

.adm-grid-card { overflow: hidden; }
.adm-grid-scroll {
  overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; position: relative;
  max-height: max(420px, calc(100dvh - 330px));
}
@media (min-width: 1024px) { .adm-grid-scroll { max-height: max(460px, calc(100dvh - 290px)); } }
.adm-grid {
  --hw: 64px;
  display: grid; position: relative;
  grid-template-columns: var(--hw) repeat(var(--cols), minmax(116px, 1fr));
  grid-template-rows: 42px repeat(var(--rows), var(--rh));
  min-width: calc(var(--hw) + var(--cols) * 116px);
}
@media (max-width: 480px) { .adm-grid { --hw: 52px; grid-template-columns: var(--hw) repeat(var(--cols), minmax(104px, 1fr)); min-width: calc(var(--hw) + var(--cols) * 104px); } }
.adm-g-corner, .adm-g-head { position: sticky; top: 0; z-index: 4; background: #fff; border-bottom: 1px solid var(--line-2); }
.adm-g-corner { left: 0; z-index: 6; }
.adm-g-head { display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--ink-2); border-left: 1px solid var(--line); }
.adm-g-hour { position: sticky; left: 0; z-index: 3; background: #fff; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line); padding: 4px 8px 0 0; text-align: right; }
.adm-g-hour span { font-size: .72rem; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.adm-g-hour.is-late span { color: var(--blue-600); }
.adm-g-cell {
  border: 0; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; padding: 0;
  cursor: pointer; display: grid; place-items: center; color: transparent; transition: background .12s, color .12s; min-width: 0;
}
.adm-g-cell:hover, .adm-g-cell:focus-visible { background: var(--blue-50); color: var(--blue-500); border-radius: 0; }
.adm-g-cell span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px dashed currentColor; }
.adm-g-cell.is-past { cursor: default; background: repeating-linear-gradient(135deg, #f7f8fb 0 6px, #f1f3f8 6px 12px); }
.adm-g-blackout {
  z-index: 1; margin: 2px; border-radius: 10px; display: grid; place-items: center; text-align: center; padding: 6px;
  background: repeating-linear-gradient(135deg, #eceef4 0 8px, #e2e5ee 8px 16px); color: var(--ink-2); font-size: .8rem; font-weight: 700;
  border: 1px solid var(--line-2);
}
.adm-g-block {
  z-index: 2; margin: 3px; min-width: 0; overflow: hidden; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 1px; padding: 7px 9px; border-radius: 10px;
  background: var(--sp-bg); color: var(--sp-ink); border: 1px solid color-mix(in srgb, var(--sp) 35%, transparent);
  border-left: 4px solid var(--sp); box-shadow: 0 2px 6px -3px rgba(4,35,122,.25); font-size: .78rem; line-height: 1.3;
  transition: transform .1s, box-shadow .15s;
}
.adm-g-block:hover { box-shadow: 0 8px 20px -8px rgba(4,35,122,.4); transform: translateY(-1px); }
.adm-g-block.is-pending {
  background: repeating-linear-gradient(135deg, #fff 0 7px, var(--sp-bg) 7px 14px);
  border: 1.5px dashed var(--sp); border-left: 4px dashed var(--sp);
}
.adm-g-block.is-completed { opacity: .72; }
.adm-gb-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.adm-gb-name { font-weight: 800; font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; color: var(--ink); }
.adm-gb-flag { flex: none; font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 1px 5px; border-radius: 5px; background: var(--warn-bg); color: var(--warn); display: inline-flex; }
.adm-g-block.is-completed .adm-gb-flag { background: var(--info-bg); color: var(--info); }
.adm-gb-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-gb-meta b { color: var(--danger); }
.adm-g-block.is-compact .adm-gb-meta + .adm-gb-meta { display: none; }
.adm-g-now { z-index: 5; height: 2px; background: var(--danger); align-self: start; position: relative; pointer-events: none; }
.adm-g-now::before { content: ''; position: absolute; left: calc(var(--hw) - 5px); top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--danger); }
.adm-g-now span { position: sticky; left: 0; display: inline-block; transform: translateY(-50%); background: var(--danger); color: #fff; font-size: .64rem; font-weight: 800; padding: 2px 5px; border-radius: 5px; white-space: nowrap; }
.adm-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--ink-2); }
.adm-leg { display: inline-flex; align-items: center; }
.adm-leg .adm-dot { margin-right: 6px; }

/* ============================================================
   Bookings list
   ============================================================ */
.adm-filters { padding: 14px; display: grid; gap: 12px; margin-bottom: 14px; }
.adm-search { position: relative; }
.adm-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.adm-search .input { padding-left: 42px; }
.adm-filter-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.adm-seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.adm-seg::-webkit-scrollbar { display: none; }
.adm-seg button { min-height: 40px; white-space: nowrap; }
.adm-seg-full { display: flex; width: 100%; margin-bottom: 14px; }
.adm-seg-full button { flex: 1; }
.adm-select-sm { width: auto; min-height: 44px; padding: 8px 36px 8px 12px; }
.adm-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.adm-chips::-webkit-scrollbar { display: none; }
.adm-chips .chip { min-height: 40px; white-space: nowrap; flex: none; }
.adm-results-sum { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .88rem; color: var(--ink-2); margin: 0 4px 10px; }
.adm-table-card { overflow: hidden; }
.adm-table th { padding: 0; }
.adm-sort { display: inline-flex; align-items: center; gap: 6px; width: 100%; min-height: 44px; padding: 0 14px; border: 0; background: none; font: inherit; text-transform: inherit; letter-spacing: inherit; color: inherit; cursor: pointer; }
.adm-sort span { opacity: .45; font-size: .7rem; }
.adm-sort.is-active { color: var(--blue-700); }
.adm-sort.is-active span { opacity: 1; }
.adm-th-num .adm-sort { justify-content: flex-end; }
.adm-td-num { text-align: right; font-weight: 700; white-space: nowrap; }
.adm-table tbody tr:focus-visible { outline: 2px solid var(--blue-500); outline-offset: -2px; box-shadow: none; }
.adm-table tbody tr.is-cancelled, .adm-table tbody tr.is-no_show { color: var(--ink-3); }
.adm-table td { white-space: nowrap; }
.adm-cell-name { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-bcards { list-style: none; margin: 0; padding: 0; display: none; gap: 10px; }
.adm-bcard { display: flex; gap: 12px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; box-shadow: var(--shadow-sm); }
.adm-bcard-bar { width: 4px; border-radius: 4px; background: var(--sp); flex: none; }
.adm-bcard-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.adm-bcard .adm-cell-name { max-width: 60vw; }
@media (max-width: 720px) {
  .adm-table-card { display: none; }
  .adm-bcards { display: grid; }
}

/* ============================================================
   Booking drawer
   ============================================================ */
@media (min-width: 601px) {
  .overlay.adm-drawer-ov { justify-content: flex-end; align-items: stretch; padding: 0; }
  .modal.adm-drawer { max-width: 580px; height: 100dvh; max-height: 100dvh; border-radius: 24px 0 0 24px; animation: adm-slide .22s ease; }
}
@keyframes adm-slide { from { transform: translateX(40px); opacity: 0; } }
.adm-drawer .modal-body { padding: 0; }
.adm-dr { display: grid; gap: 0; }
.adm-dr-hero { display: flex; gap: 14px; align-items: center; padding: 18px 20px; background: linear-gradient(135deg, var(--sp-bg), #fff 80%); border-bottom: 1px solid var(--line); }
.adm-dr-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.7rem; background: #fff; box-shadow: inset 0 0 0 2px var(--sp); flex: none; }
.adm-dr-name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.adm-dr-sub { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.adm-code { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 0 8px; border-radius: 8px; border: 1px dashed var(--line-2); background: #fff; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; font-weight: 700; cursor: pointer; color: var(--ink); }
.adm-code:hover { border-color: var(--blue-500); color: var(--blue-700); }
.adm-dr-contact { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 20px 0; }
.adm-dr-contact .btn { --bh: 40px; }
.adm-dr-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.adm-dr-actions .btn { flex: 1 1 auto; }
.adm-warn-note { margin: 0; padding: 10px 20px; background: var(--warn-bg); color: var(--warn); font-size: .85rem; font-weight: 600; }
.adm-dr-sec { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.adm-dr-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.adm-dr-sec-head h4 { margin: 0; font-family: var(--font); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.adm-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 0; }
.adm-dl div { min-width: 0; }
.adm-dl dt { font-size: .74rem; color: var(--ink-3); font-weight: 600; }
.adm-dl dd { margin: 2px 0 0; font-weight: 600; font-size: .92rem; overflow-wrap: anywhere; }
.adm-dl-wide { grid-column: 1 / -1; }
.adm-dr-list { margin: 0; padding-left: 18px; font-weight: 500; }
@media (max-width: 420px) { .adm-dl { grid-template-columns: 1fr; } }
.adm-pay { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; margin-bottom: 10px; }
.adm-pay > div { background: var(--bg); border-radius: 12px; padding: 10px 12px; display: grid; }
.adm-pay strong { font-family: var(--font-display); font-size: 1.15rem; }
.adm-progress { display: flex; height: 8px; background: var(--muted-bg); border-radius: 99px; overflow: hidden; margin-bottom: 12px; }
.adm-progress span { display: block; flex: none; height: 100%; background: linear-gradient(90deg, var(--ok), #34c27f); border-radius: 99px; }
.adm-progress span.is-review { background: repeating-linear-gradient(135deg, var(--info) 0 4px, #6d9be6 4px 8px); border-radius: 0 99px 99px 0; }
.adm-pay-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.adm-pay-form .field { min-width: 150px; }
.adm-pay-form .btn { min-height: 48px; }
.adm-quote { margin-top: 12px; font-size: .86rem; }
.adm-quote summary { cursor: pointer; font-weight: 600; color: var(--blue-700); min-height: 32px; display: flex; align-items: center; }
.adm-dr-line { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: .86rem; color: var(--ink-2); }
.adm-dr-line.strong { color: var(--ink); font-weight: 700; border-top: 1px dashed var(--line-2); margin-top: 4px; padding-top: 8px; }
.adm-note-form { display: grid; gap: 8px; margin-bottom: 14px; }
.adm-note-form .textarea { min-height: 64px; }
.adm-note-form .btn { justify-self: end; }
.adm-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.adm-hist li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; position: relative; padding-bottom: 12px; }
.adm-hist li:not(:last-child)::before { content: ''; position: absolute; left: 6px; top: 14px; bottom: 0; width: 2px; background: var(--line); }
.adm-hist-dot { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--blue-500); margin-top: 3px; }
.adm-hist li.is-note .adm-hist-dot { border-color: var(--orange-500); }
.adm-hist-text { font-size: .9rem; overflow-wrap: anywhere; }
.adm-hist li.is-note .adm-hist-text { background: var(--orange-100); padding: 6px 10px; border-radius: 10px; white-space: pre-wrap; }
.adm-hist-meta { font-size: .74rem; color: var(--ink-3); margin-top: 2px; }
.adm-dr-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 14px 20px calc(18px + var(--safe-b)); }

.adm-edit { padding: 18px 20px calc(18px + var(--safe-b)); gap: 14px; }
.adm-avail { font-size: .88rem; font-weight: 600; }
.adm-ok, .adm-bad { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; }
.adm-ok { color: var(--ok); background: var(--ok-bg); }
.adm-bad { color: var(--danger); background: var(--danger-bg); }
.adm-fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 14px; margin: 0; }
.adm-fieldset legend { padding: 0 6px; }
.adm-check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-size: .9rem; }
.adm-check input { width: 20px; height: 20px; accent-color: var(--blue-700); }
.adm-edit-quote { background: var(--bg); border-radius: 12px; padding: 8px 14px; }
.adm-edit-foot { display: flex; gap: 8px; justify-content: flex-end; }
@media (max-width: 600px) { .adm-edit-foot .btn { flex: 1; } }

/* ============================================================
   Forms (shared by New booking, Settings, drawer edit)
   ============================================================ */
.adm-form-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.adm-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.adm-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.adm-span-2 { grid-column: 1 / -1; }
@media (max-width: 900px) { .adm-grid-4, .adm-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .adm-form-grid, .adm-grid-3, .adm-grid-4 { grid-template-columns: 1fr; } }
.adm-sec { min-width: 0; }

/* ============================================================
   New booking
   ============================================================ */
.adm-new { display: grid; gap: 16px; }
.adm-new-form { display: grid; gap: 16px; min-width: 0; }
@media (min-width: 1100px) {
  .adm-new { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
  .adm-new-side { position: sticky; top: 24px; }
}
.adm-sport-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-bottom: 14px; }
.adm-sport-opt {
  display: grid; justify-items: center; gap: 2px; padding: 12px 8px; min-height: 92px; border-radius: 14px; cursor: pointer;
  border: 1.5px solid var(--line-2); background: #fff; font-weight: 700; font-size: .9rem; color: var(--ink); transition: border-color .15s, background .15s, box-shadow .15s;
}
.adm-sport-opt small { font-size: .7rem; color: var(--ink-3); font-weight: 600; }
.adm-sport-opt:hover { border-color: var(--sp); }
.adm-sport-opt.is-active { border-color: var(--sp); background: var(--sp-bg); box-shadow: 0 0 0 1px var(--sp) inset; }
.adm-sport-ico { font-size: 1.6rem; line-height: 1.2; }
.adm-setup { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: flex-start; }
.adm-setup .field { align-content: start; }
.adm-setup [hidden] { display: none !important; }
.adm-date-row { gap: 6px; flex-wrap: nowrap; }
.adm-date-row .input { min-width: 0; flex: 1; }
@media (max-width: 520px) { .adm-setup > .field { width: 100%; } }
.adm-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; margin-top: 8px; }
.adm-slot {
  display: grid; justify-items: center; gap: 1px; min-height: 56px; padding: 6px 4px; border-radius: 12px; cursor: pointer;
  border: 1.5px solid var(--line-2); background: #fff; color: var(--ink); transition: border-color .12s, background .12s;
}
.adm-slot strong { font-size: .95rem; }
.adm-slot small { font-size: .68rem; color: var(--ok); font-weight: 600; }
.adm-slot:hover { border-color: var(--blue-500); }
.adm-slot.is-active { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.adm-slot.is-active small { color: rgba(255,255,255,.85); }
.adm-slot:disabled { cursor: not-allowed; background: var(--bg); color: var(--ink-3); border-style: dashed; }
.adm-slot:disabled small { color: var(--ink-3); }
.adm-slots-empty { grid-column: 1 / -1; padding: 16px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); font-weight: 600; font-size: .9rem; }
.adm-addons { display: grid; gap: 8px; }
.adm-addon { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.adm-addon strong { display: block; font-size: .92rem; }
.adm-addon .tiny { display: block; }
.adm-summary { display: grid; }
.adm-sum-when { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--sp-bg); margin-bottom: 10px; }
.adm-sum-lines { display: grid; }
.adm-sum-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; margin-top: 6px; border-top: 1px solid var(--line); font-weight: 700; }
.adm-sum-total strong { font-family: var(--font-display); font-size: 1.7rem; color: var(--blue-800); }
.adm-toggle-row { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.adm-toggle-row strong { display: block; font-size: .92rem; }
.adm-toggle-row .tiny { display: block; }
.adm-err { min-height: 0; color: var(--danger); font-size: .85rem; font-weight: 600; margin-top: 8px; }
.adm-err:empty { display: none; }

/* ============================================================
   Reports
   ============================================================ */
.adm-range { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.adm-range-custom { gap: 10px; }
.adm-range-custom .input { min-height: 44px; padding: 8px 12px; }
.adm-report-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .adm-report-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } .adm-span-all { grid-column: 1 / -1; } }
.adm-chart { min-width: 0; }
.adm-hbars { display: grid; gap: 12px; }
.adm-hbar { display: grid; grid-template-columns: minmax(110px, 160px) minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: .88rem; }
.adm-hbar-label { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-hbar-track { height: 14px; background: var(--muted-bg); border-radius: 99px; overflow: hidden; }
.adm-hbar-track span { display: block; height: 100%; background: var(--sp); border-radius: 99px; min-width: 2px; }
.adm-hbar-val { font-weight: 700; min-width: 76px; text-align: right; }
@media (max-width: 480px) { .adm-hbar { grid-template-columns: 1fr auto; } .adm-hbar-track { grid-column: 1 / -1; grid-row: 2; } }
.adm-vbars { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 3px; align-items: end; height: 200px; padding-top: 18px; }
.adm-vbar { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding-bottom: 20px; }
.adm-vbar-fill { width: 100%; max-width: 34px; min-height: 2px; background: var(--blue-500); border-radius: 6px 6px 2px 2px; transition: background .15s; }
.adm-vbar:hover .adm-vbar-fill { background: var(--blue-700); }
.adm-vbar.is-today .adm-vbar-fill { background: var(--orange-500); }
.adm-vbar-n { font-size: .68rem; font-weight: 700; color: var(--ink-2); margin-bottom: 3px; }
.adm-vbar-l { position: absolute; bottom: 0; font-size: .66rem; color: var(--ink-3); white-space: nowrap; }
.adm-stack { display: flex; height: 18px; border-radius: 99px; overflow: hidden; background: var(--muted-bg); gap: 2px; }
.adm-stack span { display: block; height: 100%; min-width: 3px; }
.adm-legend-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.adm-legend-list li { display: grid; grid-template-columns: 14px 1fr auto 42px; gap: 10px; align-items: center; font-size: .88rem; }
.adm-legend-list .tiny { text-align: right; }
.adm-sw { width: 12px; height: 12px; border-radius: 4px; }
.adm-src { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.adm-src li { display: grid; padding: 10px 12px; background: var(--bg); border-radius: 12px; font-size: .78rem; color: var(--ink-3); font-weight: 600; }
.adm-src strong { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); }
.adm-heat-wrap { overflow-x: auto; margin: 10px 0 8px; }
.adm-heat, .adm-heat-labels { display: grid; grid-template-columns: repeat(var(--n), minmax(26px, 1fr)); gap: 3px; min-width: calc(var(--n) * 29px); }
.adm-heat-cell { height: 46px; border-radius: 8px; background: rgba(10, 54, 176, var(--a)); display: grid; place-items: center; }
.adm-heat-v { font-size: .66rem; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.adm-heat-labels span { font-size: .64rem; color: var(--ink-3); text-align: left; white-space: nowrap; padding-top: 4px; }

/* ============================================================
   Settings
   ============================================================ */
.adm-notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--warn-bg); border: 1px solid #f3d38c; color: #6b4300; font-size: .88rem; margin-bottom: 16px; }
.adm-notice > span { font-size: 1.3rem; line-height: 1.2; }
.adm-settings { display: grid; gap: 16px; }
@media (min-width: 1200px) { .adm-settings { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } .adm-savebar { grid-column: 1 / -1; } }
.adm-money { position: relative; display: block; }
.adm-money > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-weight: 600; pointer-events: none; }
.adm-money .input { padding-left: 30px; }
.adm-savebar {
  position: sticky; bottom: calc(76px + var(--safe-b)); z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; border-radius: 16px; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border: 1px solid var(--line); box-shadow: var(--shadow);
}
@media (min-width: 1024px) { .adm-savebar { bottom: 16px; } }
@media (max-width: 600px) { .adm-savebar .btn { width: 100%; } }
.adm-blk-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 14px; }
.adm-blk-form .field { min-width: 120px; }
.adm-blk-form .grow { min-width: 180px; }
.adm-blk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.adm-blk-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.adm-blk-list li.is-past { opacity: .55; }
.adm-users { display: grid; gap: 10px; margin-top: 12px; }
.adm-user-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.adm-user-row > .adm-avatar { align-self: center; }
.adm-user-row .grow { min-width: 160px; }
.adm-user-row .select { min-width: 110px; }
.adm-pin-field { width: 96px; }
.adm-pin-field .input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .3em; text-align: center; }
.adm-user-del { color: var(--danger); }
.adm-tools { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 520px) { .adm-tools { grid-template-columns: 1fr; } }
.adm-tool {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2);
  background: #fff; text-align: left; cursor: pointer; color: var(--blue-700); transition: border-color .15s, background .15s;
}
.adm-tool:hover { border-color: var(--blue-500); background: var(--blue-50); }
.adm-tool strong { display: block; color: var(--ink); font-size: .92rem; }
.adm-tool small { display: block; color: var(--ink-3); font-size: .76rem; }
.adm-tool-danger { color: var(--danger); }
.adm-tool-danger:hover { border-color: var(--danger); background: var(--danger-bg); }
.adm-tool:focus-within { box-shadow: var(--ring); }

/* ============================================================
   Payments (verification queue, drawer, settings, reports)
   ============================================================ */
.adm-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
.adm-ok-txt { color: var(--ok); }
.adm-info-txt { color: var(--info); font-weight: 600; }
.textarea.is-invalid { border-color: var(--danger); }
.adm-chips-wrap { flex-wrap: wrap; overflow: visible; }

/* "For verification" badge: info blue with a soft pulsing dot so it reads differently from Completed */
.adm-badge-review { box-shadow: inset 0 0 0 1px rgba(26, 95, 208, .28); }
.adm-badge-review::before { box-shadow: 0 0 0 3px rgba(26, 95, 208, .18); animation: adm-pulse 1.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .adm-badge-review::before { animation: none; } }
.adm-count-info { background: var(--info-bg); color: var(--info); }

/* Nav count badges */
.adm-nav-badge { margin-left: auto; display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--info); color: #fff; font-size: .72rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.adm-nav-link.is-active .adm-nav-badge { box-shadow: 0 0 0 2px var(--info-bg); }
.adm-tab-ico { position: relative; }
.adm-tab-badge { position: absolute; top: -5px; right: 0; display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--info); color: #fff; font-size: .64rem; font-weight: 800; box-shadow: 0 0 0 2px #fff; font-variant-numeric: tabular-nums; }
.adm-nav-badge[hidden], .adm-tab-badge[hidden] { display: none; }

/* Today: receipts queue */
.adm-today-side { display: contents; }
.adm-rcpt-panel { order: -1; border-color: #c9daf8; }
@media (min-width: 1024px) {
  .adm-today-side { display: grid; gap: 16px; min-width: 0; }
  .adm-rcpt-panel { order: 0; }
}
.adm-rcpt-hint { margin: -4px 0 12px; }
.adm-rcpts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.adm-rcpt { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px 12px; align-items: center; padding: 12px; border-radius: 14px; border: 1px solid #cddcf7; background: #f6f9ff; }
.adm-rcpt-thumb { width: 56px; height: 72px; padding: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); background: #fff; display: grid; place-items: center; cursor: zoom-in; }
.adm-rcpt-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.adm-rcpt-thumb.is-empty { cursor: default; background: var(--muted-bg); }
.adm-rcpt-main { min-width: 0; }
.adm-rcpt-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-rcpt-pay { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .85rem; margin-top: 4px; }
.adm-rcpt-pay strong { font-family: var(--font-display); font-size: 1.02rem; }
.adm-rcpt-pay .pay-chip { border-radius: 6px; }
.adm-rcpt-acts { grid-column: 1 / -1; display: flex; gap: 8px; }
.adm-rcpt-acts .btn { --bh: 44px; flex: 1 1 0; }
@media (min-width: 600px) and (max-width: 1023px) {
  .adm-rcpt { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .adm-rcpt-acts { grid-column: auto; }
  .adm-rcpt-acts .btn { flex: none; min-width: 96px; }
}

/* Drawer: payment section */
.adm-pay-method { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.adm-pay-method-none { width: 32px; height: 32px; border-radius: 10px; background: var(--muted-bg); color: var(--ink-3); display: grid; place-items: center; flex: none; }
.adm-deadline { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 700; color: var(--warn); background: var(--warn-bg); padding: 4px 9px; border-radius: 999px; }
.adm-deadline.is-over { color: var(--danger); background: var(--danger-bg); }
.adm-pay > .adm-pay-review { background: var(--info-bg); color: var(--info); }
.adm-pmt-h { margin: 14px 0 8px; font-size: .82rem; font-weight: 700; color: var(--ink-2); }
.adm-pmts { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.adm-pmt { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.adm-pmt.is-pending { border-color: #b9cff5; background: linear-gradient(180deg, #f5f8ff, #fff); box-shadow: inset 3px 0 0 var(--info); }
.adm-pmt.is-rejected { background: var(--bg); }
.adm-pmt.is-rejected .adm-pmt-thumb { opacity: .6; }
.adm-pmt-thumb { width: 64px; height: 84px; padding: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); background: #fff; display: grid; place-items: center; cursor: zoom-in; }
.adm-pmt-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.adm-pmt-thumb.is-empty { cursor: default; background: var(--muted-bg); height: 64px; }
.adm-pmt-main { min-width: 0; }
.adm-pmt-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.adm-pmt-top .pay-chip { border-radius: 6px; }
.adm-pmt-top .adm-ellipsis { max-width: 140px; }
.adm-pmt-amt { font-family: var(--font-display); font-weight: 800; font-size: 1.08rem; margin-left: auto; }
.adm-pmt-meta { display: flex; flex-wrap: wrap; gap: 2px 6px; align-items: center; font-size: .8rem; color: var(--ink-3); margin-top: 6px; }
.adm-ref { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 9px; border: 0; border-radius: 8px; background: var(--muted-bg); color: var(--ink-2); font: 600 .78rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; cursor: pointer; }
.adm-ref:hover { background: var(--blue-100); color: var(--blue-800); }
.adm-pmt-note { font-size: .82rem; color: var(--ink-2); margin-top: 4px; font-style: italic; overflow-wrap: anywhere; }
.adm-pmt-reason { display: flex; gap: 5px; align-items: center; font-size: .82rem; color: var(--danger); font-weight: 600; margin-top: 6px; }
.adm-pmt-acts { display: flex; gap: 8px; margin-top: 10px; }
.adm-pmt-acts .btn { --bh: 44px; flex: 1 1 0; }
@media (min-width: 601px) { .adm-pmt-acts .btn { flex: none; min-width: 112px; } }
.adm-manual { margin-top: 4px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; }
.adm-manual[open] { padding-bottom: 12px; }
.adm-manual summary { min-height: 46px; display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--ink-2); list-style: none; }
.adm-manual summary::-webkit-details-marker { display: none; }
.adm-manual summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.adm-manual[open] summary::after { transform: rotate(-135deg) translateY(-2px); }

/* Verify / reject dialogs */
.adm-vfy { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: start; }
.adm-vfy:not(:has(.adm-vfy-img)) { grid-template-columns: minmax(0, 1fr); }
.adm-vfy-img { position: relative; height: 164px; padding: 0; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: var(--muted-bg); cursor: zoom-in; }
.adm-vfy-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.adm-vfy-img span { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; gap: 4px; justify-content: center; align-items: center; padding: 4px; border-radius: 8px; background: rgba(11, 21, 51, .72); color: #fff; font-size: .7rem; font-weight: 700; }
.adm-vfy-method { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.adm-vfy-dl { margin: 0; display: grid; gap: 6px; }
.adm-vfy-dl div { display: flex; justify-content: space-between; gap: 10px; font-size: .86rem; }
.adm-vfy-dl dt { color: var(--ink-3); flex: none; }
.adm-vfy-dl dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.adm-vfy-sum { margin-top: 12px; display: grid; gap: 6px; font-size: .88rem; }
.adm-vfy-note { display: flex; gap: 6px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--ok-bg); color: var(--ok); font-size: .85rem; }
@media (max-width: 420px) { .adm-vfy { grid-template-columns: 88px minmax(0, 1fr); } .adm-vfy-img { height: 124px; } }

/* Bookings list: receipts chip */
.adm-chips-sep { flex: none; width: 1px; margin: 6px 4px; background: var(--line-2); }
.adm-chip-review { color: var(--info); border-color: #b9cff5; background: var(--info-bg); }
.adm-chip-review.is-active { background: var(--info); border-color: var(--info); color: #fff; }
.adm-chip-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.adm-chip-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #fff; color: var(--info); font-size: .72rem; font-weight: 800; box-shadow: inset 0 0 0 1px #b9cff5; }
.adm-chip-n:empty { display: none; }

/* Settings: section nav + payments */
.adm-set-nav { margin: 0 0 14px; }
.adm-sec-wide { grid-column: 1 / -1; }
.adm-pay-sec-head { align-items: flex-start; margin-bottom: 12px; }
.adm-pm-banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--warn-bg); border: 1px solid #f3d38c; color: #6b4300; font-size: .88rem; margin-bottom: 10px; }
.adm-pm-banner.is-info { background: var(--info-bg); border-color: #b9cff5; color: var(--blue-900); }
.adm-pm-banner > span { font-size: 1.1rem; line-height: 1.3; }
.adm-pm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.adm-pm {
  display: grid; grid-template-columns: 42px minmax(0, 1fr) auto auto; grid-template-areas: "chip main qr sw" "acts acts acts acts";
  gap: 10px 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
}
.adm-pm > .pay-chip { grid-area: chip; }
.adm-pm-main { grid-area: main; min-width: 0; }
.adm-pm-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.adm-pm-acct { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.adm-pm-qr { grid-area: qr; width: 44px; height: 44px; padding: 2px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; overflow: hidden; cursor: zoom-in; }
.adm-pm-qr img { width: 100%; height: 100%; object-fit: contain; display: block; }
.adm-pm-qr.is-empty { display: grid; place-items: center; border-style: dashed; color: var(--ink-3); font-size: .66rem; font-weight: 700; cursor: default; }
.adm-pm-qr.is-none { width: 0; padding: 0; border: 0; }
.adm-pm-switch { grid-area: sw; }
.adm-pm-acts { grid-area: acts; display: flex; gap: 6px; justify-content: flex-end; align-items: center; padding-top: 8px; border-top: 1px dashed var(--line); }
.adm-pm-acts .btn { --bh: 44px; }
.adm-up svg, .adm-down svg { transform: rotate(90deg); }
.adm-pm.is-off { background: var(--bg); }
.adm-pm.is-off > .pay-chip { filter: grayscale(.85); opacity: .55; }
@media (min-width: 900px) {
  .adm-pm { grid-template-columns: 42px minmax(0, 1fr) auto auto auto; grid-template-areas: "chip main qr sw acts"; }
  .adm-pm-acts { padding-top: 0; border-top: 0; }
}
.adm-pm-empty { display: flex; gap: 12px; align-items: center; padding: 16px; border: 1.5px dashed var(--line-2); border-radius: 14px; color: var(--ink-3); }
.adm-pm-empty strong { color: var(--ink); }
.adm-policy { display: grid; gap: 14px; }
.adm-policy [hidden] { display: none !important; }
.adm-policy .adm-seg-full { margin-bottom: 0; }
.adm-policy-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.adm-dep-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.adm-pct { position: relative; display: block; width: 120px; }
.adm-pct .input { padding-right: 36px; }
.adm-pct > span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-weight: 600; pointer-events: none; }
.adm-hrs { width: 170px; }
.adm-hrs .input { padding-right: 68px; }
.adm-dep-chips { display: flex; gap: 6px; }
.adm-dep-chips .chip { min-height: 44px; min-width: 58px; justify-content: center; }
.adm-policy-toggle { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }

/* Payment method form (modal) */
.adm-pm-form { display: grid; gap: 12px; }
.adm-pm-form .adm-mt { margin-top: 0; }
.adm-pm-form [hidden] { display: none !important; }
.adm-pm-form-head { display: flex; gap: 12px; align-items: flex-end; }
.adm-pm-form-head .pay-chip { margin-bottom: 2px; }
.adm-qr-edit { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.adm-qr-drop { flex: 1; display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 14px; border: 1.5px dashed var(--line-2); border-radius: 14px; background: var(--blue-50); color: var(--blue-700); cursor: pointer; }
.adm-qr-drop:hover { border-color: var(--blue-500); }
.adm-qr-drop:focus-within { box-shadow: var(--ring); }
.adm-qr-drop strong { display: block; color: var(--ink); font-size: .92rem; }
.adm-qr-drop small { display: block; color: var(--ink-3); font-size: .76rem; }
.adm-qr-prev { width: 120px; height: 120px; padding: 6px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; cursor: zoom-in; }
.adm-qr-prev img { width: 100%; height: 100%; object-fit: contain; display: block; }
.adm-qr-btns { display: flex; flex-direction: column; gap: 8px; }
.adm-qr-btns .btn { --bh: 44px; cursor: pointer; }
.adm-qr-btns label.btn:focus-within { box-shadow: var(--ring); }

/* Reports: by payment method */
.adm-hbar-pay { display: flex; align-items: center; gap: 8px; }
.adm-hbar-pay .pay-chip { border-radius: 6px; }
.adm-hbar-pay .adm-ellipsis { max-width: 120px; }

.adm-logo-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
