:root {
  /* Laundry UP back-office palette */
  --bg: #f4f8ff; --panel: #fff; --ink: #0a2247; --muted: #4a5b7a; --line: #dde8f6; --sky: #e7f2ff; --navy: #0a2247;
  --brand: #036ad5; --brand-hover: #0944b1; --brand-ink: #fff; --gold: #fdbe23; --gold-deep: #e88d06; --cyan: #14b8f0;
  --danger: #b42318; --warn: #8a5a00; --ok: #127a4b; --ok-soft: #e3f5ec; --danger-soft: #fdecea; --warn-soft: #fff7e0;
  --own: #036ad5; --own-bg: #dbeafe; --tw: #7c4dd8; --tw-bg: #ece3fb; --open: #e3f5ec; --off: #eef3fa; --hold: #fff7e0;
  --r: 16px; --shadow: 0 1px 2px rgb(10 34 71 / .04), 0 12px 32px -16px rgb(3 106 213 / .28);
  --font: ui-rounded, "Nunito", "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
h1 { font-size: 1.5rem; margin: 0 0 .25rem; letter-spacing: -.01em; }
h2 { font-size: 1.05rem; margin: 0 0 .6rem; }
p { margin: .3rem 0 .8rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.hp-wrap { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

.shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--panel); border-right: 1px solid var(--line); padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 4px 10px 16px; font-size: 1.25rem; color: var(--navy); letter-spacing: -.01em; }
.brand-pill { background: var(--sky); color: var(--brand); border-color: transparent; font-weight: 600; }
.side a.nav { display: flex; align-items: center; gap: 11px; padding: 8px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .93rem; }
.side a.nav:hover { background: var(--bg); }
.side a.nav[aria-current="page"] { background: var(--brand); color: var(--brand-ink); font-weight: 600; }
.side a.nav span:first-of-type { flex: 1; }
.ico { width: 18px; height: 18px; flex: none; opacity: .85; } .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; margin: 0 4px; }
.grp { margin-top: 12px; } .grp-h { margin: 0 0 3px; padding: 0 12px; font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.side .grow { flex: 1; } .who-me { padding: 8px 12px 0; overflow-wrap: anywhere; }
.badge { background: var(--danger); color: #fff; border-radius: 999px; font-size: .72rem; padding: 0 7px; min-width: 20px; text-align: center; }
main { padding: 28px clamp(14px, 3vw, 40px) 70px; min-width: 0; }
.head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.menu-btn { display: none; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 16px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.stat b { display: block; font-size: 1.35rem; line-height: 1.2; }
.pill { display: inline-block; font-size: .75rem; padding: 1px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-weight: 600; }
.pill.observe { color: var(--muted); } .pill.review { color: var(--warn); border-color: var(--warn); } .pill.auto { color: var(--ok); border-color: var(--ok); }
.ok { color: var(--ok); } .bad { color: var(--danger); } .warn { color: var(--warn); }

.btn { display: inline-flex; align-items: center; gap: 6px; background: var(--brand); color: var(--brand-ink); border: 1px solid var(--brand); border-radius: 12px; padding: 8px 16px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--navy); } .btn.gold:hover { background: #f0b013; border-color: #f0b013; }
.btn[disabled] { opacity: .55; cursor: default; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); } .btn.ghost:hover { border-color: var(--brand); color: var(--brand); background: #fff; }
.btn.danger { background: var(--danger); color: #fff; }
.btn.sm { padding: 3px 10px; font-size: .85rem; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }
form.inline { display: inline; }
label { display: block; font-weight: 600; font-size: .88rem; margin: 10px 0 3px; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=tel], input[type=time], input[type=search], input[type=url], select, textarea {
  width: 100%; max-width: 440px; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); font: inherit;
}
input:not([type]):focus, input[type=text]:focus, input[type=email]:focus, input[type=password]:focus, input[type=number]:focus, input[type=date]:focus, input[type=tel]:focus, input[type=time]:focus, select:focus, textarea:focus { outline: 2px solid var(--brand, #036ad5); outline-offset: 1px; }
.row-f input:not([type]), .row-f input[type=text], .row-f input[type=tel], .row-f input[type=number], .row-f input[type=date], .row-f input[type=time], .row-f input[type=password], .row-f select { width: auto; min-width: 7em; }
.row { display: flex; flex-wrap: wrap; gap: 14px; }
.row > div { flex: 1 1 200px; }
.notice { border-left: 4px solid var(--warn); background: var(--hold); padding: 10px 14px; border-radius: 6px; margin: 0 0 14px; }
.notice.bad { border-color: var(--danger); } .notice.good { border-color: var(--ok); background: var(--open); }

table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.scroll { overflow-x: auto; }

/* calendar */
.daynav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 6px 0 14px; font-size: .82rem; color: var(--muted); }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 5px; border: 1px solid var(--line); }
.cal { display: grid; grid-template-columns: 48px repeat(var(--cols), minmax(120px, 1fr)); min-width: min-content; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cal .h { padding: 8px 6px; text-align: center; font-weight: 600; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); font-size: .9rem; }
.cal .h small { display: block; font-weight: 400; color: var(--muted); }
.cal .time { position: relative; height: var(--h); }
.cal .time span { position: absolute; right: 6px; transform: translateY(-50%); font-size: .72rem; color: var(--muted); }
.cal .col { position: relative; height: var(--h); border-left: 1px solid var(--line); background: var(--off); background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--hour) - 1px), var(--line) calc(var(--hour) - 1px), var(--line) var(--hour)); }
.cal .z { position: absolute; left: 0; right: 0; }
.z.rota { background: var(--panel); }
.z.open { background: var(--open); border-left: 4px solid var(--ok); }
.z.hold { background: var(--hold); }
.ev { position: absolute; left: 6px; right: 4px; border-radius: 6px; padding: 2px 6px; font-size: .78rem; overflow: hidden; line-height: 1.25; border-left: 4px solid; }
.ev b { display: block; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.ev.own { background: var(--own-bg); border-color: var(--own); color: var(--ink); }
.ev.tw { background: var(--tw-bg); border-color: var(--tw); color: var(--ink); }
.ev.bad { outline: 2px solid var(--danger); }
.cal .now { position: absolute; left: 0; right: 0; height: 2px; background: var(--danger); z-index: 3; }

.login { max-width: 400px; margin: 10vh auto; padding: 0 16px; }
.login .card { padding: 24px; }

/* Phones and small tablets: the same vertical panel, down the left side, slides in over the page from a Menu button */
.topbar, .backdrop { display: none; } .nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .topbar { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 30; background: var(--panel); border-bottom: 1px solid var(--line); padding: 8px 14px; color: var(--navy); }
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; cursor: pointer; background: #fff; color: var(--ink); }
  .menu-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }
  .side { position: fixed; z-index: 50; top: 0; bottom: 0; left: 0; width: min(84vw, 310px); height: 100dvh; transform: translateX(-105%); transition: transform .22s ease; box-shadow: none; overflow-y: auto; }
  .nav-toggle:checked ~ .shell .side { transform: none; box-shadow: 0 0 40px rgb(10 34 71 / .35); }
  .nav-toggle:checked ~ .backdrop { display: block; position: fixed; inset: 0; z-index: 40; background: rgb(10 34 71 / .45); }
  .nav-toggle:focus-visible ~ .topbar .menu-btn { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); }
  .side a.nav { padding: 11px 12px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
}
@media print { .side, .topbar, .backdrop, .no-print, .pacts, .pnav, .pills { display: none !important; } .shell { display: block; } main { padding: 0; } .card { box-shadow: none; border: 0; } body { background: #fff; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---- dashboard components (Laundry UP look) ---- */
.phead { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.phead h1 { font-size: 1.75rem; letter-spacing: -.02em; color: var(--navy); margin: 0; } .phead p { margin: 2px 0 0; }
.pacts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; text-decoration: none; color: inherit; box-shadow: var(--shadow); }
a.kpi:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.k-label { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); } .k-value { display: block; font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.25; color: var(--navy); }
.k-detail { display: block; font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .k-detail.wrap { white-space: normal; }
.kpi.warn { background: var(--warn-soft); border-color: #f1d98a; } .kpi.good .k-value { color: var(--ok); }
.chip { display: inline-block; font-size: .74rem; font-weight: 600; padding: 1px 9px; border-radius: 999px; background: color-mix(in srgb, var(--c) 14%, #fff); color: color-mix(in srgb, var(--c) 78%, #000); border: 1px solid color-mix(in srgb, var(--c) 30%, #fff); white-space: nowrap; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; } .pill-link { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .88rem; }
.pill-link i { width: 9px; height: 9px; border-radius: 50%; } .pill-link:hover { border-color: var(--brand); } .pill-link.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.pnav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .pnav b { min-width: 9.5rem; text-align: center; color: var(--navy); }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.salons { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 16px; }
.salon { border-top: 4px solid var(--c); margin: 0; } .s-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; } .s-head h2 { margin: 0 0 4px; font-size: 1.2rem; } .s-head h2 a { color: var(--navy); text-decoration: none; }
.s-big { display: flex; align-items: baseline; gap: 10px; margin: 8px 0 4px; } .s-big b { font-size: 2rem; letter-spacing: -.02em; color: var(--navy); font-variant-numeric: tabular-nums; } .s-big span { color: var(--muted); font-size: .85rem; }
.s-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 8px 0; } .s-stats div { background: var(--bg); border-radius: 10px; padding: 6px 10px; } .s-stats b { display: block; font-variant-numeric: tabular-nums; } .s-stats span { font-size: .72rem; color: var(--muted); }
.salon h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 12px 0 6px; }
.s-links { margin: 12px 0 0; font-size: .85rem; } .spark { width: 100%; height: 38px; display: block; }
.team { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; } .team li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .88rem; }
.team i, .who i { width: 30px; height: 30px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-size: .72rem; font-style: normal; font-weight: 700; flex: none; } .team small { display: block; font-weight: 400; color: var(--muted); font-size: .74rem; }
.team.big { flex-direction: column; flex-wrap: nowrap; gap: 10px; }
.who { display: flex; align-items: center; gap: 10px; } .who small { display: block; color: var(--muted); text-transform: capitalize; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; } .two > .card { margin-bottom: 16px; }
.chart { width: 100%; height: auto; display: block; } .chart text { font-size: 11px; fill: var(--muted); } .chart .axis { stroke: var(--line); }
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; } .hbars li { display: grid; grid-template-columns: minmax(90px, 32%) 1fr auto; gap: 10px; align-items: center; font-size: .88rem; }
.hb-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .hb-t { background: var(--bg); border-radius: 999px; height: 12px; overflow: hidden; } .hb-t i { display: block; height: 100%; border-radius: 999px; } .hb-v { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 4.5rem; text-align: right; }
.donut-wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; } .donut { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; position: relative; flex: none; } .donut::before { content: ''; position: absolute; inset: 24px; background: #fff; border-radius: 50%; } .donut span { position: relative; font-weight: 700; color: var(--navy); }
.legend2 { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; flex: 1; min-width: 200px; } .legend2 li { display: grid; grid-template-columns: 12px 1fr auto auto; gap: 8px; align-items: center; font-size: .86rem; } .legend2 i { width: 12px; height: 12px; border-radius: 3px; } .legend2 em { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 4.5rem; text-align: right; }
table.data { font-size: .9rem; } table.data th { background: var(--bg); white-space: nowrap; } table.data td, table.data th { padding: 9px 12px; vertical-align: middle; } .num { text-align: right; font-variant-numeric: tabular-nums; } table.data tr.foot td { font-weight: 700; background: var(--bg); } .r { text-align: right; } .block { display: block; }
.grid-t td, .grid-t th { text-align: center; } .grid-t td:first-child, .grid-t th:first-child { text-align: left; position: sticky; left: 0; background: #fff; z-index: 1; } .grid-t th:first-child { background: var(--bg); } .grid-t td.today, .grid-t th.today { background: #fff9e6; }
.shift { display: block; margin: 2px 0; padding: 2px 8px; border-radius: 8px; background: color-mix(in srgb, var(--c) 13%, #fff); color: color-mix(in srgb, var(--c) 75%, #000); font-size: .78rem; font-weight: 600; white-space: nowrap; } .off { color: #b8c4d6; }
.hrs { display: block; font-weight: 700; } .hrs small { display: block; font-weight: 400; color: var(--muted); font-size: .7rem; }
.pill.ok-p { background: var(--ok-soft); color: var(--ok); border-color: transparent; } .pill.bad-p { background: var(--danger-soft); color: var(--danger); border-color: transparent; } .pill.warn-p { background: var(--warn-soft); color: var(--warn); border-color: transparent; } .pill.info-p { background: var(--sky); color: var(--brand); border-color: transparent; }
.attn { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; } .attn li { font-size: .92rem; } .empty { color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; padding: 18px; text-align: center; margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; margin: 0 0 16px; } .filters label { margin: 0; } .filters input { max-width: 260px; } .pager { text-align: center; margin: 14px 0 0; }
input.rate { width: 110px; } .plain { list-style: none; margin: 0 0 8px; padding: 0; }
.invoice { max-width: 760px; } .inv-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; } .inv-top h2 { font-size: 1.4rem; margin: 0; } .inv-ref { text-align: right; } .inv-ref b { display: block; font-size: 1.05rem; } .inv-ref span { color: var(--muted); }
.meter { background: var(--bg); border-radius: 999px; height: 12px; overflow: hidden; margin: 10px 0 16px; } .meter i { display: block; height: 100%; background: var(--brand); border-radius: 999px; transition: width .4s; }

.nw { white-space: nowrap; } .s-trend { margin: 0 0 0; text-align: right; font-size: .7rem; }

/* ---- growth pages ---- */
.grow { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 16px; }
.grow-card { display: block; text-decoration: none; color: var(--navy); background: linear-gradient(135deg, #fff7e0, #fff); border: 1px solid #f1d98a; border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); }
.grow-card:hover { border-color: var(--gold-deep); } .grow-card b { display: block; font-size: 1.6rem; letter-spacing: -.02em; } .grow-card span { font-size: .82rem; color: var(--muted); }
.heat { display: grid; grid-template-columns: 38px repeat(var(--cols), 1fr); gap: 3px; align-items: center; } .heat b { font-size: .68rem; font-weight: 600; color: var(--muted); text-align: center; } .heat .hd { font-size: .75rem; font-weight: 600; color: var(--muted); }
.heat i { display: block; height: 24px; border-radius: 5px; background: color-mix(in srgb, var(--c) calc(var(--u) * 100%), #eef3fa); } .heat i.na { background: repeating-linear-gradient(45deg, #f4f8ff, #f4f8ff 4px, #e8eef8 4px, #e8eef8 8px); }
.svc { display: inline-block; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 1px 10px; font-size: .78rem; margin: 2px 2px 2px 0; } .svc small { color: var(--muted); }
.tags { line-height: 2.1; } .dayh { font-size: .95rem; margin: 16px 0 6px; color: var(--navy); }
.ideas { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; } .ideas li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; background: var(--bg); border-radius: 12px; }
.ideas small { display: block; color: var(--muted); } .gain { font-weight: 700; color: var(--ok); white-space: nowrap; }

/* ---- everything on the dashboard leads somewhere ---- */
a.kpi { position: relative; } a.kpi::after { content: '›'; position: absolute; right: 14px; top: 8px; font-size: 1.4rem; line-height: 1; color: var(--muted); } a.kpi:hover::after { color: var(--brand); } a.kpi:hover { transform: translateY(-1px); }
a.chip { text-decoration: none; } a.chip:hover { filter: brightness(.94); text-decoration: underline; }
.hb-row { display: contents; color: inherit; text-decoration: none; } .hbars li:hover .hb-l { color: var(--brand); text-decoration: underline; } .hbars li:has(.hb-row) { cursor: pointer; }
a.s-big { text-decoration: none; color: inherit; } a.s-big:hover b { color: var(--brand); }
.s-stats a { display: block; background: var(--bg); border-radius: 10px; padding: 6px 10px; text-decoration: none; color: inherit; } .s-stats a:hover { outline: 2px solid color-mix(in srgb, var(--c) 45%, transparent); } .s-stats a b { display: block; font-variant-numeric: tabular-nums; } .s-stats a span { font-size: .72rem; color: var(--muted); }
a.spark-link { display: block; } a.spark-link:hover .spark { opacity: .75; }
.team a.tm { display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; } .team a.tm:hover span { color: var(--brand); }

/* ---- the day calendar, the shift editor and the right-click menu ---- */
a.shift.edit-target { text-decoration: none; cursor: pointer; position: relative; } a.shift:hover { filter: brightness(.93); outline: 2px solid color-mix(in srgb, var(--c) 40%, transparent); }
a.shift.edited, .cal-shift.edited { border: 1px dashed var(--gold-deep); background: #fff7e0; color: #6b4a00; } a.shift .pen { font-style: normal; margin-left: 4px; font-size: .8em; }
.cal-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; } .cal-top h2 { margin: 0; } .cal-top small { font-weight: 400; font-size: .8rem; }
.cal-card { border-top: 4px solid var(--c); } .cal-grid { display: grid; gap: 4px; } .cal-axis, .cal-row { display: grid; grid-template-columns: 130px 1fr; gap: 10px; align-items: center; }
.cal-axis > div { position: relative; height: 16px; } .cal-axis b { position: absolute; transform: translateX(-50%); font-size: .7rem; font-weight: 600; color: var(--muted); }
.cal-name { font-weight: 600; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cal-name small { display: block; font-weight: 400; color: var(--gold-deep); font-size: .7rem; white-space: normal; }
.cal-row { padding: 3px 0; border-radius: 8px; } .cal-row:hover { background: var(--bg); }
.cal-line { position: relative; height: 34px; background: repeating-linear-gradient(90deg, transparent 0, transparent calc(100% / var(--n, 1) - 1px), transparent 0); border-radius: 8px; background-color: #f6f9fe; }
.cal-line u { position: absolute; top: 0; bottom: 0; width: 1px; background: #e3ebf7; }
.cal-shift { position: absolute; top: 3px; bottom: 3px; padding-bottom: 8px; border-radius: 8px; background: color-mix(in srgb, var(--c) 18%, #fff); border: 1px solid color-mix(in srgb, var(--c) 45%, #fff); color: color-mix(in srgb, var(--c) 70%, #000); font-size: .74rem; font-weight: 600; display: flex; align-items: center; padding: 0 8px; text-decoration: none; overflow: hidden; white-space: nowrap; } .cal-shift:hover { outline: 2px solid color-mix(in srgb, var(--c) 45%, transparent); }
.cal-bk { position: absolute; bottom: 6px; height: 6px; border-radius: 3px; background: var(--navy); opacity: .85; pointer-events: none; }
.cal-empty .empty { margin: 8px 0; } .legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .8rem; color: var(--muted); margin: 0 0 14px; } .legend .lg { display: inline-block; width: 22px; height: 12px; border-radius: 4px; vertical-align: -2px; margin-right: 5px; } .lg.shiftc { background: #d7e7fb; border: 1px solid #9fc2ee; } .lg.bk { background: var(--navy); } .lg.ed { background: #fff7e0; border: 1px dashed var(--gold-deep); }
.shifts select, .shifts input { max-width: 220px; } .sr { position: absolute; left: -9999px; } label.check { display: flex; gap: 8px; align-items: center; font-weight: 500; margin: 12px 0; } label.check input { width: auto; } .warnbox { background: var(--warn-soft); padding: 8px 10px; border-radius: 8px; }
.ctx { position: fixed; z-index: 90; min-width: 250px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 40px rgb(10 34 71 / .28); padding: 6px; display: grid; }
.ctx-h { padding: 6px 10px; font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.ctx a, .ctx button { text-align: left; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; } .ctx a:hover, .ctx a:focus, .ctx button:hover, .ctx button:focus { background: var(--sky); outline: none; }
@media (max-width: 700px) { .cal-axis, .cal-row { grid-template-columns: 84px 1fr; } .cal-shift span { font-size: .66rem; } }

/* ---- Treatwell booking requests ---- */
.reqform { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 14px; align-items: end; } .reqform label { margin: 0; } .reqform input, .reqform select { max-width: none; width: 100%; } .reqform .btn { height: 40px; justify-content: center; }
pre.json { background: #0a2247; color: #d7e7fb; border-radius: 12px; padding: 12px 14px; font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-x: auto; white-space: pre-wrap; word-break: break-word; margin: 8px 0 0; }
.answer { font-size: 1.05rem; font-weight: 600; color: var(--navy); margin: 4px 0 8px; } .blockline { background: var(--warn-soft); padding: 6px 10px; border-radius: 8px; }

/* salon admin tools */
.row-f { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 10px; } .row-f label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--muted); font-weight: 600; }
.grp-f { border: 1px solid var(--line); border-radius: 12px; margin: 0 0 12px; padding: 8px 14px 12px; } .grp-f legend { padding: 0 6px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 6px 14px; }
.chk { display: flex; align-items: center; gap: 8px; padding: 6px 4px; min-height: 36px; cursor: pointer; } .chk input { width: 20px; height: 20px; }
a.tool { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; margin: 0; } a.tool:hover { border-color: var(--brand); }
select { font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }

/* website settings */
.fl { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: 12px; flex: 1 1 220px; } .fl input, .fl textarea { font: inherit; font-weight: 400; color: var(--ink); padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; width: 100%; } .fl small { font-weight: 400; }
.plain { list-style: none; padding: 0; margin: 0; } .plain li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; } .swatch { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; } .swatch i { width: 22px; height: 22px; border-radius: 50%; display: inline-block; }
.req.new { border-left: 5px solid var(--warn); } .req-h { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; } .quote { background: var(--bg); border-radius: 10px; padding: 8px 12px; } .svc.new { background: var(--warn-soft); border-color: #f1d98a; }
.svc-g { border: 1px solid var(--line); border-radius: 12px; margin: 0 0 10px; padding: 6px 12px; background: #fff; } .svc-g summary { cursor: pointer; padding: 8px 0; }
.designs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; margin-bottom: 14px; } .design { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; } .design:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 30%, transparent); } .dots { display: flex; gap: 6px; } .dots i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); display: inline-block; }

/* week planner */
.sheet { min-width: 940px; } .sheet td.past span { white-space: nowrap; } .sheet th.who, .sheet td.who { position: sticky; left: 0; background: #fff; z-index: 1; }
.sheet .who { display: table-cell; min-width: 150px; text-align: left; } .sheet th.who { display: flex; align-items: center; gap: 8px; } .sheet th.who span { display: flex; flex-direction: column; } .sheet th.who small { font-weight: 400; }
.sheet th.who i, .dotc { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; }
.sheet thead th.who { display: table-cell; } .sheet td { padding: 4px; } .sheet td.today, .sheet th.today { background: #f2f7ff; } .sheet td.past { color: var(--muted); font-size: .82rem; background: #fafafa; }
.cell { width: 100%; min-width: 104px; padding: 6px 7px; font: inherit; font-size: .88rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.cell.ed { border-left: 4px solid var(--brand); } .cell.fl { background: #e8f7ee; border-color: #6cc48c; } .cell.bad { border-color: #d33; background: #fdeeee; } .cell:focus { outline: 2px solid var(--brand); }
.sticky-save { position: sticky; bottom: 0; background: linear-gradient(transparent, #fff 30%); padding: 14px 0 4px; margin: 0; } .fillbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.howto { margin: 0 0 14px; } .howto code { background: var(--bg); padding: 1px 6px; border-radius: 6px; } .hrs { white-space: nowrap; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; } .steps li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
/* where a booking came from */
.svc .srcname { font-weight: 700; color: var(--navy); } .svc.src-treatwell { background: #fff4e0; border-color: #f1d98a; } .svc.src-walkin { background: #e8f6ee; border-color: #b9e0c9; } .svc.src-phone { background: #eaf0fb; border-color: #c4d4f2; } .svc.src-online { background: #f1ebfb; border-color: #d7c8f1; }
.cal-bk.s-treatwell { background: #e88d06; } .cal-bk.s-walkin { background: #1c9a5c; } .cal-bk.s-phone { background: #036ad5; } .cal-bk.s-online { background: #7c4dd8; }
.cal-bks { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0 6px 0; } .cal-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: .78rem; color: var(--muted); margin: 6px 0; } .cal-legend i { display: inline-block; width: 10px; height: 6px; border-radius: 3px; margin-right: 4px; background: var(--navy); }

/* "Needs your attention": one line per thing, a colour stripe for how urgent, one button to fix it */
.attn .badge { margin-left: 6px; }
.attn-l { list-style: none; margin: 0; padding: 0; }
.attn-l li { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 12px; margin: 6px 0; border-radius: 10px; background: var(--hold); border-left: 4px solid var(--warn); }
.attn-l li.bad { background: var(--danger-soft); border-left-color: var(--danger); }
.attn-l li.info { background: var(--sky); border-left-color: var(--brand); }
.attn-t { min-width: 0; overflow-wrap: anywhere; }
.attn .good { color: var(--ok); margin: 4px 0 0; }
@media (max-width: 560px) { .attn-l li { flex-direction: column; align-items: flex-start; } }

/* ===== The diary (store admin home): built for a 24-inch desktop, works on a laptop ===== */
main.wide { padding: 12px 18px 18px; }
.dy-attn { margin: 0 0 10px; }
.dy-bar { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: 0 0 10px; }
.dy-nav { display: flex; gap: 6px; } .dy-nav .btn { min-width: 44px; }
.dy-title h1 { margin: 0; font-size: 1.45rem; line-height: 1.15; } .dy-title p { margin: 2px 0 0; }
.dy-pick { display: flex; gap: 6px; align-items: center; } .dy-pick input { max-width: 160px; }
.dy-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.dy-chip { display: inline-flex; gap: 6px; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: .82rem; text-decoration: none; color: var(--ink); border: 1px solid transparent; }
.dy-chip b { background: rgb(255 255 255 / .7); border-radius: 999px; padding: 0 7px; }
.dy-chip.off { opacity: .45; text-decoration: line-through; }
.dy-tools { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dy-upd { white-space: nowrap; }
.s-embellish { background: #dbe7fb; border-color: #4f7fd8; } .s-online { background: #d9f3e4; border-color: #1f9d57; } .s-phone { background: #fff1cc; border-color: #e0a100; }
.s-walkin { background: #ffe5d0; border-color: #e07a1f; } .s-treatwell { background: #ece3fb; border-color: #7c4dd8; }
.dy { display: flex; gap: 12px; align-items: flex-start; }
.dy-main { flex: 1; min-width: 0; }
.dy-wrap { height: calc(100vh - 158px); min-height: 440px; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; position: relative; scroll-behavior: auto; }
.dy-grid { min-width: calc(60px + var(--cols) * 150px); }
.dy-head, .dy-body { display: grid; grid-template-columns: 60px repeat(var(--cols), minmax(150px, 1fr)); }
.dy-head { position: sticky; top: 0; z-index: 7; background: #fff; border-bottom: 2px solid var(--line); }
.dy-corner { position: sticky; left: 0; background: #fff; z-index: 8; }
.dy-h { text-align: center; padding: 7px 6px 6px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 1px; }
.dy-h b { font-size: .98rem; } .dy-h small { color: var(--muted); font-size: .78rem; }
.dy-meter { font-size: .72rem; color: var(--muted); }
.dy-body { position: relative; }
.dy-times { position: sticky; left: 0; z-index: 4; background: #fff; border-right: 1px solid var(--line); }
.dy-t { position: absolute; right: 6px; transform: translateY(-8px); font-size: .76rem; color: var(--ink); font-weight: 700; } .dy-t.half { color: var(--muted); font-weight: 500; font-size: .7rem; }
.dy-col { position: relative; border-left: 1px solid var(--line); }
.dy-slot { display: block; height: 12px; border-top: 0; position: relative; z-index: 1; }
.dy-slot.q { border-top: 1px dotted rgb(10 34 71 / .10); } .dy-slot.hour { border-top: 1px solid rgb(10 34 71 / .20); }
.dy-slot:hover { background: rgb(3 106 213 / .13); } .dy-slot:hover::after { content: attr(title); position: absolute; left: 6px; top: 3px; font-size: .72rem; color: var(--brand); white-space: nowrap; font-weight: 700; }
.dy-off { position: absolute; left: 0; right: 0; z-index: 2; pointer-events: none; background: repeating-linear-gradient(135deg, #eceff4 0 7px, #e3e7ee 7px 14px); opacity: .92; }
.dy-off.none { background: repeating-linear-gradient(135deg, #e5e7eb 0 7px, #dcdfe5 7px 14px); }
.dy-a { position: absolute; z-index: 3; overflow: hidden; border-radius: 7px; padding: 3px 6px 3px 7px; border-left-width: 4px; border-left-style: solid; color: #10213f; text-decoration: none; font-size: .79rem; line-height: 1.22; box-shadow: 0 1px 2px rgb(10 34 71 / .18); }
.dy-a:hover { z-index: 4; box-shadow: 0 4px 14px rgb(10 34 71 / .28); } .dy-a.open { outline: 2px solid var(--brand); z-index: 4; }
.dy-a b { font-size: .75rem; } .dy-c { font-weight: 700; } .dy-s { display: block; color: #26385c; } .dy-s.inline { display: inline; color: #4a5b7a; } .dy-n { display: block; color: #b42318; font-size: .72rem; font-style: normal; }
.dy-now { position: absolute; left: 0; right: 0; height: 2px; background: #e5484d; z-index: 5; pointer-events: none; } .dy-now span { background: #e5484d; color: #fff; font-size: .68rem; padding: 0 5px; border-radius: 4px; display: inline-block; }
.dy-empty { padding: 60px 20px; text-align: center; background: #fff; border: 1px dashed var(--line); border-radius: 10px; }
.dy-panel { width: 372px; flex: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; max-height: calc(100vh - 158px); overflow: auto; position: sticky; top: 8px; box-shadow: var(--shadow); }
.dy-ph { position: relative; padding-right: 30px; } .dy-ph h2 { margin: 6px 0 0; font-size: 1.25rem; } .dy-ph p { margin: 2px 0 8px; }
.dy-x { position: absolute; right: 0; top: -4px; font-size: 1.7rem; line-height: 1; text-decoration: none; color: var(--muted); padding: 2px 8px; border-radius: 8px; } .dy-x:hover { background: var(--sky); }
.dy-chip.s-embellish, .dy-chip.s-online, .dy-chip.s-phone, .dy-chip.s-walkin, .dy-chip.s-treatwell { border: 1px solid; border-left-width: 4px; }
.dy-dl { display: grid; grid-template-columns: 90px 1fr; gap: 6px 10px; margin: 8px 0 14px; } .dy-dl dt { color: var(--muted); font-size: .85rem; } .dy-dl dd { margin: 0; } .dy-note { color: #b42318; }
.dy-act { display: flex; flex-wrap: wrap; gap: 8px; }
.dy-form { display: flex; flex-direction: column; gap: 10px; } .dy-form label { display: flex; flex-direction: column; gap: 3px; font-size: .85rem; color: var(--muted); } .dy-form input, .dy-form select { max-width: none; width: 100%; font-size: 1rem; }
.dy-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 1250px) { .dy { flex-direction: column; } .dy-panel { width: 100%; position: static; max-height: none; } .dy-wrap { height: 70vh; } .dy-tools { margin-left: 0; } }
@media (min-width: 1700px) { .dy-bar { margin-bottom: 14px; } .dy-a { font-size: .84rem; } .dy-grid { min-width: calc(60px + var(--cols) * 170px); } .dy-head, .dy-body { grid-template-columns: 60px repeat(var(--cols), minmax(170px, 1fr)); } }

/* diary polish */
.dy-form input, .dy-form select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); font: inherit; }
.dy-form input:focus, .dy-form select:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.dy-t:first-child { transform: none; }
.dy-now span { position: absolute; left: 62px; transform: translateY(-9px); }
.dy-bar { gap: 8px 14px; } .dy-chip { padding: 3px 9px; font-size: .78rem; } .dy-pick input { max-width: 140px; } .dy-title p { max-width: 340px; }

/* on a big screen the diary fills the window exactly: the page never scrolls, only the grid does */
@media (min-width: 1251px) and (min-height: 600px) {
  main.wide { height: 100vh; display: flex; flex-direction: column; overflow: hidden; padding-bottom: 12px; }
  main.wide > .dy { flex: 1 1 auto; min-height: 0; align-items: stretch; }
  main.wide .dy-main { display: flex; flex-direction: column; min-height: 0; }
  main.wide .dy-wrap { height: auto; flex: 1 1 auto; min-height: 0; }
  main.wide .dy-panel { max-height: 100%; align-self: flex-start; }
}

/* each person has a colour (chosen on the Staff list): a solid header, a faint tint down the column, tinted bookings; the source is a small tag */
.dy .dy-h { background: var(--c, #475569); border-top: 0; border-left-color: rgb(255 255 255 / .35); color: #fff; }
.dy .dy-h small, .dy .dy-h .dy-meter { color: rgb(255 255 255 / .88); }
.dy .dy-col { background: color-mix(in srgb, var(--c, #475569) 5%, #fff); }
.dy .dy-a { background: color-mix(in srgb, var(--c, #475569) 20%, #fff); border-left-color: var(--c, #475569); }
.dy .dy-a:hover { background: color-mix(in srgb, var(--c, #475569) 30%, #fff); }
.dy .dy-s { color: #1f2d4a; } .dy .dy-s.inline { color: #3b4a68; }
.dy-tag { font-style: normal; font-size: .64rem; font-weight: 700; padding: 0 6px; border-radius: 999px; border: 1px solid; text-transform: uppercase; letter-spacing: .02em; vertical-align: 1px; }
.sw-row { display: flex; flex-wrap: wrap; gap: 5px; }
.sw { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; background: var(--c); box-shadow: 0 0 0 1px rgb(10 34 71 / .25); cursor: pointer; padding: 0; }
.sw:hover { transform: scale(1.15); } .sw.on { box-shadow: 0 0 0 2px var(--ink); } .sw:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.sw-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--c); vertical-align: -1px; }

/* ===== the desk booking sheet: made for fingers (every control at least 52px) ===== */
.dy-panel.touch { width: 560px; padding: 14px 16px 0; }
@media (max-width: 1250px) { .dy-panel.touch { width: 100%; } }
.tb { display: flex; flex-direction: column; gap: 4px; }
.tb-s { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; } .tb-s legend { font-weight: 700; font-size: .95rem; padding: 0 0 6px; } .tb-s legend small { font-weight: 400; }
.tb-who, .tb-src { display: flex; flex-wrap: wrap; gap: 8px; }
.tb-chip, .tb-seg { position: relative; display: flex; } .tb-chip input, .tb-seg input { position: absolute; opacity: 0; inset: 0; }
.tb-chip span, .tb-seg span { display: inline-flex; align-items: center; min-height: 52px; padding: 0 18px; border-radius: 12px; border: 2px solid var(--line); background: #fff; font-weight: 600; font-size: 1rem; cursor: pointer; user-select: none; }
.tb-chip span { border-left: 8px solid var(--c); }
.tb-chip input:checked + span { background: color-mix(in srgb, var(--c) 18%, #fff); border-color: var(--c); }
.tb-seg input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.tb-chip input:focus-visible + span, .tb-seg input:focus-visible + span, .tb-tile:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.tb-time, .tb-total { display: flex; align-items: center; gap: 8px; }
.tb-time input { flex: 1; min-width: 0; min-height: 56px; font-size: 1.6rem; font-weight: 700; text-align: center; border: 2px solid var(--line); border-radius: 12px; }
.tb-step, .tb-tstep { min-width: 76px; min-height: 56px; border-radius: 12px; border: 2px solid var(--line); background: var(--sky); font-weight: 700; font-size: 1.05rem; cursor: pointer; color: var(--ink); } .tb-step:active, .tb-tstep:active, .tb-key:active { background: var(--brand); color: #fff; }
.tb-total output { flex: 1; text-align: center; font-size: 1.25rem; font-weight: 700; padding: 12px 4px; background: var(--bg); border-radius: 12px; }
.tb-tabs { display: none; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; } .tb-js .tb-tabs { display: flex; }
.tb-tab { min-height: 48px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--line); background: #fff; font-size: .95rem; cursor: pointer; color: var(--ink); } .tb-tab small { color: var(--muted); } .tb-tab.on { background: var(--navy); border-color: var(--navy); color: #fff; } .tb-tab.on small { color: #cfe0ff; }
.tb-grp { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 8px; max-height: 330px; overflow: auto; padding: 2px; }
.tb-grp[hidden] { display: none; } .tb-js .tb-grp { max-height: 300px; } html:not(.tb-js) .tb-grp { max-height: 220px; margin-bottom: 8px; }
.tb-tile { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 66px; padding: 8px 12px; border: 2px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; user-select: none; }
.tb-tile input { position: absolute; opacity: 0; inset: 0; } .tb-tile b { font-size: .92rem; line-height: 1.2; } .tb-tile small { color: var(--muted); }
.tb-tile:has(input:checked) { border-color: var(--brand); background: var(--own-bg); box-shadow: inset 0 0 0 1px var(--brand); } .tb-tile:has(input:checked) b::before { content: '✓ '; color: var(--brand); }
.tb-else { margin-top: 8px; } .tb-else summary { cursor: pointer; padding: 10px 0; color: var(--brand); font-weight: 600; } .tb-else input, .tb-s > input, .tb-note input { width: 100%; max-width: none; min-height: 52px; font-size: 1.05rem; border: 2px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.tb-s > input { margin-bottom: 8px; } .tb-note { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: .95rem; margin-bottom: 8px; } .tb-note input { font-weight: 400; }
.tb-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 8px; } .tb-keys[hidden] { display: none; }
.tb-key { min-height: 60px; font-size: 1.5rem; font-weight: 700; border-radius: 12px; border: 2px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); }
.tb-known { min-height: 1.4em; margin: 0 0 6px; } .tb-known.good { color: var(--ok); font-weight: 600; } .tb-known.bad { color: var(--danger); font-weight: 600; }
.tb-foot { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); margin: 0 -16px; padding: 8px 16px 10px; } .tb-foot p { margin: 4px 0; } .tb-summary { min-height: 1.3em; font-weight: 600; }
.tb-book, .tb-co { min-width: 210px; min-height: 60px; font-size: 1.25rem; } .tb-foot .btn.ghost { min-height: 60px; }

/* hide the menu: the content takes the whole screen */
.side-hide { float: right; border: 0; background: var(--sky); color: var(--ink); width: 34px; height: 34px; border-radius: 10px; font-size: 1.15rem; cursor: pointer; margin-left: 6px; } .side-hide:hover { background: var(--own-bg); }
.side-show { position: fixed; top: 10px; left: 10px; z-index: 40; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 1.4rem; cursor: pointer; box-shadow: var(--shadow); color: var(--ink); } .side-show[hidden] { display: none; }
@media (min-width: 901px) { html.side-off .shell { grid-template-columns: minmax(0, 1fr); } html.side-off .side { display: none; } html.side-off main { padding-left: 66px; } }
@media (max-width: 900px) { .side-hide, .side-show { display: none; } }

/* the new-booking window */
.dy-modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 2vh 2vw; }
.dy-backdrop { position: absolute; inset: 0; background: rgb(10 34 71 / .58); }
.dy-dialog { position: relative; background: #fff; border-radius: 18px; width: min(1560px, 97vw); max-height: 96vh; display: flex; flex-direction: column; box-shadow: 0 30px 80px rgb(10 34 71 / .5); overflow: hidden; }
.dy-dh { position: relative; padding: 14px 70px 8px 22px; border-bottom: 1px solid var(--line); } .dy-dh h2 { margin: 0; font-size: 1.5rem; } .dy-dh p { margin: 2px 0 0; } .dy-dh .dy-x { right: 14px; top: 10px; font-size: 2.2rem; padding: 0 14px; min-width: 56px; min-height: 56px; display: flex; align-items: center; justify-content: center; }
.dy-dialog .tb { min-height: 0; flex: 1; display: flex; flex-direction: column; gap: 0; }
.tb-grid { display: grid; grid-template-columns: minmax(360px, 450px) minmax(0, 1fr) minmax(250px, 310px); gap: 24px; overflow: auto; padding: 14px 22px 4px; flex: 1; min-height: 0; }
.tb-right .tb-grp { max-height: 52vh; } .tb-right .tb-grp { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.dy-dialog .tb-foot { margin: 0; padding: 10px 22px 12px; display: flex; align-items: center; gap: 18px; justify-content: space-between; border-top: 1px solid var(--line); } .dy-dialog .tb-foot p { margin: 0; } .dy-dialog .tb-summary { flex: 1; font-size: 1rem; }
@media (max-width: 1000px) { .tb-grid { grid-template-columns: 1fr; } .dy-dialog { width: 100vw; max-height: 100vh; border-radius: 0; } .dy-modal { padding: 0; } .dy-dialog .tb-foot { flex-direction: column; align-items: stretch; } }
.tb-cust { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 6px 16px; align-items: start; } .tb-cust legend { grid-column: 1 / -1; } .tb-cust .tb-cl { display: flex; flex-direction: column; gap: 8px; } .tb-cust .tb-cl input { margin: 0; } .tb-cust .tb-keys { margin: 0; }
.tb-cust .tb-key { min-height: 56px; }
@media (max-width: 1000px) { .tb-cust { grid-template-columns: 1fr; } }
.tb-cust .tb-cl input { width: 100%; max-width: none; min-height: 56px; font-size: 1.15rem; border: 2px solid var(--line); border-radius: 12px; padding: 8px 12px; background: #fff; color: var(--ink); font-family: inherit; }
.tb-cust .tb-known { margin: 0; }

/* ---- drag and drop in the diary ---- */
.dy-a[data-move] { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.dy-a.dragging { opacity: .45; cursor: grabbing; outline: 2px dashed var(--brand, #036ad5); }
body.dy-dragging { cursor: grabbing; user-select: none; }
.dy-ghost { position: absolute; left: 2px; right: 2px; z-index: 6; border: 2px dashed var(--brand, #036ad5); background: rgba(3, 106, 213, .14); border-radius: 6px; pointer-events: none; display: flex; align-items: flex-start; }
.dy-ghost::after { content: attr(data-t); font: 700 .75rem/1 system-ui, sans-serif; padding: 3px 5px; color: #034a96; }
.dy-a.paid { box-shadow: inset 4px 0 0 #1e9e5a; } .dy-a.noshow { opacity: .6; text-decoration: line-through; }
.dy-paid { color: #1e9e5a; font-style: normal; font-weight: 800; }
.dy-cancel summary { cursor: pointer; list-style: none; text-align: center; } .dy-cancel[open] summary { margin-bottom: 8px; }
.co-cancel .fl { margin-bottom: 8px; }
/* ---- checkout ---- */
.co .co-amt { font: inherit; font-size: 1.15rem; padding: 12px 10px; width: 9em; max-width: 100%; text-align: right; }
.co .co-ref { font: inherit; padding: 12px 10px; width: 100%; margin-top: 6px; } .co-mini { font: inherit; padding: 10px; margin-top: 6px; }
.co .co-fill { min-height: 44px; min-width: 9.5em; text-align: left; }
.co-total input { font-size: 1.4rem; font-weight: 700; padding: 12px; text-align: right; max-width: 12em; }
.co-rem { font: 800 1.4rem/1 system-ui, sans-serif; color: #b45309; } .co-rem.ok { color: #1e9e5a; } .co-rem.over { color: #c62828; }
.co-complete { min-height: 56px; min-width: 12em; font-size: 1.15rem; } .co-complete[disabled] { opacity: .45; cursor: not-allowed; }
.co-actions { margin: 16px 0; } .co-tip { border: 1px solid var(--line, #d9dee7); border-radius: 10px; padding: 8px 12px; margin-top: 12px; }
.co-tick { display: flex; flex-wrap: wrap; gap: 8px 18px; } .co-tick label { display: flex; gap: 8px; align-items: center; min-height: 40px; }
.co-quick { display: flex; gap: 8px; margin-bottom: 10px; } .co-quick .btn { min-width: 64px; min-height: 44px; }
.vcard { text-align: center; max-width: 460px; border: 3px double #8a6d3b; } .vc-val { font-size: 2.6rem; margin: 6px 0; } .vc-no { font: 800 1.5rem/1 ui-monospace, Menlo, monospace; letter-spacing: .08em; margin: 12px 0 4px; } .vc-salon { text-transform: uppercase; letter-spacing: .2em; font-size: .8rem; }
.ctl summary { cursor: pointer; padding: 6px 0; } .ctl-m { margin-bottom: 14px; }
@media print { .side, .topbar, .phead .btn, .side-show { display: none !important; } .vcard { border-color: #000; } }
.co-loy{border:1px solid var(--line,#d9dee7);border-radius:10px;padding:8px 12px;margin-top:12px}

/* the list of treatments added, beside the treatment tiles */
.tb-cart { align-self: start; position: sticky; top: 0; border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; background: #fff; }
.tb-cart h3 { margin: 0 0 8px; font-size: 1rem; } .tb-cr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tb-cn { font-weight: 600; line-height: 1.2; } .tb-cn small { color: var(--muted); font-weight: 400; }
.tb-cp { display: flex; align-items: center; gap: 2px; font-weight: 700; } .tb-cp input { width: 5.2em; min-height: 44px; font: inherit; font-size: 1.05rem; text-align: right; border: 2px solid var(--line); border-radius: 10px; padding: 4px 8px; }
.tb-cx { min-width: 44px; min-height: 44px; border: 0; border-radius: 10px; background: #f1f3f7; font-size: 1.3rem; cursor: pointer; }
.tb-ct { display: flex; justify-content: space-between; padding: 12px 0 4px; font-size: 1.25rem; }
@media (max-width: 1000px) { .tb-cart { position: static; } .tb-grid { grid-template-columns: 1fr; } }

.dy-a.moved { border-style: dashed; } .dy-mv { font-style: normal; font-weight: 800; color: #b45309; }

/* ---- checkout: everything on one screen ---- */
.co-cols { display: grid; gap: 12px; grid-template-columns: minmax(260px, 2fr) minmax(0, 3fr); align-items: start; }
.co-cols .card { margin-bottom: 0; padding: 12px 14px; } .co-cols h2 { margin: 0 0 6px; font-size: 1.05rem; } .co-cols h2 small { font-weight: 400; font-size: .78rem; }
.co-cols table.data td, .co-cols table.data th { padding: 5px 8px; } .co-cols .fl { margin-bottom: 6px; } .co-cols .muted.small, .co-cols p.small { margin: 4px 0; }
.co-pay { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.co-m { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 8px; align-items: center; padding: 6px; border: 2px solid var(--line, #d9dee7); border-radius: 12px; background: #fff; }
.co-m .co-x { grid-column: 1 / -1; } .co .co-m .co-amt { width: 100%; padding: 8px 10px; font-size: 1.05rem; } .co .co-m .co-fill { min-height: 40px; min-width: 0; width: 100%; }
.co .co-m .co-ref, .co .co-m .co-mini { margin-top: 0; padding: 6px 8px; width: 100%; font-size: .85rem; }
.co-remrow { display: flex; justify-content: space-between; align-items: center; margin: 8px 2px 0; font-size: 1.05rem; }
.co-payc .co-tip, .co-payc .co-loy { margin-top: 8px; padding: 4px 10px 6px; } .co-payc .co-tip legend, .co-payc .co-loy legend { font-size: .8rem; padding: 0 4px; }
.co-payc .co-tip .row-f { gap: 10px; align-items: end; } .co-payc .co-tip input, .co-payc .co-tip select { padding: 6px 8px; }
.co-left .co-actions { margin: 10px 0 0; } .co-complete { min-height: 52px; }
.co-total input { font-size: 1.6rem; padding: 8px 12px; max-width: none; width: 100%; }
@media (max-width: 900px) { .co-cols { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .co-pay { grid-template-columns: 1fr; } }

/* ---- the desk's new-booking sheet, redesigned: three clear steps, dark borders, every treatment on one screen ---- */
:root { --tb-line: #3b4863; }
.dy-dialog { height: 96vh; }
.dy-dialog .tb { min-height: 0; flex: 1; display: flex; flex-direction: column; }
.dy-dialog .tb-grid { display: grid; grid-template-columns: minmax(290px, 350px) minmax(0, 1fr) minmax(310px, 390px); gap: 14px; padding: 12px 18px; flex: 1; min-height: 0; overflow: hidden; }
.tb-col { border: 2px solid var(--tb-line); border-radius: 14px; padding: 12px 14px; background: #fff; min-height: 0; overflow: auto; }
.tb-c2 { display: flex; flex-direction: column; overflow: hidden; }
.tb-h { display: flex; align-items: baseline; gap: 8px; margin: 0 0 10px; font-size: 1.1rem; } .tb-h small { font-weight: 400; font-size: .8rem; }
.tb-h i { font-style: normal; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--navy, #0a2247); color: #fff; font-size: .85rem; font-weight: 700; flex: none; align-self: center; }
.tb .tb-col input:not([type=radio]):not([type=checkbox]), .tb .tb-col textarea, .tb .tb-col select { border: 2px solid var(--tb-line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; }
.tb-c1 > input, .tb-c1 .tb-staffcust select { width: 100%; max-width: none; min-height: 54px; font-size: 1.15rem; padding: 8px 12px; margin-bottom: 8px; }
.tb-c1 .tb-keys { margin: 0 0 6px; gap: 6px; } .tb-c1 .tb-key { min-height: 50px; font-size: 1.35rem; border: 2px solid var(--tb-line); }
.tb-known { margin: 0 0 8px; min-height: 1.3em; }
.tb-c1 { position: relative; } .tb-sugg { display: flex; flex-direction: column; gap: 6px; margin: 2px 0 0; position: absolute; left: 0; right: 0; z-index: 30; max-height: 240px; overflow: auto; padding: 6px; background: #fff; border: 2px solid var(--brand); border-radius: 12px; box-shadow: 0 10px 28px rgb(10 34 71 / .25); } .tb-sugg[hidden] { display: none; }
.tb-sug { text-align: left; min-height: 48px; padding: 6px 12px; border: 2px solid var(--tb-line); border-radius: 12px; background: #f3f7ff; font: inherit; cursor: pointer; color: var(--ink); } .tb-sug b { display: block; } .tb-sug small { color: var(--muted); } .tb-sug:hover, .tb-sug:focus-visible { background: var(--own-bg, #e6f0ff); border-color: var(--brand); }
.tb-ournote { margin-top: 6px; } .tb-ournote textarea, .tb-c3 .tb-note input { width: 100%; max-width: none; padding: 8px 12px; font-size: 1rem; line-height: 1.35; } .tb-ournote textarea { resize: vertical; min-height: 84px; background: #fffbea; }
.tb-note { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: .92rem; margin: 10px 0 0; } .tb-note small { font-weight: 400; }
.tb-c2 .tb-q { width: 100%; max-width: none; min-height: 50px; font-size: 1.05rem; padding: 6px 14px; margin-bottom: 8px; border: 2px solid var(--tb-line); border-radius: 12px; }
.tb-treat { display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 10px; flex: 1; min-height: 0; }
html:not(.tb-js) .tb-treat { display: block; overflow: auto; }
.tb-treat .tb-tabs { display: none; flex-direction: column; flex-wrap: nowrap; gap: 6px; margin: 0; overflow: auto; align-content: start; } .tb-js .tb-treat .tb-tabs { display: flex; }
.tb-treat .tb-tab { text-align: left; border-radius: 12px; border: 2px solid var(--tb-line); min-height: 46px; padding: 4px 12px; font-weight: 600; line-height: 1.15; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.tb-tiles { overflow: auto; min-height: 0; padding: 2px; }
.tb-tiles .tb-grp { max-height: none; overflow: visible; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; padding: 0; }
.tb-gh { display: none; margin: 4px 0 0; grid-column: 1 / -1; font-size: .9rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; } html:not(.tb-js) .tb-gh { display: block; }
.tb-searching .tb-gh { display: block; } .tb-tile[hidden] { display: none; }
.tb-tile { border: 2px solid var(--tb-line); min-height: 58px; padding: 6px 10px; } .tb-tile b { font-size: .9rem; }
.tb-tile:has(input:checked) { border-color: var(--brand); border-width: 3px; padding: 5px 9px; box-shadow: none; background: var(--own-bg, #e6f0ff); }
.tb-else { margin-top: 8px; } .tb-else input { width: 100%; max-width: none; min-height: 48px; padding: 6px 12px; }
.tb-c3 .tb-s { margin: 0 0 10px; } .tb-c3 .tb-s legend { padding-bottom: 4px; }
.tb-c3 .tb-chip span, .tb-c3 .tb-seg span { min-height: 52px; padding: 0 14px; border: 2px solid var(--tb-line); } .tb-c3 .tb-chip span { border-left: 8px solid var(--c); } .tb-c3 .tb-chip input:checked + span { border-color: var(--c); border-left-width: 8px; box-shadow: inset 0 0 0 1px var(--c); }
.tb-c3 .tb-seg input:checked + span { border-color: var(--brand); }
.tb-two { display: grid; grid-template-columns: 1fr; gap: 0; } .tb-two .tb-s { margin-bottom: 10px; }
.tb-c3 .tb-time input { min-height: 52px; font-size: 1.3rem; border: 2px solid var(--tb-line); } .tb-c3 .tb-step, .tb-c3 .tb-tstep { min-width: 50px; min-height: 52px; border: 2px solid var(--tb-line); padding: 0 6px; }
.tb-c3 .tb-total output { font-size: 1.05rem; padding: 10px 2px; border: 2px solid var(--tb-line); background: #fff; }
.tb-c3 .tb-cart { position: static; border: 2px solid var(--tb-line); margin: 0 0 4px; padding: 10px 12px; } .tb-c3 .tb-cp input { border: 2px solid var(--tb-line); } .tb-c3 .tb-cx { border: 2px solid var(--tb-line); background: #fff; }
.tb-c3 .tb-cr { padding: 6px 0; } .tb-ct { padding: 8px 0 2px; }
.dy-dialog .tb-foot { border-top: 2px solid var(--tb-line); }
.dy-ournote { margin: 12px 0; padding: 10px 12px; border: 2px solid var(--tb-line); border-radius: 12px; background: #fffbea; } .dy-ournote label { display: flex; flex-direction: column; gap: 4px; font-size: .92rem; } .dy-ournote textarea { width: 100%; font: inherit; padding: 8px 10px; border: 2px solid var(--tb-line); border-radius: 10px; margin-bottom: 8px; } .dy-ournote small { font-weight: 400; }
.dy-nt { font-style: normal; font-weight: 800; color: #8a5a00; }
@media (max-width: 1100px) { .dy-dialog .tb-grid { grid-template-columns: 1fr; overflow: auto; } .tb-col { overflow: visible; } .tb-c2 { overflow: visible; } .tb-treat { grid-template-columns: 1fr; } .tb-tiles { max-height: 60vh; } .tb-treat .tb-tabs { flex-direction: row; flex-wrap: wrap; } .dy-dialog .tb-foot { position: sticky; bottom: 0; background: #fff; } }

/* Add a treatment or group: boxed, with the salon ticks in a row */
.svc-add { border: 2px solid #3b4863; }
.svc-add > summary { cursor: pointer; padding: 4px 0; font-size: 1.02rem; }
.svc-add .salons { border: 2px solid #3b4863; border-radius: 10px; padding: 8px 12px; margin: 10px 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.svc-add .salons legend { font-weight: 700; padding: 0 6px; }
.svc-g td input[name^="n_"] { min-width: 14ch; }

/* Diary block, like the Embellish diary: "1:00 – 1:45 : name (mobile)", the treatment under it, the note under that. A short booking keeps it all on one line. */
.dy .dy-a { line-height: 1.22; }
.dy-a .dy-l1 { font-size: .8rem; font-weight: 800; color: #0f1f3d; }
.dy-a .dy-l1 .dy-c { font-weight: 800; }
.dy-a .dy-s { font-weight: 600; font-size: .8rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dy-a.short { white-space: nowrap; text-overflow: ellipsis; padding-top: 2px; padding-bottom: 2px; }
.dy-a.short .dy-l1, .dy-a.short .dy-s.inline { font-size: .74rem; display: inline; }
.dy-a .dy-n { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* a customer with a sensitive note (allergy, medical, take care): a red warning you cannot miss */
.dy-warn { font-style: normal; font-weight: 900; color: #fff; background: #d92d20; border-radius: 4px; padding: 0 4px; font-size: .72rem; margin-right: 2px; box-shadow: 0 0 0 1px #fff; }
.dy .dy-a.sens { border-left-color: #d92d20; box-shadow: inset 0 0 0 2px #d92d20; background: color-mix(in srgb, #d92d20 12%, #fff); }
.dy-ournote .chk { display: flex; gap: 8px; align-items: center; margin: 6px 0; font-size: .86rem; }
.tb-sug.sens b::before { content: "⚠ "; color: #d92d20; }
.tb-sug.emb small::after { content: " · from the Embellish diary: ask for the mobile"; }
.tb-find { width: 100%; font-weight: 600; }

/* End day */
.eod-pay th, .eod-staff th { text-align: left; font-weight: 600; } .eod-pay td input, .eod-staff td input { border: 2px solid #3b4863; border-radius: 8px; padding: 8px 10px; font-size: 1rem; min-height: 44px; }
.eod-staff td input[type=time] { width: 8.5rem; } .eod-hrs { font-variant-numeric: tabular-nums; white-space: nowrap; }
.eod .btn.lg { font-size: 1.1rem; padding: 12px 26px; } .row-f .grow { flex: 1 1 280px; } .row-f .grow input { width: 100%; }
/* the closing summary, laid out like the paper cover sheet that goes in the envelope */
.env-card { padding: 14px; } .env-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; } .env-bar h2 { margin: 0; }
.env { border: 2px solid #1f2937; border-radius: 4px; background: #fff; color: #111; margin-top: 10px; }
.env-top { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; padding: 8px 12px; background: #1f2937; color: #fff; } .env-top .env-salon { font-size: 1.15rem; flex: 1 1 14rem; } .env-top b { font-weight: 800; }
.env-body { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.3fr); } .env-t { border-collapse: collapse; width: 100%; font-size: .92rem; } .env-t th, .env-t td { border: 1px solid #1f2937; padding: 6px 9px; text-align: left; vertical-align: middle; }
.env-t thead th { background: #eef1f6; font-size: .8rem; } .env-t tfoot th, .env-t tfoot td { background: #f3f5f9; } .env-t td.num { text-align: right; font-variant-numeric: tabular-nums; } .env-t small { color: #5b6577; font-weight: 400; }
.env-notes { margin: 0; padding: 8px 12px; border-top: 1px solid #1f2937; min-height: 2.4rem; }
@media (max-width: 800px) { .env-body { grid-template-columns: 1fr; } }
@media print { .env-card { border: 0; padding: 0; } .env { border-width: 2px; } .env-body { grid-template-columns: 1fr 1.3fr; } }

/* Reports hub: what, then when */
.rp-h { display: flex; gap: 8px; align-items: center; font-size: 1.05rem; margin: 6px 0 10px; } .rp-h i { font-style: normal; background: var(--brand, #036ad5); color: #fff; border-radius: 50%; width: 24px; height: 24px; display: inline-grid; place-items: center; font-size: .85rem; }
.rp-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-bottom: 14px; }
.rp-kind { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 2px solid #3b4863; border-radius: 12px; text-decoration: none; color: inherit; background: #fff; min-height: 64px; }
.rp-kind small { color: #5b6577; } .rp-kind:hover { background: #f1f5fb; } .rp-kind.on { background: var(--brand, #036ad5); border-color: var(--brand, #036ad5); color: #fff; } .rp-kind.on small { color: #e8f1ff; }
.rp-title { margin: 16px 0 8px; } .rp-title small { font-weight: 400; font-size: .9rem; }

.svc-ga { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 6px 0 10px; } .svc-ga input { min-width: 14ch; } .svc-rm { display: inline-flex; gap: 6px; align-items: center; padding: 4px 8px; border: 1px solid var(--line, #d9dee7); border-radius: 8px; }
.svc-g td input[name^="g_"] { min-width: 12ch; }

/* Consent forms: the tablet screen is big and plain */
.cf { max-width: 860px; margin: 0 auto; } .cf-h h1 { margin: 0 0 4px; font-size: 1.7rem; } .cf-sec { border: 2px solid #3b4863; border-radius: 14px; padding: 14px 16px; margin: 14px 0; background: #fff; } .cf-sec h2 { margin: 0 0 10px; font-size: 1.15rem; }
.cf-q { padding: 10px 0; border-top: 1px solid var(--line, #d9dee7); } .cf-q:first-of-type { border-top: 0; } .cf-qt { margin: 0 0 8px; font-weight: 600; font-size: 1.05rem; }
.cf-opts { display: flex; flex-wrap: wrap; gap: 10px; } .cf-opt { position: relative; } .cf-opt input { position: absolute; opacity: 0; inset: 0; } .cf-opt span { display: inline-flex; align-items: center; justify-content: center; min-width: 96px; min-height: 52px; padding: 8px 20px; border: 2px solid #3b4863; border-radius: 12px; font-size: 1.05rem; font-weight: 600; background: #fff; cursor: pointer; }
.cf-opt input:checked + span { background: var(--brand, #036ad5); color: #fff; border-color: var(--brand, #036ad5); } .cf-opt input:focus-visible + span { outline: 3px solid #f59e0b; }
.cf textarea, .cf input[type=text], .cf input[type=tel], .cf input[type=email], .cf input:not([type]) { width: 100%; font-size: 1.05rem; padding: 12px; border: 2px solid #3b4863; border-radius: 10px; min-height: 52px; }
.cf-agree { display: flex; gap: 12px; align-items: center; font-size: 1.1rem; margin: 10px 0; } .cf-agree input { width: 28px; height: 28px; }
.cf-sig canvas { width: 100%; max-width: 640px; height: 200px; border: 2px dashed #3b4863; border-radius: 12px; background: #fff; touch-action: none; display: block; } .cf-go .btn { width: 100%; font-size: 1.2rem; padding: 16px; } .cf-em { display: block; margin-top: 10px; }
.cf-view table td:first-child { width: 60%; } .cf-sigimg { max-width: 320px; border-bottom: 1px solid #111; } .dy-consent { margin: 10px 0; padding: 8px 10px; border: 2px solid #3b4863; border-radius: 10px; } .dy-consent p { margin: 6px 0; }
.dy-cf { font-style: normal; font-weight: 800; color: #b45309; } .cf-sec .cf-opt span { user-select: none; }

.grp-h small { text-transform: none; font-weight: 500; opacity: .75; } .grp-h .grp-link { color: inherit; text-decoration: none; } .grp-h .grp-link:hover { text-decoration: underline; }

.eod input[name=float] { width: 9rem; } .cf label { display: block; margin-top: 8px; font-weight: 600; } .cf .cf-opt, .cf .cf-agree { display: flex; margin-top: 0; } .cf .cf-opt { display: inline-block; }

/* The menu sections fold */
details.grp { margin-top: 8px; } details.grp > summary.grp-h { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; margin: 0; user-select: none; }
details.grp > summary.grp-h::-webkit-details-marker { display: none; } details.grp > summary.grp-h::before { content: "▸"; font-size: .8rem; transition: transform .12s; } details.grp[open] > summary.grp-h::before { transform: rotate(90deg); }
details.grp > summary.grp-h:hover { background: rgb(15 23 42 / .06); } details.grp[open] .grp-badge { display: none; } .grp-badge { margin-left: auto; }

/* Week planner, like the old rota: green working days, click to set a shift */
html:not(.wk-js) .wk-btn { display: none; } .wk-js .sheet .cell { display: none; }
.wk-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 0 8px; } .wk-total { font-size: 1rem; margin-left: auto; } .wk-pick { margin: 0; }
.wk-pick button { cursor: pointer; font: inherit; } .wk-pick button.on { background: var(--navy, #0f2347); color: #fff; }
.wk-scroll { max-height: 72vh; overflow: auto; } .wk-sheet { border-collapse: separate; border-spacing: 0; min-width: 920px; }
.wk-sheet thead th { position: sticky; top: 0; z-index: 3; background: #eef2f8; } .wk-sheet .who { position: sticky; left: 0; z-index: 2; background: #fff; min-width: 170px; } .wk-sheet thead .who { z-index: 4; background: #eef2f8; }
.wk-sheet tbody td, .wk-sheet tfoot td { border-bottom: 1px solid var(--line, #d9dee7); padding: 4px; } .wk-sheet td.wknd { background: #faf7fb; } .wk-sheet th.today, .wk-sheet td.today { box-shadow: inset 0 -3px 0 var(--brand, #036ad5); }
.wk-sheet tfoot th, .wk-sheet tfoot td { background: #f3f5f9; font-weight: 600; } .wk-grp th { background: #f3f5f9; text-align: left; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: #3b4863; padding: 6px 10px; } .wk-grp i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; }
.wk-btn { display: block; width: 100%; min-height: 46px; padding: 4px 6px; border: 1px dashed #b5bdcc; border-radius: 8px; background: #fff; color: #98a2b3; font: inherit; font-size: .82rem; cursor: pointer; text-align: center; line-height: 1.2; }
.wk-btn:hover { border-color: var(--brand, #036ad5); color: var(--brand, #036ad5); } .wk-btn.has { background: #c8f2d3; border: 1px solid #2e9e57; color: #0b3d1f; font-weight: 600; } .wk-btn.chg { outline: 3px solid #f59e0b; outline-offset: -1px; }
.wk-sheet td.past span { color: #7b8497; font-size: .82rem; } .wk-sheet td.past { background: #f4f5f7; }
.wk-modal { position: fixed; inset: 0; background: rgb(15 23 42 / .5); display: grid; place-items: center; z-index: 60; padding: 16px; } .wk-modal[hidden] { display: none; }
.wk-box { background: #fff; border-radius: 16px; padding: 20px 22px; width: min(520px, 100%); box-shadow: 0 20px 60px rgb(0 0 0 / .3); max-height: 92vh; overflow: auto; } .wk-box h2 { margin: 0 0 2px; font-size: 1.2rem; }
.wk-shift { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 10px; margin: 8px 0; } .wk-shift[hidden] { display: none; } .wk-box label { display: block; font-weight: 600; font-size: .85rem; } .wk-box select { width: 100%; min-height: 46px; margin-top: 4px; border: 2px solid #3b4863; border-radius: 10px; padding: 6px 8px; font-size: 1rem; background: #fff; }
.wk-rep { margin: 10px 0; } .wk-len { margin-left: 8px; color: #0b3d1f; } .wk-err { color: #b42318; font-weight: 600; } .wk-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 6px; } .wk-acts .btn { min-height: 46px; }
@media (max-width: 600px) { .wk-shift { grid-template-columns: 1fr 1fr; } .wk-shift label:first-child { grid-column: 1 / -1; } }
/* the History button beside the "known customer" line on the booking sheet */
.tb-hist { float: right; margin: 0 0 4px 8px; }

/* checked-out badge on the diary block, and the All / Not checked out / Checked out switch */
.dy-a { overflow: hidden; }
.dy-a .dy-paid { position: absolute; top: 2px; right: 3px; line-height: 0; color: #fff; background: #1e9e5a; border-radius: 6px; padding: 2px 3px; box-shadow: 0 0 0 2px #fff; }
.dy-a .dy-paid svg { display: block; }
.dy-a.paid { background-image: linear-gradient(rgb(30 158 90 / .10), rgb(30 158 90 / .10)); }
.dy-paytabs { display: inline-flex; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; }
.dy-pay { display: inline-flex; gap: 6px; align-items: center; padding: 5px 12px; font-weight: 700; font-size: .86rem; text-decoration: none; color: var(--ink); background: #fff; }
.dy-pay + .dy-pay { border-left: 2px solid var(--ink); }
.dy-pay b { background: rgb(0 0 0 / .08); border-radius: 999px; padding: 0 7px; }
.dy-pay svg { width: 16px; height: 16px; }
.dy-pay.on { background: var(--ink); color: #fff; } .dy-pay.on b { background: rgb(255 255 255 / .25); }

/* edit appointment sheet */
.dy-edit .dy-ef label { display: block; margin: 8px 0; font-weight: 600; } .dy-edit .dy-ef input:not([type=checkbox]), .dy-edit .dy-ef select { width: 100%; }
.dy-et { width: 100%; } .dy-et td { padding: 3px 4px; } .dy-et input[name^=mins_], .dy-et input[name^=nmins_], .dy-et input[name^=price_], .dy-et input[name^=nprice_] { width: 5.2em; }
.dy-why { border: 2px solid var(--ink); border-radius: 10px; padding: 8px 10px; margin: 10px 0; } .dy-why select, .dy-why input { margin-top: 6px; }
.dy-editgo { font-weight: 700; } .dy-hist { margin: 6px 0; }

/* edit-appointment window */
.ed-dialog .ed { min-height: 0; flex: 1; display: flex; flex-direction: column; } .ed .tb-grid { grid-template-columns: minmax(340px, 520px) minmax(0, 1fr); }
.ed-rows { display: grid; gap: 10px; margin-bottom: 8px; } .ed-row { display: grid; grid-template-columns: 1fr 90px 120px; gap: 8px; align-items: end; padding: 10px; border: 2px solid var(--tb-line, #c9d6ea); border-radius: 12px; background: #f6f9ff; }
.ed-row label { display: flex; flex-direction: column; gap: 3px; font-weight: 700; font-size: .82rem; } .ed-row input[type=text], .ed-row input:not([type]), .ed-row input[type=number] { width: 100%; min-height: 48px; font-size: 1.05rem; }
.ed-row .ed-price { font-weight: 800; font-size: 1.2rem; text-align: right; } .ed-row .ed-rm { grid-column: 1 / -1; flex-direction: row; align-items: center; font-weight: 600; gap: 8px; }
@media (max-width: 1100px) { .ed .tb-grid { grid-template-columns: 1fr; } }
.of-days { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin: 10px 0; } .of-days .chk { margin-right: 10px; } .of-svc { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin: 10px 0; } .of-q { width: 100%; max-width: 360px; margin: 4px 0 8px; }
.wk-btn.kind { background: #fff4d6; color: #7a5200; font-weight: 700; } .rpt .pill { white-space: nowrap; } @media print { .side, .topbar, .pills, .dy-tools, .btn { display: none !important; } .rpt { break-inside: avoid; box-shadow: none; } }
.dy-slot.past { background: repeating-linear-gradient(135deg, rgb(10 34 71 / .035) 0 6px, transparent 6px 12px); cursor: not-allowed; } .dy-slot.past:hover { background: repeating-linear-gradient(135deg, rgb(10 34 71 / .035) 0 6px, transparent 6px 12px); }
.wk-btn.woff { background: #e6eefb; color: #23407a; } .wk-btn.hol { background: #fff0cc; color: #7a4b00; }
.ed-step { min-width: 56px; min-height: 52px; border-radius: 12px; border: 2px solid var(--tb-line, #c9d6ea); background: var(--sky, #eaf2ff); font-weight: 700; font-size: 1.05rem; cursor: pointer; color: var(--ink); } .ed-step:active { background: var(--brand); color: #fff; }
.ed .tb-time { display: flex; gap: 8px; align-items: center; } .ed .tb-time input { min-height: 52px; font-size: 1.2rem; flex: 1; border: 2px solid var(--tb-line, #c9d6ea); }
.ed label.ed-staff { display: flex; flex-direction: column; align-items: stretch; gap: 4px; width: 100%; } .ed label.ed-staff select { width: 100%; min-height: 52px; font-size: 1.05rem; border: 2px solid var(--tb-line, #c9d6ea); border-radius: 12px; }
.ed .tb-two { grid-template-columns: 1fr; }
.rpt table.data td, .rpt table.data th { padding: 6px 8px; font-size: .84rem; white-space: nowrap; } .rpt table.data th.who { min-width: 120px; }
.co-dialog .co-in { padding-top: 0; }
.of-days { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; } .of-days legend { width: 100%; } .of-days .chk { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.of-days .chk:has(input:checked) { background: var(--own-bg, #e6f0ff); border-color: var(--brand); font-weight: 700; }
.offer-tag { font-style: normal; font-size: .72rem; font-weight: 800; color: #fff; background: #d6336c; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.rpt .rp-s { white-space: nowrap; line-height: 1.25; margin-bottom: 4px; } .rpt tfoot tr.rp-self th, .rpt tfoot tr.rp-self td { background: #75fb50; font-weight: 700; } .rpt tfoot tr.rp-tot th, .rpt tfoot tr.rp-tot td { background: #eef1f6; font-weight: 800; }
.wk-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 12px; } .wk-weeknav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .wk-weeknav b { min-width: 9.5rem; text-align: center; color: var(--navy); font-size: 1.05rem; } .wk-acts2 { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wk-foot { margin: 14px 0 0; } .wk-pre { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; }
.wk-sheet td, .wk-sheet th { vertical-align: middle; } .wk-btn { min-height: 54px; }
.tb-other { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; font-weight: 700; font-size: .9rem; } .tb-other small { font-weight: 400; } .tb-other select { min-height: 52px; font-size: 1rem; border: 2px solid var(--tb-line, #c9d6ea); border-radius: 12px; width: 100%; }
.tb-borrow { margin: 0 0 10px; } .tb-borrow table { margin: 8px 0; } .tb-borrow select { min-height: 44px; }
.tb-confirm ul.plain { margin: 6px 0 10px; padding-left: 18px; } .tb-confirm .tb-conf-acts { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 0; } .tb-confirm table { margin: 6px 0; }
.of-pct { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; padding: 8px 10px; background: #fff7e6; border: 1px solid #f0d9a8; border-radius: 10px; } .of-pc { width: 60px; }

.wk-btn.lv { background: #efe3fb; color: #4b2a7a; } .wk-btn.sk { background: #fde4e4; color: #8a1c1c; } .wk-box { position: relative; } .wk-x { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 1.8rem; line-height: 1; cursor: pointer; color: #475569; } .pill-link .sn { display: inline-block; min-width: 1.3em; text-align: center; border-radius: 50%; background: #0f172a; color: #fff; font-size: .75rem; margin-right: 2px; } .wk-hint { margin: 4px 0 8px; }
.wk-row.mine .who { box-shadow: inset 4px 0 0 #2563eb; }
.rng { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 6px 0 10px; } .rng label { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; }

/* checkout: one compact screen */
.co-modal .co-dialog { max-width: 980px; width: 96vw; max-height: 96vh; overflow: auto; } .co-modal .co-in { padding: 10px 14px 12px; }
.co-h { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 28px 8px 0; } .co-h h1 { font-size: 1.25rem; margin: 0; } .co-h .btn { margin-left: auto; }
.co-cols .co-lines td { padding: 3px 6px; } .co-cols .co-total input { font-size: 1.4rem; padding: 6px 10px; } .co-cols .co-total { margin-bottom: 4px; }
.co-cols .co-left .co-remrow { margin: 4px 2px 6px; } .co-cols .co-complete { min-height: 48px; }
.co-more { display: flex; gap: 10px; align-items: center; margin: 8px 0; font-weight: 600; font-size: .9rem; } .co-more select { flex: 1; min-height: 40px; }
.co-m[hidden] { display: none; } .co-pay { grid-template-columns: 1fr; gap: 6px; }
.co-payc details { border: 1px solid var(--line, #d9dee7); border-radius: 10px; padding: 6px 10px; margin-top: 8px; } .co-payc details summary { cursor: pointer; font-weight: 600; font-size: .92rem; }
@media (min-width: 700px) { .co-pay { grid-template-columns: 1fr 1fr; } }

/* ===== details popup (View Appointment), checkout popup and the edit sheet share one look ===== */
.dy-behind { pointer-events: none; }
.dy-dialog.dy-panel, .co-modal .co-dialog { position: relative; width: min(1100px, 96vw); height: auto; max-height: 96vh; padding: 0; top: auto; border: 0; }
.dy-panel .dy-dh, .co-dialog .dy-dh { padding-top: 12px; padding-bottom: 8px; } .dy-panel .dy-dh h2, .co-dialog .dy-dh h2 { font-size: 1.4rem; }
.vw-body { flex: 1; min-height: 0; overflow: auto; padding: 14px 22px; } .vw-body.co-in { padding: 14px 22px; }
.vw-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.vw-left, .vw-right { min-width: 0; } .vw-right h3, .vw-body h3 { margin: 12px 0 6px; font-size: 1.15rem; }
table.vw-lines { width: 100%; border: 1px solid var(--line); } .vw-lines th, .vw-lines td { padding: 8px 10px; vertical-align: top; } .vw-lines td.vw-t { white-space: nowrap; }
.vw-lines tfoot td { padding: 8px 10px; border-top: 1px solid var(--line); } .vw-lines tfoot .vw-fin td { font-size: 1.15rem; }
.vw-booked { margin: 0 0 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; }
.vw-cust { display: grid; grid-template-columns: 90px 1fr; gap: 0; margin: 0 0 8px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; } .vw-cust dt, .vw-cust dd { margin: 0; padding: 9px 12px; border-bottom: 1px solid var(--line); } .vw-cust dt { text-align: right; background: #f8fafc; } .vw-cust dd:last-child, .vw-cust dt:nth-last-child(2) { border-bottom: 0; }
.vw-via { display: flex; gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; } .vw-src { flex: 1; text-align: center; padding: 9px 6px; border-right: 1px solid var(--line); color: var(--muted); font-size: .92rem; } .vw-src:last-child { border-right: 0; } .vw-src.on { background: var(--brand); color: #fff; font-weight: 700; }
.vw-foot { position: relative; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px; padding: 12px 22px; border-top: 2px solid var(--tb-line, #c9d6ea); background: #fff; } .vw-foot .btn { min-height: 46px; min-width: 96px; } .vw-foot form { margin: 0; }
.vw-foot .vw-close { margin-right: auto; } .btn.warn { background: #f5c242; color: #3a2a00; border-color: #f5c242; } .btn.bad { background: #d64550; color: #fff; border-color: #d64550; }
.vw-foot .dy-cancel > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; } .vw-foot .dy-cancel > summary::-webkit-details-marker { display: none; }
.vw-foot .dy-cancel[open] > .co-cancel { position: absolute; right: 22px; bottom: calc(100% + 8px); width: min(380px, 90vw); padding: 14px; background: #fff; border: 2px solid #d64550; border-radius: 12px; box-shadow: 0 10px 30px rgb(10 34 71 / .3); z-index: 3; }
/* Edit / Delete a checked-out appointment with a PIN (View Appointment footer) */
.vw-foot .dy-pinfix[open] > .pf-edit { border-color: #d9a514; } .pin-form > b { display: block; font-size: 1.05rem; } .pin-form p { margin: 4px 0 8px; }
.pin-form .fl { display: grid; gap: 3px; margin: 0 0 8px; } .pin-form select, .pin-form input { width: 100%; min-height: 42px; } .pin-form input[name=pin] { letter-spacing: .3em; font-size: 1.2rem; }
.pin-form button[type=submit] { width: 100%; min-height: 46px; }
.del-list td { vertical-align: top; }
.dy-panel .dy-ournote { margin: 12px 0 8px; } .dy-panel .dy-dl { margin: 12px 0; }
/* checkout */
.co-dialog form.co { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.co-pay { display: grid; grid-template-columns: 1fr; gap: 6px; } .co-pay .co-m, .co-disc { display: grid; grid-template-columns: minmax(150px, 190px) minmax(0, 1fr); gap: 4px 10px; align-items: center; padding: 4px 6px; border: 0; background: none; }
.co-pay .co-m .co-fill { min-height: 40px; min-width: 0; width: 100%; text-align: center; } .co-pay .co-m .co-amt { width: 100%; text-align: left; padding: 8px 12px; font-size: 1.02rem; border: 2px solid var(--tb-line, #c9d6ea); border-radius: 8px; }
.co-pay .co-m .co-x { grid-column: 2; } .co-pay .co-m .co-ref, .co-pay .co-m .co-mini { width: 100%; margin: 0; padding: 6px 8px; font-size: .88rem; }
.co-disc { grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin: 8px 0; padding: 10px; border: 1px solid var(--line); border-radius: 8px; } .co-disc label { display: flex; flex-direction: column; gap: 3px; font-size: .85rem; color: var(--muted); } .co-disc input, .co-disc select { padding: 8px 10px; font-size: 1rem; width: 100%; max-width: none; text-align: left; border: 1px solid var(--line); border-radius: 8px; }
.co-final { margin: 6px 0 0; font-size: 1.2rem; } .co-final output { font-weight: 800; } .co-remrow { padding: 8px 6px; border-top: 1px solid var(--line); margin: 8px 0 0; }
.co-dialog .co-total input { font-size: 1.2rem; padding: 8px 12px; } .co-foot-note { flex: 1; }
.vw-foot .co-complete { min-width: 150px; }
.ed-cust { display: grid; grid-template-columns: 80px 1fr; gap: 6px 10px; margin: 6px 0 4px; } .ed-cust dt { color: var(--muted); font-size: .88rem; } .ed-cust dd { margin: 0; font-weight: 600; } .ed-sub { margin: 10px 0 6px; font-size: 1rem; }
.ed .tb-grid { grid-template-columns: minmax(300px, 400px) minmax(0, 1fr) minmax(290px, 360px); }
@media (max-width: 900px) { .vw-grid { grid-template-columns: 1fr; } .co-disc { grid-template-columns: 1fr; } .co-pay .co-m { grid-template-columns: 1fr; } .co-pay .co-m .co-x { grid-column: 1; } .dy-dialog.dy-panel, .co-modal .co-dialog { width: 100vw; max-height: 100vh; border-radius: 0; } .ed .tb-grid { grid-template-columns: 1fr; } }
.co-modal .co-dialog { overflow: hidden; max-width: none; } .co-modal .co-in { padding: 14px 22px; }

/* the edit sheet: the treatments on the booking are one tidy list on the left; a tapped treatment joins it; no scrolling for 3 to 6 treatments */
.ed .tb-grid { grid-template-columns: minmax(380px, 470px) minmax(0, 1fr) minmax(270px, 330px); }
.ed-who { margin: 0 0 8px; font-size: 1rem; } .ed-who .dy-chip { margin-left: 4px; }
.ed-head, .ed-row { display: grid; grid-template-columns: minmax(0, 1fr) 68px 92px 42px; gap: 6px; align-items: center; }
.ed-head { padding: 0 2px 4px; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.ed-rows { display: flex; flex-direction: column; gap: 6px; margin: 0 0 6px; }
.ed .ed-row { padding: 6px; border: 2px solid var(--tb-line, #c9d6ea); border-radius: 12px; background: #f6f9ff; }
.ed .ed-row.ed-new { background: #eefaf1; border-color: #9bd7ae; }
.ed .ed-row input:not([type=checkbox]):not([type=hidden]) { width: 100%; min-width: 0; min-height: 42px; padding: 4px 8px; font: inherit; font-size: 1rem; border: 2px solid var(--tb-line, #c9d6ea); border-radius: 9px; background: #fff; }
.ed .ed-row .ed-price { text-align: right; font-weight: 800; } .ed .ed-row .ed-m { text-align: center; padding: 4px 2px; }
.ed-row label.ed-rm, .ed-row .ed-x { position: relative; display: flex; flex-direction: row; align-items: center; justify-content: center; width: 42px; height: 42px; min-width: 0; padding: 0; margin: 0; grid-column: auto; border: 2px solid var(--tb-line, #c9d6ea); border-radius: 9px; background: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; color: #475569; font-weight: 400; }
.ed-row label.ed-rm input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ed-row:has(.ed-rm input:checked) { opacity: .55; } .ed-row:has(.ed-rm input:checked) .ed-n, .ed-row:has(.ed-rm input:checked) .ed-price { text-decoration: line-through; } .ed-row:has(.ed-rm input:checked) .ed-rm { background: #fde4e4; border-color: #d64550; color: #b42318; }
.ed-tot { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 6px 2px 4px; padding-top: 8px; border-top: 2px solid var(--tb-line, #c9d6ea); font-size: 1.2rem; } .ed-tot .muted { flex: 1; font-size: .9rem; } .ed-tip { margin: 2px 2px 6px; }
.ed .tb-note { margin-top: 6px; } .ed .tb-note input { min-height: 44px; }
.ed .tb-tile:has(input:checked) { border-color: #2e9e58; background: #eefaf1; }
@media (max-width: 1100px) { .ed .tb-grid { grid-template-columns: 1fr; } }
.of-pcl { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; } .of-pcl .of-pc { width: 70px; }
.offer-save { margin: 8px 0 0; padding: 8px 12px; border-radius: 8px; background: #fdecf3; color: #8a1c47; font-size: .95rem; }
.receipt { max-width: 520px; } .receipt table { width: 100%; }
@media print { .vw-foot, .no-print, .dy-behind { display: none !important; } }
/* on a phone the three columns of the booking and edit sheets stack, each as tall as its content, and the sheet scrolls */
@media (max-width: 1100px) {
  .dy-dialog .tb-grid, .ed .tb-grid { display: block; overflow: auto; }
  .dy-dialog .tb-grid > .tb-col { min-height: 0; height: auto; overflow: visible; margin: 0 0 12px; }
  .tb-c2 .tb-tiles { max-height: none; overflow: visible; }
}

/* tablet mode for the consent form: no menu, so the customer sees only the form */
body.kiosk .topbar, body.kiosk .side, body.kiosk .side-show, body.kiosk .backdrop { display: none !important; } body.kiosk .shell { display: block; } body.kiosk main { max-width: 900px; margin: 0 auto; padding: 18px 16px 40px; } body.kiosk .cf-h h1 { font-size: 2rem; }

/* card machines: pick which are in use today */
.mc-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0; } .mc-opt { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 2px solid #3b4863; border-radius: 12px; background: #fff; cursor: pointer; } .mc-opt input { width: 22px; height: 22px; } .mc-opt.mc-off { opacity: .6; cursor: not-allowed; }
.of-gbtn { margin: 6px 0; } .of-scope { max-width: 22rem; }
.tb-was { color: #8a94a6; font-weight: 400; margin-right: 6px; } .tb-cn .offer-tag { margin-left: 6px; } .ed-row .tb-was { align-self: center; } .ed-row .offer-tag { align-self: center; margin-left: 4px; }

/* offers page: compact cards, one screen per offer */
.of-card { padding: 8px 14px; margin: 10px 0; } .of-sum { cursor: pointer; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 6px 0; } .of-cov { margin-left: auto; font-size: .9rem; } .of-cov i { font-style: normal; background: #e6f4ea; color: #14532d; border-radius: 999px; padding: 1px 8px; margin-left: 4px; } .bad-t { color: #b42318; }
.of-grid { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 20px; align-items: start; } .of-grid h3 { margin: 4px 0 8px; font-size: 1.05rem; } .of-left .fl { display: block; margin-bottom: 8px; } .of-days { margin: 6px 0; }
.of-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .of-tools .of-q { flex: 1 1 180px; } .of-hint { margin: 6px 0; }
.of-groups { max-height: 52vh; overflow: auto; border: 2px solid #8793a8; border-radius: 12px; padding: 4px 8px; background: #fff; } .svc-g { border-bottom: 1px solid #d5dbe6; } .svc-g:last-child { border-bottom: 0; } .svc-g > summary { cursor: pointer; display: flex; gap: 8px; align-items: center; padding: 8px 4px; } .svc-g > summary .of-gnone { margin-left: auto; } .svc-g.has > summary b { color: #14532d; } .svc-g.has > summary { background: #f0faf3; border-radius: 8px; }
.of-t td { padding: 4px 6px; } .of-row.on { background: #e6f4ea; } .of-row.on .of-c1 { font-weight: 700; } .of-c1 label { display: flex; gap: 8px; align-items: center; min-height: 34px; cursor: pointer; } .of-c2 { white-space: nowrap; color: #5b6578; } .of-c3 input { width: 6rem; }
@media (max-width: 900px) { .of-grid { grid-template-columns: 1fr; } .of-groups { max-height: none; } }

/* every box you can fill in is darker, so it is clear where to type (all salons and the super admin) */
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=tel], input[type=time], input[type=search], input[type=url], select, textarea { border: 1.5px solid #6d7b96; background: #f3f7fd; box-shadow: inset 0 1px 2px rgba(10, 34, 71, .08); }
input:not([type]):hover, input[type=text]:hover, input[type=email]:hover, input[type=number]:hover, input[type=date]:hover, input[type=tel]:hover, input[type=time]:hover, input[type=search]:hover, select:hover, textarea:hover { border-color: #3f4f6e; }
input:not([type]):focus, input[type=text]:focus, input[type=email]:focus, input[type=number]:focus, input[type=date]:focus, input[type=tel]:focus, input[type=time]:focus, input[type=search]:focus, input[type=password]:focus, select:focus, textarea:focus { background: #fff; border-color: var(--brand, #036ad5); }
input:disabled, select:disabled, textarea:disabled, input[readonly] { background: #e9edf4; border-color: #aab4c6; box-shadow: none; }
input[type=checkbox], input[type=radio] { accent-color: var(--brand, #036ad5); }

/* consent form editor: one screen, mapping on the left, questions on the right */
.ce-grid { display: grid; grid-template-columns: minmax(300px, 420px) 1fr; gap: 18px; align-items: start; } .ce-left h2, .ce-right h2 { font-size: 1.05rem; margin: 10px 0 6px; } .ce-left .fl { display: block; margin-bottom: 8px; }
.cm-list { max-height: 46vh; overflow: auto; border: 2px solid #8793a8; border-radius: 12px; padding: 4px 8px; background: #fff; margin: 6px 0; } .cm-g { border-bottom: 1px solid #d5dbe6; } .cm-g:last-child { border-bottom: 0; } .cm-g > summary { cursor: pointer; display: flex; gap: 8px; align-items: center; padding: 8px 4px; } .cm-gl { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; } .cm-g.has > summary { background: #f0faf3; border-radius: 8px; } .cm-g.has b { color: #14532d; }
.cm-items { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 2px 6px 8px 28px; } .cm-i { display: flex; gap: 8px; align-items: center; min-height: 32px; cursor: pointer; } .cm-i.on { background: #e6f4ea; font-weight: 700; border-radius: 6px; } .cm-g.all .cm-i { opacity: .5; }
.ce-q { max-height: 52vh; overflow: auto; } .ce-q .cf-sec { border: 1px solid #aab4c6; border-radius: 10px; padding: 6px 10px; margin: 8px 0; } .ce-q summary { cursor: pointer; padding: 4px 0; }
@media (max-width: 900px) { .ce-grid { grid-template-columns: 1fr; } .cm-list, .ce-q { max-height: none; } }

/* consent status: green when the form is completed, red while it is still needed */
.dy-cf.ok { color: #15803d; } .dy-consent.done { background: #e7f6ec; border-color: #15803d; } .dy-consent.need { background: #fff4f2; border-color: #c2410c; } .cf-ok { font-weight: 800; }
body.pubcf { background: #f4f8ff; } .pub-cf { max-width: 760px; margin: 0 auto; padding: 14px 14px 40px; } .pub-salon { font-weight: 800; color: var(--ink); margin: 6px 0 0; font-size: 1.1rem; }

/* checkout on one screen: compact rows, two columns of ways of paying, the tip always in view */
.co-modal .co-dialog { max-height: 98vh; } .co-modal .vw-body { padding: 8px 16px; overflow: auto; }
.co-modal .vw-grid.co-cols { gap: 10px 18px; grid-template-columns: minmax(250px, 2fr) minmax(0, 3fr); } .co-modal .vw-body h3 { margin: 4px 0 4px; font-size: .95rem; }
.co-modal .co-lines { max-height: 22vh; display: block; overflow: auto; } .co-modal .co-lines tbody, .co-modal .co-lines thead, .co-modal .co-lines tfoot { display: table; width: 100%; table-layout: fixed; }
.co-modal .co-m { padding: 3px 4px; } .co-modal .co .co-m .co-amt { padding: 5px 8px; font-size: 1rem; } .co-modal .co .co-m .co-fill { min-height: 34px; padding: 4px 8px; font-size: .9rem; }
.co-modal .co-pay { grid-template-columns: 1fr 1fr; gap: 4px 8px; } .co-modal .co-pay .co-m, .co-modal .co-m.co-wide { grid-template-columns: minmax(96px, 120px) minmax(0, 1fr); } .co-modal .co-wide { margin-bottom: 4px; } .co-modal .co-wide .co-x { grid-column: 1 / -1; }
.co-modal .co-m-giftvoucher, .co-modal .co-m-other { grid-column: 1 / -1; } .co-addrow { margin: 2px 0 6px; } .co-addrow .btn { min-height: 30px; padding: 2px 10px; }
.co-mach { margin: 2px 0 6px; } .co-mach > summary { cursor: pointer; } .co-mach .mc-list { margin: 4px 0; gap: 6px; } .co-mach .mc-opt { min-height: 34px; padding: 4px 10px; }
.co-tipbox { border: 2px solid #8793a8; border-radius: 12px; padding: 4px 10px 8px; margin: 6px 0 0; background: #fffdf5; } .co-tipbox legend { font-size: .85rem; padding: 0 6px; } .co-tiprow { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: end; } .co-tiprow label { display: flex; flex-direction: column; font-size: .8rem; gap: 2px; } .co-tiprow input, .co-tiprow select { padding: 5px 8px; min-height: 34px; } .co-tiprow input { width: 6em; } .co-tipm[hidden] { display: none; }
.co-modal .co-remrow { margin: 4px 2px 0; } .co-modal .co-total input { font-size: 1.2rem; padding: 4px 10px; } .co-modal .co-disc { padding: 2px 0; } .co-modal .co-payc details { margin-top: 4px; padding: 2px 8px; }
@media (max-width: 900px) { .co-modal .vw-grid.co-cols { grid-template-columns: 1fr; } .co-modal .co-pay { grid-template-columns: 1fr; } }

.co-modal .co-pay .co-m { grid-template-columns: minmax(92px, 112px) minmax(0, 1fr); } .co-modal .co-m.co-wide, .co-modal .co-m-giftvoucher, .co-modal .co-m-other { grid-template-columns: minmax(92px, 112px) minmax(0, 1fr) minmax(0, 1.2fr); }
.co-modal .co-wide .co-x, .co-modal .co-m-giftvoucher .co-x, .co-modal .co-m-other .co-x { grid-column: auto; } .co-modal .co .co-m .co-ref, .co-modal .co .co-m .co-mini { margin-top: 0; padding: 5px 8px; min-height: 34px; font-size: .9rem; }
.co-modal .co-left .co-tipbox { margin-top: 10px; }
.co-modal .co-pay .co-m-giftvoucher, .co-modal .co-pay .co-m-other { grid-template-columns: minmax(92px, 112px) minmax(0, 1fr) minmax(0, 1.2fr); } .co-modal .co-pay .co-m-giftvoucher .co-x, .co-modal .co-pay .co-m-other .co-x { grid-column: auto; }
.co-modal .co-dialog .dy-dh { padding-top: 8px; padding-bottom: 4px; } .co-modal .co-dialog .dy-dh h2 { font-size: 1.15rem; margin: 0; } .co-modal .co-dialog .dy-dh p { margin: 0; font-size: .85rem; }
.co-modal .vw-booked { margin: 0 0 2px; padding: 4px 10px; } .co-modal .co-payc h3 { margin: 2px 0; } .co-modal .co .co-m .co-fill { min-height: 30px; padding: 2px 8px; line-height: 1.1; } .co-modal .co .co-m .co-amt { padding: 3px 8px; min-height: 32px; }
.co-modal .co-m { padding: 2px 4px; border-width: 1px; } .co-modal .co-pay { gap: 3px 8px; } .co-modal .co-tiprow select { max-width: 12em; } .co-modal .vw-foot { padding-top: 8px; padding-bottom: 8px; }
.co-modal .vw-body { padding: 4px 16px; } .co-modal .co-remrow { font-size: 1rem; }

/* end day on one screen: money left, who worked right, the rest folded below */
.eod-sum { margin: 6px 0 10px; } .eod-grid { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(360px, 1.3fr); gap: 14px; align-items: start; } .eod-grid .card, .eod-foot { margin-bottom: 10px; padding: 12px 14px; } .eod-grid h2 { font-size: 1.05rem; margin: 0 0 6px; } .eod-grid table.data td, .eod-grid table.data th { padding: 4px 6px; }
.eod-staff input[type=time] { width: 7.5em; } .eod-staff input[name^=brk_] { width: 4em; } .eod-staff .eod-tip { width: 6em; } .eod-foot .eod-go { display: flex; gap: 8px; align-items: end; margin-left: auto; } .eod-more .card { padding: 8px 14px; margin: 8px 0; } .eod-more summary { cursor: pointer; padding: 4px 0; }
@media (max-width: 1000px) { .eod-grid { grid-template-columns: 1fr; } }
.eod-grid > section { min-width: 0; } .eod-grid table.data { width: 100%; table-layout: auto; } .eod-grid .eod-pay th[scope=row], .eod-grid .eod-staff th[scope=row] { font-size: .86rem; text-transform: none; letter-spacing: 0; font-weight: 600; } .eod-grid .eod-pay th[scope=row] small, .eod-grid .eod-staff th[scope=row] small { display: block; font-weight: 400; text-transform: none; font-size: .75rem; line-height: 1.2; }
.eod-grid .eod-pay td input, .eod-grid .eod-staff td input { min-height: 34px; padding: 3px 8px; border-width: 1.5px; font-size: .95rem; } .eod-grid .eod-pay td input { width: 8em; } .eod-grid .eod-staff td input[type=time] { width: 6.6em; } .eod-grid .eod-staff input[name^=brk_] { width: 3.6em; } .eod-grid .eod-staff .eod-tip { width: 5.4em; }
.eod-grid h2 small { display: block; font-weight: 400; font-size: .78rem; margin-top: 2px; }

.eod-rightcol { min-width: 0; } .eod-foot .row-f { display: grid; grid-template-columns: 8em 1fr; gap: 8px 12px; align-items: end; } .eod-foot .eod-go { grid-column: 1 / -1; margin-left: 0; } .eod-foot .grow input { width: 100%; max-width: none; }
.eod-grid .eod-pay td, .eod-grid .eod-pay th { padding: 2px 6px; } .eod-grid .eod-pay td input { min-height: 30px; padding: 2px 8px; } .eod-grid .eod-pay th[scope=row] small { display: inline; margin-left: 6px; } .eod-grid .card { padding: 8px 12px; } .eod-grid p.small { margin: 4px 0; }
.eod-grid section, .eod-sum { overflow-x: auto; max-width: 100%; } @media (max-width: 700px) { .eod-foot .row-f { grid-template-columns: 1fr; } .eod-foot .eod-go { flex-wrap: wrap; } }
/* consent tablet: big, simple, one thing at a time */
.tb-home { max-width: 760px; } .tb-home h1 { font-size: 2.1rem; } .tb-find label { display: block; font-weight: 700; font-size: 1.2rem; margin: 12px 0 8px; } .tb-findrow { display: flex; gap: 10px; } .tb-findrow input { flex: 1; font-size: 1.4rem; min-height: 64px; max-width: none; padding: 10px 16px; border-radius: 14px; } .tb-findrow .btn { min-width: 9em; }
.tb-res { margin: 16px 0; padding: 14px 16px; border: 2px solid #3b4863; } .tb-res-h { font-size: 1.25rem; margin-bottom: 8px; } .tb-form { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid #d5dbe6; font-size: 1.1rem; } .tb-form.done { background: #e7f6ec; border-radius: 10px; padding: 10px; } .tb-form .btn { min-width: 8em; min-height: 56px; }
.tb-findrow .btn, .tb-form .btn { text-align: center; display: inline-flex; align-items: center; justify-content: center; }
.co-grandrow { border-top: 2px solid #3b4863; padding-top: 6px; } .co-grandrow output { font: 800 1.3rem/1 system-ui, sans-serif; color: #0a2247; }
/* end day, final layout: nothing to scroll sideways; the counted boxes sit next to their label; who worked is smaller */
.eod-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 12px; } .eod-grid > section, .eod-rightcol { min-width: 0; overflow: visible; } .eod-grid section, .eod-sum { overflow-x: visible; }
.eod-pay { table-layout: fixed; width: 100%; } .eod-pay th:nth-child(1) { width: 52%; } .eod-pay th:nth-child(2) { width: 18%; } .eod-pay th:nth-child(3) { width: 30%; }
.eod-grid .eod-pay th[scope=row] { white-space: normal; overflow-wrap: anywhere; } .eod-grid .eod-pay th[scope=row] small { display: block; margin: 0; } .eod-pay .eod-l { font-weight: 700; }
.eod-grid .eod-pay td input { width: 100%; min-width: 0; max-width: 9em; } .eod-pay td.num { white-space: nowrap; }
.eod-x { border: 1px solid #b42318; color: #b42318; background: #fff; border-radius: 6px; width: 24px; height: 24px; line-height: 1; margin-left: 8px; cursor: pointer; font-weight: 700; padding: 0; }
.eod-addm { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; margin: 8px 0 4px; } .eod-addm label { display: flex; flex-direction: column; font-size: .8rem; gap: 2px; font-weight: 600; } .eod-addm select { min-height: 34px; padding: 3px 8px; min-width: 14em; }
.eod-float { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
/* who worked, smaller */
.eod-staffc { padding: 8px 10px; } .eod-staffc h2 { font-size: .95rem; } .eod-staff { table-layout: fixed; width: 100%; font-size: .82rem; } .eod-staff th, .eod-staff td { padding: 2px 3px; } .eod-staff th:nth-child(1) { width: 27%; } .eod-staff th:nth-child(2), .eod-staff th:nth-child(3) { width: 17%; } .eod-staff th:nth-child(4) { width: 11%; } .eod-staff th:nth-child(5) { width: 11%; } .eod-staff th:nth-child(6) { width: 17%; }
.eod-grid .eod-staff td input { width: 100%; min-width: 0; padding: 1px 4px; min-height: 26px; font-size: .82rem; border-width: 1px; } .eod-grid .eod-staff td input[type=time] { width: 100%; } .eod-grid .eod-staff input[name^=brk_], .eod-grid .eod-staff .eod-tip { width: 100%; }
.eod-grid .eod-staff th[scope=row] { font-size: .8rem; } .eod-staff small { font-size: .68rem; } .eod-staffc p.small { font-size: .74rem; margin: 4px 0 0; }
.eod-foot { padding: 8px 10px; } .eod-foot .row-f { grid-template-columns: 7em 1fr; } .eod-foot input { min-height: 34px; padding: 3px 8px; } .eod-foot .btn.lg { font-size: 1rem; padding: 8px 20px; }
@media (max-width: 1000px) { .eod-grid { grid-template-columns: 1fr; } }
.eod-grid table.data.eod-staff, .eod-grid table.data.eod-pay { table-layout: fixed; width: 100%; }
@media (max-width: 1150px) { .eod-grid { grid-template-columns: 1fr; } }
.eod-more table.data { display: block; max-width: 100%; overflow-x: auto; } .eod-more .scroll { max-width: 100%; overflow-x: auto; } .eod-more .row-f { flex-wrap: wrap; }
.eod-more details.card { overflow-x: auto; max-width: 100%; } .eod-more { max-width: 100%; }
@media (max-width: 700px) { .eod-grid section { overflow-x: auto; } .eod-staff { min-width: 460px; } .eod-pay { min-width: 330px; } }
.eod-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .eod-staff th { font-size: .68rem; } .eod-staff th:nth-child(1) { width: 25%; } .eod-staff th:nth-child(2), .eod-staff th:nth-child(3) { width: 20%; } .eod-staff th:nth-child(4), .eod-staff th:nth-child(5) { width: 10%; } .eod-staff th:nth-child(6) { width: 15%; }
.eod-staff input[type=time]::-webkit-calendar-picker-indicator { display: none; } .eod-grid .eod-staff td input[type=time] { padding: 1px 2px; text-align: center; font-variant-numeric: tabular-nums; }
/* new booking on one screen: a wider right column in two halves, a tighter keypad and note */
.dy-dialog .tb-grid { grid-template-columns: minmax(240px, 280px) minmax(0, 1fr) minmax(420px, 520px); gap: 10px; padding: 8px 12px; }
.tb-c1 > input, .tb-c1 .tb-staffcust select { min-height: 40px; font-size: 1rem; margin-bottom: 5px; padding: 4px 10px; } .tb-c1 .tb-keys { gap: 5px; margin: 0 0 4px; } .tb-c1 .tb-key { min-height: 38px; font-size: 1.1rem; }
.tb-ournote { margin-top: 4px; } .tb-ournote textarea { min-height: 44px; font-size: .9rem; padding: 4px 8px; } .tb-c1 .small, .tb-c1 p { margin: 3px 0; }
.dy-dialog .tb-c3 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; align-content: start; } .dy-dialog .tb-c3 > h3, .dy-dialog .tb-c3 > aside, .dy-dialog .tb-c3 > label, .dy-dialog .tb-c3 > .tb-borrow { grid-column: 1 / -1; }
.dy-dialog .tb-c3 > fieldset.tb-s:first-of-type { grid-column: 1; grid-row: 2; } .dy-dialog .tb-c3 > .tb-two { grid-column: 2; grid-row: 2; } .dy-dialog .tb-c3 > fieldset.tb-s:nth-of-type(2) { grid-column: 1 / -1; }
.tb-c3 .tb-s { margin: 0 0 4px; padding: 0; border: 0; } .tb-c3 .tb-chip span, .tb-c3 .tb-seg span { min-height: 36px; padding: 0 10px; font-size: .92rem; } .tb-c3 .tb-who { gap: 5px; }
.tb-c3 .tb-time input, .tb-c3 .tb-step, .tb-c3 .tb-tstep { min-height: 38px; } .tb-c3 .tb-time input { font-size: 1.05rem; } .tb-c3 .tb-total output { padding: 6px 2px; } .tb-c3 .tb-two .tb-s { margin-bottom: 6px; }
.tb-c3 .tb-cart { max-height: 30vh; overflow: auto; margin: 2px 0; padding: 6px 10px; } .tb-c3 .tb-cr { padding: 4px 0; } .tb-c3 .tb-note input { min-height: 38px; padding: 4px 10px; }
.tb-c3 .tb-note { font-size: .85rem; } .dy-dialog .tb-c3 select { min-height: 38px; }
.dy-dialog .tb-c1 .tb-key { min-height: 34px; font-size: 1.05rem; } .dy-dialog .tb-c1 > input, .dy-dialog .tb-c1 .tb-staffcust select { min-height: 36px; margin-bottom: 4px; } .tb-c1 .tb-keys { gap: 4px; } .tb-c1 .tb-h small { display: none; }
.dy-dialog .tb-ournote textarea { min-height: 38px; } .dy-dialog .tb-ournote small { display: none; } .dy-dialog .tb-c1 .tb-sens { margin: 2px 0; }
.tb-c3 .tb-cart { max-height: 24vh; } .tb-c3 .tb-chip span, .tb-c3 .tb-seg span { min-height: 32px; } .tb-c3 .tb-time input, .tb-c3 .tb-step, .tb-c3 .tb-tstep { min-height: 34px; } .dy-dialog .tb-c3 select { min-height: 34px; } .tb-c3 legend { font-size: .8rem; padding-bottom: 2px; } .tb-c3 .tb-h { margin: 0 0 2px; }
.tb-c3 .tb-cart { max-height: none; overflow: visible; } .tb-c3 .tb-cr { padding: 3px 0; } .tb-c3 .tb-cart h3 { margin: 0 0 2px; font-size: .95rem; } .tb-c3 .tb-note { margin-top: 4px; }
.tb-c1 .tb-sens { display: flex; gap: 6px; align-items: center; font-size: .82rem; } .tb-c1 .tb-sens b { font-size: .85rem; }
.tb-c3 .tb-cp input { min-height: 32px; padding: 2px 8px; width: 5.2em; font-size: .95rem; } .tb-c3 .tb-cx { min-height: 32px; min-width: 32px; padding: 0; } .tb-c3 .tb-cr { gap: 6px; } .tb-c3 .tb-cn { font-size: .92rem; } .tb-c3 .tb-ct { padding: 4px 0 0; font-size: 1rem; } .tb-c3 #tb-chint { margin: 2px 0 0; }
.tb-c3 .tb-other { display: flex; flex-direction: column; gap: 2px; font-size: .8rem; font-weight: 700; margin-top: 4px; } .tb-c3 .tb-other small { font-weight: 400; }
.tb-c3 .tb-note small { display: none; } .tb-c3 .tb-note { gap: 2px; }
.dy-dialog .tb-c3 > fieldset.tb-s:nth-of-type(2):not(.tb-dt) { display: flex; align-items: center; gap: 10px; } .dy-dialog .tb-c3 > fieldset.tb-s:nth-of-type(2):not(.tb-dt) legend { float: left; padding: 0; margin: 0; } .tb-c3 .tb-src { gap: 6px; flex-wrap: nowrap; }
.dy-dialog .tb-col { padding: 8px 12px; } .tb-c3 .tb-cart { padding: 4px 10px; } .tb-c3 .tb-h, .tb-c1 .tb-h, .tb-c2 .tb-h { font-size: 1rem; margin: 0 0 4px; }
.dy-dialog .dy-dh { padding-top: 8px; padding-bottom: 4px; } .dy-dialog .dy-dh h2 { font-size: 1.2rem; margin: 0; } .dy-dialog .dy-dh p { margin: 0; font-size: .85rem; } .dy-dialog .tb-foot { padding-top: 6px; padding-bottom: 6px; }
.dy-dialog .tb-c1 .tb-key { min-height: 38px; } .tb-c3 .tb-chip span, .tb-c3 .tb-seg span { min-height: 38px; } .tb-c3 .tb-time input, .tb-c3 .tb-step, .tb-c3 .tb-tstep { min-height: 38px; }

.dy-consent .cf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .4rem 0; }
.dy-consent .cf-actions form { margin: 0; }
.dy-consent .cf-actions .btn[disabled] { opacity: .5; cursor: not-allowed; }

.cm-row { display: flex !important; gap: 10px; align-items: flex-start; padding: 9px 6px; cursor: pointer; border-bottom: 1px solid #d5dbe6; } .cm-row small { display: block; } .cm-row input { margin-top: 3px; width: 20px; height: 20px; } .cm-row.has { background: #e6f4ea; }

/* Checkout, as the client asked: every treatment visible (no little scroll box), one payment table whose amount boxes are never clipped, voucher number + Apply, a reason list on Other, a tip shared between up to three people */
.co-modal .co-lines { display: table; max-height: none; overflow: visible; width: 100%; } .co-modal .co-lines thead { display: table-header-group; } .co-modal .co-lines tbody { display: table-row-group; } .co-modal .co-lines tfoot { display: table-footer-group; }
.co-modal .co-lines td { padding: 6px 8px; vertical-align: top; } .co-modal .co-lines .offer-tag { display: inline-block; margin-top: 3px; }
.co-modal .co-pay { display: grid; grid-template-columns: 1fr; gap: 5px; }
.co-modal .co-pay .co-m, .co-modal .co-pay .co-m.co-wide, .co-modal .co-pay .co-m-giftvoucher, .co-modal .co-pay .co-m-other { display: grid; grid-template-columns: 124px minmax(110px, 1fr) minmax(150px, 1.25fr); gap: 6px 8px; align-items: center; padding: 2px 0; border: 0; background: none; grid-column: auto; }
.co-modal .co-pay .co-m[hidden] { display: none; }
.co-modal .co-pay .co-m .co-fill { width: 100%; min-width: 0; min-height: 36px; }
.co-modal .co-pay .co-m .co-amt { width: 100%; min-width: 0; min-height: 36px; box-sizing: border-box; }
.co-modal .co-pay .co-m .co-x { grid-column: 3; min-width: 0; } .co-modal .co-pay .co-m .co-x select, .co-modal .co-pay .co-m .co-x input { width: 100%; min-width: 0; box-sizing: border-box; min-height: 36px; }
.co-vch { display: flex; gap: 6px; } .co-vch .co-ref { flex: 1 1 auto; min-width: 0; } .co-vch .btn { flex: 0 0 auto; } .co-vmsg { display: block; font-size: .78rem; margin-top: 2px; } .co-vmsg.good { color: #14632f; font-weight: 700; } .co-vmsg.bad { color: #b42318; font-weight: 700; }
.co-modal .co-payc .co-final { margin-top: 8px; border-top: 2px solid #c9d6ea; padding-top: 6px; } .co-modal .co-payc .co-final output { font-size: 1.25rem; font-weight: 800; }
.co-modal .co-payc .co-remrow output.co-rem { font-size: 1.25rem; font-weight: 800; }
.co-tipbox .co-tiphd { display: flex; gap: 10px 14px; align-items: end; flex-wrap: wrap; margin: 2px 0 6px; } .co-tipbox .co-tiphd label { display: flex; gap: 6px; align-items: center; font-weight: 700; } .co-tipbox .co-tipm { display: flex; gap: 6px; align-items: center; font-weight: 700; }
.co-tipbox .co-tiph2, .co-tipbox .co-tipl { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 8px; align-items: center; } .co-tipbox .co-tiph2 { font-size: .78rem; font-weight: 700; color: #4a5b7a; margin-bottom: 2px; } .co-tipbox .co-tipl { margin: 4px 0; } .co-tipbox .co-tipl[hidden], .co-tipbox .co-addtip[hidden] { display: none; }
.co-tipbox .co-tipl select, .co-tipbox .co-tipl input { width: 100%; box-sizing: border-box; min-height: 36px; }
.co-tipbox .co-tipft { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; } .co-tipbox .co-tipsum { font-weight: 800; } .co-tipbox .co-tipsum output { margin-left: 6px; font-size: 1.1rem; }
@media (max-width: 900px) { .co-modal .co-pay .co-m, .co-modal .co-pay .co-m.co-wide { grid-template-columns: 110px minmax(0, 1fr); } .co-modal .co-pay .co-m .co-x { grid-column: 1 / -1; } }
.co-tipbox .co-tiphd { flex-wrap: nowrap; } .co-tipbox .co-tiphd label, .co-tipbox .co-tipm { white-space: nowrap; } .co-tipbox .co-tipm select, .co-tipbox .co-tiphd select { max-width: 11em; min-height: 34px; }
.co-modal .vw-foot .btn[href*="edit=1"] { border: 2px solid #f08a24; background: #fff7ee; font-weight: 700; }

/* Edit appointment: each treatment is two lines (name on top, then minutes and price), so the name is never squeezed out of the narrow left column; the date and time sit under "Who and when" just like New booking */
.ed .ed-head { display: none; }
.ed .ed-row { grid-template-columns: 96px minmax(0, 1fr) 42px; gap: 6px; padding: 8px; }
.ed .ed-row .ed-n { grid-column: 1 / -1; font-weight: 700; }
.ed .ed-row input.ed-m:not([type=x]) { text-align: right; padding-right: 36px; background-repeat: no-repeat; background-position: right 4px center; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='20'%3E%3Ctext x='2' y='14' font-family='Arial' font-size='11' fill='%236b7a99'%3Emin%3C/text%3E%3C/svg%3E");  }
.ed .ed-row input.ed-price:not([type=x]) { padding-left: 24px; background-repeat: no-repeat; background-position: left 6px center; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='20'%3E%3Ctext x='2' y='15' font-family='Arial' font-size='13' fill='%236b7a99'%3E%C2%A3%3C/text%3E%3C/svg%3E");  }
.ed .ed-row .tb-was, .ed .ed-row .offer-tag { grid-column: 1 / -1; }
.ed .tb-dt { display: block; } .ed .tb-dt legend { display: block; float: none; padding-bottom: 4px; }
.ed .tb-dt > input[type=date] { display: block; width: 100%; box-sizing: border-box; margin-bottom: 8px; }
.ed .tb-dt .tb-time { display: flex; gap: 8px; align-items: center; } .ed .tb-dt .tb-time input { flex: 1 1 auto; min-width: 0; }
.ed .ed-row input.ed-price:not([type=x]) { padding-right: 6px; font-size: .95rem; } .ed .ed-row { grid-template-columns: 88px minmax(0, 1fr) 42px; }

/* NO SHOW: dark orange so it is not pressed by mistake for something else */
.btn.noshow-btn { background: #c2410c; border: 2px solid #9a3412; color: #fff; font-weight: 800; letter-spacing: .03em; } .btn.noshow-btn:hover { background: #9a3412; }

/* Edit appointment: "On this booking" gets the room (several treatments fit without scrolling); "Who and when" is only as wide as its chips and date/time need */
.ed-dialog .ed .tb-grid, .dy-dialog .ed .tb-grid { grid-template-columns: minmax(340px, 430px) minmax(0, 1fr) minmax(270px, 320px); gap: 12px; }
.ed .ed-rows { gap: 4px; } .ed .ed-row { padding: 5px 6px; gap: 4px 6px; } .ed .ed-row input:not([type=checkbox]):not([type=hidden]) { min-height: 36px; padding-top: 2px; padding-bottom: 2px; }
.ed .ed-row .ed-rm, .ed .ed-row .ed-x { min-height: 36px; }
.ed .ed-tip { display: none; } .ed .ed-tot { margin: 6px 0 4px; }
.ed .tb-c3 .tb-who { flex-wrap: wrap; gap: 6px; }
.ed .ed-row input:not([type=checkbox]):not([type=hidden]), .ed .ed-row .ed-rm, .ed .ed-row .ed-x { min-height: 33px; } .ed .ed-row { padding: 4px 6px; } .ed .tb-note input { min-height: 38px; } .ed .tb-c1 .tb-h { margin-bottom: 4px; }

/* Checkout on a tablet: Discount (amount, type, reason) is one row of the payment table, so the left side is only sub total, tip and total */
.co-dx { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 6px; } .co-dx select { width: 100%; min-width: 0; box-sizing: border-box; min-height: 36px; padding: 4px 6px; font-size: .9rem; }
.co-modal .co-pay .co-m-discount .co-fill { background: #c2410c; }
@media (max-width: 1180px) and (min-width: 700px) {
  .co-modal .vw-grid.co-cols { grid-template-columns: minmax(250px, 0.9fr) minmax(0, 1.3fr); gap: 8px 12px; }
  .co-modal .co-pay { gap: 3px; } .co-modal .co-pay .co-m { grid-template-columns: 108px minmax(80px, 1fr) minmax(130px, 1.3fr); gap: 4px 6px; }
  .co-modal .co-pay .co-m .co-fill, .co-modal .co-pay .co-m .co-amt, .co-modal .co-pay .co-m .co-x select, .co-modal .co-pay .co-m .co-x input, .co-dx select { min-height: 32px; }
  .co-modal .co .co-m .co-fill { font-size: .82rem; line-height: 1.05; padding: 2px 6px; }
  .co-modal .co-total input { font-size: 1.1rem; padding: 2px 8px; } .co-modal .co-payc h3 { margin: 0; }
}
.btn.cancel-go { background: #c62828; border: 2px solid #8e1c1c; color: #fff; font-weight: 800; min-height: 46px; width: 100%; } .btn.cancel-go:hover { background: #a61e1e; }

/* End day, tablet: one money table (way of paying | system | till amount | difference) on the left; who worked, notes and the End the day button on the right */
.eod-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 10px; align-items: start; }
.eod-grid .eod-pay { table-layout: fixed; width: 100%; } .eod-grid .eod-pay th:nth-child(1) { width: 33%; } .eod-grid .eod-pay th:nth-child(2) { width: 19%; } .eod-grid .eod-pay th:nth-child(3) { width: 28%; } .eod-grid .eod-pay th:nth-child(4) { width: 20%; }
.eod-grid .eod-pay thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; padding: 3px 5px; }
.eod-grid .eod-pay td, .eod-grid .eod-pay th { padding: 2px 5px; } .eod-grid .eod-pay th[scope=row] { font-size: .86rem; font-weight: 700; } .eod-grid .eod-pay th[scope=row] small { display: block; font-weight: 400; font-size: .68rem; line-height: 1.1; }
.eod-grid .eod-pay td input { width: 100%; max-width: none; min-height: 32px; padding: 2px 8px; box-sizing: border-box; }
.eod-pay .eod-sys { background: #eef3fb; font-weight: 700; } .eod-pay .eod-diff { font-weight: 800; white-space: nowrap; font-size: .85rem; } .eod-pay .eod-diff.ok { color: #14632f; } .eod-pay .eod-diff.bad { color: #b42318; }
.eod-pay tr.eod-ro th, .eod-pay tr.eod-ro td { color: #4a5b7a; } .eod-pay tr.eod-ro .eod-sys { background: #f3f5f9; font-weight: 600; }
.eod-pay tfoot .eod-total th, .eod-pay tfoot .eod-total td { border-top: 2px solid #1d2f52; font-weight: 800; font-size: .95rem; padding-top: 5px; }
.eod-extra select { width: 100%; min-width: 0; font-size: .78rem; min-height: 26px; } .eod-addrow { margin: 4px 0 0; } .eod-addrow .btn { min-height: 30px; padding: 2px 10px; }
.eod-sum { font-size: .82rem; margin: 2px 0 6px; } .eod-grid .card { padding: 8px 10px; } .eod-grid h2 { margin: 0 0 4px; font-size: 1rem; }
.eod-foot .row-f { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; } .eod-foot .grow { flex: 1 1 200px; }
.eod .btn.lg { padding: 10px 22px; font-size: 1.05rem; }
@media (max-width: 1000px) { .eod-grid { grid-template-columns: 1fr; } }
/* End day on a tablet: everything compact, the page is meant to be seen at once */
.eod-top { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: end; margin: 0 0 4px; } .eod-top p { margin: 0; } .eod-top .eod-addm { margin: 0; } .eod-top input[name=float] { width: 6rem; min-height: 30px; } .eod-top select { min-height: 30px; font-size: .85rem; max-width: 12em; } .eod-top .btn { min-height: 30px; padding: 2px 10px; }
.eod-grid .eod-pay th[scope=row] { white-space: nowrap; } .eod-grid .eod-pay th[scope=row] small { display: none; } .eod-grid .eod-pay th[scope=row] .eod-l { font-size: .84rem; }
.eod-grid .eod-pay tr.eod-r:has(th[title]) th small { display: block; font-size: .62rem; white-space: normal; }
.eod-grid .eod-pay td input { min-height: 30px; font-size: .9rem; }
.eod-grid .eod-pay th[scope=row] .eod-l { overflow: hidden; text-overflow: ellipsis; display: inline-block; max-width: 100%; vertical-align: bottom; }
.eod-grid > section h2 small { display: none; }
.eod-staff small { display: none; } .eod-staffc p.small { display: none; }
@media (max-width: 1250px) { .eod-page-note, .eod + .muted { display: none; } }
.eod-page .phead { margin-bottom: 4px; } .eod-page .phead h1 { font-size: 1.35rem; margin: 0; } .eod-page .phead p { display: none; }
.eod-page .notice { padding: 6px 12px; margin: 4px 0; font-size: .88rem; } .eod-page .eod-sum { font-size: .78rem; margin: 2px 0 4px; }
.eod-page .eod-pay th[scope=row] small, .eod-page .eod-grid .eod-pay tr.eod-r:has(th[title]) th small { display: none; }
.eod-page .eod-grid .eod-pay td input { min-height: 28px; padding: 1px 8px; } .eod-page .eod-grid .eod-pay td, .eod-page .eod-grid .eod-pay th { padding: 1px 5px; }
.eod-page .eod-top { flex-wrap: nowrap; } .eod-page .eod-top p { display: flex; gap: 6px; align-items: center; } .eod-page .eod-addm label { flex-direction: row; align-items: center; gap: 6px; }
.eod-page .eod-staffc .eod-staff td input { min-height: 26px; }
.eod-page .eod-more { margin-top: 8px; }
.eod-page .eod-top { flex-wrap: wrap; } .eod-grid .eod-pay th[scope=row] { white-space: normal; line-height: 1.1; } .eod-grid .eod-pay th[scope=row] .eod-l { overflow: visible; max-width: none; white-space: normal; }
.eod-page .eod-top .eod-addm label { white-space: nowrap; }

/* Diary on a tablet (and every other size): a compact header so the calendar gets the screen; the page never scrolls, only the calendar does */
.dy-attn { margin: 0 0 4px; padding: 5px 12px; font-size: .86rem; }
.pills { margin-bottom: 6px; }
.dy-bar { gap: 6px 12px; margin: 0 0 6px; }
.dy-title h1 { font-size: 1.2rem; } .dy-title p { font-size: .74rem; margin: 0; max-width: none; }
.dy-nav .btn, .dy-pick .btn, .dy-tools .btn { min-height: 38px; padding: 4px 14px; } .dy-pick input { min-height: 38px; max-width: 150px; }
.dy-paytabs .dy-pay { padding: 5px 12px; font-size: .86rem; } .dy-chip { padding: 3px 9px; font-size: .76rem; }
.dy-tools { margin-left: auto; gap: 6px; } .dy-upd { display: none; }
@media (min-width: 700px) and (min-height: 520px) {
  main.wide { height: 100vh; display: flex; flex-direction: column; overflow: hidden; padding-bottom: 8px; padding-top: 8px; }
  main.wide > .dy { flex: 1 1 auto; min-height: 0; align-items: stretch; }
  main.wide .dy-main { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
  main.wide .dy-wrap { height: auto; flex: 1 1 auto; min-height: 0; }
}
@media (min-width: 1500px) { .dy-upd { display: inline; } }
@media (min-width: 700px) {
  .dy-bar .dy-nav { order: 1; } .dy-bar .dy-title { order: 2; } .dy-bar .dy-pick { order: 3; } .dy-bar .dy-tools { order: 4; margin-left: auto; } .dy-bar .dy-paytabs { order: 5; } .dy-bar .dy-chips { order: 6; }
  .dy-pick .btn { display: none; } .dy-bar .dy-paytabs { margin-left: 0; }
}
.dy-h { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 8px; padding: 5px 6px 4px; } .dy-h b { flex: 1 0 100%; } .dy-h small, .dy-h .dy-meter { font-size: .72rem; }
.cm-g { display: block; padding: 0; } .cm-g > summary { cursor: pointer; display: flex; gap: 10px; align-items: center; padding: 8px 6px; min-height: 40px; } .cm-g > summary .cm-gl { flex: 0 0 auto; } .cm-g > summary small { flex: 1 1 auto; }
.cm-g > summary input, .cm-i input { width: 20px; height: 20px; } .cm-g.all, .cm-g.has { background: #e6f4ea; border-radius: 8px; } .cm-g.all .cm-i { opacity: .45; }
.cm-items { grid-template-columns: 1fr 1fr; padding: 2px 8px 8px 34px; } .cm-i { min-height: 36px; padding: 2px 6px; } .cm-i[hidden], .cm-g[hidden] { display: none; }
@media (max-width: 700px) { .cm-items { grid-template-columns: 1fr; } }

/* Consent editor: section 2 (what the form is asked for) gets the room, the questions are smaller; assigned groups come first, with a visible arrow to open a group */
.ce-grid { grid-template-columns: minmax(380px, 1.5fr) minmax(300px, 1fr); gap: 12px; }
.cm-list { max-height: 62vh; }
.cm-hd { margin: 6px 4px 2px; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #14532d; } .cm-hd2 { color: #4a5b7a; border-top: 1px solid #d5dbe6; padding-top: 8px; margin-top: 8px; }
.cm-g > summary { list-style: none; } .cm-g > summary::-webkit-details-marker { display: none; }
.cm-g > summary::before { content: "▸"; flex: 0 0 auto; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; color: #1d2f52; background: #eaf2ff; border: 1.5px solid #8793a8; border-radius: 8px; transition: transform .12s; order: -1; }
.cm-g[open] > summary::before { transform: rotate(90deg); }
.cm-g.has > summary b { color: #14532d; }
.ce-q { max-height: 66vh; font-size: .82rem; } .ce-right h2 { font-size: .95rem; } .ce-q .cf-sec { padding: 2px 8px; margin: 4px 0; } .ce-q summary { font-size: .85rem; padding: 2px 0; }
.ce-q .data th { font-size: .66rem; padding: 2px 4px; } .ce-q .data td { padding: 1px 3px; }
.ce-q input, .ce-q select { font-size: .8rem; min-height: 28px; padding: 2px 6px; } .ce-q .fl { margin-bottom: 4px; font-size: .78rem; }
.ce-right textarea { font-size: .8rem; }

/* checkout: the "add another card" button sits right under the Card row, across the whole width */
.co-modal .co-pay .co-addcardrow, .co .co-pay .co-addcardrow { grid-column: 1 / -1; margin: 0; padding: 0 0 2px 2px; } .co-addcardrow .btn { min-height: 30px; padding: 2px 12px; border-style: dashed; }

/* consent tablet / form pages: the whole page scrolls (main.wide is a fixed-height diary layout that must not trap the form) */
body.kiosk main.wide, body.kiosk main { height: auto !important; min-height: 100vh; overflow: visible !important; display: block !important; }
html:has(body.kiosk), body.kiosk { height: auto; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.cf-nm { display: block; font-weight: 600; } .cf-nm input { display: block; width: 100%; margin: 4px 0 10px; font-size: 1.1rem; padding: 10px 12px; }
.vw-hist { margin-left: 8px; vertical-align: middle; }

.tb-consent { margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; background: #fff7e0; border: 1px solid #e8c766; color: #6b4b00; font-size: .85rem; font-weight: 600; }
.tb-consent[hidden] { display: none; }

/* ===== End day: polished, professional look (2026-11-21). Layout rules above stay; this layer only dresses them. ===== */
.eod-page { --eod-navy: #0a2247; --eod-blue: #036ad5; }
.eod-page .phead h1 { font-size: 1.55rem; letter-spacing: -.01em; color: var(--eod-navy); }
.eod-page .notice { border-radius: 12px; border-left-width: 5px; }
.eod-kpis { display: grid; grid-template-columns: 1.35fr repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 6px 0 12px; }
.eod-k { position: relative; display: flex; flex-direction: column; gap: 1px; padding: 10px 14px 10px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.eod-k::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--eod-blue); }
.eod-kl { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.eod-kv { font-size: 1.45rem; line-height: 1.15; font-weight: 800; color: var(--eod-navy); font-variant-numeric: tabular-nums; }
.eod-ks { font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eod-k-main { background: linear-gradient(135deg, #0a2247 0%, #0b4aa8 100%); border-color: transparent; color: #fff; }
.eod-k-main::before { background: var(--gold); } .eod-k-main .eod-kl, .eod-k-main .eod-ks { color: #cfe0fb; } .eod-k-main .eod-kv { color: #fff; font-size: 1.9rem; }
.eod-k-cash::before { background: #16a36a; } .eod-k-card::before { background: #7c4dd8; } .eod-k-till::before { background: var(--gold-deep); }
.eod-k-ok { background: var(--ok-soft); } .eod-k-ok::before { background: var(--ok); } .eod-k-bad { background: var(--danger-soft); } .eod-k-bad::before { background: var(--danger); }
.eod-grid > section.card { border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 12px 14px 12px; }
.eod-grid h2 { display: flex; align-items: center; gap: 9px; font-size: 1.02rem; color: var(--eod-navy); padding-bottom: 8px; margin: 0 0 8px; border-bottom: 1px solid var(--line); }
.eod-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--eod-blue); color: #fff; font-style: normal; font-size: .8rem; font-weight: 800; flex: none; }
.eod-grid table.data thead th { background: #f0f5fd; color: #35507a; font-size: .68rem; letter-spacing: .06em; border-bottom: 1px solid var(--line); }
.eod-grid table.data thead th:first-child { border-top-left-radius: 10px; } .eod-grid table.data thead th:last-child { border-top-right-radius: 10px; }
.eod-grid .eod-pay tbody tr.eod-r:nth-child(even) th, .eod-grid .eod-pay tbody tr.eod-r:nth-child(even) td:not(.eod-sys) { background: #fafcff; }
.eod-grid .eod-pay tbody tr:hover th, .eod-grid .eod-pay tbody tr:hover td:not(.eod-sys) { background: #f2f7ff; }
.eod-grid .eod-pay td input, .eod-grid .eod-staff td input { border: 1.5px solid #c6d6ee; border-radius: 9px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.eod-grid .eod-pay td input:focus, .eod-grid .eod-staff td input:focus { border-color: var(--eod-blue); box-shadow: 0 0 0 3px rgb(3 106 213 / .18); outline: none; }
.eod-pay .eod-sys { background: #eaf2fd; color: var(--eod-navy); }
.eod-pay .eod-diff.ok { color: var(--ok); } .eod-pay .eod-diff.bad { color: var(--danger); }
.eod-pay .eod-diff.ok, .eod-pay .eod-diff.bad { font-weight: 800; }
.eod-pay tfoot .eod-total th, .eod-pay tfoot .eod-total td { background: #0a2247; color: #fff; border-top: 0; font-size: 1rem; padding: 7px 8px; }
.eod-pay tfoot .eod-total th { border-bottom-left-radius: 10px; } .eod-pay tfoot .eod-total td:last-child { border-bottom-right-radius: 10px; }
.eod-pay tfoot .eod-diff.ok { color: #7ee2a8; } .eod-pay tfoot .eod-diff.bad { color: #ffb4a8; }
.eod-foot { border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow); background: linear-gradient(180deg, #fff, #f6faff); }
.eod-foot .btn.lg { background: linear-gradient(135deg, #0b6fe0, #0944b1); border: 0; padding: 12px 30px; font-size: 1.1rem; border-radius: 12px; box-shadow: 0 8px 18px -8px rgb(9 68 177 / .7); }
.eod-foot .btn.lg:hover { filter: brightness(1.08); transform: translateY(-1px); }
.eod-more details.card { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); } .eod-more summary { cursor: pointer; padding: 2px 0; }
@media (max-width: 900px) { .eod-kpis { grid-template-columns: 1fr 1fr; } .eod-k-main { grid-column: 1 / -1; } }
.eod-kpis { display: flex; flex-wrap: wrap; gap: 8px; } .eod-kpis .eod-k { flex: 1 1 130px; padding: 7px 10px 7px 14px; } .eod-kpis .eod-k-main { flex: 1.5 1 170px; }
.eod-kpis .eod-kv { font-size: 1.25rem; } .eod-kpis .eod-k-main .eod-kv { font-size: 1.6rem; }
.eod-page .eod-grid > section.card h2 small { display: none; }
.eod-page .eod-grid h2 { padding-bottom: 5px; margin-bottom: 6px; }
@media (max-width: 700px) { .eod-kpis .eod-k, .eod-kpis .eod-k-main { flex: 1 1 45%; } }
.eod-page .eod-grid section.card h2 small { display: none; } .eod-staff .eod-hrs { font-size: .8rem; text-align: right; padding-right: 8px; }

.ed-xrow { margin-top: 4px; } .ed-xt { display: block; margin: 6px 0 2px; font-size: .72rem; font-weight: 700; color: #35507a; }

/* ===== Offers: simple, organised list; editors stay closed until Edit is pressed (2026-11-21) ===== */
.of-page { max-width: 1180px; }
.of-gh { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 18px 0 8px; font-weight: 800; }
.of-list { display: flex; flex-direction: column; gap: 10px; }
.of-add { margin: 4px 0 6px; }
.of-card { padding: 0; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.of-card > summary.of-sum { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(200px, 1.4fr) minmax(180px, 1.2fr) minmax(140px, 1fr) auto; gap: 6px 16px; align-items: center; padding: 12px 16px 12px 20px; position: relative; }
.of-card > summary.of-sum::-webkit-details-marker { display: none; }
.of-card > summary.of-sum::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: #98a6bd; }
.of-card > summary.of-good::before { background: var(--ok); } .of-card > summary.of-warn::before { background: var(--gold-deep); } .of-card > summary.of-bad::before { background: var(--danger); }
.of-card > summary.of-sum:hover { background: #f5f9ff; }
.of-title { font-size: 1.02rem; color: var(--navy); } .of-meta { font-size: .85rem; color: var(--muted); } .of-cov { font-size: .84rem; color: #35507a; }
.of-badge { display: inline-block; padding: 1px 9px; border-radius: 999px; background: var(--gold); color: #5a3b00; font-weight: 800; font-size: .76rem; }
.of-go { justify-self: end; padding: 6px 16px; border-radius: 999px; border: 1.5px solid var(--brand); color: var(--brand); font-weight: 700; font-size: .85rem; } .of-card[open] > summary .of-go { background: var(--brand); color: #fff; }
.of-card[open] > summary.of-sum { border-bottom: 1px solid var(--line); background: #f5f9ff; }
.of-card > summary.of-new { display: flex; align-items: center; gap: 12px; padding: 14px 20px; background: linear-gradient(135deg, #0b6fe0, #0944b1); color: #fff; } .of-card > summary.of-new::before { display: none; } .of-card > summary.of-new:hover { filter: brightness(1.07); background: linear-gradient(135deg, #0b6fe0, #0944b1); }
.of-card > summary.of-new b { font-size: 1.05rem; } .of-card > summary.of-new .muted { color: #cfe0fb; }
.of-plus { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgb(255 255 255 / .2); font-size: 1.3rem; font-weight: 800; line-height: 1; }
.of-card[open] > summary.of-new { background: linear-gradient(135deg, #0a2247, #0b4aa8); border-bottom: 0; }
.of-card > form.offer-f { padding: 14px 18px 8px; } .of-card > form.inline { display: block; padding: 0 18px 14px; text-align: right; }
.of-card h3 { display: flex; align-items: center; gap: 8px; font-size: .98rem; color: var(--navy); margin: 0 0 8px; } .of-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; font-style: normal; font-size: .75rem; font-weight: 800; }
.of-card .of-left .btn[type=submit] { padding: 10px 26px; border-radius: 10px; }
.of-card .of-groups { border-radius: 12px; }
@media (max-width: 900px) { .of-card > summary.of-sum { grid-template-columns: 1fr auto; } .of-meta, .of-cov { grid-column: 1 / 2; } .of-go { grid-row: 1; grid-column: 2; } }
.of-left .row-f { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .of-left .row-f .fl { display: flex; flex-direction: column; gap: 3px; margin: 0; } .of-left .row-f .fl span { font-weight: 600; font-size: .85rem; }
.of-left .row-f input[type=date] { width: 100%; box-sizing: border-box; }
.of-days { display: flex; flex-wrap: wrap; gap: 6px; border-radius: 12px; } .of-days .chk { padding: 4px 10px; min-height: 0; }

/* ===== Checkout redesign (2026-11-21): customer + full number + notes, loyalty line, discounts/credits group, Amount due, then Payment method ===== */
.co-mob { font-weight: 600; color: #35507a; margin-left: 6px; } .co-notes { margin: 2px 0 4px; font-size: .78rem; color: #6b4b00; background: #fff7e0; border: 1px solid #f1d98a; border-radius: 8px; padding: 3px 8px; } .co-notes p { margin: 1px 0; }
.co-modal .co-loy { margin: 2px 0 6px; } .co-modal .co-loy summary { list-style: none; cursor: pointer; padding: 4px 2px; font-size: .92rem; border-bottom: 1px solid var(--line); } .co-modal .co-loy summary::-webkit-details-marker { display: none; }
.co-credits { padding: 8px 0 4px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.co-due { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 6px 0 4px; padding: 6px 10px; border-radius: 10px; background: #eaf2fd; border: 1px solid #c6d6ee; } .co-due output { font-size: 1.15rem; font-weight: 800; color: var(--navy); }
.co-methods { margin-top: 2px; }
.co-modal .co-credits, .co-modal .co-methods { gap: 3px 8px; } .co-modal .co-credits .co-m, .co-modal .co-methods .co-m { padding-top: 0; padding-bottom: 0; margin: 0; }
.co-modal .co-credits .co-fill, .co-modal .co-methods .co-fill { min-height: 32px; padding: 1px 8px; font-size: .84rem; line-height: 1.05; } .co-modal .co-credits .co-amt, .co-modal .co-methods .co-amt { min-height: 32px; padding: 1px 8px; }
.co-modal .co-credits select, .co-modal .co-credits .co-ref { min-height: 32px; padding: 1px 6px; }

/* ===== Packages (2026-11-21) ===== */
.pk-t { width: 100%; } .pk-t thead th { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: #35507a; background: #f0f5fd; } .pk-t tfoot .pk-total th, .pk-t tfoot .pk-total td { background: #0a2247; color: #fff; font-weight: 800; padding: 7px 8px; } .pk-t tfoot .pk-total th small { color: #cfe0fb; font-weight: 400; }
.pk-x { border: 1px solid #b42318; color: #b42318; background: #fff; border-radius: 6px; width: 24px; height: 24px; line-height: 1; cursor: pointer; font-size: 1rem; }
.pk-price { margin-top: 10px; align-items: end; } .pk-save { margin: 0 0 8px; padding: 6px 12px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); } .pk-sel { margin: 6px 0 4px; }
.pk-row[hidden] { display: none; }
.pk-inc { display: block; font-size: .78rem; color: #6a7a96; margin-top: 1px; font-weight: 400; }

/* ===== treatments with options: group > treatment > option, three vertical layers (2026-11-21) ===== */
.tb-par { display: contents; }
.tb-ptile { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 66px; padding: 8px 12px; border: 2px dashed var(--brand); border-radius: 12px; background: #fff; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.tb-ptile b { font-size: .92rem; line-height: 1.2; } .tb-ptile small { color: var(--muted); } .tb-chev { font-style: normal; margin-left: 4px; color: var(--brand); }
.tb-par.open > .tb-ptile { background: var(--own-bg); border-style: solid; } .tb-par.has-on > .tb-ptile { border-style: solid; box-shadow: inset 0 0 0 1px var(--brand); } .tb-par.has-on > .tb-ptile b::before { content: '✓ '; color: var(--brand); }
.tb-subs { grid-column: 1 / -1; margin: 0 0 4px; padding: 8px 10px 10px 14px; border-left: 4px solid var(--brand); border-radius: 0 12px 12px 0; background: #f4f8ff; } .tb-subs[hidden] { display: none; }
.tb-subh { margin: 0 0 6px; font-size: .78rem; font-weight: 700; color: #35507a; text-transform: uppercase; letter-spacing: .05em; }
.tb-subg { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.tb-searching .tb-ptile { display: none; } .tb-searching .tb-subs { display: block; background: none; border: 0; padding: 0; } .tb-searching .tb-subh { display: none; }
.dy-dialog > .dlg-notice { margin: 6px 14px 4px; flex: none; font-weight: 700; } .dy-dialog > .dlg-notice.bad { background: #fdecea; border-color: #b42318; color: #7a1208; border-width: 2px; border-left-width: 6px; }

/* Rota report: a proper grid, every cell outlined, so a row can be followed across the week */
.rpt table.data { border-collapse: collapse; width: 100%; border: 1px solid #9fb3d1; }
.rpt table.data th, .rpt table.data td { border: 1px solid #c3d1e6; padding: 6px 8px; vertical-align: middle; }
.rpt table.data thead th { background: #e4edf9; color: #1d2f52; border-color: #9fb3d1; text-align: center; font-size: .78rem; }
.rpt table.data thead th:first-child { text-align: left; }
.rpt table.data tbody th.who { background: #f3f7fd; text-align: left; font-size: .8rem; letter-spacing: .03em; white-space: nowrap; }
.rpt table.data tbody td { text-align: center; font-size: .84rem; }
.rpt table.data tbody tr:nth-child(even) td { background: #fafcff; } .rpt table.data tbody tr:hover td, .rpt table.data tbody tr:hover th { background: #eef4fd; }
.rpt table.data td.num, .rpt table.data th.num { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.rpt .rp-s { white-space: nowrap; } .rpt .rp-s + .rp-s { border-top: 1px dashed #c3d1e6; margin-top: 3px; padding-top: 3px; }
.rpt table.data tfoot th, .rpt table.data tfoot td, .rpt table.data tr.foot th, .rpt table.data tr.foot td { border-color: #9fb3d1; }
@media print { .rpt table.data, .rpt table.data th, .rpt table.data td { border-color: #555 !important; } .rpt table.data td { background: none !important; } }

.emp-off td { opacity: .6; } .emp-off td.emp-act { opacity: 1; } .emp-st { margin-top: -4px; } .emp-st .pill-link b { margin-left: 4px; padding: 0 7px; border-radius: 999px; background: #e4edf9; font-size: .75rem; } .emp-deact { color: #b42318; border-color: #b42318; } .emp-act { white-space: nowrap; }

.wk-sep th { background: #eef3fb; color: #35507a; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-align: left; padding: 7px 12px; border-top: 2px solid #9fb3d1; } .wk-row.top .who { box-shadow: inset 4px 0 0 var(--brand); }

/* ===== Week planner: shifts in the salon's colour, this week / next week backgrounds (2026-11-21) ===== */
.wk-btn.has.sc:not(.kind) { background: color-mix(in srgb, var(--sc) 24%, #fff); border-color: var(--sc); color: #0a2247; font-weight: 700; box-shadow: inset 4px 0 0 var(--sc); }
td.past span.sc { display: inline-block; padding: 2px 8px; border-radius: 8px; background: color-mix(in srgb, var(--sc) 16%, #fff); border-left: 4px solid var(--sc); color: #0a2247; }
.wk-scroll.wk-w-this { background: #eaf3ff; box-shadow: 0 0 0 3px #bcd8fb; border-radius: 12px; } .wk-scroll.wk-w-next { background: #fff3df; box-shadow: 0 0 0 3px #f6d9a6; border-radius: 12px; }
.wk-w-this .wk-sheet thead th { background: #d6e8fd; } .wk-w-next .wk-sheet thead th { background: #fde6bd; }
.wk-bar .pill-link.on[href="/week"] { background: #1c6fd1; color: #fff; }

/* booking past closing time: red until the person confirms */
.tb-summary.late, #ed-sum.late { color: #b42318; font-weight: 800; background: #fdecea; border-radius: 8px; padding: 6px 10px; border: 1.5px solid #b42318; }
.tb.is-late .tb-book, .tb.is-late .tb-co { background: #b42318; border-color: #b42318; } .tb.is-late .tb-book::after, .tb.is-late .tb-co::after { content: ' ⚠'; }

/* ===== Booking windows (New booking and Edit appointment): tablet-first layout (2026-11-22) =====
   One screen, no page scrolling, from a 1024x768 tablet up: Customer | Treatments (the wide one) | Who and when. The right column is tight and the cart takes the spare height. */
@media (min-width: 760px) {
  .dy-dialog { width: min(1600px, 99vw); height: min(98vh, 900px); max-height: 98vh; border-radius: 14px; }
  .dy-modal { padding: 1vh 0.5vw; }
  .dy-dialog .dy-dh { padding: 6px 16px 4px; } .dy-dialog .dy-dh h2 { font-size: 1.2rem; margin: 0; } .dy-dialog .dy-dh p { margin: 0; font-size: .82rem; }
  .dy-dialog .tb-grid { grid-template-columns: minmax(228px, 262px) minmax(0, 1fr) minmax(290px, 330px); gap: 10px; padding: 8px 12px; overflow: hidden; }
  .dy-dialog .tb-col { padding: 8px 10px; border-radius: 12px; overflow: auto; }
  .dy-dialog .tb-h { margin: 0 0 6px; font-size: 1rem; } .dy-dialog .tb-h small { display: none; } .dy-dialog .tb-h i { width: 22px; height: 22px; font-size: .75rem; }
  /* 1 Customer */
  .tb-c1 > input, .tb-c1 .tb-staffcust select { min-height: 42px; font-size: 1rem; padding: 4px 10px; margin-bottom: 6px; }
  .tb-c1 .tb-keys { gap: 5px; margin: 0 0 4px; } .tb-c1 .tb-key { min-height: 40px; font-size: 1.15rem; border-width: 1.5px; border-radius: 10px; }
  .tb-c1 .tb-known { margin: 2px 0; font-size: .8rem; } .tb-c1 .tb-staffcust { font-size: .78rem; } .tb-c1 .tb-ournote { margin-top: 4px; font-size: .82rem; } .tb-c1 .tb-ournote textarea { min-height: 0; rows: 2; height: 58px; font-size: .9rem; padding: 6px 8px; } .tb-c1 .tb-sens { font-size: .8rem; margin-top: 2px; }
  /* 2 Treatments: the wide column */
  .tb-c2 .tb-q { min-height: 42px; margin-bottom: 6px; font-size: 1rem; }
  .tb-treat { grid-template-columns: 132px minmax(0, 1fr); gap: 8px; }
  .tb-treat .tb-tab { min-height: 40px; padding: 2px 10px; font-size: .9rem; border-radius: 10px; border-width: 1.5px; }
  .tb-tiles .tb-grp { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 6px; }
  .tb-tile, .tb-ptile { min-height: 54px; padding: 5px 9px; border-radius: 10px; } .tb-tile b, .tb-ptile b { font-size: .86rem; } .tb-tile small, .tb-ptile small { font-size: .74rem; }
  .tb-else { margin-top: 4px; } .tb-else summary { font-size: .85rem; } .tb-else input { min-height: 40px; }
  /* 3 Who and when: tight, the cart takes what is left */
  .dy-dialog .tb-c3 { display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
  .tb-c3 .tb-s { margin: 0; padding: 0; border: 0; min-width: 0; } .tb-c3 .tb-s legend { padding: 0 0 2px; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; float: none; }
  .tb-c3 .tb-who { gap: 5px; max-height: 98px; overflow: auto; } .tb-c3 .tb-chip span { min-height: 36px; padding: 0 10px; font-size: .88rem; border-left-width: 6px; border-radius: 10px; border-width: 1.5px; }
  .tb-c3 .tb-two { display: block; } .tb-c3 .tb-dt { display: grid; grid-template-columns: 1fr; gap: 4px; }
  .tb-c3 .tb-dt > input[type=date] { width: 100%; min-height: 40px; font-size: 1rem; padding: 2px 8px; box-sizing: border-box; }
  .tb-c3 .tb-time { display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px; gap: 5px; } .tb-c3 .tb-time input { min-height: 42px; font-size: 1.15rem; text-align: center; border-width: 1.5px; } .tb-c3 .tb-step, .tb-c3 .tb-tstep { min-width: 0; min-height: 42px; border-width: 1.5px; border-radius: 10px; font-size: .95rem; }
  .tb-c3 .tb-src { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; } .tb-c3 .tb-seg span { min-height: 38px; padding: 0 6px; justify-content: center; width: 100%; font-size: .88rem; border-width: 1.5px; border-radius: 10px; }
  .tb-c3 .tb-cart { position: static; flex: 1 1 auto; min-height: 120px; display: flex; flex-direction: column; margin: 0; padding: 8px 10px; border-width: 1.5px; overflow: hidden; }
  .tb-c3 .tb-cart h3 { margin: 0 0 4px; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); } .tb-c3 #tb-cart { flex: 1 1 auto; overflow: auto; min-height: 0; }
  .tb-c3 .tb-cr { padding: 4px 0; } .tb-c3 .tb-need { flex: none; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); } .tb-c3 .tb-need legend { padding: 0 0 2px; }
  .tb-c3 .tb-total { display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px; gap: 5px; align-items: center; } .tb-c3 .tb-total output { text-align: center; font-size: .95rem; padding: 6px 2px; border-width: 1.5px; border-radius: 10px; }
  .tb-c3 .tb-note { margin: 0; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); } .tb-c3 .tb-note small { display: none; } .tb-c3 .tb-note input { min-height: 38px; font-size: .95rem; text-transform: none; letter-spacing: 0; color: var(--ink); }
  .tb-c3 .tb-consent { margin: 4px 0 0; padding: 5px 8px; font-size: .78rem; }
  /* the foot */
  .dy-dialog .tb-foot { padding: 6px 14px 8px; gap: 12px; } .dy-dialog .tb-foot .tb-summary { font-size: .9rem; margin: 0; flex: 1; } .dy-dialog .tb-foot .btn.lg, .tb-book, .tb-co { min-height: 50px; font-size: 1.1rem; min-width: 180px; } .dy-dialog .tb-foot .btn.ghost { min-height: 50px; }
  /* the Edit window: the same grid, its list on the left */
  .ed .tb-grid, .dy-dialog .ed .tb-grid { grid-template-columns: minmax(300px, 380px) minmax(0, 1fr) minmax(250px, 290px); }
  .ed .tb-c1 .ed-list { max-height: none; } .ed .tb-c3 .tb-note, .ed .tb-c1 .tb-note { text-transform: none; letter-spacing: 0; font-size: .85rem; color: var(--ink); }
}
@media (min-width: 760px) and (max-width: 1100px) {
  .dy-dialog .tb-grid { grid-template-columns: minmax(214px, 236px) minmax(0, 1fr) minmax(262px, 292px); gap: 8px; padding: 6px 8px; overflow: hidden; }
  .ed .tb-grid, .dy-dialog .ed .tb-grid { grid-template-columns: minmax(270px, 320px) minmax(0, 1fr) minmax(230px, 262px); }
  .tb-treat { grid-template-columns: 112px minmax(0, 1fr); } .tb-tiles .tb-grp { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
  .tb-c1 .tb-key { min-height: 36px; font-size: 1.05rem; } .tb-c3 .tb-chip span { padding: 0 8px; font-size: .82rem; }
}
/* the older narrow-screen rules turned the windows into one long column from 1100px down; a tablet keeps the three columns (the phone width below 760px keeps one) */
@media (min-width: 760px) {
  .dy-dialog .tb-grid, .dy-dialog .ed .tb-grid, .ed .tb-grid { display: grid; overflow: hidden; }
  .dy-dialog .tb-grid > .tb-col { margin: 0; height: auto; min-height: 0; overflow: auto; }
  .dy-dialog .tb-grid > .tb-c2 { display: flex; flex-direction: column; overflow: hidden; } .dy-dialog .tb-grid > .tb-c3 { overflow: hidden; }
  .tb-c2 .tb-tiles { max-height: none; overflow: auto; } .tb-tiles { max-height: none; }
  .tb-treat { min-height: 0; } .tb-treat .tb-tabs { flex-direction: column; flex-wrap: nowrap; overflow: auto; }
}
@media (min-width: 760px) {
  .tb-c3 .tb-s legend { display: block; width: 100%; }
  .tb-c3 .tb-seg span { white-space: nowrap; font-size: .82rem; padding: 0 4px; }
}

/* week planner: a highlighted hours row for each salon (vertical totals by day), in the salon's colour */
.wk-sheet tr.wk-sum th, .wk-sheet tr.wk-sum td { background: color-mix(in srgb, var(--sc, #1c6fd1) 30%, #fff); color: #0a2247; font-weight: 800; border-top: 2px solid var(--sc, #1c6fd1); border-bottom: 2px solid var(--sc, #1c6fd1); padding: 7px 8px; text-align: center; font-variant-numeric: tabular-nums; }
.wk-sheet tr.wk-sum th { text-align: left; letter-spacing: .05em; font-size: .78rem; box-shadow: inset 5px 0 0 var(--sc, #1c6fd1); padding-left: 14px; } .wk-sheet tr.wk-sum td.hrs { font-size: 1rem; }

.wk-btn .wk-sn, td.past .wk-sn { display: block; font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: color-mix(in srgb, var(--sc, #1c6fd1) 70%, #0a2247); margin-bottom: 1px; line-height: 1.1; } .wk-btn .wk-t { display: block; }
td.past span.sc { text-align: center; } td.past span .wk-t { display: block; }
/* the consent form editor on a phone or a small tablet: one column (the wider-screen rules above would keep two) */
@media (max-width: 900px) { .ce-grid { grid-template-columns: minmax(0, 1fr); } .ce-q, .cm-list { max-height: none; } .ce-grid > * { min-width: 0; } }
/* a table that sits straight in a card (no scroll wrapper) scrolls inside the card on a phone instead of widening the whole page */
@media (max-width: 900px) { main .card > table.data, main section > table.data, main form > table.data { display: block; max-width: 100%; overflow-x: auto; } }
/* the diary with many people (more columns than the screen is wide) scrolls inside its own frame; it must never widen the page */
@media (max-width: 1250px) { .dy { align-items: stretch; } .dy-main { width: 100%; max-width: 100%; min-width: 0; } }
main { min-width: 0; } .dy-wrap { max-width: 100%; }
.ce-left small, .ce-right small, .cm-g small, .ce-grid small { overflow-wrap: anywhere; }

/* ---------- Logins and roles: one clear card per login, no sideways scrolling ---------- */
.logins { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.lgc { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr) auto; gap: 12px 18px; align-items: center; padding: 14px 16px; border: 1px solid var(--line, #e3e6ee); border-radius: 12px; background: var(--card, #fff); }
.lg-who b { overflow-wrap: anywhere; } .lg-meta { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; } .lg-url { margin: 6px 0 0; overflow-wrap: anywhere; }
.lg-pw { display: flex; gap: 8px; align-items: center; margin: 0; } .lg-pw input[name=password] { flex: 1 1 160px; min-width: 0; margin: 0; }
.lg-act { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; } .lg-act form { margin: 0; }
.btn.lg-del { background: transparent; color: #b3261e; border-color: color-mix(in srgb, #b3261e 45%, transparent); } .btn.lg-del:hover { background: color-mix(in srgb, #b3261e 10%, transparent); }
.lg-add { max-width: 860px; } .lg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; align-items: start; } .lg-grid .co-tip { grid-column: 1 / -1; }
@media (max-width: 1100px) { .lgc { grid-template-columns: minmax(0, 1fr); } .lg-act { justify-content: flex-start; } }
@media (max-width: 640px) { .lg-grid { grid-template-columns: 1fr; } .lg-pw { flex-wrap: wrap; } .lg-pw .btn { flex: 1 1 100%; } }

/* every planner box shows its working salon above the time, taken from data-sn (written by the page itself, kept up to date while editing) */
.wk-btn[data-sn]:not([data-sn=""])::before { content: attr(data-sn); display: block; font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: color-mix(in srgb, var(--sc, #1c6fd1) 70%, #0a2247); margin-bottom: 1px; line-height: 1.1; }

/* Employees on a tablet: Status and the Make inactive / Make active button stay on screen; the less important columns step aside */
.emp-t td.emp-act { white-space: normal; }
.emp-t td.emp-act .btn, .emp-t td.emp-act form { margin: 2px 0; }
@media (max-width: 1180px) { .emp-t .c-ph, .emp-t .c-svc { display: none; } }
@media (max-width: 860px) { .emp-t .c-hrs { display: none; } .emp-t th, .emp-t td { padding-left: 8px; padding-right: 8px; } .emp-t td.emp-act { min-width: 120px; } }

/* Checkout: the link-like button that opens the card machine list */
.co-pickm { background: none; border: 0; padding: 6px 0; font: inherit; font-size: .85rem; color: #1c6fd1; text-decoration: underline; cursor: pointer; text-align: left; }
.co-mach[open] { border: 1px solid #c9d6ee; border-radius: 10px; padding: 6px 10px; background: #f6f9ff; }
/* Master list of services: active / inactive, sub service chips, the owner's salon-by-salon matrix */
.svc-off td { opacity: .72; } .svc-off td:first-child { opacity: 1; } .svc-chips { display: block; margin-top: 2px; font-size: .75rem; }
.svc-master .emp-st { margin: 8px 0 4px; }
.svc-matrix .data td, .svc-matrix .data th { white-space: nowrap; vertical-align: middle; }
.svc-matrix td.svc-on button { background: #e3f5ea; border-color: #2a7a4b; color: #1d5a37; } .svc-matrix td.svc-off button { color: #5b6477; }
.svc-matrix .svc-subrow td { font-size: .85rem; padding-top: 2px; padding-bottom: 2px; background: #f7f9fd; } .svc-matrix .svc-subrow td:first-child { padding-left: 22px; color: #3b4863; }
.svc-matrix td .btn { min-height: 32px; padding: 2px 10px; }

/* Active first, and green: a group with something active, and every active treatment in it */
.svc-g.has-on > summary { background: #e3f5ea; border-left: 4px solid #2a7a4b; } .svc-g.has-on > summary b { color: #1d5a37; }
.svc-count { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #d4efdd; color: #1d5a37; font-weight: 700; }
.svc-g.no-on > summary { border-left: 4px solid transparent; }
tr.svc-on > td { background: #eef9f2; } tr.svc-on > td:first-child { box-shadow: inset 4px 0 0 #2a7a4b; }
.svc-matrix tr:not(.svc-subrow):has(td.svc-on) > td:first-child { box-shadow: inset 4px 0 0 #2a7a4b; background: #eef9f2; }

/* ticked items: green, and listed first (Staff and skills, offers) */
.grp-f.has-on { border-left: 4px solid #2a7a4b; } .grp-f.has-on > legend b { color: #1d5a37; }
.checks .chk.on { background: #e3f5ea; border-radius: 8px; padding: 2px 8px; font-weight: 600; color: #1d5a37; }

.btn.armed { background: #b42318 !important; border-color: #b42318 !important; color: #fff !important; }

/* Master list editing */
.mx-tools { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; padding: 6px 4px 10px; } .mx-f { display: inline-flex; gap: 6px; align-items: center; margin: 0; flex-wrap: wrap; }
.mx-f input, .mx-f select { min-height: 34px; padding: 2px 8px; border: 1px solid var(--line, #cfd8ea); border-radius: 8px; font: inherit; }
.mx-edit { display: inline-block; margin-left: 6px; vertical-align: middle; } .mx-edit > summary { display: inline-block; cursor: pointer; font-size: .75rem; color: #1c6fd1; list-style: none; padding: 0 6px; border: 1px solid #c9d6ee; border-radius: 999px; }
.mx-pop { display: flex; flex-direction: column; gap: 8px; padding: 8px; margin-top: 4px; background: #fff; border: 1px solid #c9d6ee; border-radius: 10px; white-space: normal; max-width: 460px; }
.mx-add .mx-addrow { padding: 8px 0; } .mx-add .mx-f { align-items: flex-end; gap: 10px; }
/* Master list: the owner's order of the groups (2026-11-25): one card, a number box per group, one Save; the number also shows on each group's heading */
.mx-order > summary { cursor: pointer; } .mx-of { margin: 8px 0 0; } .mx-of > p { margin: 0 0 8px; }
.mx-ord { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px 10px; margin: 0 0 10px; }
.mx-oi { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 8px; border: 1px solid var(--line, #cfd8ea); border-radius: 10px; background: #fff; cursor: pointer; }
.mx-oi.set { border-color: #1c6fd1; background: #f1f6fe; } .mx-oi span { font-weight: 600; overflow-wrap: anywhere; line-height: 1.2; }
.mx-oi input { flex: none; width: 3.6em; min-height: 36px; padding: 2px 6px; border: 1px solid var(--line, #cfd8ea); border-radius: 8px; font: inherit; font-weight: 700; text-align: center; }
.mx-obtn { margin: 0; } .mx-searching .mx-order { display: none; }
.mx-no { display: inline-block; min-width: 1.6em; padding: 0 6px; margin-right: 2px; border-radius: 999px; background: #1c6fd1; color: #fff; font-size: .78rem; font-weight: 700; text-align: center; vertical-align: 1px; }

/* Staff and skills from the master list */
.sk-g > summary { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sk-list { display: flex; flex-direction: column; gap: 4px; padding: 6px 4px 10px; } .sk-svc { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 2px 6px; border-radius: 8px; }
.sk-svc.on { background: #eef9f2; box-shadow: inset 4px 0 0 #2a7a4b; } .sk-svc .chk.on { background: transparent; padding: 0; } .sk-subs { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; font-size: .88rem; color: #3b4863; } .sk-subs .chk.sub { opacity: .75; } .sk-subs .chk.sub.on { opacity: 1; color: #1d5a37; font-weight: 600; }

/* Treatments and prices: group tick box, sub services as ticks under the treatment */
.svc-subs { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 4px; font-size: .85rem; color: #3b4863; } .svc-subs .chk.sub { opacity: .75; } .svc-subs .chk.sub.on { opacity: 1; color: #1d5a37; font-weight: 600; }

.svc-switch { margin: 0 0 10px; }

/* a treatment with no price: a store admin types it right here, everyone else sees it locked */
.tb-tile.tb-noprice { border-style: dashed; } .tb-tile .tb-setp { display: none; gap: 6px; margin-top: 6px; } .tb-tile:has(input[name=svc]:checked) .tb-setp { display: flex; }
.tb-tile .tb-setp input { min-height: 40px; width: 100%; padding: 2px 8px; border: 2px solid #c2410c; border-radius: 8px; font: inherit; } .tb-tile .tb-setp input[name^=setm_] { width: 70px; flex: none; }
.tb-tile .tb-nop { display: block; margin-top: 4px; font-size: .72rem; color: #b42318; font-weight: 700; } .tb-tile.tb-noprice small { color: #b42318; }

.sk-tools { display: flex; gap: 8px; padding: 6px 4px 2px; }

.svc-ga .svc-all, .svc-ga .svc-none { margin-right: 4px; }

/* customer page: visit history */
.vh-t td:first-child, .vh-t th:first-child { white-space: nowrap; } .vh-t .paid-amt { font-weight: 700; white-space: nowrap; } .vh-t td { vertical-align: top; } .oldv > summary { cursor: pointer; } .oldv > summary h2 { margin: 0; } .cust-contact { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.vh-m { display: none; margin-top: 2px; } @media (max-width: 700px) { .vh-m { display: block; } }

/* small "Edit name / mobile" under a customer's name (View, Edit and Checkout windows) */
.dy-ce { display: block; margin: 2px 0 4px; }
.dy-ce > summary { cursor: pointer; color: var(--accent, #1d4ed8); list-style: none; display: inline-block; padding: 2px 0; }
.dy-ce > summary::-webkit-details-marker { display: none; }
.dy-ce-f { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin: 6px 0; }
.dy-ce-f label { display: flex; flex-direction: column; gap: 2px; font-size: .85rem; }
.dy-ce-f input { min-width: 150px; }
.co-more { margin-left: 6px; font-size: .85rem; padding: 4px 10px; border: 1px solid #3b4863; border-radius: 999px; background: #fff; color: #1d4ed8; cursor: pointer; }
.pub-priv { margin-top: 18px; text-align: center; }
/* Master list search (2026-11-24): one line at the top; while searching the salon summary steps aside so the results sit right under the box */
.mx-search { padding: 10px 14px; } .mx-qf { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: flex-end; margin: 0; }
.mx-ql { flex: 0 1 560px; } .mx-ql input { width: 100%; max-width: none; min-height: 42px; font-size: 1rem; padding: 6px 12px; border: 1px solid var(--line, #cfd8ea); border-radius: 10px; }
.mx-qn { margin: 6px 0 0; color: #3b4863; } .mx-qn:empty { display: none; } .mx-qn .btn { margin-left: 6px; }
.mx-searching .mx-sum { display: none; }
.svc-matrix [hidden] { display: none !important; }
/* Week planner at a salon (2026-11-24): the PIN box beside Save week, another salon's shift in grey under the box */
.wk-pin { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; } .wk-pin input { width: 5.5em; min-height: 36px; padding: 2px 8px; border: 1px solid var(--line, #cfd8ea); border-radius: 8px; font: inherit; letter-spacing: .2em; text-transform: uppercase; }
.wk-pinhelp { margin: 4px 0 0; } .wk-else { display: block; font-size: .68rem; line-height: 1.15; color: #5b6477; margin-top: 2px; white-space: normal; }

/* ===== New appointment window (2026-11-24, owner: "similar to the old system's New Appointment, with all the features of both; neat and clean") =====
   Top: two rows of fields (Date, Time, Phone, Name, Email / Booked from, Total appointments, Total no-shows, Note) and a thin row for our note.
   Then the service groups as one strip of tabs with the search, then the group's treatments as a list (left) and the appointment table (right). */
.dy-dialog.tbn-dialog { width: min(1440px, 98vw); }
.tbn-dialog .dy-dh { padding: 8px 16px 6px; } .tbn-dialog .dy-dh h2 { font-size: 1.15rem; margin: 0; } .tbn-dialog .dy-dh p { margin: 0; font-size: .8rem; }
.dy-dialog :is(#tb, #ed).tbn .tb-grid.tbn-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 47%); grid-template-rows: auto auto minmax(0, 1fr); grid-template-areas: "top top" "bar bar" "list cart"; gap: 8px 14px; padding: 8px 16px 6px; overflow: hidden; flex: 1; min-height: 0; }
:is(#tb, #ed).tbn .tb-col { border: 0; border-radius: 0; padding: 0; background: none; min-height: 0; }
:is(#tb, #ed).tbn .tbn-top { grid-area: top; overflow: visible; }
:is(#tb, #ed).tbn .tbn-row { display: grid; gap: 6px 12px; align-items: end; }
:is(#tb, #ed).tbn .tbn-r1 { grid-template-columns: 150px 200px minmax(150px, 1fr) minmax(160px, 1.25fr) minmax(160px, 1.25fr); position: relative; }
:is(#tb, #ed).tbn .tbn-r2 { grid-template-columns: minmax(230px, 270px) 140px 140px minmax(0, 1fr); margin-top: 6px; }
:is(#tb, #ed).tbn .tbn-r3 { grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 14px; margin-top: 6px; align-items: center; }
:is(#tb, #ed).tbn .tbn-r3 .tb-known { grid-column: 1 / -1; margin: 0; min-height: 0; } :is(#tb, #ed).tbn .tbn-r3 .tb-known:empty { display: none; }
:is(#tb, #ed).tbn .tbn-f { display: flex; flex-direction: column; gap: 3px; min-width: 0; margin: 0; padding: 0; border: 0; }
:is(#tb, #ed).tbn .tbn-f > span, :is(#tb, #ed).tbn .tbn-f > legend, :is(#tb, #ed).tbn .tb-ournote > span, :is(#tb, #ed).tbn .tb-staffcust > span { font-size: .8rem; font-weight: 600; color: var(--muted); padding: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:is(#tb, #ed).tbn .tbn-f input, :is(#tb, #ed).tbn .tbn-f select, :is(#tb, #ed).tbn .tb-staffcust select, :is(#tb, #ed).tbn .tb-ournote textarea { width: 100%; max-width: none; min-height: 40px; margin: 0; padding: 4px 10px; font: inherit; font-size: .98rem; color: var(--ink); background: #fff; border: 1.5px solid var(--tbn-box); border-radius: 8px; }
:is(#tb, #ed).tbn .tbn-f input:focus, :is(#tb, #ed).tbn .tb-ournote textarea:focus, :is(#tb, #ed).tbn select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgb(3 106 213 / .18); }
:is(#tb, #ed).tbn .tbn-ro input { background: var(--off); color: var(--ink); text-align: center; font-weight: 700; } :is(#tb, #ed).tbn .tbn-ro input.bad { background: #fdecec; color: #b42318; border-color: #f3b4ae; }
:is(#tb, #ed).tbn .tbn-req { color: #dc2626; font-style: normal; }
:is(#tb, #ed).tbn .tbn-hist { font-weight: 400; } :is(#tb, #ed).tbn .tb-hist { font-size: .74rem; color: var(--brand); margin-left: 6px; text-decoration: none; } :is(#tb, #ed).tbn .tb-hist:hover { text-decoration: underline; }
:is(#tb, #ed).tbn .tb-time { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; gap: 4px; margin: 0; }
:is(#tb, #ed).tbn .tb-time .tb-step { min-width: 0; min-height: 40px; padding: 0; border: 1.5px solid var(--tbn-box); border-radius: 8px; background: var(--bg); font-weight: 700; font-size: .9rem; color: var(--muted); }
:is(#tb, #ed).tbn .tb-src { display: flex; flex-wrap: nowrap; gap: 4px; } :is(#tb, #ed).tbn .tb-seg { flex: 1; } :is(#tb, #ed).tbn .tb-seg span { width: 100%; justify-content: center; min-height: 40px; padding: 0 8px; border: 1.5px solid var(--tbn-box); border-radius: 8px; font-size: .9rem; }
:is(#tb, #ed).tbn .tb-seg input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
:is(#tb, #ed).tbn .tb-ournote { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: center; margin: 0; } :is(#tb, #ed).tbn .tb-ournote textarea { min-height: 36px; height: 36px; resize: none; line-height: 1.3; padding: 7px 10px; font-size: .9rem; } :is(#tb, #ed).tbn .tb-ournote textarea:focus { height: 72px; position: relative; z-index: 5; }
:is(#tb, #ed).tbn .tb-sens { margin: 0; white-space: nowrap; font-size: .88rem; } :is(#tb, #ed).tbn .tb-staffcust { display: flex; align-items: center; gap: 8px; margin: 0; } :is(#tb, #ed).tbn .tb-staffcust select { min-height: 36px; width: 190px; font-size: .88rem; }
/* the number pad and the customers found open over the window, under their box */
:is(#tb, #ed).tbn .tbn-phone { position: relative; } :is(#tb, #ed).tbn .tbn-phone .tb-keys { position: absolute; top: 100%; left: 0; z-index: 60; width: 252px; margin: 4px 0 0; padding: 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: #fff; border: 1px solid var(--tbn-box); border-radius: 12px; box-shadow: 0 14px 40px rgb(15 23 42 / .22); }
:is(#tb, #ed).tbn .tbn-phone .tb-keys[hidden] { display: none; } :is(#tb, #ed).tbn .tbn-phone .tb-key { min-height: 46px; font-size: 1.25rem; border: 1.5px solid var(--tbn-box); border-radius: 10px; }
:is(#tb, #ed).tbn .tbn-r1 .tb-sugg { position: absolute; top: 100%; left: calc(150px + 200px + 24px); right: 0; z-index: 55; max-height: 260px; overflow: auto; margin-top: 4px; padding: 6px; display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--tbn-box); border-radius: 12px; box-shadow: 0 14px 40px rgb(15 23 42 / .22); } :is(#tb, #ed).tbn .tbn-r1 .tb-sugg[hidden] { display: none; }
/* the service groups: one strip of tabs (scrolls sideways), the search at its end */
:is(#tb, #ed).tbn .tbn-bar { grid-area: bar; display: flex; gap: 10px; align-items: center; min-width: 0; padding: 4px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); margin: 0 -16px; padding: 4px 16px; }
:is(#tb, #ed).tbn .tb-tabs { display: none; flex: 1; min-width: 0; flex-wrap: nowrap; gap: 0; margin: 0; overflow-x: auto; scrollbar-width: thin; } .tb-js :is(#tb, #ed).tbn .tb-tabs { display: flex; }
:is(#tb, #ed).tbn .tb-tab { flex: none; min-height: 40px; padding: 0 14px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: none; color: var(--brand); font-size: .9rem; font-weight: 500; white-space: nowrap; } :is(#tb, #ed).tbn .tb-tab small { color: var(--muted); font-size: .72rem; }
:is(#tb, #ed).tbn .tb-tab.on { color: var(--ink); font-weight: 700; box-shadow: inset 0 -3px 0 var(--brand); background: #fff; }
:is(#tb, #ed).tbn .tb-q { flex: 0 0 220px; min-height: 38px; margin: 0; padding: 4px 12px; font-size: .92rem; border: 1.5px solid var(--tbn-box); border-radius: 999px; }
/* the treatments of a group: a plain list, the name on the left, a price pill on the right (red once it is added) */
:is(#tb, #ed).tbn .tbn-list { grid-area: list; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
:is(#tb, #ed).tbn .tb-tiles { flex: 1; min-height: 0; overflow: auto; padding: 0; }
:is(#tb, #ed).tbn .tb-grp { display: block; max-height: none; overflow: visible; padding: 0; } :is(#tb, #ed).tbn .tb-grp[hidden] { display: none; }
:is(#tb, #ed).tbn .tb-gh { display: block; position: sticky; top: 0; z-index: 2; margin: 0; padding: 8px 14px; background: #fff; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 1rem; text-transform: none; letter-spacing: 0; } :is(#tb, #ed).tbn .tb-gh .muted { font-weight: 500; }
:is(#tb, #ed).tbn.tb-searching .tb-gh { font-size: .85rem; background: var(--bg); }
:is(#tb, #ed).tbn .tb-tile, :is(#tb, #ed).tbn .tb-ptile { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; min-height: 46px; margin: 0; padding: 6px 14px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: #fff; box-shadow: none; text-align: left; width: 100%; cursor: pointer; }
:is(#tb, #ed).tbn .tb-tile:hover, :is(#tb, #ed).tbn .tb-ptile:hover { background: var(--sky); }
:is(#tb, #ed).tbn .tb-tile b, :is(#tb, #ed).tbn .tb-ptile b { font-size: .95rem; font-weight: 500; color: var(--ink); } :is(#tb, #ed).tbn .tb-tile small, :is(#tb, #ed).tbn .tb-ptile small { color: var(--muted); font-size: .78rem; white-space: nowrap; }
:is(#tb, #ed).tbn .tb-pp { min-width: 58px; padding: 4px 10px; border-radius: 6px; background: var(--brand); color: #fff; font-size: .85rem; font-weight: 700; text-align: center; white-space: nowrap; }
:is(#tb, #ed).tbn .tb-tile:has(input:checked) { background: var(--own-bg); border-color: var(--line); border-width: 0 0 1px; padding: 6px 14px; box-shadow: inset 4px 0 0 var(--brand); } :is(#tb, #ed).tbn .tb-tile:has(input:checked) .tb-pp { background: var(--navy); } :is(#tb, #ed).tbn .tb-tile:has(input:checked) b::before { content: '✓ '; color: var(--brand); font-weight: 700; }
:is(#tb, #ed).tbn .tb-noprice .tb-pp { background: var(--line); color: var(--muted); } :is(#tb, #ed).tbn .tb-setp { grid-column: 1 / -1; display: flex; gap: 6px; } :is(#tb, #ed).tbn .tb-setp input { min-height: 36px; padding: 2px 8px; border: 1.5px solid var(--tbn-box); border-radius: 8px; } :is(#tb, #ed).tbn .tb-nop { grid-column: 1 / -1; font-size: .78rem; color: #b45309; }
:is(#tb, #ed).tbn .tb-par { display: block; } :is(#tb, #ed).tbn .tb-ptile { border-style: solid; } :is(#tb, #ed).tbn .tb-par.open > .tb-ptile, :is(#tb, #ed).tbn .tb-par.has-on > .tb-ptile { background: var(--sky); box-shadow: inset 4px 0 0 var(--brand); }
:is(#tb, #ed).tbn .tb-subs { margin: 0; padding: 6px 10px 8px 24px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: var(--sky); } :is(#tb, #ed).tbn .tb-subh { margin: 0 0 4px; font-size: .78rem; color: var(--muted); }
:is(#tb, #ed).tbn .tb-subg { display: flex; flex-direction: column; gap: 0; } :is(#tb, #ed).tbn .tb-subg .tb-tile { min-height: 40px; background: transparent; }
:is(#tb, #ed).tbn .tb-else { margin: 0; padding: 4px 14px 6px; border-top: 1px solid var(--line); } :is(#tb, #ed).tbn .tb-else summary { padding: 4px 0; font-size: .88rem; } :is(#tb, #ed).tbn .tb-else input { min-height: 38px; }
/* the appointment: Total amount, who the next treatment is with, and the table */
:is(#tb, #ed).tbn .tbn-cart { grid-area: cart; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
:is(#tb, #ed).tbn .tbn-total { margin: 0; font-size: 1.15rem; color: var(--ink); } :is(#tb, #ed).tbn .tbn-total b { font-size: 1.25rem; }
:is(#tb, #ed).tbn .tbn-who { margin: 0; padding: 0; border: 0; } :is(#tb, #ed).tbn .tbn-who legend { font-size: .8rem; font-weight: 600; color: var(--muted); padding: 0 0 3px; }
:is(#tb, #ed).tbn .tb-who { display: flex; flex-wrap: wrap; gap: 5px; } :is(#tb, #ed).tbn .tb-chip span { min-height: 38px; padding: 0 10px; font-size: .88rem; border: 1.5px solid var(--tbn-box); border-left: 6px solid var(--c); border-radius: 8px; }
:is(#tb, #ed).tbn .tb-chip input:checked + span { background: color-mix(in srgb, var(--c) 16%, #fff); border-color: var(--c); border-left-width: 6px; font-weight: 700; }
:is(#tb, #ed).tbn .tb-cart { position: static; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
:is(#tb, #ed).tbn .tbn-thead, :is(#tb, #ed).tbn .tb-cr { display: grid; grid-template-columns: 30px minmax(0, 1.25fr) minmax(0, 1.2fr) 92px 86px; gap: 8px; align-items: center; padding: 6px 10px; }
:is(#tb, #ed).tbn .tbn-thead { background: var(--bg); border-bottom: 1px solid var(--line); font-size: .8rem; font-weight: 700; color: var(--muted); } :is(#tb, #ed).tbn .tb-cart.tbn-empty .tbn-thead { display: none; }
:is(#tb, #ed).tbn #tb-cart > p.muted { margin: 0; padding: 14px 12px; }
:is(#tb, #ed).tbn .tb-cr { border-bottom: 1px solid var(--line); align-items: start; } :is(#tb, #ed).tbn .tb-cr:last-of-type { border-bottom: 0; }
:is(#tb, #ed).tbn .tb-cx { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 30px; min-height: 0; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--brand); cursor: pointer; } :is(#tb, #ed).tbn .tb-cx svg { width: 17px; height: 17px; } :is(#tb, #ed).tbn .tb-cx:hover { background: var(--sky); color: #b42318; }
:is(#tb, #ed).tbn .tb-cn { font-size: .9rem; font-weight: 500; line-height: 1.25; padding-top: 6px; overflow-wrap: anywhere; }
:is(#tb, #ed).tbn .tb-cw { display: flex; flex-direction: column; gap: 2px; min-width: 0; } :is(#tb, #ed).tbn .tb-cs { width: 100%; min-height: 36px; padding: 2px 6px; font: inherit; font-size: .88rem; border: 1.5px solid var(--tbn-box); border-radius: 8px; background: #fff; }
:is(#tb, #ed).tbn .tb-untr { color: #c81e1e; font-size: .74rem; font-weight: 700; line-height: 1.2; } :is(#tb, #ed).tbn .tb-untr[hidden] { display: none; }
:is(#tb, #ed).tbn .tb-ctm { font-size: .84rem; color: var(--muted); padding-top: 8px; white-space: nowrap; }
:is(#tb, #ed).tbn .tb-cp { display: flex; align-items: center; gap: 3px; justify-content: flex-end; font-size: .88rem; } :is(#tb, #ed).tbn .tb-cp input { width: 64px; min-height: 34px; padding: 2px 6px; text-align: right; border: 1.5px solid var(--tbn-box); border-radius: 8px; font: inherit; } :is(#tb, #ed).tbn .tb-cp .tb-was { font-size: .72rem; }
:is(#tb, #ed).tbn .tb-ct { display: flex; justify-content: space-between; padding: 8px 12px; background: var(--bg); border-top: 1px solid var(--line); } :is(#tb, #ed).tbn #tb-chint { margin: 0; padding: 0 12px 6px; } :is(#tb, #ed).tbn #tb-chint:empty { display: none; }
:is(#tb, #ed).tbn .tbn-need { display: flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 600; color: var(--muted); } :is(#tb, #ed).tbn .tbn-need .tb-total { display: flex; gap: 4px; align-items: stretch; margin: 0; }
:is(#tb, #ed).tbn .tbn-need .tb-tstep { min-width: 40px; min-height: 36px; padding: 0; border: 1.5px solid var(--tbn-box); border-radius: 8px; background: var(--bg); font-weight: 700; } :is(#tb, #ed).tbn .tbn-need output { min-width: 130px; padding: 6px 10px; font-size: .92rem; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; }
:is(#tb, #ed).tbn .tb-consent { margin: 0; }
:is(#tb, #ed).tbn .tb-foot { margin: 0; padding: 8px 16px 10px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); background: #fff; }
:is(#tb, #ed).tbn .tb-book, :is(#tb, #ed).tbn .tb-co { min-width: 150px; min-height: 46px; font-size: 1.05rem; } :is(#tb, #ed).tbn .tb-foot .btn.ghost { min-height: 46px; } 
/* a tablet held upright or a phone: everything in one column, the page scrolls inside the window */
@media (max-width: 1000px) {
  .dy-dialog :is(#tb, #ed).tbn .tb-grid.tbn-grid { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "top" "bar" "list" "cart"; overflow: auto; }
  :is(#tb, #ed).tbn .tbn-r1, :is(#tb, #ed).tbn .tbn-r2 { grid-template-columns: 1fr 1fr; } :is(#tb, #ed).tbn .tbn-r3 { grid-template-columns: 1fr; } :is(#tb, #ed).tbn .tbn-list { max-height: 50vh; } :is(#tb, #ed).tbn .tbn-r1 .tb-sugg { left: 0; }
  :is(#tb, #ed).tbn .tbn-thead, :is(#tb, #ed).tbn .tb-cr { grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1fr) 70px 76px; gap: 6px; padding: 6px 6px; }
}
/* the staff chips stay on one line (it scrolls sideways) so the table keeps its room */
:is(#tb, #ed).tbn .tb-who { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; } :is(#tb, #ed).tbn .tb-chip { flex: none; } :is(#tb, #ed).tbn .tbn-who .tb-other { margin-top: 4px; }
@media (min-width: 1001px) and (max-width: 1200px) {
  .dy-dialog :is(#tb, #ed).tbn .tb-grid.tbn-grid { grid-template-columns: minmax(0, 1fr) minmax(440px, 52%); gap: 6px 12px; padding: 6px 12px 4px; }
  :is(#tb, #ed).tbn .tbn-r1 { grid-template-columns: 140px 190px minmax(130px, 1fr) minmax(140px, 1.2fr) minmax(140px, 1.2fr); gap: 6px 10px; } :is(#tb, #ed).tbn .tbn-r1 .tb-sugg { left: calc(140px + 190px + 20px); }
  :is(#tb, #ed).tbn .tbn-r2 { grid-template-columns: 240px 120px 120px minmax(0, 1fr); gap: 6px 10px; }
  :is(#tb, #ed).tbn .tbn-thead, :is(#tb, #ed).tbn .tb-cr { grid-template-columns: 26px minmax(0, 1.15fr) minmax(0, 1.05fr) 70px 76px; gap: 6px; padding: 5px 8px; }
  :is(#tb, #ed).tbn .tb-ctm { white-space: normal; font-size: .8rem; } :is(#tb, #ed).tbn .tb-cp input { width: 56px; }
  :is(#tb, #ed).tbn .tb-tile, :is(#tb, #ed).tbn .tb-ptile { min-height: 42px; padding: 5px 12px; } :is(#tb, #ed).tbn .tb-tile:has(input:checked) { padding: 5px 12px; }
}
@media (max-width: 1200px) { :is(#tb, #ed).tbn .tbn-ro > span { font-size: .72rem; } }

/* the portal's look for the New appointment window: boxes with the light-blue line, rounded like the rest, blue buttons (2026-11-24, owner: "colour scheme like our new portal theme, buttons and boxes") */
:is(#tb, #ed).tbn { --tbn-box: #c6d6ee; }
.tbn-dialog .dy-dh { background: var(--bg); border-bottom: 1px solid var(--line); } .tbn-dialog .dy-dh h2 { color: var(--ink); }
:is(#tb, #ed).tbn .tbn-f input, :is(#tb, #ed).tbn .tbn-f select, :is(#tb, #ed).tbn .tb-staffcust select, :is(#tb, #ed).tbn .tb-ournote textarea, :is(#tb, #ed).tbn .tb-cs, :is(#tb, #ed).tbn .tb-cp input, :is(#tb, #ed).tbn .tb-q, :is(#tb, #ed).tbn .tb-setp input { border-radius: 10px; }
:is(#tb, #ed).tbn .tbn-list, :is(#tb, #ed).tbn .tb-cart { border-radius: 14px; border-color: var(--line); box-shadow: 0 1px 2px rgb(10 34 71 / .05); }
:is(#tb, #ed).tbn .tbn-thead { background: var(--sky); color: var(--ink); } :is(#tb, #ed).tbn .tb-ct { background: var(--sky); }
:is(#tb, #ed).tbn .tb-tab { color: var(--brand); } :is(#tb, #ed).tbn .tb-tab.on { color: var(--ink); background: #fff; box-shadow: inset 0 -3px 0 var(--brand); }
:is(#tb, #ed).tbn .tb-time .tb-step, :is(#tb, #ed).tbn .tbn-need .tb-tstep { background: var(--sky); color: var(--brand); border-color: var(--tbn-box); border-radius: 10px; }
:is(#tb, #ed).tbn .tb-seg span { border-radius: 10px; color: var(--ink); } :is(#tb, #ed).tbn .tb-seg input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
:is(#tb, #ed).tbn .tb-chip span { border-radius: 10px; color: var(--ink); } :is(#tb, #ed).tbn .tb-cx { color: var(--brand); } :is(#tb, #ed).tbn .tb-cx:hover { background: var(--sky); color: #b42318; }
:is(#tb, #ed).tbn .tbn-ro input { background: var(--off); border-color: var(--line); color: var(--ink); }
:is(#tb, #ed).tbn .tb-foot { background: var(--bg); border-top: 1px solid var(--line); } :is(#tb, #ed).tbn .tb-book, :is(#tb, #ed).tbn .tb-co { border-radius: 12px; } :is(#tb, #ed).tbn .tb-co { background: var(--navy); border-color: var(--navy); }
:is(#tb, #ed).tbn .tbn-total b { color: var(--brand); } :is(#tb, #ed).tbn .tb-hist { color: var(--brand); }
:is(#tb, #ed).tbn .tbn-phone .tb-keys, :is(#tb, #ed).tbn .tbn-r1 .tb-sugg { border-color: var(--line); border-radius: 14px; } :is(#tb, #ed).tbn .tbn-phone .tb-key { border-color: var(--tbn-box); color: var(--ink); background: #fff; } :is(#tb, #ed).tbn .tbn-phone .tb-key:active { background: var(--own-bg); }
/* the price box of a treatment with no price shows once the treatment is ticked (as everywhere else), above the tile's tick area */
:is(#tb, #ed).tbn .tb-setp { display: none; position: relative; z-index: 2; } :is(#tb, #ed).tbn .tb-tile:has(input[name=svc]:checked) .tb-setp { display: flex; }
@media (max-width: 1000px) { :is(#tb, #ed).tbn .tb-gh { position: static; } :is(#tb, #ed).tbn .tbn-list { overflow: visible; max-height: none; } :is(#tb, #ed).tbn .tb-tiles { max-height: 50vh; } }
:is(#tb, #ed).tbn .tb-ct b { font-size: .95rem; } :is(#tb, #ed).tbn .tb-ct #tb-ctotal { color: var(--ink); }
/* ===== the right-hand side of New appointment, round two (2026-11-24, owner: "if more than 1 appointment I can't see, scroll not working; treatments above in that section and the total at the end; at least 3 treatments visible with the total") =====
   Staff on one line at the top, the table of treatments takes the room in the middle and scrolls on its own, Time needed and Total amount at the bottom. */
:is(#tb, #ed).tbn .tbn-cart { display: flex; flex-direction: column; gap: 8px; overflow: hidden; min-height: 0; }
:is(#tb, #ed).tbn .tbn-cart > * { flex: none; }
:is(#tb, #ed).tbn .tbn-who { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
:is(#tb, #ed).tbn .tbn-lab { font-size: .8rem; font-weight: 700; color: var(--muted); flex: none; }
:is(#tb, #ed).tbn .tbn-who .tb-who { flex: 1; min-width: 0; } :is(#tb, #ed).tbn .tbn-who .tb-chip span { min-height: 36px; }
:is(#tb, #ed).tbn .tbn-who .tb-other { flex: none; display: flex; align-items: center; gap: 6px; margin: 0; font-size: .78rem; font-weight: 600; color: var(--muted); white-space: nowrap; } :is(#tb, #ed).tbn .tbn-who .tb-other small { display: none; }
:is(#tb, #ed).tbn .tbn-who .tb-other select { width: 150px; min-height: 36px; padding: 2px 8px; font: inherit; font-size: .86rem; border: 1.5px solid var(--tbn-box); border-radius: 10px; background: #fff; color: var(--ink); }
/* the table: the middle of the column, at least three lines tall, scrolls by itself; its header stays on top */
:is(#tb, #ed).tbn .tbn-cart > .tb-cart { flex: 1 1 auto; min-height: 190px; overflow-y: auto; overscroll-behavior: contain; }
:is(#tb, #ed).tbn .tbn-thead { position: sticky; top: 0; z-index: 2; }
:is(#tb, #ed).tbn .tb-ct { display: none; }      /* the total is shown once, at the bottom (#tb-ctotal stays for the record) */
:is(#tb, #ed).tbn .tbn-thead, :is(#tb, #ed).tbn .tb-cr { grid-template-columns: 26px minmax(0, 1.3fr) minmax(0, 1fr) 68px 82px; gap: 8px; padding: 5px 10px; }
:is(#tb, #ed).tbn .tb-cr { align-items: center; min-height: 48px; }
:is(#tb, #ed).tbn .tb-cn { padding: 0; font-size: .86rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
:is(#tb, #ed).tbn .tb-cn .offer-tag { display: inline-block; margin-left: 4px; padding: 0 6px; font-size: .66rem; font-style: normal; font-weight: 700; line-height: 1.5; border-radius: 999px; vertical-align: 1px; }
:is(#tb, #ed).tbn .tb-cs { min-height: 34px; font-size: .84rem; }
:is(#tb, #ed).tbn .tb-ctm { padding: 0; font-size: .78rem; line-height: 1.25; white-space: normal; }
:is(#tb, #ed).tbn .tb-cp { display: grid; grid-template-columns: auto 1fr; align-items: center; justify-items: end; column-gap: 3px; } :is(#tb, #ed).tbn .tb-cp .tb-was { grid-column: 1 / -1; font-size: .7rem; color: var(--muted); line-height: 1.1; } :is(#tb, #ed).tbn .tb-cp input { width: 62px; min-height: 32px; }
/* the end of the column: Time needed on the left, Total amount on the right */
:is(#tb, #ed).tbn .tbn-end { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 2px; }
:is(#tb, #ed).tbn .tbn-end .tbn-need { gap: 8px; } :is(#tb, #ed).tbn .tbn-end .tbn-need output { min-width: 96px; }
:is(#tb, #ed).tbn .tbn-end .tbn-total { margin: 0; display: flex; align-items: baseline; gap: 8px; font-size: .95rem; font-weight: 700; color: var(--ink); white-space: nowrap; } :is(#tb, #ed).tbn .tbn-end .tbn-total b { font-size: 1.45rem; color: var(--brand); }
/* the summary under the window stays one tidy line (two at most) even with the closing-time warning */
:is(#tb, #ed).tbn .tb-summary { margin: 0; font-size: .84rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
:is(#tb, #ed).tbn .tbn-who .tb-other { flex-direction: row; } :is(#tb, #ed).tbn .tb-ctm { white-space: pre-line; }

/* ===== Edit appointment in the New appointment layout (2026-11-24, owner: "the edit screen similar to the new appointment screen, with the booked treatments and customer details filled in") ===== */
:is(#tb, #ed).tbn .tbn-f input[readonly] { background: var(--off); color: var(--ink); border-color: var(--line); }
#ed.tbn .ed-src { display: flex; gap: 4px; } #ed.tbn .ed-src .tb-seg { flex: 1; } #ed.tbn .ed-src .tb-seg > span { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 8px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--muted); font-weight: 600; font-size: .9rem; }
#ed.tbn .ed-src .tb-seg.on > span { background: var(--brand); border-color: var(--brand); color: #fff; }
#ed.tbn .ed-r3 { grid-template-columns: auto minmax(0, 1fr); align-items: center; } #ed.tbn .ed-r3 p { margin: 0; }
#ed.tbn .tbn-thead.ed-head, #ed.tbn .ed-row { display: grid; grid-template-columns: minmax(0, 1fr) 58px 50px 96px 30px; gap: 6px; align-items: center; padding: 5px 10px; }
#ed.tbn .ed-head { font-size: .8rem; font-weight: 700; color: var(--ink); background: var(--sky); border-bottom: 1px solid var(--line); }
#ed.tbn .ed-rows { display: block; margin: 0; } #ed.tbn .ed-row { border-bottom: 1px solid var(--line); min-height: 46px; }
#ed.tbn .ed-row input { min-height: 34px; padding: 2px 8px; font: inherit; font-size: .88rem; border: 1.5px solid var(--tbn-box); border-radius: 8px; background: #fff; color: var(--ink); min-width: 0; width: 100%; }
#ed.tbn .ed-row .ed-price { text-align: right; font-weight: 700; font-size: .92rem; } #ed.tbn .ed-pw { display: grid; justify-items: end; gap: 1px; } #ed.tbn .ed-pw .tb-was { font-size: .7rem; color: var(--muted); line-height: 1; } #ed.tbn .ed-pw .offer-tag { font-size: .62rem; padding: 0 5px; border-radius: 999px; max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; }
#ed.tbn .ed-tm { font-size: .8rem; color: var(--muted); }
#ed.tbn .ed-rm, #ed.tbn .ed-x { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 30px; margin: 0; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--brand); font-size: 1.15rem; font-weight: 700; cursor: pointer; position: relative; } #ed.tbn .ed-rm input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; } #ed.tbn .ed-rm:hover, #ed.tbn .ed-x:hover { background: var(--sky); color: #b42318; }
#ed.tbn .ed-row.ed-off { opacity: .45; } #ed.tbn .ed-row.ed-off .ed-n { text-decoration: line-through; } #ed.tbn .ed-row.ed-off .ed-rm { opacity: 1; color: #b42318; }
#ed.tbn .ed-xrow { background: var(--bg); } #ed.tbn .ed-xt { display: block; padding: 4px 10px 0; font-size: .74rem; color: var(--muted); }
#ed.tbn .ed-tip { margin: 0; padding: 8px 10px; } #ed.tbn .ed-rows:has(.ed-row) + .ed-tip { display: none; }
#ed.tbn .ed-save { background: var(--brand); border-color: var(--brand); color: #fff; }

#ed.tbn .tbn-thead.ed-head, #ed.tbn .ed-row { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) 54px 46px 90px 28px; }
#ed.tbn .ed-st { min-height: 34px; min-width: 0; width: 100%; padding: 2px 6px; font: inherit; font-size: .84rem; border: 1.5px solid var(--tbn-box); border-radius: 8px; background: #fff; color: var(--ink); } #ed.tbn .ed-sw { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the older Edit window's row styles (cards, two-line rows, capital headings, icons inside the boxes) do not apply to the new layout */
#ed.tbn .ed-head { display: grid; padding: 5px 10px; font-size: .8rem; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--ink); }
#ed.tbn .ed-rows { display: block; gap: 0; margin: 0; }
#ed.tbn .ed-row { margin: 0; padding: 5px 10px; gap: 6px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: #fff; }
#ed.tbn .ed-row.ed-new { background: var(--own-bg); border-color: var(--line); }
#ed.tbn .ed-row .ed-n { grid-column: auto; font-weight: 500; }
#ed.tbn .ed-row input:not([type=checkbox]):not([type=hidden]) { min-height: 34px; padding: 2px 6px; font-size: .88rem; border-width: 1.5px; border-radius: 8px; }
#ed.tbn .ed-row input.ed-m:not([type=x]), #ed.tbn .ed-row input.ed-price:not([type=x]) { background-image: none; padding: 2px 6px; } #ed.tbn .ed-row input.ed-m:not([type=x]) { text-align: center; } #ed.tbn .ed-row input.ed-price:not([type=x]) { text-align: right; font-size: .9rem; }
#ed.tbn .ed-row .tb-was, #ed.tbn .ed-row .offer-tag { grid-column: auto; }
#ed.tbn .ed-row label.ed-rm, #ed.tbn .ed-row .ed-x { width: 28px; height: 30px; min-height: 0; border: 0; background: none; }
#ed.tbn .tbn-thead.ed-head, #ed.tbn .ed-row { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) 50px 44px 78px 26px; }

/* ===== New appointment + Edit appointment, round three (2026-11-25, owner: "dark borders so the screen looks catchy; it is bulky: use the space, neat and clean;
   this is a tablet screen") ===== a navy title bar, dark-edged boxes, two compact rows on top, pill tabs, a navy table head. Touch targets stay 36px or more. */
:is(#tb, #ed).tbn { --tbn-box: #64748b; --tbn-dark: #1e2f4d; --tbn-soft: #d3dcea; }
.dy-dialog.tbn-dialog { border-radius: 16px; overflow: hidden; border: 2px solid var(--navy); }
.tbn-dialog .dy-dh.tbn-dh { display: flex; align-items: center; gap: 14px; padding: 8px 12px 8px 16px; margin: 0; background: var(--navy); color: #fff; border: 0; }
.tbn-dh .tbn-ttl { flex: 1; min-width: 0; } .tbn-dialog .tbn-dh h2 { margin: 0; color: #fff; font-size: 1.08rem; letter-spacing: .01em; } .tbn-dialog .tbn-dh p { margin: 1px 0 0; color: #b9cbe6; font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbn-dh .dy-x { position: static; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; color: #fff; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .25); font-size: 1.4rem; text-decoration: none; }
.tbn-dh .dy-x:hover { background: rgb(255 255 255 / .18); }
.tbn-dh .tbn-dhx .tb-staffcust { display: flex; align-items: center; gap: 8px; margin: 0; color: #b9cbe6; font-size: .76rem; font-weight: 600; white-space: nowrap; }
.tbn-dh .tbn-dhx .tb-staffcust select { min-height: 36px; width: 190px; padding: 2px 8px; font: inherit; font-size: .86rem; color: #fff; background: #12305d; border: 1px solid #5a7099; border-radius: 8px; }
.dy-dialog :is(#tb, #ed).tbn .tb-grid.tbn-grid { gap: 8px 12px; padding: 8px 14px 6px; }
/* the two rows on top */
:is(#tb, #ed).tbn .tbn-r1 { grid-template-columns: 148px 196px minmax(140px, 1fr) minmax(170px, 1.3fr) minmax(170px, 1.3fr); gap: 6px 10px; }
:is(#tb, #ed).tbn .tbn-r2 { grid-template-columns: 246px 104px 104px minmax(0, 1fr) minmax(0, 1fr); gap: 6px 10px; margin-top: 6px; }
#ed.tbn .tbn-r2 { grid-template-columns: 246px 104px 104px minmax(0, 1fr); }
:is(#tb, #ed).tbn .tbn-f > span, :is(#tb, #ed).tbn .tbn-f > legend { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--tbn-dark); }
:is(#tb, #ed).tbn .tbn-f > span small, :is(#tb, #ed).tbn .tbn-f > span .tb-hist { text-transform: none; letter-spacing: 0; font-weight: 600; }
:is(#tb, #ed).tbn .tbn-f input, :is(#tb, #ed).tbn .tbn-f select, :is(#tb, #ed).tbn .tbn-f textarea { min-height: 38px; padding: 4px 10px; font-size: .95rem; border: 1.5px solid var(--tbn-box); border-radius: 8px; }
:is(#tb, #ed).tbn .tbn-f input:focus, :is(#tb, #ed).tbn .tbn-f textarea:focus, :is(#tb, #ed).tbn select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgb(3 106 213 / .2); outline: none; }
:is(#tb, #ed).tbn .tbn-f input[readonly], :is(#tb, #ed).tbn .tbn-ro input { background: #eef2f8; border-color: var(--tbn-soft); color: var(--tbn-dark); font-weight: 700; }
:is(#tb, #ed).tbn .tbn-ro input.bad { background: #fdecec; color: #b42318; border-color: #f1a7a0; }
:is(#tb, #ed).tbn .tb-time { grid-template-columns: 38px minmax(0, 1fr) 38px; } :is(#tb, #ed).tbn .tb-time .tb-step { min-height: 38px; border: 1.5px solid var(--tbn-box); background: #fff; color: var(--tbn-dark); font-weight: 800; }
:is(#tb, #ed).tbn .tb-time .tb-step:active { background: var(--own-bg); }
:is(#tb, #ed).tbn .tb-seg span, #ed.tbn .ed-src .tb-seg > span { min-height: 38px; border: 1.5px solid var(--tbn-box); border-radius: 8px; color: var(--tbn-dark); background: #fff; font-size: .88rem; font-weight: 700; }
:is(#tb, #ed).tbn .tb-seg input:checked + span, #ed.tbn .ed-src .tb-seg.on > span { background: var(--navy); border-color: var(--navy); color: #fff; }
#tb.tbn .tbn-our > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; } #tb.tbn .tbn-our .tb-sens { display: inline-flex; align-items: center; gap: 4px; margin: 0; font-size: .7rem; font-weight: 800; color: #b42318; text-transform: uppercase; cursor: pointer; } #tb.tbn .tbn-our .tb-sens input { width: 15px; height: 15px; margin: 0; accent-color: #b42318; }
#tb.tbn .tbn-our textarea { height: 38px; min-height: 38px; resize: none; line-height: 1.35; padding: 8px 10px; font-size: .9rem; } #tb.tbn .tbn-our textarea:focus { height: 76px; position: relative; z-index: 6; }
#tb.tbn .tbn-name .tb-known { font-size: .7rem; font-weight: 700; } #tb.tbn .tbn-name .tb-known.good { color: #157347; } #tb.tbn .tbn-name .tb-known.bad { color: #b42318; }
#ed.tbn .tbn-name > span details { display: inline-block; text-transform: none; letter-spacing: 0; }
/* the groups: pill tabs on one line, the search at the end */
:is(#tb, #ed).tbn .tbn-bar { margin: 0 -14px; padding: 6px 14px; background: #f3f6fb; border-top: 1.5px solid var(--tbn-soft); border-bottom: 1.5px solid var(--tbn-soft); }
:is(#tb, #ed).tbn .tb-tabs { gap: 6px; } :is(#tb, #ed).tbn .tb-tab { min-height: 36px; padding: 0 12px; border: 1.5px solid var(--tbn-box); border-radius: 999px; background: #fff; color: var(--tbn-dark); font-weight: 700; font-size: .85rem; box-shadow: none; }
:is(#tb, #ed).tbn .tb-tab small { color: var(--muted); font-weight: 600; } :is(#tb, #ed).tbn .tb-tab.on { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: none; } :is(#tb, #ed).tbn .tb-tab.on small { color: #b9cbe6; }
:is(#tb, #ed).tbn .tb-q { min-height: 36px; border: 1.5px solid var(--tbn-box); border-radius: 999px; background: #fff; }
/* the list of treatments */
:is(#tb, #ed).tbn .tbn-list { border: 1.5px solid var(--tbn-dark); border-radius: 12px; box-shadow: none; }
:is(#tb, #ed).tbn .tb-gh { padding: 7px 12px; background: #eef2f8; border-bottom: 1.5px solid var(--tbn-soft); font-size: .92rem; color: var(--tbn-dark); }
:is(#tb, #ed).tbn .tb-tile, :is(#tb, #ed).tbn .tb-ptile { min-height: 40px; padding: 4px 12px; border-bottom: 1px solid #e3e9f3; gap: 8px; }
:is(#tb, #ed).tbn .tb-tile:has(input:checked) { padding: 4px 12px; background: #e6efff; box-shadow: inset 4px 0 0 var(--navy); } :is(#tb, #ed).tbn .tb-tile b, :is(#tb, #ed).tbn .tb-ptile b { font-size: .92rem; }
:is(#tb, #ed).tbn .tb-pp { min-width: 54px; padding: 3px 8px; border-radius: 6px; font-size: .82rem; } :is(#tb, #ed).tbn .tb-tile:has(input:checked) .tb-pp { background: var(--navy); }
:is(#tb, #ed).tbn .tb-else { border-top: 1.5px solid var(--tbn-soft); }
/* the appointment side: staff chips, the table with a navy head, the time and the total */
:is(#tb, #ed).tbn .tb-chip span { min-height: 36px; padding: 0 10px; border: 1.5px solid var(--tbn-box); border-left: 6px solid var(--c); border-radius: 8px; color: var(--tbn-dark); font-weight: 700; font-size: .86rem; }
:is(#tb, #ed).tbn .tb-chip input:checked + span { background: var(--navy); border-color: var(--navy); border-left-color: var(--c); color: #fff; }
:is(#tb, #ed).tbn .tbn-lab { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--tbn-dark); }
:is(#tb, #ed).tbn .tbn-cart > .tb-cart { border: 1.5px solid var(--tbn-dark); border-radius: 12px; box-shadow: none; }
:is(#tb, #ed).tbn .tbn-thead, #ed.tbn .tbn-thead.ed-head { background: var(--navy); color: #fff; border-bottom: 0; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
:is(#tb, #ed).tbn .tb-cr, #ed.tbn .ed-row { border-bottom: 1px solid #e3e9f3; }
:is(#tb, #ed).tbn .tb-cs, :is(#tb, #ed).tbn .tb-cp input, #ed.tbn .ed-st, #ed.tbn .ed-row input:not([type=checkbox]):not([type=hidden]) { border: 1.5px solid var(--tbn-box); border-radius: 8px; }
:is(#tb, #ed).tbn .tb-cx { color: var(--tbn-dark); } #tb.tbn .tb-auto { display: block; color: #0b5cad; font-size: .72rem; font-weight: 700; line-height: 1.2; } #tb.tbn .tb-auto[hidden] { display: none; }
:is(#tb, #ed).tbn .tbn-need .tb-tstep { border: 1.5px solid var(--tbn-box); background: #fff; color: var(--tbn-dark); font-weight: 800; } :is(#tb, #ed).tbn .tbn-need output { border: 1.5px solid var(--tbn-soft); font-weight: 700; }
:is(#tb, #ed).tbn .tbn-end .tbn-total { padding: 4px 12px; border: 1.5px solid var(--tbn-dark); border-radius: 10px; background: #eef4ff; } :is(#tb, #ed).tbn .tbn-end .tbn-total b { font-size: 1.3rem; color: var(--navy); }
/* the bottom bar */
:is(#tb, #ed).tbn .tb-foot { padding: 8px 14px; background: #f3f6fb; border-top: 1.5px solid var(--tbn-soft); }
:is(#tb, #ed).tbn .tb-foot .btn { min-height: 44px; border-radius: 10px; font-weight: 800; } :is(#tb, #ed).tbn .tb-foot .btn.ghost { border: 1.5px solid var(--tbn-box); color: var(--tbn-dark); background: #fff; }
:is(#tb, #ed).tbn .tb-book:not(.tb-co), #ed.tbn .ed-save { background: var(--brand); border-color: var(--brand); } :is(#tb, #ed).tbn .tb-co { background: var(--navy); border-color: var(--navy); color: #fff; }
@media (max-width: 1200px) { :is(#tb, #ed).tbn .tbn-r1 { grid-template-columns: 136px 180px minmax(120px, 1fr) minmax(140px, 1.2fr) minmax(140px, 1.2fr); } :is(#tb, #ed).tbn .tbn-r2 { grid-template-columns: 226px 92px 92px minmax(0, 1fr) minmax(0, 1fr); } #ed.tbn .tbn-r2 { grid-template-columns: 226px 92px 92px minmax(0, 1fr); } .tbn-dh .tbn-dhx .tb-staffcust span { display: none; } }
@media (max-width: 1000px) { :is(#tb, #ed).tbn .tbn-r1, :is(#tb, #ed).tbn .tbn-r2, #ed.tbn .tbn-r2 { grid-template-columns: 1fr 1fr; } .tbn-dialog .dy-dh.tbn-dh { flex-wrap: wrap; } }
#ed.tbn .ed-list { width: 100%; max-width: none; }
:is(#tb, #ed).tbn .tbn-r1 .tbn-f > span { display: flex; align-items: baseline; gap: 6px; min-height: 18px; white-space: nowrap; overflow: visible; } #ed.tbn .tbn-name > span details > summary { font-size: .7rem; }

/* ===== New appointment, round four (2026-11-25, owner: "shrink the service name section, give the bottom-right section (selected services with staff, time, amount) more room, 4 treatments without scrolling; the group tab scrollbar sits on the tabs") ===== */
.dy-dialog :is(#tb, #ed).tbn .tb-grid.tbn-grid { grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr); }
:is(#tb, #ed).tbn .tb-tile, :is(#tb, #ed).tbn .tb-ptile { gap: 6px; padding: 4px 10px; } :is(#tb, #ed).tbn .tb-tile:has(input:checked) { padding: 4px 10px; } :is(#tb, #ed).tbn .tb-tile small { font-size: .74rem; }
:is(#tb, #ed).tbn .tb-tabs { padding-bottom: 9px; margin-bottom: -5px; scrollbar-width: thin; scroll-padding-inline: 8px; } :is(#tb, #ed).tbn .tbn-bar { align-items: flex-start; } :is(#tb, #ed).tbn .tbn-bar .tb-q { margin-top: 0; }
:is(#tb, #ed).tbn .tb-tabs::-webkit-scrollbar { height: 6px; } :is(#tb, #ed).tbn .tb-tabs::-webkit-scrollbar-thumb { background: #b8c4d8; border-radius: 6px; }
:is(#tb, #ed).tbn .tbn-cart > .tb-cart { min-height: 236px; }
:is(#tb, #ed).tbn .tb-cr { min-height: 46px; padding-top: 3px; padding-bottom: 3px; } :is(#tb, #ed).tbn .tb-cs { min-height: 32px; } :is(#tb, #ed).tbn .tb-cp input { min-height: 30px; } :is(#tb, #ed).tbn .tbn-thead { padding-top: 4px; padding-bottom: 4px; }
#tb.tbn .tb-sug { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; } #tb.tbn .tb-sug .tb-sugm { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* "Last visit": what they paid at their last visit (2026-11-25) */
:is(#tb, #ed).tbn .tbn-r2 { grid-template-columns: 236px 96px 86px 124px minmax(0, 1fr) minmax(0, 1fr); } #ed.tbn .tbn-r2 { grid-template-columns: 236px 96px 86px 124px minmax(0, 1fr); }
:is(#tb, #ed).tbn .tbn-last input { color: #157347; font-size: .86rem; }
@media (max-width: 1200px) { :is(#tb, #ed).tbn .tbn-r2 { grid-template-columns: 214px 86px 80px 116px minmax(0, 1fr) minmax(0, 1fr); } #ed.tbn .tbn-r2 { grid-template-columns: 214px 86px 80px 116px minmax(0, 1fr); } }
@media (max-width: 1000px) { :is(#tb, #ed).tbn .tbn-r2, #ed.tbn .tbn-r2 { grid-template-columns: 1fr 1fr; } }

/* Customer history popup (2026-11-25, owner: "View customer history should open a popup so I don't need to navigate"): a modal <dialog> over the New / Edit
   appointment windows (top layer, so above .dy-modal), a navy title bar like theirs, the history in an iframe that scrolls on its own; full screen on a phone.
   The framed page is /customer?...&embed=1: body.emb, compact cards. */
dialog.ch-pop { padding: 0; border: 0; margin: auto; background: transparent; width: min(1180px, 96vw); height: min(92vh, 880px); max-width: 100vw; max-height: 100vh; overflow: visible; z-index: 90; color: var(--ink); }
dialog.ch-pop::backdrop { background: rgb(10 34 71 / .55); }
.ch-box { display: flex; flex-direction: column; width: 100%; height: 100%; background: var(--bg); border: 2px solid var(--navy); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px rgb(10 34 71 / .5); }
.ch-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 16px; background: var(--navy); color: #fff; }
.ch-ttl { flex: 1; min-width: 0; margin: 0; color: #fff; font-size: 1.08rem; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-x { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; color: #fff; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .25); font: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.ch-x:hover { background: rgb(255 255 255 / .18); } .ch-x:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ch-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ch-frame { flex: 1; display: block; width: 100%; min-height: 0; border: 0; background: var(--bg); } .ch-frame[hidden] { display: none; }
.ch-fail { margin: 18px; font-weight: 600; } .ch-fail[hidden] { display: none; }
@media (max-width: 700px) { dialog.ch-pop { width: 100vw; height: 100vh; height: 100dvh; } .ch-box { border: 0; border-radius: 0; } }
/* the framed history itself */
body.emb { background: var(--bg); }
.emb-main { padding: 10px 12px 16px; }
.emb .card { padding: 10px 14px; margin: 0 0 10px; border-radius: 12px; } .emb .card h2 { font-size: .98rem; margin: 0 0 6px; color: var(--navy); }
.emb .cust-contact { gap: 6px 10px; } .emb .cust-contact .emb-full { margin-left: auto; }
.emb .kpis { grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 8px; margin-bottom: 10px; }
.emb .kpi { padding: 6px 10px; border-radius: 10px; } .emb .k-label { font-size: .7rem; } .emb .k-value { font-size: 1.12rem; } .emb .k-detail { font-size: .72rem; }
.emb-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 0 10px; align-items: start; }
.emb-note.sens { border: 2px solid var(--danger); background: var(--danger-soft); } .emb-nt { margin: 0 0 4px; white-space: pre-line; font-weight: 600; }
.emb table.data { font-size: .84rem; } .emb table.data td, .emb table.data th { padding: 5px 8px; }
.emb .oldv > summary h2 { font-size: .98rem; } .emb .grid { gap: 10px; }
@media (max-width: 760px) { .emb-two { grid-template-columns: minmax(0, 1fr); } .emb-main { padding: 8px; } .emb .cust-contact .emb-full { margin-left: 0; } }
.emb .kpi.bad { background: var(--danger-soft); border-color: #f1a7a0; } .emb .kpi.bad .k-value { color: var(--danger); }
/* row 2 of New appointment and Edit appointment (2026-11-25): the Appointments / No-shows / Last visit boxes became ONE "Customer history" button (it opens the
   popup above), and "Staff's own treatment" moved here from the title bar. New: Booked from · Customer history · Staff's own treatment · Note · Our note;
   Edit: Booked from · Customer history · Note. */
#tb.tbn .tbn-r2 { grid-template-columns: 236px max-content minmax(150px, 200px) minmax(0, 1fr) minmax(0, 1fr); }
#tb.tbn .tbn-r2:not(:has(.tbn-own)) { grid-template-columns: 236px max-content minmax(0, 1fr) minmax(0, 1fr); }
#ed.tbn .tbn-r2 { grid-template-columns: 236px max-content minmax(0, 1fr); }
:is(#tb, #ed).tbn .tbn-ch { float: none; margin: 0; align-self: end; display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 14px; border: 1.5px solid var(--tbn-dark); border-radius: 8px; background: #fff; color: var(--tbn-dark); font-size: .86rem; font-weight: 800; line-height: 1.1; white-space: nowrap; text-decoration: none; cursor: pointer; }
:is(#tb, #ed).tbn .tbn-ch[href]:hover { background: var(--navy); border-color: var(--navy); color: #fff; text-decoration: none; }
:is(#tb, #ed).tbn .tbn-ch:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgb(3 106 213 / .25); }
:is(#tb, #ed).tbn .tbn-ch[aria-disabled="true"] { color: #8a97ad; background: #f3f6fb; border-color: var(--tbn-soft); cursor: not-allowed; }
#tb.tbn .tbn-own select { width: 100%; min-width: 0; font-size: .86rem; padding: 2px 8px; }
@media (max-width: 1200px) {
  #tb.tbn .tbn-r2 { grid-template-columns: 214px max-content minmax(130px, 170px) minmax(0, 1fr) minmax(0, 1fr); }
  #tb.tbn .tbn-r2:not(:has(.tbn-own)) { grid-template-columns: 214px max-content minmax(0, 1fr) minmax(0, 1fr); }
  #ed.tbn .tbn-r2 { grid-template-columns: 214px max-content minmax(0, 1fr); }
  :is(#tb, #ed).tbn .tbn-ch { padding: 0 10px; }
}
@media (max-width: 1000px) { #tb.tbn .tbn-r2, #tb.tbn .tbn-r2:not(:has(.tbn-own)), #ed.tbn .tbn-r2 { grid-template-columns: 1fr 1fr; }
  /* one column (upright tablet, phone; the window scrolls): each part keeps its full height. The rows were fitted into the window's height, so the top rows were
     squashed and row 2 (the Customer history button) slid under the group tabs, where it could not be tapped. Rows only; the columns are left alone. */
  .dy-dialog :is(#tb, #ed).tbn .tb-grid.tbn-grid { grid-template-rows: none; grid-auto-rows: max-content; } }
@media (max-width: 560px) { :is(#tb, #ed).tbn .tbn-r2 > .tbn-src { grid-column: 1 / -1; } }      /* a phone: Booked from takes the whole line, so it never runs into the button */
/* 2026-11-25 (owner screenshots): the table of treatments is full width even when empty (an old ".tb-cart { align-self: start }" shrank it to its text);
   Edit: "Booked from" can have four options (an old-system booking shows "Salon diary"), so that column takes the room its options need, never wraps,
   and the Customer history button keeps a clear gap after it */
:is(#tb, #ed).tbn .tbn-cart > .tb-cart { align-self: stretch; width: 100%; }
#ed.tbn .tbn-r2, #ed.tbn .tbn-r2:not(:has(.tbn-own)) { grid-template-columns: max-content max-content minmax(0, 1fr); column-gap: 16px; }
#ed.tbn .ed-src { flex-wrap: nowrap; gap: 4px; } #ed.tbn .ed-src .tb-seg { flex: none; } #ed.tbn .ed-src .tb-seg > span { white-space: nowrap; padding: 0 10px; font-size: .84rem; }
@media (max-width: 1200px) { #ed.tbn .tbn-r2 { grid-template-columns: max-content max-content minmax(0, 1fr); column-gap: 12px; } #ed.tbn .ed-src .tb-seg > span { padding: 0 8px; font-size: .8rem; } }
@media (max-width: 1000px) { #ed.tbn .tbn-r2 { grid-template-columns: 1fr 1fr; } #ed.tbn .tbn-r2 > .tbn-src { grid-column: 1 / -1; } }
/* Treatwell calendar links: the busy-link alert on top, and the person's row it opens (highlighted, link ready to copy) (2026-11-25) */
.lk-alert { border-left: 5px solid var(--warn); background: var(--warn-soft); }
.lk-alert .lk-salon { margin: 10px 0 4px; font-size: .95rem; }
.lk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lk-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
tr.lk-hl > td, tr[id^="lk-"]:target > td { background: var(--warn-soft); }
tr.lk-hl input.copybox { outline: 3px solid var(--warn); outline-offset: 1px; }
/* View Appointment: the treatment's group beside its name (two treatments can share a name: "Luxury Pedicure" in Pedicure and in Gentleman) */
.vw-grp { display: inline-block; margin-left: 4px; padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--sky, #eef4ff); color: var(--navy, #1e2f4d); font-size: 11px; font-weight: 600; line-height: 1.5; vertical-align: 1px; white-space: nowrap; }
/* End day (2026-11-26): opening cash is read-only (last night's closing cash), closing cash is typed at the end */
.eod-ro-in { background: var(--off); color: var(--ink); border-style: dashed; }
.eod-closing { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--sky); }
.eod-closing input { font-weight: 700; }
/* Master list details (description, due again, aftercare) and the Aftercare sheets page (2026-11-26) */
.mx-info { margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; font-weight: 400; }
.mx-info .mx-desc { color: var(--muted); max-width: 46ch; }
.mx-pop textarea { width: 100%; min-width: 260px; }
.ac-list { display: grid; gap: 10px; }
.ac-card > summary { cursor: pointer; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ac-f textarea { width: 100%; }
.ac-body { margin-top: 8px; line-height: 1.55; }
/* End day (2026-11-28, owner: "closing cash should be on left side along with other options"): Closing cash now sits in the left Money taken card, under the payment table */
.eod-money .eod-closing { margin: 8px 0 6px; padding: 6px 10px; }
/* Consent form (2026-11-28): the terms box and the two ticks at the end; "+ Add question" in the editor */
.cf-terms { border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; margin: 10px 0; background: #fff; font-size: .9rem; }
.cf-terms h3 { margin: 4px 0; font-size: .95rem; } .cf-terms ol { margin: 4px 0 4px 1.1em; padding: 0; } .cf-terms li { margin: 0 0 4px; }
.cf-agreed { list-style: none; margin: 4px 0 8px; padding: 0; font-weight: 600; }
.ce-addq { margin: 6px 0 2px; }

/* Online payments (2026-11-26) */
.dy-a.held { opacity: .75; outline: 2px dashed #d97706; outline-offset: -2px; background-image: repeating-linear-gradient(45deg, transparent 0 6px, rgba(217,119,6,.12) 6px 12px); }
.dy-held, .dy-onl { font-style: normal; font-weight: 700; font-size: .78em; padding: 0 4px; border-radius: 4px; margin-left: 2px; } .dy-held { background: #fde68a; color: #7c2d12; } .dy-onl { background: #bbf7d0; color: #14532d; }
.dy-pay { margin: 10px 0; padding: 8px 0; border-top: 1px solid var(--line, #e2e8f0); } .dy-pay h3 { margin: 0 0 6px; }
.tb-linkbox { display: inline-flex; gap: 6px; align-items: center; } .co-online-row { margin: 6px 0; }
#online code { overflow-wrap: anywhere; word-break: break-all; } #online .notices { display: grid; gap: 6px; } #online details ol { padding-left: 1.2em; }
/* Customer flags (2026-11-26): the card on the customer page, the pills in the windows, the flagged list */
.fl-card .fl-rows { display: grid; gap: 10px; margin: 8px 0; }
.fl-card .fl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.fl-card .fl-in { display: inline-flex; flex-direction: column; min-width: 160px; }
.fl-line { margin: 4px 0; } .fl-p { margin-right: 4px; }
.vw-flags .vw-late { display: inline; }
.emb-flags { padding: 8px 12px; }
.fl-tabs { margin: 10px 0; }

/* Products and stock (2026-11-26) */
.pr-step { display: inline-flex; align-items: center; gap: 4px; }
.pr-step .btn { min-width: 36px; min-height: 36px; padding: 0 8px; }
.pr-qty { width: 4.2em; text-align: center; min-height: 36px; }
.pr-list td { padding: 6px 8px; vertical-align: middle; }
.pr-r[hidden], details.pr-g[hidden] { display: none; }
.pr-low td:first-child { border-left: 3px solid #f59e0b; }
.pr-off { opacity: .6; }
.pr-n { background: var(--brand, #1d4ed8); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 12px; margin-left: 4px; }
.pr-save { position: sticky; bottom: 0; background: var(--card, #fff); padding: 10px 0; margin: 0; border-top: 1px solid var(--line, #e2e8f0); }
.pr-pop { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--line, #e2e8f0); border-radius: 8px; background: var(--card, #fff); margin-top: 6px; min-width: 300px; }
.pr-trail { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.pr-cat th, .pr-sub td { background: var(--sky, #eef4ff); }
.pr-g > summary { cursor: pointer; padding: 8px 0; }
/* Documents page, terms editor, consent editor extras (2026-11-26) */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.doc-card .doc-stat { margin: 6px 0; } .doc-card .doc-go { margin: 10px 0 0; }
.doc-terms textarea { width: 100%; font-family: inherit; }
.doc-view h3 { margin: 14px 0 4px; font-size: 1em; }
.ce-x { white-space: nowrap; }
.cf-yn { display: flex; gap: 10px; }
.cf-ask { margin: 6px 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--sky); }
.cf-conf { color: var(--ok); margin: 2px 0; }
.cf-custnote { white-space: normal; }
/* Marketing > Repeat reminders (2026-11-26) */
.mk-filter .row-f { align-items: flex-end; flex-wrap: wrap; gap: 10px; }
.mk-quick { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mk-salons { margin: 0 0 10px; }
.mk-tabs { margin: 12px 0; }
.mk-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.mk-t td:first-child { width: 36px; }
.mk-go { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.mk-via { border: 0; padding: 0; margin: 0; display: flex; gap: 16px; flex-wrap: wrap; }
.mk-via legend { font-weight: 700; margin-right: 8px; float: left; }

/* ===== New appointment + Edit, round five (2026-11-29, owner: "reorganise the horizontal boxes and buttons so they sit in the same row, make it look nicer; the total is not showing with more
   appointments; this is the prime screen, 90% of the use") =====
   1. Time needed + Total amount live in the BOTTOM BAR with the buttons, so they can never be pushed out of the window by a long list of treatments or a notice.
   2. Every box in a row has the same height and sits on the same line; the customer block is one soft panel. 3. The consent notice is one line (tap to read it all). */
.dy-dialog :is(#tb, #ed).tbn .tbn-top { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px 10px; }
:is(#tb, #ed).tbn .tbn-row { align-items: end; }
:is(#tb, #ed).tbn .tbn-f > span, :is(#tb, #ed).tbn .tbn-f > legend { min-height: 18px; display: flex; align-items: center; justify-content: space-between; gap: 8px; text-transform: uppercase; letter-spacing: .04em; font-size: .72rem; }
:is(#tb, #ed).tbn .tbn-f > span small, :is(#tb, #ed).tbn .tbn-f > legend small { text-transform: none; letter-spacing: 0; }
:is(#tb, #ed).tbn .tbn-f input:not([type=checkbox]):not([type=radio]), :is(#tb, #ed).tbn .tbn-f select, :is(#tb, #ed).tbn .tb-ournote textarea, :is(#tb, #ed).tbn .tb-time .tb-step { height: 42px; min-height: 42px; }
:is(#tb, #ed).tbn .tb-time { grid-template-columns: 42px minmax(0, 1fr) 42px; }
:is(#tb, #ed).tbn .tbn-r2 { display: flex; flex-wrap: nowrap; gap: 6px 10px; align-items: flex-end; margin-top: 6px; }
:is(#tb, #ed).tbn .tbn-r2 > .tbn-src { flex: none; width: auto; } :is(#tb, #ed).tbn .tbn-r2 .tb-src { min-width: 236px; }
:is(#tb, #ed).tbn .tbn-r2 > .tbn-own { flex: 0 0 180px; } :is(#tb, #ed).tbn .tbn-r2 > .tbn-note { flex: 1.3 1 0; min-width: 150px; } :is(#tb, #ed).tbn .tbn-r2 > .tbn-our { flex: 1 1 0; min-width: 150px; }
:is(#tb, #ed).tbn .tbn-r2 .tb-seg span { min-height: 42px; }
:is(#tb, #ed).tbn .tbn-r2 > .tbn-ch { flex: none; align-self: flex-end; display: inline-flex; align-items: center; justify-content: center; height: 42px; min-height: 42px; margin: 0; padding: 0 16px; border: 1.5px solid var(--tbn-box); border-radius: 10px; background: #fff; color: var(--brand); font-size: .92rem; font-weight: 700; white-space: nowrap; text-decoration: none; }
:is(#tb, #ed).tbn .tbn-r2 > .tbn-ch:hover { background: var(--sky); } :is(#tb, #ed).tbn .tbn-r2 > .tbn-ch[aria-disabled=true] { color: var(--muted); background: var(--off); border-color: var(--line); pointer-events: none; }
:is(#tb, #ed).tbn .tb-ournote { gap: 8px; } :is(#tb, #ed).tbn .tbn-our > span { gap: 10px; } :is(#tb, #ed).tbn .tbn-our .tb-sens { text-transform: uppercase; letter-spacing: .04em; font-size: .72rem; font-weight: 700; color: #b42318; display: inline-flex; align-items: center; gap: 5px; }
:is(#tb, #ed).tbn .tbn-our textarea { resize: none; }
/* the right column: staff chips, the list of treatments (takes what is left, scrolls inside), the one-line consent notice */
:is(#tb, #ed).tbn .tbn-cart > .tb-cart { flex: 1 1 0; min-height: 118px; }
:is(#tb, #ed).tbn .tb-consent { margin: 0; padding: 5px 10px; font-size: .8rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
:is(#tb, #ed).tbn .tb-consent.open { white-space: normal; }
/* the bottom bar: [one line about the booking] / [Time needed] [Total amount] ............ [Save] [Save & Checkout] [Save & send payment link | all of it] [Cancel] */
.dy-dialog :is(#tb, #ed).tbn .tb-foot.tbn-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 6px 14px; padding: 8px 16px 10px; background: var(--bg); border-top: 2px solid var(--tbn-dark); }
:is(#tb, #ed).tbn .tbn-foot .tb-summary { order: 0; flex: 1 1 100%; margin: 0; display: block; font-size: .82rem; line-height: 1.3; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: unset; }
:is(#tb, #ed).tbn .tbn-foot .tb-summary:empty { display: none; } .tbn-foot .tb-summary.late { white-space: normal; color: #b42318; }
:is(#tb, #ed).tbn .tbn-foot .tbn-end { order: 1; display: flex; align-items: center; gap: 12px; margin: 0; padding: 0; justify-content: flex-start; }
:is(#tb, #ed).tbn .tbn-foot .tbn-need { gap: 8px; padding: 3px 6px 3px 12px; border: 1.5px solid var(--tbn-box); border-radius: 12px; background: #fff; }
:is(#tb, #ed).tbn .tbn-foot .tbn-need > span { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
:is(#tb, #ed).tbn .tbn-foot .tbn-need output { min-width: 92px; text-align: center; font-weight: 700; font-size: .95rem; color: var(--ink); border: 0; background: transparent; padding: 4px 2px; }
:is(#tb, #ed).tbn .tbn-foot .tbn-need .tb-tstep { min-width: 38px; min-height: 36px; }
:is(#tb, #ed).tbn .tbn-foot .tbn-total { margin: 0; display: flex; align-items: center; gap: 10px; padding: 3px 16px 3px 14px; border: 2px solid var(--brand); border-radius: 12px; background: #fff; white-space: nowrap; }
:is(#tb, #ed).tbn .tbn-foot .tbn-total > span { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
:is(#tb, #ed).tbn .tbn-foot .tbn-total b { font-size: 1.55rem; line-height: 1.2; color: var(--brand); font-variant-numeric: tabular-nums; }
:is(#tb, #ed).tbn .tbn-foot #ed-mins { white-space: nowrap; font-size: .84rem; }
:is(#tb, #ed).tbn .tbn-foot .tbn-acts { order: 2; margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
:is(#tb, #ed).tbn .tbn-foot .tbn-acts .btn { min-width: 0; min-height: 46px; padding: 0 20px; font-size: 1rem; font-weight: 700; white-space: nowrap; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; margin: 0; }
:is(#tb, #ed).tbn .tbn-foot .tbn-acts .tb-book, .tbn-foot .tbn-acts .ed-save { min-width: 96px; }
:is(#tb, #ed).tbn .tbn-foot .tb-linkbox { display: inline-flex; align-items: stretch; gap: 0; border: 1.5px solid var(--brand); border-radius: 12px; overflow: hidden; background: #fff; }
:is(#tb, #ed).tbn .tbn-foot .tb-linkbox .btn { border-radius: 0; min-height: 43px; }
:is(#tb, #ed).tbn .tbn-foot .tb-linkbox select { border: 0; border-left: 1.5px solid var(--brand); border-radius: 0; background: var(--sky); color: var(--ink); font: inherit; font-size: .9rem; font-weight: 600; padding: 0 8px; margin: 0; min-height: 43px; width: auto; }
@media (max-width: 1260px) {
  :is(#tb, #ed).tbn .tbn-foot .tbn-acts .btn { padding: 0 14px; font-size: .95rem; } .tbn-foot .tbn-total b { font-size: 1.4rem; } .tbn-foot .tbn-need output { min-width: 80px; }
  :is(#tb, #ed).tbn .tbn-r2 > .tbn-own { flex-basis: 150px; } :is(#tb, #ed).tbn .tbn-r2 .tb-src { min-width: 214px; }
}
@media (max-width: 1100px) { :is(#tb, #ed).tbn .tbn-r2 { flex-wrap: wrap; } }
@media (max-width: 700px) { :is(#tb, #ed).tbn .tbn-foot .tbn-acts { flex-wrap: wrap; } .tbn-foot .tbn-acts .btn, .tbn-foot .tb-linkbox { flex: 1 1 auto; } .tbn-foot .tbn-end { width: 100%; justify-content: space-between; } }
:is(#tb, #ed).tbn .tbn-our textarea { height: 42px; min-height: 42px; padding: 8px 10px; line-height: 1.3; font-size: .95rem; }
:is(#tb, #ed).tbn .tbn-src .tb-src, :is(#tb, #ed).tbn .tbn-src .tb-seg, :is(#tb, #ed).tbn .tbn-src .ed-src { margin: 0; } :is(#tb, #ed).tbn .tb-src { align-items: stretch; }
/* the one-line summary sits in the bar's row; only the closing-time warning takes a whole row of its own */
:is(#tb, #ed).tbn .tbn-foot .tb-summary { flex: 1 1 150px; min-width: 0; } .tbn-foot .tb-summary.late { flex-basis: 100%; }
/* long words in a label (the lookup line, "messages go here too") shorten with … instead of running into the next box */
:is(#tb, #ed).tbn .tbn-f > span, :is(#tb, #ed).tbn .tbn-f > legend { min-width: 0; }
:is(#tb, #ed).tbn .tbn-f > span small, :is(#tb, #ed).tbn .tbn-f > legend small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 1 auto; max-width: 100%; }
:is(#tb, #ed).tbn .tbn-name > span .tb-known { flex: 1 1 0; text-align: right; }
:is(#tb, #ed).tbn .tb-seg span { white-space: nowrap; padding: 0 10px; }
:is(#tb, #ed).tbn .tbn-r2 > .tbn-own > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
/* a tablet: the second row takes two lines (who it came from, history and staff's own treatment; then the two notes side by side) instead of squeezing the boxes */
@media (max-width: 1150px) {
  :is(#tb, #ed).tbn .tbn-r2 { flex-wrap: wrap; } :is(#tb, #ed).tbn .tbn-r2 > .tbn-own { flex: 1 1 190px; }
  :is(#tb, #ed).tbn .tbn-r2 > .tbn-note, :is(#tb, #ed).tbn .tbn-r2 > .tbn-our { flex: 1 1 calc(50% - 6px); }
}
/* tablet: a slimmer panel, labels exactly one line high, and the bottom bar without its duplicate summary so Time needed, Total and the buttons share ONE row */
:is(#tb, #ed).tbn .tbn-our > span, :is(#tb, #ed).tbn .tbn-note > span, :is(#tb, #ed).tbn .tbn-own > span { height: 18px; min-height: 18px; line-height: 18px; }
:is(#tb, #ed).tbn .tbn-our .tb-sens { height: 18px; line-height: 18px; margin: 0; } :is(#tb, #ed).tbn .tbn-our .tb-sens input { margin: 0; width: 16px; height: 16px; min-height: 0; }
@media (max-width: 1299px) { :is(#tb, #ed).tbn .tbn-foot .tb-summary:not(.late) { display: none; } }
@media (max-width: 1150px) {
  .dy-dialog :is(#tb, #ed).tbn .tbn-top { padding: 6px 10px 8px; } :is(#tb, #ed).tbn .tbn-r2 { margin-top: 4px; gap: 4px 10px; }
  .dy-dialog :is(#tb, #ed).tbn .tb-foot.tbn-foot { padding: 6px 12px 8px; gap: 6px 10px; } .tbn-foot .tbn-acts { margin-left: auto; width: auto; }
  :is(#tb, #ed).tbn .tbn-foot .tbn-acts .btn { padding: 0 14px; } .tbn-foot .tbn-need { padding: 2px 4px 2px 10px; } .tbn-foot .tbn-need output { min-width: 78px; } .tbn-foot .tbn-total { padding: 2px 12px; } .tbn-foot .tbn-total b { font-size: 1.3rem; }
}
@media (max-width: 800px) { :is(#tb, #ed).tbn .tbn-foot .tbn-acts { width: 100%; justify-content: flex-end; } }
@media (max-width: 1150px) { :is(#tb, #ed).tbn .tb-time { grid-template-columns: 36px minmax(0, 1fr) 36px; gap: 3px; } :is(#tb, #ed).tbn .tb-time input[type=time] { padding: 4px 2px 4px 8px; min-width: 0; } :is(#tb, #ed).tbn .tb-time input::-webkit-calendar-picker-indicator { margin: 0; padding: 0 2px; } }
@media (min-width: 1300px) { :is(#tb, #ed).tbn .tbn-foot #ed-mins { display: none; } }
/* round five, last word (specific enough to beat the older window rules): the closing-time warning stays red and gets its own row; the buttons stay big targets; on a phone the bar stacks */
:is(#tb, #ed).tbn .tbn-foot .tb-summary.late { display: block; flex: 1 1 100%; white-space: normal; color: #b42318; font-weight: 800; background: #fdecea; border: 1.5px solid #b42318; border-radius: 8px; padding: 6px 10px; }
:is(#tb, #ed).tbn .tbn-foot .tbn-acts .tb-book, :is(#tb, #ed).tbn .tbn-foot .tbn-acts .ed-save { min-width: 112px; }
:is(#tb, #ed).tbn .tbn-foot .tbn-acts .tb-co { min-width: 150px; }
@media (max-width: 700px) {
  .dy-dialog :is(#tb, #ed).tbn .tb-foot.tbn-foot { flex-direction: row; flex-wrap: wrap; align-items: stretch; padding: 8px 10px 10px; }
  :is(#tb, #ed).tbn .tbn-foot .tbn-end { flex: 1 1 100%; width: 100%; max-width: 100%; flex-wrap: wrap; gap: 6px 8px; min-width: 0; }
  :is(#tb, #ed).tbn .tbn-foot .tbn-need, :is(#tb, #ed).tbn .tbn-foot .tbn-total { flex: 1 1 100%; max-width: 100%; min-width: 0; justify-content: space-between; box-sizing: border-box; }
  :is(#tb, #ed).tbn .tbn-foot .tbn-acts { flex: 1 1 100%; width: 100%; max-width: 100%; flex-wrap: wrap; justify-content: stretch; margin-left: 0; }
  :is(#tb, #ed).tbn .tbn-foot .tbn-acts .btn, :is(#tb, #ed).tbn .tbn-foot .tb-linkbox { flex: 1 1 auto; min-width: 0; }
}
@media (max-width: 700px) { :is(#tb, #ed).tbn .tbn-foot .tbn-acts .tb-book, :is(#tb, #ed).tbn .tbn-foot .tbn-acts .ed-save { flex: 1 1 100%; min-width: 112px; } :is(#tb, #ed).tbn .tbn-foot .tbn-acts .tb-co { min-width: 120px; } }

/* Treatwell payment on View Appointment: PREPAID green, UNPAID always red, not stated amber */
.vw-tw { display: flex; flex-direction: column; gap: 2px; margin: 0 0 8px; padding: 9px 12px; border-radius: 8px; border: 2px solid; line-height: 1.25; } .vw-tw b { font-size: 1.05rem; letter-spacing: .02em; } .vw-tw span { font-size: .85rem; }
.vw-tw-paid { background: #e3f5ec; color: #0b5a37; border-color: #127a4b; }
.vw-tw-unpaid { background: #fdecea; color: #8c1a10; border-color: #c62828; box-shadow: 0 0 0 3px rgba(198, 40, 40, .15); }
.vw-tw-unknown { background: #fff7e0; color: #7a4d00; border-color: #c28a00; }
.vw-tw-done { background: #f1f5f9; color: #334155; border-color: #cbd5e1; }

/* consent editor: move / remove buttons on each question row (2026-12-01) */
.ce-mv { white-space: nowrap; } .ce-mv .btn { padding: 1px 7px; min-height: 28px; font-size: .8rem; margin-left: 2px; } .ce-mv .ce-del { color: #b3261e; }
.ce-q tr[hidden] { display: none; }
/* Terms on the consent form and in Documents (2026-12-01: the owner's full General Terms): lists, part headings, a box that scrolls */
.cf-terms { max-height: 46vh; overflow: auto; } .cf-terms ul, .doc-view ul { margin: 2px 0 8px 1.1em; padding: 0; } .cf-terms li, .doc-view li { margin: 0 0 4px; }
.cf-terms .tc-part, .doc-view .tc-part { margin: 16px 0 4px; padding-top: 8px; border-top: 2px solid var(--line); font-size: 1.02rem; }
/* Points and peak times: each time slot on one line (2026-12-01) */
.ly-cal td.ly-band { white-space: nowrap; padding: 3px 6px; } .ly-cal .ly-band input[type=time] { width: 7.2em; padding-left: 6px; padding-right: 4px; } .ly-cal .ly-band select { width: auto; min-width: 5.6em; }
.ly-cal th[scope=row] { white-space: nowrap; }
/* consent form review (2026-12-01): answers that need a member of staff are red */
.cf-flagrow > td { background: #fdecec; } .cf-flagrow td:first-child { border-left: 4px solid #c0392b; } .cf-review { border-color: #e0a3a3; } .cf-review h2 .pill { margin-left: 6px; } .cf-validate { border-color: #c9d6c1; }
/* Week planner: the note for staff in the pop-up and the small "Note" mark in a day's box (2026-12-01) */
.wk-acts .wk-notefld { display: inline-flex; flex-direction: column; gap: 2px; flex: 1 1 220px; min-width: 200px; font-size: .82rem; } .wk-acts .wk-notefld input { width: 100%; }
.wk-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; } .wk-notehelp { margin: 4px 0 0; }
.wk-td { position: relative; } .wk-note-mark { position: absolute; top: -3px; right: -2px; z-index: 2; font-size: .62rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; background: #fff3c4; color: #6b5200; border: 1px solid #e6cf6a; border-radius: 6px; padding: 0 4px; pointer-events: none; }

/* checkout: Send the aftercare (2026-12-01) */
.co-early .co-tick { flex-wrap: nowrap; align-items: flex-start; gap: 10px; font-size: .95rem; } .co-early .co-tick input { flex: none; }
.co-ac { margin: 8px 0 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: #f7fbf7; }

/* sensitive questions on a signed form (owner and store admins): caution sign and amber band (2026-12-01) */
.cf-sensrow > td { background: #fff6e0; } .cf-sensrow td:first-child { border-left: 4px solid #e0a800; } .cf-flagrow.cf-sensrow > td { background: #fdecec; } .cf-caution { color: #b54708; font-weight: 700; }

/* ===================== Design pass 1 (2026-12-01, owner: "make it a product for multi-salon businesses: uniform tick boxes, borders, buttons,
   fonts and colours; a menu that is easy to read and reach, so that anyone, even a grandma, can use it") =====================
   Rules here are written with :where() wherever they set a BASE look, so every tuned screen (New appointment, Edit, Checkout, the Diary)
   keeps its own sizes: only pages that relied on the plain defaults change. */
:root { --ui-r: 12px; --ui-h: 44px; --ui-h-sm: 36px; --ui-focus: color-mix(in srgb, var(--brand) 45%, transparent); --ui-text: 16px; }

/* the menu: bigger, calmer, one clear picture per item, headings you can read */
.side { padding: 18px 12px; gap: 1px; }
.side a.nav { font-size: 1rem; padding: 10px 12px; min-height: 44px; border-radius: 10px; color: var(--ink); }
.side a.nav .ico { width: 20px; height: 20px; opacity: .9; }
.side a.nav[aria-current="page"] .ico { opacity: 1; }
.side .grp { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 6px; }
.side .grp-h { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; margin: 0; font-size: .82rem; letter-spacing: .06em; color: var(--navy); border-radius: 8px; }
.side .grp-h::-webkit-details-marker { display: none; }
.side .grp-h::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .15s; flex: none; margin-left: auto; }
.side details[open] > .grp-h::after { transform: rotate(45deg); }
.side .grp-h:hover { background: var(--bg); }
.side .grp-h .grp-badge { margin-left: auto; }
.brand b { font-size: 1.3rem; }
/* the "Menu" button when the menu is folded away (tablets): a word as well as the three lines */
.menu-btn { gap: 8px; font-weight: 700; font-size: 1rem; }
.topbar .menu-btn span { display: inline; }

/* every page that is not one of the tuned desk windows: a little bigger and easier to read */
main:not(.wide) { font-size: var(--ui-text); }
main:not(.wide) h1 { font-size: 1.75rem; line-height: 1.2; }
main:not(.wide) h2 { font-size: 1.2rem; }
main:not(.wide) .muted { color: color-mix(in srgb, var(--muted) 85%, var(--ink)); }
main:not(.wide) .small { font-size: .9rem; }

/* buttons: one shape, one height, clear states */
:where(.btn) { min-height: var(--ui-h); padding: 0 18px; border-radius: var(--ui-r); justify-content: center; line-height: 1.2; transition: background .12s, border-color .12s, color .12s, box-shadow .12s; }
:where(.btn.sm) { min-height: var(--ui-h-sm); padding: 0 12px; font-size: .9rem; }
:where(.btn.ghost) { border-width: 1.5px; border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
:where(.btn):active { transform: translateY(1px); }
:where(.btn):focus-visible { outline: 3px solid var(--ui-focus); outline-offset: 2px; }
:where(.pill-link) { min-height: 38px; display: inline-flex; align-items: center; gap: 6px; }

/* boxes: one height, a visible border, a clear focus ring */
:where(main:not(.wide)) :where(input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=tel], input[type=time], input[type=search], input[type=url], select) { min-height: var(--ui-h); border-radius: 10px; font-size: 1rem; }
:where(main:not(.wide)) :where(textarea) { border-radius: 10px; font-size: 1rem; }
:where(main:not(.wide)) :where(label) { font-size: .95rem; }

/* tick boxes and round choices: bigger, the brand colour, easy to hit */
:where(input[type=checkbox], input[type=radio]) { width: 20px; height: 20px; margin: 0 6px 0 0; vertical-align: -4px; cursor: pointer; flex: none; }
:where(main:not(.wide)) :where(label):has(> input[type=checkbox], > input[type=radio]) { cursor: pointer; }

/* cards, tables and notices: the same corners and the same quiet edge everywhere */
:where(.card) { border-radius: 16px; }
:where(table.data) td, :where(table.data) th { padding-top: 11px; padding-bottom: 11px; }
:where(main:not(.wide)) :where(table.data) { font-size: .95rem; }
:where(table.data) tbody tr:hover > td { background: color-mix(in srgb, var(--brand) 4%, transparent); }
:where(.notice) { border-radius: 10px; padding: 12px 16px; }
:where(.pill) { font-size: .8rem; padding: 2px 10px; }

@media (prefers-reduced-motion: reduce) { :where(.btn), .side .grp-h::after { transition: none; } }
.side details.grp > summary.grp-h::before { content: none; }      /* the chevron on the right replaces the old small triangle */
.side details.grp > summary.grp-h { padding: 8px 12px; font-size: .82rem; }
/* the folded menu's button says "Menu" (tablets); the page moves right to leave it room */
.side-show { width: auto; min-width: 46px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; font-size: 1.25rem; } .side-show span { font-size: 1rem; font-weight: 700; }
.side-show[hidden] { display: none; }
@media (min-width: 901px) { html.side-off main { padding-left: 128px; } html.side-off main.wide { padding-left: 128px; } }
/* the diary (and other full-width desk screens) keeps every pixel: there the button is the plain ☰ */
body:has(main.wide) .side-show span { display: none; } body:has(main.wide) .side-show { padding: 0; width: 46px; justify-content: center; }
@media (min-width: 901px) { html.side-off main.wide { padding-left: 66px; } }

/* ===================== Design pass 2 (2026-12-01) ===================== */
/* "Find a page" in the menu */
.nav-find { display: block; margin: 0 4px 10px; } .nav-find input { width: 100%; min-height: 42px; border-radius: 10px; padding: 0 12px 0 36px; font-size: .95rem; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5b7a' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") no-repeat 11px center / 17px; border: 1.5px solid var(--line); }
.nav-find input:focus { border-color: var(--brand); background-color: #fff; outline: none; box-shadow: 0 0 0 3px var(--ui-focus); }
.side.finding .grp { border-top: 0; margin-top: 2px; } .side a.nav[hidden], .side details.grp[hidden] { display: none; }
/* "Jump to" bar on long pages */
.jumpbar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 10px; margin: 0 0 14px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: 12px; }
.jumpbar .jb-l { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.jumpbar a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 600; white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.jumpbar a:hover { border-color: var(--brand); color: var(--brand); }
:target { scroll-margin-top: 72px; }
/* table headings stay in view while a long table scrolls inside its box */
main:not(.wide) .scroll { max-height: none; } main:not(.wide) .scroll > table.data > thead th { position: sticky; top: 0; z-index: 1; }
/* on / off switches for the settings that are just on or off (customer flags, Control panel switches) */
:is(.fl-form .fl-row, .card > form) > label.chk > input[type=checkbox], :is(.fl-form .fl-row, .card > form) > p > label.chk > input[type=checkbox], .card > form > label.co-tick > input[type=checkbox] {
  appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 999px; background: #c5cfdd; position: relative; flex: none; margin: 0 8px 0 0; cursor: pointer; transition: background .15s; vertical-align: middle; border: 0; }
:is(.fl-form .fl-row, .card > form) > label.chk > input[type=checkbox]::after, :is(.fl-form .fl-row, .card > form) > p > label.chk > input[type=checkbox]::after, .card > form > label.co-tick > input[type=checkbox]::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .3); transition: left .15s; }
:is(.fl-form .fl-row, .card > form) > label.chk > input[type=checkbox]:checked, :is(.fl-form .fl-row, .card > form) > p > label.chk > input[type=checkbox]:checked, .card > form > label.co-tick > input[type=checkbox]:checked { background: var(--ok); }
:is(.fl-form .fl-row, .card > form) > label.chk > input[type=checkbox]:checked::after, :is(.fl-form .fl-row, .card > form) > p > label.chk > input[type=checkbox]:checked::after, .card > form > label.co-tick > input[type=checkbox]:checked::after { left: 21px; }
:is(.fl-form .fl-row, .card > form) > label.chk > input[type=checkbox]:focus-visible, .card > form > label.co-tick > input[type=checkbox]:focus-visible { outline: 3px solid var(--ui-focus); outline-offset: 2px; }
.fl-form .fl-row { padding: 6px 0; border-bottom: 1px solid var(--line); } .fl-form .fl-row:last-child { border-bottom: 0; }
/* sign-in page */
.login { max-width: 440px; margin: 9vh auto; } .login h1 { font-size: 2rem; } .login .card { padding: 28px; border-radius: 18px; }
.login input { min-height: 48px; font-size: 1.05rem; } .login label { font-size: 1rem; } .login .btn { min-height: 48px; width: 100%; font-size: 1.05rem; }
@media (prefers-reduced-motion: reduce) { .jumpbar { backdrop-filter: none; } }
.fl-form .fl-row small.muted, .fl-form .fl-row .muted { font-size: .88rem; }
/* offer editor on a phone: the boxes shrink to the screen (an open editor with long words used to push the page sideways) */
.of-left, .of-right { min-width: 0; } .of-left :is(input, textarea, select) { max-width: 100%; } .of-left fieldset, .of-left legend { min-width: 0; max-width: 100%; }
@media (max-width: 700px) { :has(> .of-left) { grid-template-columns: minmax(0, 1fr) !important; } }
/* End day: Cash and Closing cash disagree (hotfix 2026-12-02) */
.eod-ccw { margin: 10px 0; } .eod-ccw p { margin: 4px 0; font-weight: 600; } .eod-ccw .eod-ccw-a { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-weight: 500; } .eod-ccw label.check { margin: 0; }

/* Offer price in the treatment list of the New and Edit appointment windows (2026-12-02): normal price struck through + offer price, offer colour, short tag */
:is(#tb, #ed).tbn .tb-pp.tb-ppo, :is(#tb, #ed).tbn .tb-tile:has(input:checked) .tb-pp.tb-ppo { background: #d6336c; min-width: 0; }
:is(#tb, #ed).tbn .tb-ppw { font-weight: 500; font-size: .74rem; opacity: .85; margin-right: 2px; text-decoration-thickness: 1.5px; }
:is(#tb, #ed).tbn .tb-tile b .tb-ot, :is(#tb, #ed).tbn .tb-ptile b .tb-ot { display: inline-block; max-width: 160px; overflow: hidden; text-overflow: ellipsis; vertical-align: -3px; margin-left: 4px; padding: 0 7px; font-size: .66rem; line-height: 1.6; }
/* Order of the treatments in a group, on the master list (2026-12-02): opens full width under the group's tools */
.mx-sorder > summary { list-style: none; } .mx-sorder > summary::-webkit-details-marker { display: none; } .mx-sorder[open] { flex-basis: 100%; } .mx-sorder[open] > form { margin-top: 8px; padding: 10px; border: 1px solid var(--line, #cfd8ea); border-radius: 12px; background: #fafcff; }
/* First visit mark on View appointment (2026-12-02 hotfix): a red star badge beside the customer's name */
.vw-new { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: #d92d20; color: #fff; font-size: .8rem; font-weight: 800; letter-spacing: .01em; white-space: nowrap; vertical-align: 1px; box-shadow: 0 0 0 3px #fde3e1; }
.vw-new b { font-size: 1rem; line-height: 1; }

/* First visit on the diary (2026-12-02 hotfix): a red NEW badge at the start of the block, and a red edge so it is seen at a glance */
.dy-new { display: inline-block; margin-right: 3px; padding: 0 6px; border-radius: 999px; background: #d92d20; color: #fff; font-style: normal; font-size: .68rem; font-weight: 800; letter-spacing: .03em; line-height: 1.55; vertical-align: 1px; white-space: nowrap; }
.dy-a.first { box-shadow: inset 4px 0 0 #d92d20, 0 0 0 2px #f8b4ae; }

/* The salon the owner is working on (2026-12-02): a list at the top of the menu, one salon or All. One salon chosen = the salon buttons on the pages are hidden. */
.salon-pick { margin: 4px 10px 10px; padding: 8px; border: 1px solid var(--line, #dbe3ef); border-radius: 14px; background: var(--card, #fff); display: grid; gap: 2px; }
.salon-pick .sp-h { margin: 0 6px 4px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #5b6b82); }
.salon-pick .sp-o { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 10px; border-radius: 10px; color: inherit; text-decoration: none; font-weight: 600; }
.salon-pick .sp-o:hover { background: var(--sky, #eef4ff); }
.salon-pick .sp-o.on { background: var(--navy, #0b2a5b); color: #fff; }
.salon-pick .sp-r { flex: none; width: 18px; height: 18px; border: 2px solid currentColor; border-radius: 50%; opacity: .55; display: grid; place-items: center; }
.salon-pick .sp-o.on .sp-r { opacity: 1; background: #2fb36b; border-color: #2fb36b; }
.salon-pick .sp-o.on .sp-r::after { content: '✓'; color: #fff; font-size: .7rem; font-weight: 900; font-style: normal; line-height: 1; }
.salon-pick .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.salon-pick .sp-all { margin-top: 6px; position: relative; } .salon-pick .sp-all::before { content: ""; position: absolute; left: 8px; right: 8px; top: -4px; border-top: 1px dashed var(--line, #dbe3ef); }
body[data-scope="one"] nav.pills[aria-label="Salon"] { display: none; }
/* Phones use the top bar's Menu button: the desktop "show the menu" button never covers it (2026-12-02) */
@media (max-width: 900px) { .side-show, .side-show:not([hidden]) { display: none !important; } }

/* The salon dropdown between SalonSync and Find a page (2026-12-02 hotfix): the chosen salon on a big button, the five choices open under it */
.salon-dd { position: relative; margin: 0 10px 12px; }
.salon-dd > summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 14px; border: 1.5px solid var(--line, #dbe3ef); border-radius: 12px; background: var(--card, #fff); cursor: pointer; font-weight: 700; font-size: 1.02rem; color: var(--ink, #0b1f3a); }
.salon-dd > summary::-webkit-details-marker { display: none; }
.salon-dd > summary:hover, .salon-dd[open] > summary { border-color: var(--brand, #1c6fd1); background: var(--sky, #eef4ff); }
.salon-dd > summary .dot { flex: none; width: 14px; height: 14px; border-radius: 50%; }
.salon-dd .sd-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.salon-dd .sd-chev { font-style: normal; color: var(--brand, #1c6fd1); transition: transform .15s; } .salon-dd[open] .sd-chev { transform: rotate(180deg); }
.salon-dd > .salon-pick { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; margin: 0; box-shadow: 0 12px 30px rgba(11, 31, 58, .18); }

/* Treatwell calendar links, redesigned (2026-12-02) */
.lk-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0 0 16px; }
.lk-tile { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-left: 6px solid var(--ok, #17794a); border-radius: 14px; background: var(--card, #fff); color: inherit; text-decoration: none; box-shadow: var(--shadow); }
.lk-tile.warn { border-left-color: var(--warn, #b7791f); } .lk-tile.bad { border-left-color: var(--bad, #c0392b); }
.lk-tile b { font-size: 1rem; } .lk-tile .lk-big { font-size: 1.7rem; font-weight: 800; line-height: 1.1; } .lk-tile .lk-big small { font-size: .9rem; font-weight: 600; color: var(--muted); }
.lk-alert .lk-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 18px; }
.lk-alert .lk-list { display: flex; flex-wrap: wrap; gap: 6px; } .lk-alert .lk-list li { display: block; }
.lk-how > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; } .lk-how > summary::-webkit-details-marker { display: none; }
.lk-how > summary h2 { margin: 0; } .lk-how > summary::after { content: 'Show ▾'; font-weight: 700; color: var(--brand); font-size: .9rem; } .lk-how[open] > summary::after { content: 'Hide ▴'; }
.lk-steps { list-style: none; margin: 14px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.lk-steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 4px 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--sky, #f3f7fd); }
.lk-steps li i { grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-style: normal; font-weight: 800; display: grid; place-items: center; }
.lk-steps li b { font-size: .98rem; } .lk-steps li span { font-size: .88rem; color: var(--muted); line-height: 1.45; }
.lk-sh { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; } .lk-sh h2 { margin: 0; } .lk-sh .lk-makeall { margin-left: auto; }
.lk-st { display: inline-block; margin-top: 3px; padding: 1px 8px; border-radius: 999px; font-size: .74rem; font-weight: 700; background: var(--line); color: var(--ink); }
.lk-st.good { background: #e3f3ea; color: #17794a; } .lk-st.bad { background: #fde3e1; color: #b42318; } .lk-st.none, .lk-st.wait { background: #fdf0d5; color: #8a5a00; } .lk-st.off { background: #eef0f4; color: #5b6b82; }
.lk-t .lk-linkc { white-space: nowrap; } .lk-t .copybox { width: min(320px, 34vw); font-size: .8rem; color: var(--muted); }
.lk-t .lk-copy { min-width: 96px; }
.lk-more { position: relative; display: inline-block; } .lk-more > summary { list-style: none; } .lk-more > summary::-webkit-details-marker { display: none; }
.lk-more .lk-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; display: grid; gap: 6px; min-width: 210px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--card, #fff); box-shadow: 0 12px 30px rgba(11, 31, 58, .18); }
.lk-more .lk-menu .btn, .lk-more .lk-menu form { width: 100%; } .lk-more .lk-menu .btn { justify-content: flex-start; text-align: left; }

/* Week planner with one salon chosen in the menu (2026-12-02): only the people working there; the others one tap away */
form.wk-only:not(.wk-showall) .wk-row:not(.top) { display: none; }
body[data-scope="one"] .wk-pick { display: none; }
.wk-sep .wk-showall-b { margin-left: 10px; text-transform: none; letter-spacing: 0; }

/* One salon chosen in the menu: all-salon summaries on single-salon pages are hidden (2026-12-02) */
body[data-scope="one"] .all-only { display: none; }

body[data-scope="one"] .rx-salons { display: none; }
.of-sec { margin: 28px 0 10px; font-size: 1.25rem; color: var(--navy, #1e2f4d); }
.of-sec small { font-size: .85rem; font-weight: 400; margin-left: 8px; }

/* WhatsApp menu on View Appointment (src/whatsapp.mjs): a no-JavaScript dropdown of ready-written messages that open in WhatsApp */
.dy-wa { position: relative; display: inline-block; } .dy-wa > summary { list-style: none; cursor: pointer; } .dy-wa > summary::-webkit-details-marker { display: none; }
.dy-wa > summary::before { content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px; background: #1ea952; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2z'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2z'/></svg>") center / contain no-repeat; }
.wa-menu { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 30; width: min(380px, 86vw); max-height: 60vh; overflow: auto; background: #fff; border: 1px solid var(--line, #d9dee7); border-radius: 14px; padding: 6px; box-shadow: 0 18px 44px -12px rgba(15,23,42,.35); }
.wa-menu a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: inherit; } .wa-menu a:hover, .wa-menu a:focus-visible { background: #effaf3; }
.wa-menu b { display: block; font-size: .92rem; } .wa-menu small { display: block; color: #64748b; font-size: .78rem; line-height: 1.35; margin-top: 2px; }
