/* The Bookings tab's Upcoming page (bookings.js, mock docs/bookings-v7): the week, the numbers and chart, the day on a
   timeline, Next up, the day by the hour, and the week's team and services. Colours come from admin.css / frame.css. */
/* Shared with Home's Today list (its chips are these). */
:root { --bk-now: #e5484d; --bk-ok: #1a8a4a; --bk-ok-soft: color-mix(in srgb, #1a8a4a 13%, var(--surface)); }
:root[data-theme="dark"] { --bk-ok: #52c787; --bk-ok-soft: rgba(82, 199, 135, .14); }
.bk-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.bk-title { margin: 0; font-size: 24px; } /* a section title, like Waitlist and Past */ .bk-title span { color: var(--muted); font-weight: 600; }
.bk-sub { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.bk-open { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }
.bk-week { display: inline-flex; align-items: center; padding: 3px; border-radius: 99px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.bk-week button { display: inline-grid; place-items: center; height: 32px; min-width: 32px; padding: 0 12px; border: 0; border-radius: 99px; background: none; font: 600 13px/1 var(--body); color: var(--muted); cursor: pointer; white-space: nowrap; }
.bk-week button:hover { color: var(--ink); } .bk-week button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.bk-week .ico { width: 16px; height: 16px; }
.bk-head > .bk-week { margin-left: auto; }
/* Week | Month, and the month view (mock docs/bookings-calendar-v1, C) */
.bk-mode { display: inline-flex; padding: 3px; border-radius: 99px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.bk-mode button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border: 0; border-radius: 99px; background: none; font: 600 13px/1 var(--body); color: var(--muted); cursor: pointer; }
.bk-mode button:hover { color: var(--ink); } .bk-mode button[aria-pressed="true"] { background: var(--ink); color: var(--surface); } .bk-mode .ico { width: 15px; height: 15px; }
.bk-mlayout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(420px, 1fr); gap: 16px; align-items: start; }
.bk-mlayout .bk-mday { min-height: 92px; }
.bk-mcard { padding: 16px; }
.bk-mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.bk-mwd { padding: 0 0 4px 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.bk-mday { display: grid; align-content: start; gap: 5px; min-width: 0; min-height: 104px; padding: 9px 10px; border: 0; border-radius: 14px; background: var(--soft); text-align: left; font: inherit; color: var(--ink); cursor: pointer; transition: box-shadow .15s, transform .15s; }
.bk-mday:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.bk-mday.out { opacity: .4; } .bk-mday.past .bk-mval { color: var(--muted); }
.bk-mday[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); background: var(--surface); }
.bk-mday.shut { background: repeating-linear-gradient(135deg, var(--soft) 0 4px, transparent 4px 8px); box-shadow: inset 0 0 0 1px var(--line); }
.bk-mtop { display: flex; align-items: center; justify-content: space-between; gap: 6px; } .bk-mtop b { font-size: 14px; font-weight: 800; } .bk-mtop em { font-style: normal; color: var(--muted); font-size: 11px; font-weight: 700; }
.bk-mday.today .bk-mtop b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--pick); color: var(--pick-ink); font-size: 12px; }
.bk-mval { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bk-mbar { display: flex; gap: 2px; height: 6px; border-radius: 99px; overflow: hidden; background: color-mix(in srgb, var(--muted) 14%, transparent); } .bk-mbar i { display: block; }
.bk-mcount { overflow: hidden; color: var(--muted); font-size: 11.5px; white-space: nowrap; text-overflow: ellipsis; } .bk-mclosed { color: var(--muted); font-size: 11.5px; font-weight: 700; }
.bk-mkey { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 12px; color: var(--muted); font-size: 12px; } .bk-mkey i { display: inline-block; width: 12px; height: 10px; border-radius: 3px; }
@media (max-width: 1180px) { .bk-mlayout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .bk-mday { min-height: 58px; padding: 6px; } .bk-mval, .bk-mcount, .bk-mtop em { display: none; } .bk-mwd { padding-left: 2px; font-size: 10.5px; } }

/* numbers and chart */
.bk-main { padding: 0; overflow: hidden; }
.bk-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.bk-m { min-width: 0; padding: 14px 16px; border: 0; border-bottom: 3px solid transparent; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: background .2s; }
.bk-m:hover { background: var(--soft); } .bk-m[aria-pressed="true"] { border-bottom-color: var(--pick); }
.bk-m span { display: block; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-m b { display: block; margin-top: 4px; font-size: 24px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bk-m small { font-size: 12px; font-weight: 700; color: var(--muted); } .bk-m small em { font-style: normal; font-weight: 500; }
.bk-m small.up { color: #16a34a; } .bk-m small.down { color: #d33; }
.bk-chart { padding: 18px 18px 14px; }
.bk-bars { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; height: 270px; padding-top: 26px; }
.bk-full { position: absolute; left: 0; right: 0; top: 26px; border-top: 2px dashed color-mix(in srgb, var(--muted) 55%, transparent); pointer-events: none; }
.bk-full span { position: absolute; right: 0; top: -20px; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.bk-col { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; gap: 8px; padding: 0 4px 6px; border: 0; border-radius: 16px; background: none; font: inherit; color: inherit; cursor: pointer; transition: background .2s; }
.bk-col:not(:disabled):hover { background: var(--soft); } .bk-col[aria-pressed="true"] { background: var(--pick-soft); } .bk-col:disabled { cursor: default; }
.bk-stackw { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; width: 100%; height: 100%; }
.bk-tot { margin-bottom: 6px; font-size: 12.5px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; } .bk-col[aria-pressed="true"] .bk-tot { color: var(--pick-text); }
/* Like the Home chart (home.js): each person's part its own block, small corners, 2px apart. */
.bk-stack { display: flex; flex-direction: column-reverse; gap: 2px; width: 100%; max-width: 56px; min-height: 0; transform-origin: bottom; animation: bk-grow .55s var(--ease) both; animation-delay: calc(var(--i) * 40ms); }
.bk-stack i { display: block; width: 100%; min-height: 2px; border-radius: 3px; }
.bk-stack i:last-child { border-radius: 8px 8px 3px 3px; } /* the top part (column-reverse): a soft round top, as on Home */
.bk-stack i.light { opacity: .38; }
:root[data-theme="dark"] .bk-stack i.light, :root[data-theme="dark"] .bk-k i.light { opacity: .9; background-image: repeating-linear-gradient(135deg, rgba(12, 12, 16, .62) 0 3px, transparent 3px 6px); }
@keyframes bk-grow { from { transform: scaleY(0); } }
.bk-shut-l { margin-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 700; }
.bk-shut { display: block; width: 100%; max-width: 56px; height: 55%; border: 1.5px dashed var(--line); border-radius: 6px; }
.bk-dl { text-align: center; line-height: 1.2; } .bk-dl small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 600; } .bk-dl b { font-size: 15px; font-weight: 800; }
.bk-col[aria-pressed="true"] .bk-dl b { color: var(--pick-text); }
.bk-today { position: absolute; top: -24px; left: 50%; transform: translateX(-50%); padding: 1px 8px; border-radius: 99px; background: var(--pick); color: var(--pick-ink); font-size: 10px; font-weight: 800; }
.bk-key { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin-top: 12px; color: var(--muted); font-size: 12px; font-weight: 600; }
.bk-who { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.bk-who button { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px 0 10px; border: 0; border-radius: 99px; background: var(--soft); font: 700 12px/1 var(--body); color: var(--ink); cursor: pointer; transition: opacity .2s; }
.bk-who i { width: 12px; height: 12px; border-radius: 4px; } .bk-who button[aria-pressed="false"] { opacity: .45; } .bk-who button[aria-pressed="false"] i { background: transparent !important; box-shadow: inset 0 0 0 2px var(--muted); }
.bk-k { display: inline-flex; align-items: center; gap: 6px; } .bk-k i { width: 12px; height: 10px; border-radius: 3px; background: var(--muted); }
.bk-k i.light { opacity: .38; } .bk-k i.dash { height: 0; width: 16px; border-top: 2px dashed var(--muted); border-radius: 0; background: none; }
.bk-hint { margin-left: auto; }
.bk-tip { position: fixed; z-index: 50; pointer-events: none; padding: 8px 11px; border-radius: 10px; background: #0d0d12; color: #fff; font-size: 12px; white-space: nowrap; transform: translate(-50%, -110%); opacity: 0; transition: opacity .12s; }
.bk-tip b { display: block; font-size: 14px; } .bk-tip span { display: block; opacity: .8; }

/* the day and the side panels */
.bk-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.bk-col-l, .bk-col-r { display: grid; gap: 16px; min-width: 0; }
.bk-panel { padding: 14px 18px 18px; min-width: 0; }
.bk-ph { display: flex; align-items: center; gap: 16px; margin: -2px 0 12px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.bk-ph > * { padding: 4px 0 11px; } .bk-ph .r { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 600; white-space: nowrap; } .bk-ph .r b { color: var(--ink); }
.bk-ph .tab { border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: pointer; }
.bk-ph .tab.on { color: var(--ink); border-bottom-color: var(--ink); }
.bk-empty { display: grid; gap: 2px; padding: 28px 20px; border-radius: 14px; background: var(--soft); text-align: center; } .bk-empty span { color: var(--muted); font-size: 13.5px; }
.bk-none { margin: 4px 0; color: var(--muted); font-size: 13.5px; }
.bk-foot { margin: 0; padding: 0 4px; color: var(--muted); font-size: 12px; }
.bk-past-sub { margin: 0 0 14px; }
.bk-past-days { display: grid; gap: 16px; }
.bk-more { margin-top: 16px; }
.bk-past .bk-foot { margin-top: 12px; }
.bk-past .bk-item.done .bk-card { opacity: 1; } /* every past booking is done: no fading here */

.bk-railw { container-type: inline-size; }
.bk-rail { position: relative; display: grid; gap: 8px; padding-left: 92px; }
.bk-rail::before { content: ""; position: absolute; left: 76px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--line); }
.bk-item { position: relative; animation: bk-rise .4s var(--ease) both; animation-delay: calc(var(--i) * 30ms); }
@keyframes bk-rise { from { opacity: 0; transform: translateY(6px); } }
.bk-at { position: absolute; left: -92px; top: 12px; width: 64px; text-align: right; font-size: 14px; font-weight: 800; white-space: nowrap; }
.bk-at small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 500; }
.bk-dot { position: absolute; left: -22px; top: 17px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 2.5px var(--edge); }
.bk-item.done .bk-dot { background: var(--edge); }
.bk-now { position: relative; display: flex; align-items: center; gap: 10px; height: 22px; }
.bk-now .bk-at { top: 2px; color: var(--bk-now); font-size: 12px; }
.bk-now::before { content: ""; position: absolute; left: -21px; width: 12px; height: 12px; border-radius: 50%; background: var(--bk-now); animation: bk-ping 1.8s ease-out infinite; }
.bk-now::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--bk-now), transparent); }
.bk-now b { padding: 1px 9px; border-radius: 99px; background: var(--bk-now); color: #fff; font-size: 11px; font-weight: 800; }
@keyframes bk-ping { 0% { box-shadow: 0 0 0 0 rgba(229, 72, 77, .45); } 70%, 100% { box-shadow: 0 0 0 8px rgba(229, 72, 77, 0); } }
.bk-card { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding: 12px 14px 12px 16px; border-radius: 14px; background: var(--soft); transition: box-shadow .2s; }
.bk-card::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--edge); }
.bk-item.done .bk-card { opacity: .6; } .bk-item.done .bk-card:hover { opacity: 1; }
.bk-card.is-next { background: var(--pick-soft); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--pick) 40%, transparent); }
.bk-card.is-now { background: var(--warn-bg); box-shadow: inset 0 0 0 1.5px #f5b04a; }
.bk-cav { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; color: #0d0d12; font-weight: 800; font-size: 12px; }
.bk-mid { flex: 1 1 200px; min-width: 0; }
.bk-mid h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; font-size: 14.5px; font-weight: 800; }
.bk-mid p { margin: 0; color: var(--muted); font-size: 13px; } .bk-tel { color: var(--ink); font-weight: 600; white-space: nowrap; text-decoration: none; }
.bk-note { display: flex; gap: 6px; align-items: flex-start; margin-top: 3px !important; color: var(--warn-ink) !important; font-size: 12.5px !important; } .bk-note .ico { width: 15px; height: 15px; margin-top: 2px; }
.bk-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 99px; font-size: 11px; font-weight: 700; }
.bk-tag.regular { background: var(--bk-ok-soft); color: var(--bk-ok); } .bk-tag.new { background: var(--pick-soft); color: var(--pick-text); }
.bk-cells { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; flex: 1 1 100%; padding-left: 50px; }
.bk-with { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; } .bk-with i { width: 8px; height: 8px; border-radius: 50%; background: var(--edge); }
.bk-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; background: var(--surface); color: var(--muted); font-size: 11px; font-weight: 800; white-space: nowrap; }
.bk-chip .ico { width: 12px; height: 12px; stroke-width: 2.8; }
.bk-chip.done { background: var(--bk-ok-soft); color: var(--bk-ok); } .bk-chip.next { background: var(--pick); color: var(--pick-ink); }
.bk-chip.now { background: var(--warn-bg); color: var(--warn-ink); } .bk-chip.now i { width: 6px; height: 6px; border-radius: 50%; background: #f59e0b; animation: bk-blink 1.6s ease-in-out infinite; }
.bk-chip.noshow { background: color-mix(in srgb, #d33 12%, var(--surface)); color: #c62828; }
@keyframes bk-blink { 50% { opacity: .3; } }
.bk-price { margin-left: auto; font-size: 15px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bk-acts { display: inline-flex; gap: 6px; }
.bk-mini { height: 36px; padding: 0 15px; border: 0; border-radius: 99px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--btn-line); font: 700 13.5px/1 var(--body); color: var(--ink); cursor: pointer; white-space: nowrap; } /* = .btn-ghost.btn-small */
.bk-mini:hover { background: var(--soft); }
.bk-item .compose { margin: 8px 0 4px; padding: 14px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
@container (min-width: 700px) {
  .bk-card { flex-wrap: nowrap; } .bk-cells { flex: none; flex-wrap: nowrap; gap: 14px; padding-left: 0; }
  .bk-with { width: 72px; } .bk-st { width: 140px; } .bk-price { width: 70px; margin-left: 0; text-align: right; } .bk-acts { justify-content: flex-end; min-width: 76px; }
}

.bk-nx { display: flex; align-items: center; gap: 12px; }
.bk-nx .bk-cav { width: 46px; height: 46px; font-size: 14px; }
.bk-nx b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.01em; } .bk-nx div span { color: var(--muted); font-size: 13px; }
.bk-in { margin-left: auto; padding: 4px 10px; border-radius: 99px; background: var(--pick-soft); color: var(--pick-text); font-size: 12px; font-weight: 800; white-space: nowrap; }
.bk-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.bk-stat { padding: 12px 14px; border-radius: 12px; background: var(--soft); }
.bk-stat span { display: block; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; } .bk-stat b { font-size: 22px; letter-spacing: -.02em; }
.bk-stat small { display: block; color: var(--muted); font-size: 12px; }
.bk-pbar { display: flex !important; height: 6px; margin-top: 8px; border-radius: 99px; background: var(--line); overflow: hidden; } .bk-pbar i { background: var(--bk-ok); border-radius: 99px; }

.bk-heat { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 8px; font-size: 11px; color: var(--muted); }
.bk-hrs { display: grid; } .bk-hrs span { padding-left: 1px; }
.bk-hn { display: flex; align-items: center; gap: 6px; overflow: hidden; color: var(--ink); font-size: 12px; font-weight: 700; white-space: nowrap; } .bk-hn i { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.bk-hcells { position: relative; display: grid; gap: 2px; }
.bk-hcells i { height: 24px; border-radius: 4px; background: var(--soft); }
.bk-hcells i.booked { background: var(--c); } .bk-hcells i.past { opacity: .4; }
.bk-hcells i.off { background: repeating-linear-gradient(135deg, var(--soft) 0 4px, transparent 4px 8px); box-shadow: inset 0 0 0 1px var(--line); }
.bk-hnow { position: absolute; top: -3px; bottom: -3px; width: 2px; border-radius: 2px; background: var(--bk-now); }
.bk-hkey { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 10px; color: var(--muted); font-size: 12px; }
.bk-hkey i { display: inline-block; width: 14px; height: 10px; border-radius: 3px; } .bk-hkey i + i, .bk-hkey i:not(:first-child) { margin-left: 8px; }
.bk-hkey i.booked { background: var(--pick); } .bk-hkey i.free { background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.bk-hkey i.off { background: repeating-linear-gradient(135deg, var(--soft) 0 3px, transparent 3px 6px); box-shadow: inset 0 0 0 1px var(--line); } .bk-hkey i.nowk { width: 2px; height: 12px; background: var(--bk-now); }
.bk-sum { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--soft); font-size: 13px; color: var(--muted); } .bk-sum b { color: var(--ink); }
.bk-closed { margin: 0; padding: 18px; border-radius: 12px; text-align: center; color: var(--muted); font-weight: 700; background: repeating-linear-gradient(135deg, var(--soft) 0 4px, transparent 4px 8px); box-shadow: inset 0 0 0 1px var(--line); }

.bk-cols { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.bk-li { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; margin-bottom: 3px; border-radius: 9px; }
.bk-li > * { position: relative; min-width: 0; }
.bk-bar { position: absolute !important; inset: 0 auto 0 0; border-radius: 9px; background: var(--pick-soft); }
.bk-nm { display: inline-flex; align-items: center; gap: 9px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; }
.bk-nm small { color: var(--muted); font-weight: 500; }
.bk-li b { flex: none; font-weight: 800; } .bk-li b small { margin-left: 8px; color: var(--muted); font-weight: 500; }

@media (prefers-reduced-motion: reduce) { .bk-stack, .bk-item, .bk-now::before, .bk-chip.now i { animation: none; } }
@media (max-width: 1180px) { .bk-grid { grid-template-columns: minmax(0, 1fr); } .bk-col-r { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } .bk-foot { grid-column: 1 / -1; } }
@media (max-width: 960px) { .bk-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .bk-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bk-m { padding: 12px 14px; } .bk-m b { font-size: 20px; }
  .bk-bars { gap: 4px; height: 220px; } .bk-tot { font-size: 10px; } .bk-hint { display: none; }
  .bk-rail { padding-left: 74px; } .bk-rail::before { left: 58px; } .bk-at { left: -74px; width: 50px; }
  .bk-col-r { grid-template-columns: minmax(0, 1fr); } .bk-panel { padding: 14px; }
}
