/* =====================================================================
   G-SMaRT Multi-Business System - operations screens
   Court board, bay board, reservation timeline, coffee POS, kitchen
   tickets, dispatch, checkout. Loads after theme.css.
   ===================================================================== */

/* business labels: an icon and the name in the business colour (plain text) */
.biz-tag { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .84rem; white-space: nowrap; }
.biz-tag .bi { font-size: .9em; }
.biz-pb { color: var(--pb); } .biz-cw { color: var(--cw); } .biz-cf { color: var(--cf); }
body.biz-pb .page-bar h1::after, body.biz-cw .page-bar h1::after, body.biz-cf .page-bar h1::after {
  content: ""; display: inline-block; width: 9px; height: 9px; margin-left: .55rem; border-radius: 2px; vertical-align: middle; transform: translateY(-2px);
}
body.biz-pb .page-bar h1::after { background: var(--pb); } body.biz-cw .page-bar h1::after { background: var(--cw); } body.biz-cf .page-bar h1::after { background: var(--cf); }

/* segmented choices (rectangular keys, not capsules) */
.seg { display: inline-flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); padding: 3px; box-shadow: var(--inset); }
.seg a, .seg button, .seg label {
  border: 0; background: none; color: var(--ink-soft); font-weight: 600; font-size: .84rem; padding: .32rem .75rem; border-radius: 7px; cursor: pointer; text-decoration: none !important;
  transition: background-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease);
}
.seg a:hover, .seg button:hover, .seg label:hover { color: var(--ink); }
.seg .on, .seg input:checked + label, .seg a.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 0 #fff inset, 0 1px 3px rgba(29, 35, 32, .14), 0 2px 0 var(--line); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }

/* toolbars above lists */
.toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .85rem; }
.toolbar .grow { flex: 1 1 auto; }
.toolbar form { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.toolbar .form-control, .toolbar .form-select { width: auto; min-width: 150px; }
.toolbar input[type="search"] { min-width: 220px; }

/* figures row */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem; margin-bottom: 1rem; }

/* definition list */
.dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; font-size: .9rem; margin: 0; }
.dl dt { color: var(--muted); font-weight: 500; }
.dl dd { margin: 0; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.ref { font-family: "IBM Plex Mono", monospace; font-size: .86em; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; }
.plate { font-family: "IBM Plex Mono", monospace; font-weight: 600; letter-spacing: .04em; padding: .05rem .4rem; border: 1.5px solid var(--ink); border-radius: 4px; background: #fff; font-size: .82rem; white-space: nowrap; }
.muted { color: var(--muted); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.big-num { font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: 2rem; line-height: 1; }
.is-over { color: var(--bad) !important; }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .8rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: .35rem; }
.legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }

/* ------------------------------------------------------------------ live board shared */
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .9rem; }
.tile {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 3px 0 var(--line-soft), 0 14px 26px -20px rgba(29, 35, 32, .45);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  animation: rise .45s var(--ease) both;
}
.tile:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 5px 0 var(--line-soft), 0 22px 34px -22px rgba(29, 35, 32, .5); }
.tile-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .7rem .85rem .2rem; }
.tile-head h3 { font-size: 1.25rem; margin: 0; }
.tile-body { padding: .3rem .85rem .85rem; font-size: .88rem; }
.tile-body .who { font-weight: 600; font-size: .95rem; }
.tile-foot { display: flex; gap: .35rem; flex-wrap: wrap; padding: .6rem .85rem; border-top: 1px solid var(--line-soft); background: var(--surface-2); }
.tile-foot form { margin: 0; }
.timer { font-family: "IBM Plex Mono", monospace; font-weight: 600; font-size: 1.05rem; }
.prog { height: 6px; border-radius: 4px; background: var(--surface-3); overflow: hidden; box-shadow: var(--inset); margin: .45rem 0 .3rem; }
.prog > span { display: block; height: 100%; width: 0; background: var(--court-500); border-radius: 4px; transition: width 1s linear; }
.prog > span.is-over { background: var(--bad); }

/* courts: a court drawn from above, coloured by what it is doing */
.court-pic { position: relative; height: 112px; margin: .2rem .85rem .35rem; border-radius: 8px; overflow: hidden; transition: background-color .5s var(--ease); }
.court-pic svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.court-pic .ln { fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: 2; }
.court-pic .kz { fill: rgba(255, 255, 255, .1); }
.court-pic .state-word { position: absolute; left: 9%; top: 14%; color: #fff; font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: 1.05rem; letter-spacing: .02em; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.court-pic .players { position: absolute; right: .6rem; bottom: .45rem; display: flex; gap: 4px; }
.court-pic .players i { width: 9px; height: 9px; border-radius: 50%; background: var(--optic); box-shadow: 0 0 0 2px rgba(0, 0, 0, .15); animation: bounce 1.8s ease-in-out infinite; }
.court-pic .players i:nth-child(2) { animation-delay: .25s; } .court-pic .players i:nth-child(3) { animation-delay: .5s; } .court-pic .players i:nth-child(4) { animation-delay: .75s; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.st-available .court-pic { background: #2c7462; }
.st-reserved .court-pic { background: #2f6d96; }
.st-occupied .court-pic { background: #b5622b; }
.st-cleaning .court-pic { background: #9a8a4a; }
.st-maintenance .court-pic { background: #7a5b55; }
.st-closed .court-pic { background: #5d6661; }
.lg-available { background: #2c7462; } .lg-reserved { background: #2f6d96; } .lg-occupied { background: #b5622b; } .lg-cleaning { background: #9a8a4a; } .lg-maintenance { background: #7a5b55; } .lg-closed { background: #5d6661; }

/* bays */
.bay-pic { position: relative; height: 96px; margin: .2rem .85rem .35rem; border-radius: 8px; overflow: hidden; background: #e4ecf2; border: 1px dashed #b9cad8; }
.bay-pic .lane { position: absolute; inset: 12px 18px; border-left: 3px solid #fff; border-right: 3px solid #fff; opacity: .9; }
.bay-pic .car { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 2.6rem; color: #2f6d96; transition: transform .6s var(--spring); }
.bay-pic .drops { position: absolute; inset: 0; pointer-events: none; }
.bay-pic .drops i { position: absolute; top: -10px; width: 2px; height: 10px; border-radius: 2px; background: rgba(47, 109, 150, .55); animation: drip 1.1s linear infinite; }
@keyframes drip { to { transform: translateY(120px); } }
.bay-pic.empty .car { color: #b9cad8; font-size: 2rem; }
.bay-pic.busy { background: #d8e6f0; border-style: solid; }
.bay-pic.cleaning { background: #efe9d6; border-color: #d6c99a; }
.bay-pic.maintenance { background: #eadfdc; border-color: #d1b5ae; }
.queue-list { display: flex; flex-direction: column; gap: .5rem; }
.queue-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: .7rem; align-items: center; padding: .6rem .75rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: 11px; box-shadow: 0 2px 0 var(--line-soft); animation: rise .4s var(--ease) both;
}
.queue-no { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.4rem; line-height: 1; color: var(--cw); min-width: 52px; text-align: center; }

/* ------------------------------------------------------------------ reservation timeline (courts x time) */
.tl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--raise-1); }
.tl { display: grid; min-width: 880px; position: relative; }
.tl-head, .tl-row { display: contents; }
.tl-cell { border-bottom: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft); min-height: 54px; position: relative; }
.tl-court { position: sticky; left: 0; z-index: 2; background: var(--surface); padding: .55rem .75rem; font-weight: 600; border-right: 1px solid var(--line); }
.tl-court small { display: block; color: var(--muted); font-weight: 500; font-size: .74rem; }
.tl-hour { font-size: .72rem; color: var(--muted); padding: .35rem .3rem; background: var(--surface-2); border-bottom: 1px solid var(--line); min-height: 0; }
.tl-slot { cursor: pointer; transition: background-color .12s; }
.tl-slot:hover { background: rgba(212, 225, 87, .22); }
.tl-slot.past { background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(29, 35, 32, .035) 6px 7px); cursor: default; }
.tl-slot.closed { background: repeating-linear-gradient(135deg, #f1e3df 0 6px, #ead6d0 6px 8px); cursor: not-allowed; }
.tl-block {
  position: absolute; top: 5px; bottom: 5px; left: 3px; z-index: 1; border-radius: 8px; padding: .3rem .45rem; font-size: .75rem; line-height: 1.2; color: #fff; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 2px 0 rgba(0, 0, 0, .18); text-decoration: none !important; white-space: nowrap;
  transition: filter .15s, transform .15s var(--ease);
}
.tl-block:hover { filter: brightness(1.08); transform: translateY(-1px); color: #fff; }
.tl-block b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.tl-block.s-confirmed { background: #2f6d96; } .tl-block.s-held, .tl-block.s-pending_payment { background: #b07a1e; }
.tl-block.s-checked_in, .tl-block.s-in_progress { background: #b5622b; } .tl-block.s-completed { background: #6f8f82; } .tl-block.s-no_show { background: #8f5b55; }
.tl-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--bad); z-index: 3; pointer-events: none; box-shadow: 0 0 0 3px rgba(178, 58, 46, .15); }
.tl-now::before { content: ""; position: absolute; top: -4px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--bad); }

.cal-month { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-month .dow { font-size: .75rem; color: var(--muted); font-weight: 600; padding: 0 .3rem; }
.cal-day { min-height: 92px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .4rem .5rem; font-size: .8rem; box-shadow: 0 2px 0 var(--line-soft); text-decoration: none !important; color: var(--ink); display: block; transition: transform .15s var(--ease); }
.cal-day:hover { transform: translateY(-2px); color: var(--ink); }
.cal-day.other { opacity: .45; }
.cal-day.today { border-color: var(--court-500); box-shadow: 0 0 0 2px rgba(212, 225, 87, .6), 0 2px 0 var(--line-soft); }
.cal-day .d { font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: 1.15rem; }
.cal-day .load { height: 5px; border-radius: 3px; background: var(--surface-3); margin-top: .35rem; overflow: hidden; }
.cal-day .load span { display: block; height: 100%; background: var(--pb); }

/* ------------------------------------------------------------------ coffee POS */
.pos { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 1rem; align-items: start; }
.pos > *, .panel-grid > *, .board > * { min-width: 0; }
@media (max-width: 1100px) { .pos { grid-template-columns: minmax(0, 1fr); } }
.pos-cats { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .4rem; margin-bottom: .75rem; scrollbar-width: thin; }
.pos-cats button {
  flex: 0 0 auto; border: 1px solid var(--line); background: var(--surface); border-radius: 9px; padding: .45rem .85rem; font-weight: 600; font-size: .86rem; color: var(--ink-soft);
  box-shadow: 0 2px 0 var(--line-soft); transition: transform .08s, background-color .15s;
}
.pos-cats button.on { background: var(--cf); color: #fff; border-color: #6e4730; box-shadow: 0 2px 0 #4f3222; }
.pos-cats button:active { transform: translateY(1px); }
.pos-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .65rem; }
.pos-item {
  position: relative; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: .75rem .75rem .65rem; min-height: 112px;
  display: flex; flex-direction: column; gap: .2rem; box-shadow: 0 1px 0 #fff inset, 0 3px 0 var(--line-soft); transition: transform .1s var(--ease), box-shadow .15s;
}
.pos-item:hover { box-shadow: 0 1px 0 #fff inset, 0 3px 0 #d9cbbd, 0 12px 20px -16px rgba(139, 90, 60, .6); }
.pos-item:active { transform: translateY(2px); box-shadow: 0 1px 0 #fff inset, 0 1px 0 var(--line-soft); }
.pos-item .nm { font-weight: 600; line-height: 1.2; }
.pos-item .pr { margin-top: auto; font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: 1.15rem; color: var(--cf); }
.pos-item .cup { position: absolute; right: .6rem; top: .6rem; color: #d7c3b1; font-size: 1.2rem; }
.pos-item.sold-out { opacity: .45; pointer-events: none; }
.pos-item.sold-out::after { content: "Sold out"; position: absolute; right: .6rem; bottom: .7rem; font-size: .75rem; font-weight: 600; color: var(--bad); }
.cart { position: sticky; top: calc(var(--bar-h) + 12px); }
.cart-lines { max-height: 46vh; overflow-y: auto; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: .2rem .6rem; padding: .55rem .9rem; border-bottom: 1px dashed var(--line); animation: rise .3s var(--ease) both; }
.cart-line .opts { grid-column: 1 / -1; font-size: .78rem; color: var(--muted); }
.cart-line .qty { display: inline-flex; align-items: center; gap: .25rem; }
.cart-line .qty button { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; line-height: 1; box-shadow: 0 2px 0 var(--line-soft); }
.cart-tot { padding: .7rem .9rem; display: grid; grid-template-columns: 1fr auto; gap: .2rem; font-size: .9rem; }
.cart-tot .grand { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.7rem; }
.opt-group { margin-bottom: .85rem; }
.opt-group .gname { font-weight: 600; font-size: .85rem; margin-bottom: .35rem; display: flex; justify-content: space-between; }
.opt-keys { display: flex; flex-wrap: wrap; gap: .35rem; }
.opt-keys label { position: relative; }
.opt-keys input { position: absolute; opacity: 0; }
.opt-keys span {
  display: inline-block; padding: .4rem .7rem; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-size: .85rem; font-weight: 500; cursor: pointer;
  box-shadow: 0 2px 0 var(--line-soft); transition: all .12s var(--ease);
}
.opt-keys input:checked + span { background: var(--cf-tint); border-color: var(--cf); color: #5b3a26; box-shadow: 0 1px 0 #fff inset, 0 2px 0 #cdb7a5; font-weight: 600; }
.opt-keys input:focus-visible + span { outline: 3px solid rgba(212, 225, 87, .75); }
.opt-keys small { color: var(--muted); margin-left: .25rem; }

/* ------------------------------------------------------------------ kitchen tickets */
.kds { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; align-items: start; }
.ticket {
  position: relative; background: #fffdf7; border: 1px solid #e3dccb; border-radius: 4px 4px 10px 10px; padding: 1.1rem .9rem .8rem;
  box-shadow: 0 2px 0 #ece4d1, 0 16px 26px -20px rgba(60, 40, 20, .45); animation: ticketIn .5s var(--spring) both;
}
.ticket::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 8px;
  background: radial-gradient(circle at 6px -2px, var(--page) 5px, transparent 5.5px) repeat-x; background-size: 12px 8px;
}
@keyframes ticketIn { from { opacity: 0; transform: translateY(-14px) rotate(-1deg); } to { opacity: 1; transform: none; } }
.ticket.is-new { box-shadow: 0 0 0 3px rgba(212, 225, 87, .8), 0 2px 0 #ece4d1, 0 16px 26px -20px rgba(60, 40, 20, .45); }
.ticket.late { border-color: #e6bab4; }
.ticket.late .t-age { color: var(--bad); }
.ticket .t-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; border-bottom: 1px dashed #d9cfba; padding-bottom: .45rem; margin-bottom: .5rem; }
.ticket .t-no { font-family: "IBM Plex Mono", monospace; font-weight: 600; font-size: 1.05rem; }
.ticket .t-age { font-family: "IBM Plex Mono", monospace; font-weight: 600; }
.ticket .t-meta { font-size: .8rem; color: var(--muted); margin-bottom: .45rem; }
.t-item { display: grid; grid-template-columns: auto 1fr auto; gap: .5rem; align-items: start; padding: .4rem 0; border-bottom: 1px dotted #e6dfcf; }
.t-item:last-child { border-bottom: 0; }
.t-item .q { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.25rem; line-height: 1; min-width: 26px; }
.t-item .n { font-weight: 600; line-height: 1.2; }
.t-item .m { font-size: .78rem; color: var(--muted); }
.t-item .note { font-size: .78rem; color: var(--warn); font-weight: 600; }
.t-item button { font-size: .75rem; padding: .25rem .5rem; }
.t-item.st-preparing .n { color: #6b55a8; } .t-item.st-ready .n { color: var(--ok); text-decoration: line-through; text-decoration-thickness: 1px; }

/* ------------------------------------------------------------------ checkout */
.inv-pick { display: flex; flex-direction: column; gap: .5rem; }
.inv-row {
  display: grid; grid-template-columns: auto 1fr auto 130px; gap: .75rem; align-items: center; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 11px;
  background: var(--surface); box-shadow: 0 2px 0 var(--line-soft); transition: border-color .15s, background-color .15s;
}
.inv-row.on { border-color: var(--court-300); background: var(--court-50); }
.inv-row .form-control { text-align: right; }
@media (max-width: 640px) { .inv-row { grid-template-columns: auto 1fr; } .inv-row .num, .inv-row .alloc { grid-column: 2; } }
.tender-row { display: grid; grid-template-columns: 1.1fr 1fr 1.2fr auto; gap: .5rem; align-items: end; margin-bottom: .5rem; }
@media (max-width: 640px) { .tender-row { grid-template-columns: 1fr 1fr; } }
.pay-sum { display: grid; grid-template-columns: 1fr auto; gap: .35rem; font-size: .95rem; }
.pay-sum .grand { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 2rem; line-height: 1; }
.pay-sum .chg { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.5rem; color: var(--ok); }

/* ------------------------------------------------------------------ receipts (58 mm, 80 mm, A4) */
.receipt { background: #fff; color: #111; margin: 0 auto; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; line-height: 1.35; padding: 10px 8px; box-shadow: var(--raise-2); }
.receipt.w58 { width: 58mm; font-size: 10.5px; } .receipt.w80 { width: 80mm; } .receipt.wa4 { width: 190mm; font-family: "Barlow", sans-serif; font-size: 13px; padding: 14mm; }
.receipt .c { text-align: center; } .receipt .r { text-align: right; } .receipt hr { border: 0; border-top: 1px dashed #777; margin: 6px 0; opacity: 1; }
.receipt table { width: 100%; border-collapse: collapse; } .receipt td { padding: 1px 0; vertical-align: top; }
.receipt .big { font-size: 1.25em; font-weight: 700; }
@media print {
  body.print-receipt { background: #fff !important; }
  body.print-receipt .receipt { box-shadow: none; margin: 0; }
  @page { margin: 4mm; }
}

/* ------------------------------------------------------------------ dashboard panels */
.panel-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: .9rem; }
.panel-grid > .span-12 { grid-column: span 12; } .panel-grid > .span-8 { grid-column: span 8; } .panel-grid > .span-6 { grid-column: span 6; }
.panel-grid > .span-4 { grid-column: span 4; } .panel-grid > .span-3 { grid-column: span 3; }
@media (max-width: 1199.98px) { .panel-grid > .span-8, .panel-grid > .span-4, .panel-grid > .span-3 { grid-column: span 6; } }
@media (max-width: 767.98px) { .panel-grid > [class*="span-"] { grid-column: span 12; } }
.mini-courts { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .5rem; }
.mini-court { border-radius: 9px; padding: .5rem .55rem; color: #fff; font-size: .78rem; box-shadow: 0 2px 0 rgba(0, 0, 0, .15); transition: transform .15s var(--ease); }
.mini-court:hover { transform: translateY(-2px); }
.mini-court b { display: block; font-family: "Barlow Condensed", sans-serif; font-size: 1.05rem; font-weight: 600; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 54px; }
.spark span { flex: 1 1 0; background: var(--court-300); border-radius: 3px 3px 0 0; min-height: 2px; transform-origin: bottom; animation: grow .7s var(--ease) both; }
.spark span.today { background: var(--court-600); }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.stack-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--surface-3); box-shadow: var(--inset); }
.stack-bar span { height: 100%; transition: width .8s var(--ease); }
.stack-bar .s-pb { background: var(--pb); } .stack-bar .s-cw { background: var(--cw); } .stack-bar .s-cf { background: var(--cf); }
.list-tight { list-style: none; margin: 0; padding: 0; }
.list-tight li { display: flex; justify-content: space-between; gap: .75rem; align-items: center; padding: .5rem 1rem; border-bottom: 1px solid var(--line-soft); font-size: .88rem; }
.list-tight li:last-child { border-bottom: 0; }
.list-tight li .sub { display: block; color: var(--muted); font-size: .78rem; }

/* notifications */
.note-item { display: grid; grid-template-columns: auto 1fr auto; gap: .75rem; align-items: start; padding: .75rem 1rem; border-bottom: 1px solid var(--line-soft); }
.note-item.unread { background: rgba(212, 225, 87, .12); }
.note-item .ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-soft); box-shadow: 0 2px 0 var(--line); }
.note-item.unread .ico { background: var(--court-600); color: #fff; box-shadow: 0 2px 0 var(--court-900); }

/* pick cards: a whole card is the tick box (services of a job, plans, items) */
.pick-card { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 11px;
  background: var(--surface); box-shadow: 0 2px 0 var(--line-soft); cursor: pointer; transition: border-color .15s, background-color .15s, transform .1s var(--ease); height: 100%; }
.pick-card:hover { border-color: var(--edge); }
.pick-card:active { transform: translateY(1px); }
.pick-card input { position: absolute; opacity: 0; pointer-events: none; }
.pick-card small { color: var(--muted); }
.pick-card strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pick-card:has(input:checked) { border-color: var(--court-500); background: var(--court-50); box-shadow: inset 0 0 0 1px var(--court-500), 0 2px 0 #c4dacf; }
.biz-cw .pick-card:has(input:checked) { border-color: var(--cw); background: var(--cw-tint); box-shadow: inset 0 0 0 1px var(--cw), 0 2px 0 #b9cfe0; }
.biz-cf .pick-card:has(input:checked) { border-color: var(--cf); background: var(--cf-tint); box-shadow: inset 0 0 0 1px var(--cf), 0 2px 0 #d9c3b0; }
.pick-card:has(input:focus-visible) { outline: 3px solid rgba(212, 225, 87, .75); }
.pick-card .tick { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--edge); flex: 0 0 18px; display: grid; place-items: center; margin-top: 2px; background: #fff; }
.pick-card:has(input:checked) .tick { background: var(--court-600); border-color: var(--court-700); }
.biz-cw .pick-card:has(input:checked) .tick { background: var(--cw); border-color: var(--cw); }
.pick-card:has(input:checked) .tick::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }

/* ------------------------------------------------------------------ cash count (closing a drawer) */
.denoms { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .5rem; }
.denom { display: flex; flex-direction: column; gap: .2rem; margin: 0; }
.denom > span { font-family: "IBM Plex Mono", monospace; font-size: .78rem; color: var(--muted); }

/* ------------------------------------------------------------------ setup tables */
.crud tr.is-off td { color: var(--muted); }
.crud tr.is-off td:first-child::after { content: " (off)"; font-size: .75rem; }
.crud-thumb { width: 44px; height: 32px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }
.check-keys { display: flex; flex-wrap: wrap; gap: .35rem; }
.check-keys label { margin: 0; cursor: pointer; }
.check-keys input { position: absolute; opacity: 0; pointer-events: none; }
.check-keys span { display: inline-block; padding: .3rem .65rem; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); box-shadow: 0 1px 0 var(--line); font-size: .85rem; transition: background .15s, color .15s, box-shadow .15s; }
.check-keys input:checked + span { background: var(--court-700, #1d5245); color: #fff; border-color: transparent; box-shadow: inset 0 -2px 0 rgba(0,0,0,.25); }
.check-keys input:focus-visible + span { outline: 2px solid var(--optic, #d4e157); outline-offset: 2px; }

/* usage meter (membership hours, capacity) */
.meter { height: 6px; border-radius: 3px; background: var(--line-soft, #e4e1d8); overflow: hidden; box-shadow: inset 0 1px 1px rgba(0,0,0,.08); }
.meter > span { display: block; height: 100%; background: var(--pb); border-radius: 3px; transition: width .6s var(--ease); }
.plate-lg { display: inline-block; font-size: 1.5rem; padding: .25rem .9rem; border-width: 2px; box-shadow: 0 2px 0 var(--ink); }
.biz-dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; box-shadow: inset 0 -1px 0 rgba(0,0,0,.25); }
.stars { color: #c99a1c; letter-spacing: 1px; font-size: .85rem; }

/* ------------------------------------------------------------------ shift schedule */
.sched th { white-space: nowrap; font-size: .8rem; }
.sched th span { display: block; font-weight: 400; color: var(--muted); }
.sched td { min-width: 112px; vertical-align: top; position: relative; }
.sched .is-today { background: rgba(212, 225, 87, .12); }
.shift { display: flex; align-items: center; justify-content: space-between; gap: .25rem; font-size: .76rem; font-family: "IBM Plex Mono", monospace; padding: .2rem .35rem; border-radius: 5px; margin-bottom: .25rem; color: #fff; box-shadow: inset 0 -2px 0 rgba(0,0,0,.2); }
.shift.s-pb { background: var(--pb); } .shift.s-cw { background: var(--cw); } .shift.s-cf { background: var(--cf); }
.shift .x { border: 0; background: transparent; color: rgba(255,255,255,.75); padding: 0 .15rem; line-height: 1; font-size: .95rem; }
.shift .x:hover { color: #fff; }
.add-shift { border: 1px dashed var(--line); background: transparent; color: var(--muted); border-radius: 5px; width: 100%; padding: .05rem; font-size: .8rem; opacity: 0; transition: opacity .15s; }
.sched td:hover .add-shift, .add-shift:focus-visible { opacity: 1; }
@media (hover: none) { .add-shift { opacity: .7; } }
.sticky-save { position: sticky; bottom: 0; padding: .85rem 0; margin-top: 1rem; background: linear-gradient(to top, var(--page) 70%, transparent); z-index: 5; }

/* ------------------------------------------------------------------ public pages (booking, ordering, tracking, portal) */
body.pub { background: var(--page); min-height: 100vh; display: flex; flex-direction: column; }
.pub-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1rem; }
.pub-bar { background: var(--rail); color: #e9efe9; position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 0 rgba(0,0,0,.25); }
.pub-bar .pub-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 62px; flex-wrap: wrap; }
.pub-brand { display: flex; align-items: center; gap: .65rem; color: #fff; text-decoration: none; }
.pub-brand svg { width: 34px; height: 34px; }
.pub-brand strong { display: block; font-family: "Barlow Condensed", sans-serif; font-size: 1.2rem; line-height: 1.05; letter-spacing: .01em; }
.pub-brand small { display: block; color: #9fb3a8; font-size: .75rem; }
.pub-nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.pub-nav a { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .75rem; border-radius: 8px; color: #c9d6cf; text-decoration: none; font-weight: 500; font-size: .92rem; transition: background .15s, color .15s; }
.pub-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.pub-nav a.on { background: var(--optic); color: #17201c; box-shadow: inset 0 -2px 0 rgba(0,0,0,.18); }
.pub-main { flex: 1 0 auto; padding-top: 1.5rem; padding-bottom: 2.5rem; }
.pub-foot { background: #e3dfd5; border-top: 1px solid var(--line); padding: 1.25rem 0; font-size: .85rem; color: var(--muted); }
.pub-foot .pub-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.pub-h { font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: 1.9rem; margin: 0 0 .25rem; }
.pub-sub { color: var(--muted); margin-bottom: 1.25rem; }
.steps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin-bottom: 1.25rem; counter-reset: st; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--raise-1); overflow: hidden; }
.steps span { counter-increment: st; position: relative; display: flex; align-items: center; gap: .5rem; min-width: 0; padding: .65rem .85rem .75rem; font-size: .85rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steps span + span { border-left: 1px solid var(--line); }
.steps span::before { content: counter(st); flex: none; display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 6px; background: var(--surface-3); font-family: "IBM Plex Mono", ui-monospace, monospace; font-weight: 600; font-size: .75rem; color: var(--ink-soft); }
.steps span::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; transition: background .3s ease; }
.steps span.on { color: var(--ink); font-weight: 600; }
.steps span.on::before { background: var(--court-600); color: #fff; }
.steps span.on::after { background: var(--court-600); }
.steps span.done { color: var(--ink); }
.steps span.done::before { content: "\2713"; background: var(--ok); color: #fff; }
.steps span.done::after { background: var(--court-300); }
@media (max-width: 575.98px) { .steps span { padding: .55rem .5rem .65rem; gap: .35rem; font-size: .75rem; } .steps span::before { width: 1.3rem; height: 1.3rem; } }
.slot-grid { display: grid; grid-template-columns: 74px repeat(var(--courts, 4), minmax(90px, 1fr)); gap: 4px; overflow-x: auto; }
.slot-grid .h { font-size: .78rem; font-weight: 600; text-align: center; padding: .35rem .2rem; color: var(--muted); position: sticky; top: 0; }
.slot-grid .t { font-family: "IBM Plex Mono", monospace; font-size: .76rem; color: var(--muted); display: flex; align-items: center; }
.slot { border: 1px solid var(--line); background: var(--surface); border-radius: 6px; height: 34px; font-size: .74rem; cursor: pointer; transition: transform .12s, background .12s, box-shadow .12s; color: var(--ink); }
.slot:hover:not([disabled]) { transform: translateY(-1px); box-shadow: var(--raise-1); border-color: var(--court-600); }
.slot[disabled] { cursor: not-allowed; background: repeating-linear-gradient(135deg, var(--surface-3) 0 6px, transparent 6px 12px); color: var(--muted); border-style: dashed; }
.slot.is-pick { background: var(--court-600); color: #fff; border-color: var(--court-700); box-shadow: inset 0 -2px 0 rgba(0,0,0,.2); }
.pay-box { border: 1.5px dashed var(--court-600); border-radius: 12px; padding: 1rem 1.1rem; background: rgba(35, 97, 80, .04); white-space: pre-line; font-family: "IBM Plex Mono", monospace; font-size: .88rem; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .75rem; }
.menu-card { text-align: left; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: .85rem .9rem; box-shadow: var(--raise-1); transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; gap: .25rem; min-height: 112px; }
.menu-card:hover:not([disabled]) { transform: translateY(-2px); box-shadow: var(--raise-2); }
.menu-card .nm { font-weight: 600; }
.menu-card .pr { margin-top: auto; font-family: "Barlow Condensed", sans-serif; font-size: 1.15rem; color: var(--cf); font-weight: 600; }
.menu-card[disabled] { opacity: .55; }
.track-line { list-style: none; padding: 0; margin: 0; position: relative; }
.track-line li { position: relative; padding: 0 0 1.1rem 2rem; color: var(--muted); }
.track-line li::before { content: ""; position: absolute; left: .45rem; top: .3rem; width: .7rem; height: .7rem; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); }
.track-line li::after { content: ""; position: absolute; left: .76rem; top: 1.1rem; bottom: .1rem; width: 2px; background: var(--line); }
.track-line li:last-child::after { display: none; }
.track-line li.done { color: var(--ink); }
.track-line li.done::before { background: var(--ok); border-color: var(--ok); }
.track-line li.now { color: var(--ink); font-weight: 600; }
.track-line li.now::before { background: var(--optic); border-color: var(--court-700); animation: livePulse 1.6s ease-in-out infinite; }
@media (max-width: 575.98px) {
  .pub-nav a span { display: none; }
  .pub-nav a { padding: .5rem .65rem; }
  .pub-h { font-size: 1.55rem; }
}
