:root {
  --bg: #0f1f1a;
  --bg2: #163028;
  --panel: #1c3a30;
  --line: #2f5648;
  --text: #e8f2ec;
  --muted: #9bb5a8;
  --accent: #d4a54a;
  --accent2: #3d9b74;
  --danger: #e07a6a;
  --radius: 10px;
  --font: "Segoe UI", "Helvetica Neue", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 10% -10%, #214639 0%, transparent 55%),
    linear-gradient(160deg, var(--bg), #0b1612 70%);
  color: var(--text);
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.tiny { font-size: .78rem; }
.topbar {
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
  padding: .85rem 1.25rem;
  background: rgba(10, 22, 18, .88);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(8px);
}
.brand { display: flex; gap: .75rem; align-items: center; min-width: 180px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--accent), #b8862f);
  color: #1a1205; font-weight: 800;
}
.brand-mark.lg { width: 56px; height: 56px; font-size: 1.2rem; margin: 0 auto 1rem; }
/* Tall Pines logo (vertical mark on black) ? height-capped so headers stay compact */
.brand-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  flex: 0 0 auto;
  background: #000;
  border-radius: 8px;
}
.brand-logo--sidebar {
  max-height: 48px;
  max-width: 44px;
}
.brand-logo--mobile {
  max-height: 40px;
  max-width: 36px;
}
.brand-logo--login {
  max-height: 120px;
  max-width: 140px;
  margin: 0 auto 1rem;
}
.brand-logo--hero {
  max-height: 110px;
  max-width: 120px;
  margin: 0 0 .85rem;
}
.brand-logo-link {
  display: inline-block;
  color: inherit;
  text-decoration: none;
  line-height: 0;
}
.brand-logo-link:hover,
.brand-logo-link:focus-visible {
  opacity: .92;
}
.ops-nav { display: flex; gap: .35rem; flex: 1; flex-wrap: wrap; }
.ops-nav a, .nav-stub {
  padding: .45rem .75rem; border-radius: 999px; color: var(--text);
  border: 1px solid transparent;
}
.ops-nav a:hover { background: var(--panel); text-decoration: none; }
.ops-nav a.is-active { background: var(--panel); border-color: var(--line); color: var(--accent); }
.nav-stub { color: var(--muted); opacity: .55; cursor: default; }
.logout button {
  background: transparent; border: 1px solid var(--line); color: var(--text);
  border-radius: 8px; padding: .4rem .7rem; cursor: pointer;
}
.shell { padding: 1.25rem; max-width: 1400px; margin: 0 auto; }
.page-head {
  display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start;
  margin-bottom: 1.25rem; flex-wrap: wrap;
}
.page-head h1 { margin: 0 0 .25rem; font-size: 1.75rem; letter-spacing: -.02em; }
.actions, .page-head-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.reports-hub-note { max-width: 52rem; margin: 0 0 1rem; }
.reports-cat h2 { margin: 0 0 .35rem; }
.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .75rem;
  margin-top: .85rem;
}
.report-card {
  display: block;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(12, 28, 22, .55);
  color: var(--text);
  transition: border-color .15s ease, transform .15s ease;
}
a.report-card:hover {
  text-decoration: none;
  border-color: var(--accent);
  transform: translateY(-1px);
}
.report-card.is-soon { opacity: .72; cursor: default; }
.report-card-top {
  display: flex; justify-content: space-between; gap: .5rem; align-items: flex-start;
  margin-bottom: .35rem;
}
.report-card p { margin: 0; font-size: .9rem; }
.report-badge {
  flex-shrink: 0;
  font-size: .72rem;
  letter-spacing: .02em;
  padding: .15rem .45rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.report-badge.ready, .report-badge.status-available { color: #b8e0cc; border-color: #2f7d5c; }
.report-badge.added, .report-badge.status-added { color: #f0d59a; border-color: var(--accent); }
.report-badge.soon, .report-badge.status-coming_soon { color: var(--muted); }
.report-badge.status-needs_gl { color: #e0b0a8; border-color: rgba(224,122,106,.45); }
.report-badge.status-not_applicable { opacity: .8; }
.reports-kpi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .85rem;
}
.reports-kpi > div { display: grid; gap: .2rem; }
.reports-kpi strong { font-size: 1.25rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  border-radius: 8px; padding: .55rem .9rem; cursor: pointer;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.primary { background: var(--accent2); border-color: #2f7d5c; color: #f4fff9; font-weight: 600; }
.btn.danger {
  border-color: rgba(224, 122, 106, .65);
  color: #ffd0c8;
  background: rgba(224, 122, 106, .12);
}
.btn.danger:hover:not(:disabled) { filter: brightness(1.1); }
.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; filter: none; }
.flash { background: #214c38; border: 1px solid #2f7d5c; padding: .7rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; }
.error { color: var(--danger); }
.grid-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(22,48,40,.7); }
.stay-grid { width: 100%; border-collapse: collapse; min-width: 960px; }
.stay-grid th, .stay-grid td { border: 1px solid var(--line); padding: .45rem; vertical-align: top; }
.stay-grid th { background: #13261f; font-weight: 600; font-size: .85rem; }
.stay-grid .item-col { min-width: 160px; position: sticky; left: 0; background: #152b23; z-index: 1; }
.stay-grid .is-today { background: rgba(212,165,74,.08); }
.stay-grid .has-booking { background: rgba(61,155,116,.18); }
.stay-grid .drop-cell {
  position: relative;
  min-height: 52px;
  --split-top: transparent;
  --split-bot: transparent;
}
.stay-grid .drop-cell.split-day::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    var(--split-top) 0%,
    var(--split-top) 48%,
    transparent 48%,
    transparent 52%,
    var(--split-bot) 52%,
    var(--split-bot) 100%
  );
}
.stay-grid .drop-cell.has-arrival { --split-top: rgba(61, 155, 116, .42); }
.stay-grid .drop-cell.has-departure { --split-bot: rgba(212, 165, 74, .42); }
.stay-grid .drop-cell.has-arrival.has-departure {
  background: transparent;
}
.stay-grid .drop-cell > * { position: relative; z-index: 1; }
.stay-grid-legend .park-swatch {
  display: inline-block;
  width: 1.1rem;
  height: .7rem;
  border-radius: 3px;
  vertical-align: middle;
  border: 1px solid var(--line);
}
.stay-grid-legend .park-swatch.has-arrival {
  background: linear-gradient(to bottom, rgba(61,155,116,.55) 50%, transparent 50%);
}
.stay-grid-legend .park-swatch.has-departure {
  background: linear-gradient(to bottom, transparent 50%, rgba(212,165,74,.55) 50%);
}
.booking-chip {
  display: block; background: #2a6b52; color: #f3fff9; border-radius: 6px;
  padding: .35rem .4rem; font-size: .78rem; font-weight: 600;
  cursor: grab; user-select: none;
}
.booking-chip:hover { text-decoration: none; filter: brightness(1.1); }
.booking-chip:active { cursor: grabbing; }
.booking-chip.is-dragging { opacity: .45; }
.booking-depart {
  display: block;
  background: rgba(212, 165, 74, .28);
  color: #f7e7c4;
  border: 1px solid rgba(212, 165, 74, .45);
  border-radius: 6px;
  padding: .2rem .35rem;
  font-size: .72rem;
  font-weight: 600;
  margin-bottom: .25rem;
}
.booking-depart:hover { text-decoration: none; filter: brightness(1.08); }
.stay-depart-stack { margin-bottom: .15rem; }
.stay-turn-label {
  margin-top: .2rem;
  text-align: center;
  opacity: .85;
  font-weight: 600;
  letter-spacing: .02em;
}
.booking-span {
  display: block; height: 8px; margin: .35rem 0; border-radius: 4px;
  background: rgba(61,155,116,.45);
}
/* Discounted or staff-modified booking — amber/gold rim (Carbon Bay accent) */
.booking-special {
  box-shadow: 0 0 0 2px var(--accent);
  border-color: var(--accent);
}
.booking-chip.booking-special {
  border: 2px solid var(--accent);
  background: #2f7358;
}
.booking-depart.booking-special {
  border-width: 2px;
  border-color: var(--accent);
}
.booking-span.booking-special {
  background: rgba(212, 165, 74, .5);
  box-shadow: 0 0 0 2px var(--accent);
}
tr.booking-special > td:first-child {
  box-shadow: inset 3px 0 0 var(--accent);
}
li.booking-special {
  box-shadow: inset 3px 0 0 var(--accent);
  padding-left: .55rem;
}
.stay-grid-legend .park-swatch.booking-special {
  background: #2a6b52;
  box-shadow: 0 0 0 2px var(--accent);
  border-color: var(--accent);
}
/* Priority guest (Donny Willis et al.) — rose rim + wash; wins over gold when both apply */
.booking-priority-guest {
  --priority-guest: #f071a0;
  box-shadow: 0 0 0 3px var(--priority-guest);
  border-color: var(--priority-guest);
  background: rgba(240, 113, 160, .16);
}
.booking-chip.booking-priority-guest {
  border: 3px solid var(--priority-guest, #f071a0);
  background: linear-gradient(160deg, #5a2a3d 0%, #2f7358 70%);
  box-shadow: 0 0 0 1px rgba(240, 113, 160, .45);
}
.booking-depart.booking-priority-guest {
  border-width: 3px;
  border-color: var(--priority-guest, #f071a0);
  background: rgba(240, 113, 160, .18);
  color: #ffe6f0;
}
.booking-span.booking-priority-guest {
  background: rgba(240, 113, 160, .55);
  box-shadow: 0 0 0 3px var(--priority-guest, #f071a0);
}
tr.booking-priority-guest > td:first-child {
  box-shadow: inset 5px 0 0 var(--priority-guest, #f071a0);
  background: rgba(240, 113, 160, .08);
}
tr.booking-priority-guest > td {
  background: rgba(240, 113, 160, .06);
}
li.booking-priority-guest {
  box-shadow: inset 5px 0 0 var(--priority-guest, #f071a0);
  padding-left: .55rem;
  background: rgba(240, 113, 160, .1);
  border-radius: 4px;
}
.stay-grid-legend .park-swatch.booking-priority-guest {
  background: #5a2a3d;
  box-shadow: 0 0 0 3px #f071a0;
  border-color: #f071a0;
}
.form-card.booking-priority-guest {
  border: 2px solid #f071a0;
  box-shadow: 0 0 0 3px rgba(240, 113, 160, .35);
  background: rgba(240, 113, 160, .08);
}
.drop-cell.drop-hover {
  outline: 2px dashed var(--accent);
  background: rgba(212,165,74,.12);
}
.flash.error-flash { background: #4c2121; border-color: #7d2f2f; color: #ffd7d0; }
.form-card {
  background: rgba(28,58,48,.85); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-bottom: 1rem;
}
.form-card.wide { grid-column: 1 / -1; }
.stack { display: grid; gap: .85rem; }
.stack label, .form-card label { display: grid; gap: .35rem; font-size: .92rem; }
input, select, textarea {
  width: 100%; padding: .6rem .7rem; border-radius: 8px;
  border: 1px solid var(--line); background: #0f1f1a; color: var(--text);
}
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
@media (max-width: 700px) { .row2 { grid-template-columns: 1fr; } }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.manifest-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 900px) {
  .detail-grid, .manifest-cols { grid-template-columns: 1fr; }
}
.manifest-summary { margin-bottom: 1.25rem; }
.plain.compact li { padding: .28rem 0; font-size: .92rem; }
.manifest-boards { display: grid; gap: 1.25rem; }
.manifest-board {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(28,58,48,.72);
  overflow: hidden;
  border-left: 5px solid var(--mb-accent, var(--accent));
}
.manifest-board-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem;
  padding: .9rem 1rem; background: rgba(15,31,26,.45);
  border-bottom: 1px solid rgba(47,86,72,.55);
}
.manifest-board-head h2 { margin: 0; font-size: 1.15rem; }
.manifest-board-head p { margin: .25rem 0 0; }
.manifest-crew-block, .manifest-crew-empty { padding: .75rem 1rem 0; }
.manifest-crew-block h3 { margin: 0 0 .45rem; font-size: .95rem; }
.manifest-bookings-wrap { padding: .75rem 1rem 1rem; overflow-x: auto; }
.manifest-table { width: 100%; font-size: .88rem; }
.manifest-table th { white-space: nowrap; }
.manifest-table td { vertical-align: top; }
.manifest-kinds { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .25rem; }
.kind-chip {
  display: inline-block; padding: .1rem .4rem; border-radius: 999px;
  font-size: .7rem; background: rgba(15,31,26,.65); color: var(--muted);
}
.kind-chip.kind-arrival { background: rgba(61,155,116,.25); color: #b8e6d0; }
.kind-chip.kind-departure { background: rgba(224,168,106,.22); color: #f0d0a8; }
.kind-chip.kind-in-house { background: rgba(107,91,149,.28); color: #d5c8f0; }
.due-owes { color: #e0a86a; font-weight: 600; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: .45rem 0; border-bottom: 1px solid rgba(47,86,72,.5); }
.count {
  display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem;
  border-radius: 999px; background: var(--bg); font-size: .75rem; margin-left: .35rem;
}
.manifest-crew { margin-top: .2rem; font-size: .85rem; color: var(--muted); }
.manifest-crew:not(.is-unassigned) { color: #c8e6c0; }
.manifest-crew.is-unassigned { color: #e0a86a; }
.manifest-crew-cell { min-width: 9rem; max-width: 14rem; }
.manifest-crew-compact { display: grid; gap: .15rem; }
.manifest-crew-names {
  font-size: .85rem;
  color: #c8e6c0;
  line-height: 1.3;
}
.manifest-crew-names.is-unassigned { color: #e0a86a; }
.manifest-crew-edit > summary {
  cursor: pointer;
  list-style: none;
  font-size: .78rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  width: fit-content;
}
.manifest-crew-edit > summary:hover { color: #d7ebe0; }
.manifest-crew-edit > summary::-webkit-details-marker { display: none; }
.manifest-crew-form { margin-top: .4rem; gap: .35rem; }
.manifest-crew-actions {
  display: flex; align-items: center; gap: .65rem; flex-wrap: wrap;
}
.manifest-crew-cancel {
  background: none; border: 0; padding: 0; margin: 0;
  color: var(--muted); font: inherit; font-size: .78rem;
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.manifest-crew-cancel:hover { color: #d7ebe0; }
.manifest-crew-select {
  min-height: 5.5rem;
  font-size: .85rem;
}
.manifest-unassigned {
  min-width: auto; padding: 0 .45rem; background: rgba(224,168,106,.2); color: #e0a86a;
}
.crew-pick { display: grid; gap: .3rem; max-height: 11rem; overflow: auto; padding: .15rem 0; }
.crew-pick-row {
  display: flex !important; align-items: center; gap: .55rem;
  padding: .3rem .4rem; border-radius: 8px; border: 1px solid transparent;
}
.crew-pick-row:hover { background: rgba(15,31,26,.55); }
.crew-pick-row input { width: auto; margin: 0; }
.staff-search-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem;
  margin: .75rem 0 .35rem;
}
.staff-search { flex: 1 1 14rem; margin: 0; max-width: 28rem; }
.staff-search input {
  width: 100%; margin: 0;
}
.staff-list { margin-top: .25rem; }
.staff-empty { padding: .75rem 0; margin: 0; }
.perm-user {
  padding: .35rem 0;
  border-bottom: 1px solid rgba(47,86,72,.55);
}
.perm-user:last-of-type { border-bottom: 0; }
.perm-user-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .5rem .75rem;
  padding: .45rem .35rem;
  border-radius: 8px;
  cursor: pointer;
}
.perm-user-head:hover { background: rgba(15,31,26,.35); }
.perm-user-head:focus-visible { outline: 2px solid rgba(61,155,116,.7); outline-offset: 2px; }
.perm-user-meta {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .55rem;
  min-width: 0;
}
.perm-user-email { font-size: .9rem; word-break: break-all; }
.perm-user-actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; flex: 0 0 auto; }
.perm-user-actions .btn { font-size: .85rem; padding: .3rem .65rem; }
.staff-delete-form { display: inline; margin: 0; }
.staff-delete-reason { white-space: nowrap; }
.perm-user-body {
  padding: .15rem .35rem .85rem;
}
.perm-user-save { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.perm-user.is-open .perm-user-head { margin-bottom: .35rem; }
.perm-ticks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .35rem .75rem;
  margin: .35rem 0 .75rem;
}
@media (max-width: 700px) { .perm-ticks { grid-template-columns: 1fr; } }
.perm-presets {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .65rem;
  margin: .15rem 0 .5rem;
}
.perm-presets .btn { font-size: .85rem; padding: .35rem .7rem; }
.perm-tick, .perm-row {
  display: flex !important; align-items: flex-start; gap: .45rem;
  font-size: .9rem; margin: 0;
}
.perm-tick input, .perm-row input { width: auto; margin-top: .2rem; flex: 0 0 auto; }
.tiny { font-size: .75rem; }
.timeclock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .75rem;
}
.timeclock-card {
  display: flex; justify-content: space-between; gap: .75rem; align-items: center;
  padding: .85rem; border-radius: 10px; border: 1px solid var(--line);
  background: rgba(15,31,26,.4);
}
.timeclock-card.is-in { border-color: rgba(61,155,116,.7); box-shadow: inset 3px 0 0 #3d9b74; }
.timeclock-status { margin-top: .35rem; color: #b8e6d0; font-size: .9rem; }
.time-entry-block {
  padding: .85rem 0;
  border-bottom: 1px solid rgba(47,86,72,.5);
}
.time-entry-block:last-child { border-bottom: 0; }
.item-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.item-card {
  display: block; padding: 1.1rem; border-radius: var(--radius);
  border: 1px solid var(--line); background: rgba(28,58,48,.85); color: var(--text);
}
.item-card:hover { text-decoration: none; border-color: var(--accent); }
.item-card h2 { margin: 0 0 .35rem; font-size: 1.15rem; }
.item-card .meta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; color: var(--muted); font-size: .85rem; }
.tabs { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tabs a {
  padding: .45rem .8rem; border-radius: 8px; border: 1px solid var(--line);
  color: var(--text); background: var(--bg2);
}
.tabs a.is-active { border-color: var(--accent); color: var(--accent); }
.login-page {
  min-height: 100vh; display: grid; place-items: center; padding: 1rem;
  background:
    radial-gradient(900px 500px at 80% 0%, #2a5a45 0%, transparent 50%),
    linear-gradient(165deg, #0c1814, #163028);
}
.login-card {
  width: min(420px, 100%);
  background: rgba(18, 36, 30, .92);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2rem 1.6rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.login-card h1 { margin: 0 0 .35rem; }
.login-card form { text-align: left; margin-top: 1.25rem; }
.avail-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .35rem;
}
.avail-cell {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .4rem;
  min-height: 64px;
  background: #13261f;
  position: relative;
  isolation: isolate;
}
.avail-cell.open,
.avail-cell.status-available { background: rgba(61,155,116,.18); }
.avail-cell.closed,
.avail-cell.status-closed { background: rgba(224,122,106,.14); opacity: .9; }
.avail-cell.full,
.avail-cell.status-full { background: rgba(212,165,74,.16); outline: 1px solid rgba(212,165,74,.55); }
.avail-cell.status-past { background: rgba(80,100,92,.18); opacity: .72; color: var(--muted); }
/* Split-day: top = afternoon arrival, bottom = morning departure */
.avail-cell.split-day::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      var(--split-top, transparent) 0%,
      var(--split-top, transparent) 50%,
      var(--split-bot, transparent) 50%,
      var(--split-bot, transparent) 100%
    );
}
.avail-cell.has-arrival { --split-top: rgba(61, 155, 116, .48); }
.avail-cell.has-departure { --split-bot: rgba(212, 165, 74, .48); }
.avail-cell.status-full.has-arrival.has-departure,
.avail-cell.status-available.has-arrival.has-departure {
  background: #13261f;
  outline: 1px solid rgba(212,165,74,.45);
}
.avail-cell .d { font-weight: 700; position: relative; z-index: 1; }
.avail-cell.rate-weekend { box-shadow: inset 0 -3px 0 rgba(212,165,74,.85); }
.avail-cell.rate-special { box-shadow: inset 0 -3px 0 rgba(61,155,116,.95); }
.avail-cell .tiny { font-size: .7rem; opacity: .9; position: relative; z-index: 1; }
.avail-dow {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .35rem;
  margin-bottom: .35rem;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  opacity: .75;
  text-align: center;
}
.avail-cell.pad { border: none; background: transparent; min-height: 48px; }
button.avail-cell {
  display: block;
  width: 100%;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
button.avail-cell:disabled { cursor: not-allowed; opacity: .7; }
button.avail-cell.in-range { background: rgba(212,165,74,.2); }
button.avail-cell.is-start,
button.avail-cell.is-end { outline: 2px solid var(--accent); background: rgba(212,165,74,.28); }
.public-avail .avail-cell { min-height: 58px; }
table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td { border-bottom: 1px solid var(--line); padding: .55rem .35rem; text-align: left; }
label.check { display: flex !important; align-items: center; gap: .55rem; grid-template-columns: none !important; }
label.check input { width: auto; }
.public-book { min-height: 100vh; }
.hold-banner {
  border: 1px solid rgba(212,165,74,.55);
  background: rgba(212,165,74,.12);
  border-radius: 8px;
  padding: .75rem 1rem;
}
.booking-timer-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #1e3d32;
  border-bottom: 1px solid rgba(212,165,74,.55);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.booking-timer-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: .65rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: .95rem;
}
.booking-timer-inner strong {
  font-variant-numeric: tabular-nums;
  font-size: 1.25rem;
  color: #f0d59a;
  min-width: 4rem;
  text-align: right;
}
.booking-timer-bar.is-urgent {
  background: #4a3420;
  border-bottom-color: rgba(224,122,106,.65);
}
.booking-timer-bar.is-urgent strong { color: #ffb4a8; }
.booking-timer-bar.is-expired {
  background: #4c2121;
  border-bottom-color: #7d2f2f;
}
.booking-timer-box {
  font-size: 1.35rem;
  padding: .75rem 1rem;
  border-radius: 8px;
  background: rgba(212,165,74,.14);
  border: 1px solid rgba(212,165,74,.45);
}
.public-hero {
  padding: 2.5rem 1.25rem 1.5rem;
  background:
    radial-gradient(900px 420px at 20% 0%, #2a5a45 0%, transparent 55%),
    linear-gradient(165deg, #0c1814, #163028);
  border-bottom: 1px solid var(--line);
}
.public-hero h1 { margin: .2rem 0 .4rem; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; color: var(--accent); margin: 0; }
.public-shell { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.public-shell.narrow { max-width: 640px; }
.public-shell.wide { max-width: 1280px; }
.public-hero-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.search-dates-form { margin-bottom: 1.75rem; }
.search-dates-form h2 { font-size: 1.25rem; }
.waitlist-card { margin-top: 1.5rem; }
.empty-search { text-align: left; }
.park-cal-filters { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1rem; }
.avail-status-legend {
  margin: 0 0 1.1rem;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(18, 36, 30, .55);
}
.avail-status-legend-title {
  margin: 0 0 .45rem;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.avail-status-legend-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .35rem;
}
.avail-status-legend-list li {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  font-size: .86rem;
  line-height: 1.35;
}
.park-swatch {
  display: inline-block; width: .85rem; height: .85rem; border-radius: 3px;
  border: 1px solid var(--line); vertical-align: middle; flex: 0 0 auto; margin-top: .2rem;
}
.park-swatch.available { background: rgba(61,155,116,.45); }
.park-swatch.full { background: rgba(212,165,74,.4); }
.park-swatch.closed { background: rgba(224,122,106,.35); }
.park-swatch.past { background: rgba(80,100,92,.45); }
.park-swatch.split-day {
  background: linear-gradient(
    to bottom,
    rgba(61,155,116,.55) 0%,
    rgba(61,155,116,.55) 50%,
    rgba(212,165,74,.55) 50%,
    rgba(212,165,74,.55) 100%
  );
}
.park-cal-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(18, 36, 30, .55);
}
.park-cal {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 100%;
  font-size: .78rem;
}
.park-cal th, .park-cal td {
  border-bottom: 1px solid rgba(47,86,72,.45);
  border-right: 1px solid rgba(47,86,72,.28);
  padding: 0;
  text-align: center;
  vertical-align: middle;
}
.park-cal thead th {
  position: sticky; top: 0; z-index: 2;
  background: #12241e;
  padding: .45rem .2rem;
  font-weight: 600;
}
.park-cal-day { min-width: 2.4rem; }
.park-cal-day .dow { display: block; font-size: .65rem; opacity: .7; text-transform: uppercase; }
.park-cal-day .dom { display: block; font-size: .9rem; }
.park-cal-day.is-weekend { color: var(--accent); }
.park-cal-name {
  text-align: left !important;
  min-width: 9.5rem;
  max-width: 12rem;
  padding: .55rem .65rem !important;
  background: #12241e;
}
.park-cal-name.sticky-col {
  position: sticky; left: 0; z-index: 3;
  box-shadow: 2px 0 0 rgba(47,86,72,.45);
}
.park-cal thead .park-cal-name.sticky-col { z-index: 4; }
.park-cal-name a { color: var(--text); font-weight: 600; }
.park-cal-name a:hover { color: var(--accent); }
.park-cal-name .tiny { display: block; margin-top: .15rem; }
.park-cal-cell {
  min-width: 2.4rem; height: 2.6rem;
  position: relative;
  isolation: isolate;
}
.park-cal-link, .park-cal-static {
  display: grid; place-items: center;
  width: 100%; height: 100%; min-height: 2.6rem;
  text-decoration: none; color: inherit;
  position: relative; z-index: 1;
}
.park-cal-cell.status-available { background: rgba(61,155,116,.18); }
.park-cal-cell.status-available:hover { background: rgba(61,155,116,.38); }
.park-cal-cell.status-full { background: rgba(212,165,74,.16); color: var(--muted); }
.park-cal-cell.status-closed { background: rgba(224,122,106,.14); color: var(--muted); }
.park-cal-cell.status-past { background: rgba(80,100,92,.18); color: var(--muted); opacity: .8; }
.park-cal-cell.split-day::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      var(--split-top, transparent) 0%,
      var(--split-top, transparent) 50%,
      var(--split-bot, transparent) 50%,
      var(--split-bot, transparent) 100%
    );
}
.park-cal-cell.has-arrival { --split-top: rgba(61, 155, 116, .5); }
.park-cal-cell.has-departure { --split-bot: rgba(212, 165, 74, .5); }
.park-cal-cell.status-full.has-arrival.has-departure {
  background: #12241e;
  color: var(--text);
}
.park-cal-link .rate { font-size: .68rem; font-weight: 600; color: var(--accent); }
.park-cal-static .mark, .park-cal-link .mark { opacity: .75; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.item-photo, .hero-photo {
  width: 100%; max-height: 220px; object-fit: cover; border-radius: 10px; margin-bottom: .75rem;
  border: 1px solid var(--line);
}
.item-photo-placeholder {
  display: grid; place-items: center; min-height: 140px; max-height: 220px;
  background: linear-gradient(145deg, #1a3a2e, #243f34);
  color: var(--muted); font-size: .9rem; text-align: center; padding: 1rem;
}
.hero-photo { max-height: 320px; margin: 1rem 0; }
.photo-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: .5rem;
  margin: 0 0 1.25rem;
}
.photo-thumbs img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.photo-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .5rem;
  background: color-mix(in srgb, var(--panel, #1a2a24) 92%, #000);
}
.photo-card.is-default { outline: 2px solid var(--accent, #3d9b74); }
.photo-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.photo-badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  background: var(--accent, #3d9b74);
  color: #fff;
  font-size: .7rem;
  padding: .15rem .4rem;
  border-radius: 4px;
}
.tag-chip {
  display: inline-flex; align-items: center; gap: .25rem;
  background: color-mix(in srgb, var(--tag, #3d9b74) 28%, #13261f);
  border: 1px solid var(--tag, #3d9b74);
  color: var(--text); border-radius: 999px;
  padding: .15rem .55rem; font-size: .78rem; margin: .1rem .2rem .1rem 0;
}
.tag-x {
  background: transparent; border: 0; color: var(--muted); cursor: pointer; font-size: 1rem; line-height: 1;
}
.tag-row { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.tag-pick { border: 1px solid var(--line); border-radius: 8px; padding: .75rem; margin: 0; }
.tag-pick legend { padding: 0 .35rem; color: var(--muted); }
.inline-role select { width: auto; min-width: 8rem; }
code { font-size: .85em; color: var(--accent); }
.waiver-body {
  background: #0f1f1a; border: 1px solid var(--line); border-radius: 8px;
  padding: .85rem 1rem; max-height: 220px; overflow: auto; color: var(--text);
}
.waiver-body p { margin: 0 0 .6rem; }
.price-break td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.price-break .total-row td { border-top: 1px solid var(--line); padding-top: .7rem; }
.price-summary { border: 1px solid var(--line); border-radius: 8px; padding: .85rem 1rem; background: #13261f; }
.price-summary h3 { margin: 0 0 .6rem; font-size: 1rem; }

/* ?? Staff app shell: collapsible sidebar ?? */
body.staff { min-height: 100vh; }
.app-frame {
  display: grid;
  grid-template-columns: var(--sidebar-w, 260px) 1fr;
  min-height: 100vh;
  transition: grid-template-columns .2s ease;
}
.app-frame.sidebar-collapsed { --sidebar-w: 72px; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: rgba(10, 22, 18, .96);
  border-right: 1px solid var(--line);
  z-index: 30;
  overflow: hidden;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .9rem .85rem;
  border-bottom: 1px solid var(--line);
  min-height: 64px;
}
.sidebar-brand-home {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-width: 0;
  flex: 1;
  color: inherit;
  text-decoration: none;
}
.sidebar-brand-home:hover,
.sidebar-brand-home:focus-visible {
  color: inherit;
  text-decoration: none;
  opacity: .92;
}
.sidebar-brand-mark,
.mobile-brand-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  gap: .12rem;
  min-width: 0;
}
.platform-version {
  font-size: .62rem;
  line-height: 1;
  letter-spacing: .02em;
  white-space: nowrap;
  opacity: .85;
}
.sidebar-brand-text { min-width: 0; flex: 1; }
.sidebar-brand-text strong {
  display: block;
  font-size: .95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user {
  padding: .55rem .85rem .7rem;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.sidebar-user-label {
  font-size: .68rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .15rem;
}
.sidebar-user-name {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-email {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-collapse-btn {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}
.sidebar-collapse-btn:hover { filter: brightness(1.1); }
.app-frame.sidebar-collapsed .sidebar-collapse-btn svg { transform: rotate(180deg); }
.side-nav {
  flex: 1;
  overflow-y: auto;
  padding: .65rem .5rem 1rem;
  display: grid;
  gap: .35rem;
  align-content: start;
}
.nav-group {
  border-radius: 10px;
  background: rgba(22, 48, 40, .35);
  border: 1px solid transparent;
}
.nav-group.is-open { border-color: rgba(47, 86, 72, .55); }
.nav-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem .65rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  text-align: left;
  border-radius: 10px;
}
.nav-group-toggle:hover { color: var(--text); background: rgba(28, 58, 48, .55); }
.nav-chevron {
  margin-left: auto;
  font-size: .7rem;
  opacity: .7;
  transition: transform .15s ease;
}
.nav-group.is-open .nav-chevron { transform: rotate(0deg); }
.nav-group:not(.is-open) .nav-chevron { transform: rotate(-90deg); }
.nav-group-items {
  display: none;
  padding: 0 .35rem .45rem;
  gap: .15rem;
}
.nav-group.is-open .nav-group-items { display: grid; }
.side-nav a,
.side-link {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .48rem .65rem;
  border-radius: 8px;
  color: var(--text);
  border: 1px solid transparent;
}
.side-nav a:hover,
.side-link:hover {
  background: var(--panel);
  text-decoration: none;
}
.side-nav a.is-active {
  background: rgba(61, 155, 116, .18);
  border-color: rgba(61, 155, 116, .45);
  color: var(--accent);
}
.nav-ico {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  flex: 0 0 22px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden !important;
  color: inherit;
  line-height: 0;
}
.nav-glyph {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  font-size: .72rem !important;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--accent);
  background: rgba(212, 165, 74, .12);
  border: 1px solid rgba(212, 165, 74, .35);
  border-radius: 6px;
  line-height: 1;
}
.sidebar-collapse-btn {
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 700;
}
/* Hard-cap any leftover SVG so it can never fill the viewport */
body.staff svg,
.sidebar svg,
.side-nav svg,
.nav-ico svg {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  display: block !important;
  overflow: hidden !important;
}
.live-desk .live-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: .65rem;
  margin-bottom: 1rem;
}
.live-stat {
  background: rgba(28, 58, 48, .85);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .75rem .9rem;
  display: grid;
  gap: .2rem;
}
.live-stat .n { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; }
.live-stat .l { color: var(--muted); font-size: .78rem; }
.live-stat.ready { border-color: rgba(61, 155, 116, .65); }
.live-stat.warn { border-color: rgba(224, 122, 106, .65); }
.live-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 1100px) { .live-grid { grid-template-columns: 1fr; } }
.live-list { display: grid; gap: .45rem; max-height: 62vh; overflow: auto; }
.live-row {
  display: flex; justify-content: space-between; gap: .75rem; align-items: center;
  padding: .55rem .65rem; border-radius: 8px; border: 1px solid rgba(47, 86, 72, .55);
  background: rgba(15, 31, 26, .55);
}
.live-row.is-new { outline: 2px solid var(--accent); background: rgba(212, 165, 74, .12); }
.live-row.status-ready { border-color: rgba(61, 155, 116, .55); }
.live-row.status-missing { border-color: rgba(224, 122, 106, .45); }
.badge {
  display: inline-block; padding: .15rem .45rem; border-radius: 999px;
  font-size: .72rem; font-weight: 600; border: 1px solid var(--line);
}
.badge.ok { background: rgba(61, 155, 116, .2); color: #b8f0d4; border-color: #2f7d5c; }
.badge.warn { background: rgba(224, 122, 106, .18); color: #ffd0c8; border-color: #a35a4e; }
.badge.bad { background: rgba(224, 122, 106, .22); color: #ffd0c8; border-color: #a35a4e; }
.live-toast {
  position: sticky; top: .5rem; z-index: 40;
  background: #214c38; border: 1px solid #2f7d5c; padding: .65rem 1rem;
  border-radius: 8px; margin-bottom: .75rem;
}
.live-toast.is-error { background: #4c2121; border-color: #7d2f2f; }
.live-status.is-ok { color: #8fd9b4; }
.live-status.is-bad { color: var(--danger); }
.live-search {
  margin-bottom: .75rem;
}
.live-search input {
  font-size: 1.05rem;
  padding: .75rem .9rem;
}
@media print {
  .sidebar, .mobile-topbar, .no-print, .sidebar-backdrop { display: none !important; }
  .app-frame { display: block; }
  .app-main, .shell { padding: 0; }
  body { background: #fff; color: #000; }
  .form-card, .live-stat { background: #fff; border-color: #ccc; color: #000; }
}

/* ?? Smartwaiver-style Waiver Console ?? */
.wc { display: grid; gap: .85rem; }
.wc-toolbar {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-start;
}
.wc-toolbar-main {
  flex: 1 1 100%;
  min-width: min(100%, 28rem);
  display: grid;
  gap: .55rem;
}
.wc-title { margin: 0; font-size: 1.55rem; }
.wc-tools { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-end; }
.wc-search-wrap { display: grid; gap: .25rem; width: 100%; max-width: none; }
.wc-search-wrap input {
  font-size: 1.05rem;
  padding: .75rem .95rem;
  width: 100%;
  box-sizing: border-box;
}
.wc-chip {
  display: inline-flex !important;
  align-items: center;
  gap: .45rem;
  font-weight: 700;
}
.wc-chip.is-active { border-color: var(--accent2); color: #c8f5df; background: rgba(61, 155, 116, .18); }
.wc-badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 .4rem;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  border: 1px solid var(--accent2);
  line-height: 1;
}
.wc-badge-pass { border-color: #d4a54a; background: #2a2110; color: #f0d59a; }
.wc-pin.is-disabled { opacity: .28; cursor: not-allowed; }
.wc-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 1;
  margin: 0 .12rem;
  font-size: .95rem;
}
.wc-ico-online { filter: saturate(1.1); }
.wc-ico-email-pending {
  position: relative;
  color: #e8c56a;
  font-size: 1rem;
}
.wc-ico-email-pending sup {
  font-size: .65rem;
  font-weight: 800;
  color: #f0a050;
  margin-left: -0.15rem;
  top: -0.35em;
}
.wc-status-pill {
  display: inline-block;
  padding: .2rem .55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #13261f;
  font-size: .82rem;
  font-weight: 600;
}
.wc-status-pill.wc-status-ok {
  border-color: #2f7d5c;
  background: rgba(61, 155, 116, .18);
  color: #b8f0d4;
}
.wc-status-pill.wc-status-pending {
  border-color: #d4a54a;
  background: rgba(212, 165, 74, .18);
  color: #f0d59a;
}
.wc-pass-dot {
  display: inline-grid; place-items: center;
  width: 1rem; height: 1rem; border-radius: 999px;
  font-size: .65rem; font-weight: 800;
  background: rgba(212, 165, 74, .25); color: #e8c56a;
  border: 1px solid rgba(212, 165, 74, .55);
}
.wc-pass-tag,
.wc-checkin-tag {
  display: inline-block; margin: .5rem 0 0;
  padding: .25rem .55rem; border-radius: 999px;
  font-size: .8rem; font-weight: 600;
}
/* Author display: must beat [hidden] or the banner never hides */
.wc-pass-tag[hidden],
.wc-checkin-tag[hidden] {
  display: none !important;
}
.wc-checkin-tag.is-pass {
  background: rgba(212, 165, 74, .18); color: #f0d59a;
  border: 1px solid rgba(212, 165, 74, .45);
}
.wc-checkin-tag.is-walkin {
  background: rgba(61, 155, 116, .2); color: #b7ebcf;
  border: 1px solid rgba(61, 155, 116, .45);
}
.wc-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: .85rem;
  align-items: start;
}
.wc-body:has(#wc-detail[hidden]) { grid-template-columns: 1fr; }
@media (max-width: 1000px) {
  .wc-body { grid-template-columns: 1fr; }
}
.wc-list-pane {
  padding: 0;
  overflow: auto;
  max-height: calc(100vh - 9.5rem);
}
.wc-load-more {
  text-align: center;
  padding: .65rem .75rem  .85rem;
  border-top: 1px solid rgba(47, 86, 72, .45);
}
.wc-table { width: 100%; border-collapse: collapse; }
.wc-table th, .wc-table td {
  text-align: left; padding: .65rem .75rem;
  border-bottom: 1px solid rgba(47, 86, 72, .55);
  vertical-align: middle;
}
.wc-table th {
  background: #13261f; font-size: .78rem; text-transform: uppercase;
  letter-spacing: .04em; color: var(--muted);
}
.wc-row { cursor: pointer; }
.wc-row:hover { background: rgba(61, 155, 116, .08); }
.wc-row.is-selected { background: rgba(61, 155, 116, .28); }
.wc-row.is-new { outline: 2px solid var(--accent); }
.wc-pin {
  width: 28px; height: 28px; border-radius: 6px;
  border: 1px solid var(--line); background: #0f1f1a;
  color: #6a8578; cursor: pointer; font-size: .85rem;
  display: inline-grid; place-items: center; padding: 0;
}
.wc-pin:disabled,
.wc-pin.is-busy {
  cursor: wait;
  opacity: 1; /* never grey out ? keep on/off color visible */
}
.wc-pin.is-on {
  background: #2f9e6a; border-color: #3d9b74; color: #fff;
  box-shadow: 0 0 0 2px rgba(61, 155, 116, .35);
}
/* Season pass pin ? gold when checked in */
.wc-pin.wc-pin-pass {
  color: #8a7350;
  border-color: #5a4a2a;
  background: #1a160e;
}
.wc-pin.wc-pin-pass.is-on {
  background: #d4a54a;
  border-color: #f0d59a;
  color: #1a1408;
  box-shadow: 0 0 0 2px rgba(212, 165, 74, .45);
  filter: none;
}
.wc-pin:hover { filter: brightness(1.1); }
.wc-pin.wc-pin-pass.is-on:hover { filter: brightness(1.05); }
.wc-flag { color: #e07a6a; font-weight: 700; }
.wc-checkins { font-variant-numeric: tabular-nums; font-weight: 600; }
.wc-detail { position: sticky; top: .75rem; max-height: calc(100vh - 6rem); overflow: auto; }
.wc-detail-head { margin-bottom: .75rem; }
.wc-detail-actions { display: flex; gap: .4rem; justify-content: flex-end; margin-bottom: .5rem; }
.wc-detail h2 { margin: 0 0 .25rem; font-size: 1.2rem; }
.wc-d-meta { margin: .65rem 0 0; }
.wc-tabs {
  display: flex; gap: .25rem; border-bottom: 1px solid var(--line);
  margin: 0 0 .75rem; padding: 0;
}
.wc-tabs button {
  background: transparent; border: 0; color: var(--muted);
  padding: .5rem .7rem; cursor: pointer; font: inherit; font-size: .82rem; font-weight: 700;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.wc-tabs button.is-active { color: var(--accent2); border-bottom-color: var(--accent2); }
.wc-tab-panel { display: none; }
.wc-tab-panel.is-active { display: block; }
.wc-flag-list { list-style: none; padding: 0; margin: 0; }
.wc-flag-list li {
  padding: .55rem 0; border-bottom: 1px solid rgba(47, 86, 72, .45);
  color: #ffc9c0;
}
.wc-info-table { width: 100%; font-size: .9rem; }
.wc-info-table th { white-space: nowrap; }
.wc-info-table td { vertical-align: top; }
.wc-info-tags { min-width: 8.5rem; }
.wc-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  align-items: center;
}
.wc-tag {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  margin: 0;
  padding: .15rem .4rem;
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.2;
  color: #1e2a24;
  background: var(--wc-tag, #c8e0d4);
  border: 1px solid rgba(0,0,0,.12);
}
.wc-tag-x {
  border: 0;
  background: transparent;
  color: #334;
  cursor: pointer;
  font-size: .95rem;
  line-height: 1;
  padding: 0 .1rem;
  font-weight: 800;
}
.wc-tag-x:hover { color: #8a2e22; }
.wc-tag-add {
  border: 1px dashed #6a9b84;
  background: transparent;
  color: #9fd0b6;
  border-radius: 4px;
  padding: .15rem .45rem;
  font-size: .75rem;
  font-weight: 750;
  cursor: pointer;
}
.wc-tag-add:hover { background: rgba(61,155,116,.15); color: #fff; }
.wc-tag-picker {
  margin-top: .45rem;
  display: grid;
  gap: .35rem;
  padding: .5rem;
  border-radius: 6px;
  background: #102018;
  border: 1px solid rgba(61,155,116,.35);
}
.wc-tag-choice {
  text-align: left;
  border: 1px solid rgba(61,155,116,.35);
  background: #163126;
  color: #d7eee2;
  border-radius: 4px;
  padding: .35rem .5rem;
  font-size: .82rem;
  font-weight: 650;
  cursor: pointer;
}
.wc-tag-choice:hover { border-color: var(--accent2); }
.wc-tag-new { display: flex; gap: .35rem; }
.wc-tag-new input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(61,155,116,.4);
  border-radius: 4px;
  background: #0c1712;
  color: #e8f0ea;
  padding: .35rem .5rem;
  font: inherit;
  font-size: .85rem;
}
.btn.tiny { padding: .3rem .55rem; font-size: .78rem; }
.nav-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: .92rem;
}
.sidebar-foot {
  border-top: 1px solid var(--line);
  padding: .55rem .5rem .75rem;
  display: grid;
  gap: .2rem;
}
.side-logout {
  width: 100%;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: var(--text);
  text-align: left;
}
.logout { margin: 0; }
.app-main { min-width: 0; display: flex; flex-direction: column; }
.mobile-topbar {
  display: none;
  align-items: center;
  gap: .75rem;
  padding: .65rem .9rem;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 22, 18, .92);
  position: sticky;
  top: 0;
  z-index: 20;
}
.mobile-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
a.mobile-brand:hover,
a.mobile-brand:focus-visible {
  color: inherit;
  text-decoration: none;
  opacity: .92;
}
.mobile-brand-text { min-width: 0; }
.mobile-brand strong { font-size: .95rem; display: block; }
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 25;
}

/* Collapsed: icons only */
.app-frame.sidebar-collapsed .sidebar-brand-text,
.app-frame.sidebar-collapsed .sidebar-user,
.app-frame.sidebar-collapsed .nav-label,
.app-frame.sidebar-collapsed .nav-chevron {
  display: none;
}
.app-frame.sidebar-collapsed .nav-group-items { display: none !important; }
.app-frame.sidebar-collapsed .nav-group-toggle { justify-content: center; padding: .65rem; }
.app-frame.sidebar-collapsed .side-nav a,
.app-frame.sidebar-collapsed .side-link {
  justify-content: center;
  padding: .65rem;
}
.app-frame.sidebar-collapsed .sidebar-brand { justify-content: center; }
.app-frame.sidebar-collapsed .sidebar-collapse-btn { margin: 0; }

body.staff .shell {
  max-width: none;
  width: 100%;
  padding: 1.25rem 1.5rem 2rem;
}

@media (max-width: 900px) {
  .app-frame { grid-template-columns: 1fr; }
  .mobile-topbar { display: flex; }
  .sidebar {
    position: fixed;
    left: 0; top: 0;
    width: min(280px, 86vw);
    transform: translateX(-105%);
    transition: transform .2s ease;
    box-shadow: 0 0 40px rgba(0,0,0,.4);
  }
  .app-frame.sidebar-mobile-open .sidebar { transform: translateX(0); }
  .sidebar-backdrop:not([hidden]) { display: block; }
  .app-frame.sidebar-collapsed { --sidebar-w: 260px; }
  .app-frame.sidebar-collapsed .sidebar-brand-text,
  .app-frame.sidebar-collapsed .sidebar-user,
  .app-frame.sidebar-collapsed .nav-label,
  .app-frame.sidebar-collapsed .nav-chevron { display: initial; }
  .app-frame.sidebar-collapsed .nav-group.is-open .nav-group-items { display: grid !important; }
  .app-frame.sidebar-collapsed .nav-group-toggle,
  .app-frame.sidebar-collapsed .side-nav a,
  .app-frame.sidebar-collapsed .side-link { justify-content: flex-start; padding: .48rem .65rem; }
}

/* ?? Parking permit quantity dialog ?? */
.pp-dialog {
  border: 1px solid #2f5648;
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  background: #1c3a30;
  color: #e8f2ec;
  max-width: 26rem;
  width: calc(100% - 2rem);
}
.pp-dialog::backdrop { background: rgba(0,0,0,.55); }
.pp-dialog h2 { margin: 0 0 .35rem; font-size: 1.2rem; }
.pp-dialog .stack { display: grid; gap: .75rem; }
.pp-dialog label { display: grid; gap: .3rem; font-size: .9rem; }
.pp-dialog input[type=number] {
  font-size: 1.15rem;
  padding: .55rem .7rem;
  border-radius: 6px;
  border: 1px solid #3d6a58;
  background: #0f241c;
  color: #e8f2ec;
}
.pp-dialog .actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.pp-dialog #parking-permit-countdown span { font-weight: 700; color: #b8e0c8; }

/* ?? Employee role / title combobox ?? */
.role-title-field { display: grid; gap: .35rem; }
.role-title-combobox { position: relative; display: block; }
.role-title-menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 2px); z-index: 40;
  background: #13261f; border: 1px solid var(--line); border-radius: 8px;
  max-height: 240px; overflow: auto;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
}
.role-title-item {
  display: grid; gap: .1rem; width: 100%; text-align: left;
  background: transparent; border: 0; border-bottom: 1px solid rgba(47, 86, 72, .55);
  padding: .55rem .7rem; color: var(--text); cursor: pointer;
  border-radius: 0;
}
.role-title-item:last-child { border-bottom: 0; }
.role-title-item:hover { background: rgba(61, 155, 116, .18); }
.role-title-item.is-add strong { color: var(--accent); }
.role-title-dialog {
  border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem 1.25rem;
  background: #1c3a30; color: var(--text); max-width: 28rem; width: calc(100% - 2rem);
}
.role-title-dialog::backdrop { background: rgba(0, 0, 0, .55); }
.role-title-dialog h2 { margin: 0 0 .35rem; font-size: 1.2rem; }

/* Product copyright ? muted, non-competing */
.site-copyright {
  margin: 0;
  padding: 1rem 1.25rem 1.35rem;
  text-align: center;
  font-size: .68rem;
  line-height: 1.45;
  color: var(--muted);
  opacity: .72;
  letter-spacing: .01em;
}
.login-page .site-copyright {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: .85rem 1rem 1.1rem;
  pointer-events: none;
}
body.staff .site-copyright {
  margin-top: auto;
  padding: .65rem 1.25rem 1rem;
  opacity: .55;
  font-size: .64rem;
}
.public-book .site-copyright {
  max-width: 1100px;
  margin: 0 auto;
}

/* Security audit */
.usage-bars { display: grid; gap: .55rem; }
.usage-bar-row {
  display: grid;
  grid-template-columns: minmax(7rem, 11rem) 1fr auto;
  gap: .65rem;
  align-items: center;
}
@media (max-width: 700px) {
  .usage-bar-row { grid-template-columns: 1fr; gap: .25rem; }
}
.usage-bar-label { font-weight: 600; font-size: .92rem; }
.usage-bar-track {
  height: .7rem;
  border-radius: 999px;
  background: rgba(15, 31, 26, .65);
  border: 1px solid var(--line);
  overflow: hidden;
}
.usage-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2f7d5c, #d4a54a);
  min-width: 2px;
}
.usage-bar-n { white-space: nowrap; text-align: right; }
.posture-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .55rem;
}
.posture-list li {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  padding: .45rem .55rem;
  border-radius: 8px;
  border: 1px solid rgba(47, 86, 72, .45);
  background: rgba(15, 31, 26, .35);
}
.posture-list li.is-ok { border-color: rgba(61, 155, 116, .45); }
.posture-list li.is-bad { border-color: rgba(224, 122, 106, .45); }
.posture-mark {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  flex: 0 0 auto;
  margin-top: .1rem;
}
.posture-list li.is-ok .posture-mark { background: rgba(61, 155, 116, .28); color: #b8e6d0; }
.posture-list li.is-bad .posture-mark { background: rgba(224, 122, 106, .22); color: #ffd0c8; }
.posture-indicators { display: grid; gap: .45rem; font-size: .92rem; }

/* Retail drawer / register shifts */
.retail-drawer { margin: 0 0 1rem; }
.retail-drawer-banner {
  display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center;
  justify-content: space-between;
  padding: .75rem 1rem; border-radius: 10px; border: 1px solid var(--line);
}
.retail-drawer-banner.is-open {
  border-color: rgba(61, 155, 116, .55);
  background: rgba(61, 155, 116, .14);
}
.retail-drawer-banner.is-closed {
  border-color: rgba(224, 122, 106, .55);
  background: rgba(224, 122, 106, .12);
}
.retail-drawer-status { display: grid; gap: .2rem; min-width: 0; }
.retail-drawer-kpis {
  display: flex; flex-wrap: wrap; gap: .35rem .85rem; margin-top: .2rem;
  font-size: .92rem;
}
.retail-drawer-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.retail-drawer-dialog {
  border: 1px solid var(--line); border-radius: 12px; padding: 0;
  background: var(--panel); color: var(--text); max-width: min(440px, 94vw);
}
.retail-drawer-dialog::backdrop { background: rgba(0,0,0,.55); }
.retail-drawer-dialog-inner { padding: 1rem 1.1rem 1.1rem; }
.retail-drawer-dialog-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.retail-drawer-z { margin: .25rem 0 .5rem; }
.retail-shift-z .retail-shift-print-title { margin: 0 0 .25rem; font-size: 1.15rem; }
.retail-shift-z .retail-sales-kpi { margin-top: .75rem; }

/* Retail POS */
.retail-subnav {
  display: flex; gap: .5rem; flex-wrap: wrap; margin: 0 0 1rem;
}
.retail-subnav a {
  padding: .4rem .8rem; border-radius: 8px;
  border: 1px solid var(--line); background: rgba(15,31,26,.35); color: var(--text);
}
.retail-subnav a.is-active { border-color: var(--accent2); background: rgba(61,155,116,.18); }
.retail-pos {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .9fr);
  gap: 1rem; align-items: start;
}
@media (max-width: 960px) {
  .retail-pos { grid-template-columns: 1fr; }
}
.retail-scan input {
  width: 100%; font-size: 1.1rem; padding: .7rem .85rem;
}
.retail-keys-wrap { margin-top: .75rem; }
.retail-keys {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .65rem;
}
.retail-keys-pager {
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  margin-top: .65rem;
}
.retail-keys-pager[hidden] { display: none !important; }
.retail-key {
  --key-bg: var(--panel);
  min-height: 110px; border: 1px solid var(--line); border-radius: 12px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--key-bg) 70%, #163028), var(--panel));
  color: var(--text); padding: .75rem; display: flex; flex-direction: column;
  align-items: flex-start; justify-content: space-between; gap: .35rem;
  cursor: pointer; text-align: left; font: inherit;
}
/* Author display:flex must not beat [hidden] */
.retail-key[hidden] { display: none !important; }
.retail-key:hover:not(:disabled) { filter: brightness(1.08); border-color: var(--accent); }
.retail-key:disabled, .retail-key.is-oos { opacity: .45; cursor: not-allowed; }
.retail-key.is-pass { box-shadow: inset 0 0 0 1px rgba(139,92,246,.45); }
.retail-key-name { font-weight: 700; font-size: 1.02rem; line-height: 1.2; }
.retail-key-price { color: var(--accent); font-weight: 700; }
.retail-key-badge {
  font-size: .72rem; padding: .12rem .4rem; border-radius: 6px;
  background: rgba(139,92,246,.25); color: #ddd6fe;
}
.retail-key-stock { font-size: .75rem; color: var(--muted); }
.retail-key-stock.is-low { color: var(--accent); }
.retail-key-stock.is-oos { color: var(--danger); }
.retail-cart { position: sticky; top: .75rem; }
.retail-cart-lines { display: grid; gap: .55rem; min-height: 4rem; margin-bottom: .75rem; }
.retail-line {
  display: flex; justify-content: space-between; gap: .75rem; align-items: center;
  padding: .55rem .6rem; border: 1px solid var(--line); border-radius: 8px;
  background: rgba(15,31,26,.35);
}
.retail-line-actions { display: flex; align-items: center; gap: .35rem; }
.retail-qty { min-width: 1.5rem; text-align: center; font-weight: 700; }
.retail-cart-total {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 1.25rem; padding: .5rem 0; border-top: 1px solid var(--line);
}
.retail-dual-totals {
  display: grid; gap: .35rem; padding: .65rem 0; border-top: 1px solid var(--line);
}
.retail-dual-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: .75rem;
  font-size: 1.05rem;
}
.retail-dual-row strong { color: var(--accent); }
.retail-tender { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .5rem; }
.retail-tender-btn { min-height: 3.4rem; font-size: 1rem; line-height: 1.2; gap: .35em; }
.retail-tender-btn .tiny { font-weight: 600; opacity: .9; }
.retail-mod-dialog {
  border: 1px solid var(--line); border-radius: 12px; padding: 0;
  background: var(--panel); color: var(--text); max-width: min(420px, 94vw);
}
.retail-mod-dialog::backdrop { background: rgba(0,0,0,.55); }
.retail-mod-dialog-inner { padding: 1rem 1.1rem 1.1rem; }
.retail-mod-options { display: grid; gap: .5rem; }
.retail-mod-option {
  display: grid; gap: .15rem; text-align: left; font: inherit; color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; padding: .7rem .8rem;
  background: rgba(15,31,26,.4); cursor: pointer;
}
.retail-mod-option:hover { border-color: var(--accent); }
.retail-mod-admin { margin-top: .5rem; display: grid; gap: .75rem; }
.retail-mod-rows { display: grid; gap: .65rem; }
.retail-mod-row { margin: 0; padding: .85rem; }
.retail-pass-panel {
  margin-top: 1rem; padding-top: .85rem; border-top: 1px dashed var(--line);
  display: grid; gap: .55rem;
}
/* Author display:grid must not beat [hidden] — pass fields stay off until cart has a pass */
.retail-pass-panel[hidden] { display: none !important; }
.retail-pass-panel h3 { margin: 0; font-size: 1rem; }
.retail-customer-results { display: grid; gap: .35rem; max-height: 10rem; overflow: auto; }
.retail-customer-hit {
  text-align: left; font: inherit; color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; padding: .45rem .6rem;
  background: rgba(15,31,26,.4); cursor: pointer;
}
.retail-customer-hit:hover { border-color: var(--accent2); }
.retail-customer-picked { margin: 0; color: var(--accent2) !important; }
.retail-rv { border: 1px solid var(--line); border-radius: 8px; padding: .55rem .75rem; margin: 0; }
.retail-rv label { display: inline-flex; gap: .4rem; margin-right: 1rem; }
.retail-swatch {
  display: inline-block; width: .75rem; height: .75rem; border-radius: 3px;
  margin-left: .35rem; vertical-align: middle; border: 1px solid var(--line);
}
.retail-quick-order-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap;
  margin-bottom: .65rem;
}
.retail-quick-order-head h2 { margin: 0 0 .2rem; font-size: 1.1rem; }
.retail-quick-order-head p { margin: 0; }
#quick-order-status.is-error { color: var(--danger); }
.retail-quick-order-list {
  list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem;
}
.retail-quick-order-item {
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  align-items: center; gap: .55rem;
  padding: .55rem .7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15,31,26,.35);
  cursor: grab;
  user-select: none;
}
.retail-quick-order-item.is-dragging { opacity: .55; cursor: grabbing; }
.retail-quick-order-item.drop-hover { border-color: var(--accent); }
.retail-quick-grip {
  color: var(--muted); letter-spacing: -.12em; font-size: .85rem; line-height: 1;
  padding: 0 .15rem;
}
.retail-quick-order-name { font-weight: 650; }
.retail-quick-order-meta { white-space: nowrap; }
.retail-quick-order-btns { display: inline-flex; gap: .3rem; }
.retail-quick-order-btns .btn { min-width: 2rem; }
.retail-adjust { display: flex; gap: .35rem; margin-top: .35rem; }
.retail-adjust input { width: 4.5rem; }
.retail-product-actions { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; justify-content: flex-end; }
.retail-receipt-brand { font-size: 1.15rem; }
.retail-discount {
  display: grid; gap: .45rem; padding: .55rem 0 .25rem;
  border-top: 1px dashed var(--line); margin-top: .25rem;
}
.retail-discount-toggle {
  display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap;
}
.retail-discount-modes { display: flex; gap: .75rem; flex-wrap: wrap; }
.retail-discount-modes label { display: inline-flex; gap: .3rem; align-items: center; margin: 0; font-size: .9rem; }
.retail-discount-input input { max-width: 8rem; }
.retail-recent-head {
  display: flex; justify-content: space-between; align-items: center; gap: .75rem;
}
.retail-recent-list {
  list-style: none; margin: .65rem 0 0; padding: 0; display: grid; gap: .35rem;
}
.retail-recent-list a {
  display: grid; grid-template-columns: 4.5rem 1fr auto auto; gap: .55rem; align-items: center;
  padding: .45rem .55rem; border: 1px solid var(--line); border-radius: 8px;
  color: var(--text); text-decoration: none; background: rgba(15,31,26,.35);
}
.retail-recent-list a:hover { border-color: var(--accent); }
.retail-sales-kpi {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem;
}
.retail-sales-kpi.is-with-gross { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.retail-sales-kpi strong { font-size: 1.35rem; color: var(--accent); display: block; margin-top: .15rem; }
.retail-sales-kpi .is-gross strong { color: var(--muted); font-size: 1.15rem; }
tr.is-voided,
tr.is-cancelled { opacity: .72; }
tr.is-voided > td:not(.sale-status):not(.sale-actions),
tr.is-cancelled > td:not(.sale-status):not(.sale-actions) {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(224, 122, 106, .85);
}
.retail-recent-list li.is-voided a,
.retail-recent-list li.is-cancelled a {
  opacity: .72;
}
.retail-recent-list li.is-voided a > span,
.retail-recent-list li.is-voided a > strong,
.retail-recent-list li.is-cancelled a > span,
.retail-recent-list li.is-cancelled a > strong {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(224, 122, 106, .85);
}
.retail-recent-list li.is-voided .sale-status,
.retail-recent-list li.is-cancelled .sale-status {
  text-decoration: none;
}
.retail-void-confirm { display: flex; gap: .5rem; align-items: center; }
@media (max-width: 720px) {
  .retail-sales-kpi,
  .retail-sales-kpi.is-with-gross { grid-template-columns: 1fr; }
  .retail-recent-list a { grid-template-columns: 1fr 1fr; }
}

/* Staff instant messages */
.im {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 1rem;
  min-height: min(70vh, 720px);
  align-items: stretch;
}
.im-sidebar, .im-thread {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}
.im-side-head {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .75rem 1rem; border-bottom: 1px solid var(--line);
}
.im-staff-head { border-top: 1px solid var(--line); }
.im-inbox, .im-directory {
  display: flex; flex-direction: column; gap: .25rem;
  padding: .5rem; overflow: auto; max-height: 28vh;
}
.im-directory { max-height: none; flex: 1; }
.im-conv, .im-peer {
  display: flex; align-items: center; gap: .55rem;
  width: 100%; text-align: left; font: inherit; color: inherit;
  background: transparent; border: 1px solid transparent; border-radius: 8px;
  padding: .45rem .55rem; cursor: pointer;
}
.im-conv:hover, .im-peer:hover { background: rgba(15, 31, 26, .55); border-color: rgba(47, 86, 72, .55); }
.im-conv.is-active { background: rgba(61, 155, 116, .14); border-color: rgba(61, 155, 116, .45); }
.im-conv-body, .im-peer-body { flex: 1; min-width: 0; display: grid; gap: .1rem; }
.im-conv-name, .im-peer-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.im-conv-preview { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.im-conv-meta { display: grid; gap: .2rem; justify-items: end; flex: 0 0 auto; }
.im-presence {
  width: .65rem; height: .65rem; border-radius: 50%; flex: 0 0 auto;
  background: #5a7268; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25);
}
.im-presence.is-online { background: #3d9b74; box-shadow: 0 0 0 2px rgba(61, 155, 116, .25); }
.im-status-online { color: #8fd9b4 !important; }
.im-thread-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem;
  padding: .85rem 1rem; border-bottom: 1px solid var(--line);
}
.im-messages {
  flex: 1; overflow: auto; padding: 1rem;
  display: flex; flex-direction: column; gap: .55rem;
  min-height: 220px; background: rgba(15, 31, 26, .28);
}
.im-bubble {
  max-width: min(78%, 36rem);
  align-self: flex-start;
  background: rgba(28, 58, 48, .95);
  border: 1px solid var(--line);
  border-radius: 12px 12px 12px 4px;
  padding: .55rem .75rem;
}
.im-bubble.is-mine {
  align-self: flex-end;
  background: rgba(61, 155, 116, .22);
  border-color: rgba(61, 155, 116, .45);
  border-radius: 12px 12px 4px 12px;
}
.im-bubble-body { white-space: pre-wrap; word-break: break-word; }
.im-bubble-meta { margin-top: .25rem; }
.im-compose {
  display: grid; grid-template-columns: 1fr auto; gap: .55rem; align-items: end;
  padding: .75rem 1rem; border-top: 1px solid var(--line);
}
.im-compose textarea {
  width: 100%; resize: vertical; min-height: 2.6rem; max-height: 8rem;
  font: inherit; color: var(--text);
  background: rgba(15, 31, 26, .55); border: 1px solid var(--line); border-radius: 8px;
  padding: .55rem .7rem;
}
.im-unread-badge, .nav-im-badge { margin-left: .35rem; }
.im-topbar-link {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem; margin-left: auto; margin-right: .35rem;
  border: 1px solid var(--line); border-radius: 8px; color: var(--text);
  background: rgba(15, 31, 26, .45); text-decoration: none !important;
}
.im-topbar-link:hover { border-color: var(--accent2); }
.im-topbar-ico { font-size: 1.05rem; line-height: 1; }
.im-topbar-badge {
  position: absolute; top: -.35rem; right: -.35rem; min-width: 1.1rem;
  text-align: center; pointer-events: none;
}
@media (max-width: 900px) {
  .im { grid-template-columns: 1fr; min-height: 0; }
  .im-inbox { max-height: 18vh; }
  .im-directory { max-height: 22vh; }
  .im-messages { min-height: 40vh; }
}

@media print {
  .sidebar, .page-head-actions, .retail-subnav, .flash, .no-print { display: none !important; }
  body.staff { background: #fff; color: #000; }
  .form-card { border: none; box-shadow: none; }
  .retail-receipt { color: #000; }
}

/* Hardware stations */
.hw-current-form {
  display: flex; flex-wrap: wrap; gap: .75rem; align-items: end;
}
.hw-current-form label { min-width: 14rem; flex: 1; }
.hw-station-list { display: grid; gap: .75rem; }
.hw-station-card {
  border: 1px solid var(--line); border-radius: 8px; padding: .75rem .9rem;
  background: rgba(0,0,0,.02);
}
.hw-station-card.is-inactive { opacity: .7; }
.hw-station-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; align-items: center;
}
.hw-station-actions { display: flex; gap: .4rem; align-items: center; }
.hw-role-summary {
  list-style: none; margin: .55rem 0 0; padding: 0;
  display: grid; gap: .25rem;
}
.hw-role-summary li {
  display: flex; flex-wrap: wrap; gap: .35rem .65rem; align-items: baseline;
  font-size: .92rem;
}
.hw-role-block {
  border: 1px solid var(--line); border-radius: 8px; padding: .75rem .9rem;
  margin: 0 0 .75rem;
}
.hw-role-block legend { padding: 0 .35rem; font-weight: 600; }
.hw-pos-station {
  display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center;
  margin: 0 0 .85rem; padding: .45rem .65rem;
  border: 1px dashed var(--line); border-radius: 8px;
  background: rgba(0,0,0,.015);
}
.hw-pos-station-form label {
  display: flex; align-items: center; gap: .4rem; margin: 0;
}
.hw-pos-station-form select {
  min-width: 10rem; font-size: .9rem; padding: .25rem .4rem;
}
.hw-receipt-meta { margin: 0 0 .85rem; }
.retail-receipt-ticket { font-size: .95rem; }
.retail-receipt-ticket .data { font-size: .9rem; }
