/* The owner's app, laid out and colored like the old system (the owner asked for it, to feel at home after moving):
   a top bar with the menu, a side drawer, a week strip with the day in a blue circle, an hour grid of 120px an hour,
   pastel appointment blocks, striped closed hours, a round blue "+". Applies only where .app.cm is on the page
   (and to the sheets opened from it), so the public booking page keeps its own look. */
body:has(.app.cm) {
  --bg: #ffffff; --card: #ffffff; --soft: #f1f3f4; --ink: #202125; --mute: #5f646b; --line: #e3e5e8;
  --acc: #2b65f0; --acc-tx: #1f55d6; --acc-ink: #fff; --accs: #e7eefe; --sh: 0 1px 2px rgba(32, 33, 37, .06), 0 4px 14px rgba(32, 33, 37, .06);
  --cm-blk: #d7e2fd; --cm-blk-ink: #16213d; --cm-hatch: #eef0f2; --cm-pill: rgba(255, 255, 255, .85);
  --cm-hr: #c9cdd3; --cm-hh: #dadde1; /* the calendar's hour line (about 1.6:1 on the page) and half-hour dashes */
  background: var(--bg); color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) body:has(.app.cm) {
    --bg: #202125; --card: #2a2b2f; --soft: #333237; --ink: #e8eaed; --mute: #9aa0a6; --line: #3c3d41;
    --acc: #2b65f0; --acc-tx: #8ab4f8; --accs: #23314f; --sh: 0 1px 2px rgba(0, 0, 0, .35);
    --cm-blk: #aac1f9; --cm-blk-ink: #14182a; --cm-hatch: #2b2c30; --cm-pill: rgba(40, 40, 40, .55);
    --cm-hr: #45474c; --cm-hh: #38393e;
    --ok: #34c77b; --oks: #183427; --warn: #f0a842; --warns: #3a2c12; --bad: #ff6b7f; --bads: #3c1d24; --on-bad: #2b0a10;
    color-scheme: dark;
  }
}
:root[data-theme=dark] body:has(.app.cm) {
  --bg: #202125; --card: #2a2b2f; --soft: #333237; --ink: #e8eaed; --mute: #9aa0a6; --line: #3c3d41;
  --acc: #2b65f0; --acc-tx: #8ab4f8; --accs: #23314f; --sh: 0 1px 2px rgba(0, 0, 0, .35);
  --cm-blk: #aac1f9; --cm-blk-ink: #14182a; --cm-hatch: #2b2c30; --cm-pill: rgba(40, 40, 40, .55);
  --cm-hr: #45474c; --cm-hh: #38393e;
  --ok: #34c77b; --oks: #183427; --warn: #f0a842; --warns: #3a2c12; --bad: #ff6b7f; --bads: #3c1d24; --on-bad: #2b0a10;
  color-scheme: dark;
}
body:has(.app.cm) { font-family: 'Rubik', 'Heebo', system-ui, sans-serif; }

/* ---------- Top bar and drawer ---------- */
.cm-h { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; height: 58px; padding: 0 10px; padding-top: env(safe-area-inset-top); background: var(--bg); border-bottom: 1px solid var(--line); }
.cm-brand { justify-self: center; font-weight: 700; font-size: 19px; color: var(--ink); letter-spacing: -.2px; max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-ic { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: none; color: var(--ink); cursor: pointer; flex: none; }
.cm-ic svg { width: 26px; height: 26px; }
.cm-ic .dot-n { top: 2px; inset-inline-start: auto; inset-inline-end: 0; }
.cm-h-l { display: flex; align-items: center; gap: 4px; }
.cm-av { display: grid; place-items: center; }
.cm-av .logo { width: 34px; height: 34px; border-radius: 50%; font-size: 15px; }
.app.cm .tabs { display: none; }
.app.cm .main { padding: 0 12px 120px; max-width: 1100px; }
.cm-scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 39; opacity: 0; pointer-events: none; transition: opacity .2s; }
.cm-drawer { position: fixed !important; top: 0; bottom: 0; inset-inline-start: 0; width: min(300px, 82vw); z-index: 40; display: flex !important; flex-direction: column; gap: 2px; background: var(--card); padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); transform: translateX(105%); transition: transform .22s ease; box-shadow: 0 0 40px rgba(0, 0, 0, .3); height: auto !important; border: 0 !important; }
body.nav-open .cm-drawer { transform: none; }
body.nav-open .cm-scrim { opacity: 1; pointer-events: auto; }
.cm-dr-h { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 12px; font-size: 18px; }
.cm-drawer nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; }
.cm-drawer nav a { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 99px; color: var(--ink); font-size: 16px; font-weight: 500; }
.cm-drawer nav a svg { width: 22px; height: 22px; color: var(--mute); }
.cm-drawer nav a.on { background: var(--accs); color: var(--acc-tx, var(--acc)); font-weight: 700; }
.cm-drawer nav a.on svg { color: var(--acc-tx, var(--acc)); }
.cm-drawer nav a .dot-n { position: static; margin-inline-start: auto; }
.cm-dark { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); font-size: 16px; }
.cm-dark span { display: flex; align-items: center; gap: 14px; }
.cm-dark svg { width: 22px; height: 22px; color: var(--mute); }
.cm-page { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.cm-page svg { width: 22px; height: 22px; color: var(--mute); flex: none; }
.cm-page span { display: flex; flex-direction: column; gap: 2px; }
.cm-page b { font-size: 16px; font-weight: 500; }
.cm-page small { font-size: 13px; color: var(--mute); }
.sw { width: 46px; height: 26px; border-radius: 99px; background: var(--line); position: relative; transition: background .2s; flex: none; }
.sw::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: inset-inline-start .2s; }
.sw.on { background: var(--acc); }
.sw.on::after { inset-inline-start: 23px; }
@media (min-width: 900px) {
  .app.cm { grid-template-columns: 260px 1fr; }
  .app.cm .cm-h { grid-column: 1 / -1; }
  .app.cm .cm-h [data-act=nav-open] { visibility: hidden; }
  .cm-drawer { position: sticky !important; top: 58px; height: calc(100vh - 58px) !important; transform: none; box-shadow: none; width: auto; border-inline-end: 1px solid var(--line) !important; z-index: 1; }
  .cm-dr-h { display: none; }
  .cm-scrim { display: none; }
  .app.cm .main { padding: 0 24px 60px; }
}

/* ---------- Calendar ---------- */
.cm-strip { margin: 0 -12px; padding: 6px 4px 2px; gap: 0; border-bottom: 1px solid var(--line); }
.cm-strip .ds-row { gap: 0; }
.cm-wk { width: 28px; height: 28px; border: 0; background: none; color: var(--mute); }
.cm-wk svg { width: 18px; height: 18px; }
@media (hover: none) { .cm-wk { display: none; } }
.app.cm .ds { padding: 4px 0 6px; border-radius: 0; gap: 4px; }
.app.cm .ds small { font-size: 14px; color: var(--ink); }
.app.cm .ds b { width: 32px; height: 32px; font-size: 15px; }
.app.cm .ds.today b { color: var(--ink); background: var(--soft); }
.app.cm .ds.on b { background: var(--acc); color: var(--ink-on-acc, var(--acc-ink)); }
.app.cm .ds.on small { font-weight: 700; }
.app.cm .ds i { display: none; }
.app.cm .ds.closed { opacity: .5; }
.cm-dayrow { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 6px; padding: 6px 0; margin: 0 -12px 8px; padding-inline: 10px 4px; border-bottom: 1px solid var(--line); }
/* The day's title is the date button (a month to jump to any day): the day, a small chevron, the date and the count. */
.cm-day-t { text-align: center; line-height: 1.25; border: 0; background: none; color: var(--ink); padding: 2px 0; min-width: 0; font: inherit; cursor: pointer; border-radius: 10px; }
.cm-day-t b { display: inline-flex; align-items: center; gap: 2px; font-size: 17px; font-weight: 600; }
.cm-day-t b svg { width: 16px; height: 16px; color: var(--mute); margin-top: 1px; }
.cm-day-t small { display: block; color: var(--mute); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The week grid's title: "‹ השבוע · 8–14 בנובמבר ›", the arrows on phones too (no strip to swipe there). */
.cm-wknav { display: flex; align-items: center; gap: 2px; min-width: 0; }
.cm-wknav .cm-day-t { flex: 1; min-width: 0; }
.cm-wknav .cm-wk { display: inline-grid; place-items: center; flex: none; width: 32px; height: 36px; border-radius: 10px; color: var(--ink); }
.cm-wknav .cm-day-t small { font-size: 12.5px; }
.cm-wknav .cm-wk:active { background: var(--soft); }
.app.cm .seg button { padding: 5px 10px; }
.cm-look { width: 38px; }
.cm-look { color: var(--mute); }
.cm-look svg { width: 22px; height: 22px; }
/* The week strip and the day are hosts for the slide (the old one's copy, `.ghost`, lies over the new one and leaves
   sideways). A finger across them is theirs; up and down is the page's. */
.cm-strip, .cal-host { position: relative; overflow: clip; touch-action: pan-y; }
.cal-host { margin: 0 -12px; padding: 0 12px; }
.cal-host .ghost { z-index: 4; background: var(--bg); }
.cm-strip .ghost { background: var(--bg); }
/* Each staff member their own calendar: the switch between them, a chip with their color. */
.cm-staffrow { display: flex; gap: 8px; margin: -2px -12px 8px; padding: 0 12px 2px; overflow-x: auto; scrollbar-width: none; }
.cm-staffrow::-webkit-scrollbar { display: none; }
.st-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.st-chip i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.st-chip.on { background: var(--accs); border-color: var(--acc); color: var(--acc-tx, var(--acc)); }
.cm-strip.fit { padding-top: 4px; }
.cm-strip.fit .ds { padding: 2px 0 4px; gap: 2px; }
.cm-strip.fit .ds b { width: 30px; height: 30px; }
.app.cm .seg { border-radius: 99px; }
.app.cm .seg button { border-radius: 99px; padding: 5px 12px; font-size: 14px; }
.app.cm .pills { margin: 0 -12px 8px; padding: 2px 12px; }
.app.cm .pill { box-shadow: none; border: 1px solid var(--line); background: var(--card); }
.app.cm .cal { background: transparent; box-shadow: none; border-radius: 0; margin: 0 -12px; overflow: visible; }
.app.cm .cal-body { grid-template-columns: 56px 1fr; padding: 8px 0 20px; }
.app.cm .cal-times span { inset-inline-start: 6px; font-size: 14px; color: var(--mute); background: var(--bg); padding: 0 2px; }
/* Hours you can tell apart on a phone (the owner's ask, 2026-11-06: "not just a page", "not too much"): a clear line
   at every hour and under the last one, a light dashed line at every half hour, a thin line between staff (or days). */
.app.cm .cal-grid { background-image: linear-gradient(to bottom, var(--cm-hr) 1px, transparent 1px); border-bottom: 1px solid var(--cm-hr); margin-inline-end: 4px; }
.app.cm .cal-hh { position: absolute; inset: 0; pointer-events: none; }
.app.cm .cal-hh i { position: absolute; inset-inline: 0; border-top: 1px dashed var(--cm-hh); }
.app.cm .cal-col { border-inline-start: 0; }
.app.cm .cal-col + .cal-col { border-inline-start: 1px solid var(--line); }
/* The mouse over a free time (computers): one step lit with its start time, and its hour's label. */
.app.cm .cal-hov { position: absolute; inset-inline: 2px; z-index: 0; display: flex; align-items: center; gap: 4px; padding: 0 8px; border-radius: 5px; border: 1.5px dashed color-mix(in srgb, var(--acc) 75%, transparent); background: color-mix(in srgb, var(--acc) 8%, var(--bg)); color: var(--acc-tx); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; overflow: hidden; pointer-events: none; }
.app.cm .cal-hov svg { width: 16px; height: 16px; flex: none; stroke-width: 2.4; }
.app.cm .wkg .cal-hov { padding: 0 4px; font-size: 12px; gap: 2px; }
.app.cm .wkg .cal-hov svg { width: 12px; height: 12px; }
.app.cm .cal-times span.hov { color: var(--acc-tx); font-weight: 700; }
.app.cm .cal-off { background: repeating-linear-gradient(-45deg, var(--cm-hatch) 0 7px, transparent 7px 14px); }
.app.cm .cal-off span { background: var(--bg); padding: 0 6px; border-radius: 6px; }
.app.cm .cal-heads { background: var(--bg); }
.app.cm .ap { inset-inline: 2px; border-radius: 5px; border: 0; background: var(--cm-blk); color: var(--cm-blk-ink); padding: 6px 8px; font-size: 15px; justify-content: flex-start; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .08); }
.app.cm .ap:hover { transform: none; filter: brightness(.97); }
.ap-l { display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; min-width: 0; }
.ap-l b { font-weight: 700; flex: none; }
.app.cm .ap-t { font-size: 14px; color: inherit; opacity: .85; flex: none; }
.app.cm .ap-s { color: inherit; opacity: .85; font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.ap-m { display: inline-grid; place-items: center; font-style: normal; flex: none; }
.ap-m svg { width: 16px; height: 16px; }
.ap-paid { font-style: normal; font-weight: 800; color: #0b5a34; flex: none; } /* on the pale block, in both themes */
.ap-n { display: block; font-size: 12.5px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.app.cm .ap.short { padding-block: 0; }
/* The fit look: the day's hours spread over the screen (calFit), so the labels and the blocks are a size smaller, and
   the page ends under the grid (the "+" and "חזרה להיום" have their own band, CAL_PAD_B). A block under 22 px keeps the
   name alone. */
.app.cm .cal.fit .cal-body { padding: 6px 0 2px; }
.app.cm .cal.fit .cal-times span { font-size: 12px; }
.app.cm .cal.fit .ap { font-size: 13px; padding: 3px 6px; border-radius: 4px; line-height: 1.25; }
.app.cm .cal.fit .ap-t, .app.cm .cal.fit .ap-s { font-size: 12px; }
.app.cm .cal.fit .ap-m svg { width: 14px; height: 14px; }
.app.cm .cal.fit .ap-n { font-size: 11.5px; margin-top: 0; }
.app.cm .ap.tiny { font-size: 11px; line-height: 1; padding: 0 5px; display: flex; align-items: center; }
.app.cm .ap.tiny .ap-m, .app.cm .ap.tiny .ap-t, .app.cm .ap.tiny .ap-s, .app.cm .ap.tiny .ap-paid { display: none; }
.app.cm .main:has(.cal.fit) { padding-bottom: 6px; }
.app.cm:has(.cal.fit) .cm-fab.fab { width: 54px; height: 54px; inset-inline-start: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); }
.app.cm:has(.cal.fit) .cm-fab.fab svg { width: 30px; height: 30px; }
.app.cm:has(.cal.fit) .cm-today { bottom: calc(16px + env(safe-area-inset-bottom)); padding: 7px 16px; font-size: 14px; }
.app.cm:has(.cal.fit) .ai-fab { bottom: calc(12px + env(safe-area-inset-bottom)); }
/* Each service its own color (the look's "לפי השירות"): the block takes a wash of the service's color with its edge. */
.app.cm .cal.csvc .ap { background: color-mix(in srgb, var(--c) 28%, var(--card)); border-inline-start: 4px solid var(--c); color: var(--ink); }
.app.cm .cal.csvc .ap.st-done { background: color-mix(in srgb, var(--c) 14%, var(--card)); }
.app.cm .cal.csvc .ap-paid, .app.cm .cal.csvc .ap.st-done .ap-paid { color: var(--ok); }
.app.cm .cal.csvc .ap.st-pending, .app.cm .cal.csvc .ap.st-noshow { border-inline-start-color: var(--c); }
/* The week as a grid (calWeekGrid; the default since 2026-11-09). The days stay at the top while the week scrolls (under
   the 58 px bar), today's column is lit, and each block is as in the old system: its status mark and ₪ on top, then the
   customer's name line under line. What shows follows the block's own width (container queries: a phone's narrow day
   keeps the mark and the name, a computer's adds the time and the service) and height (short: the name alone, tiny:
   one line). With several staff, each block has its person's color on its edge. */
.app.cm .cal-heads { grid-template-columns: 56px repeat(var(--n), 1fr); padding-inline-end: 4px; }
.app.cm .wkg .cal-heads { top: 58px; z-index: 5; box-shadow: 0 1px 0 var(--line); }
.app.cm .wkg .cal-head { justify-content: center; cursor: pointer; border-radius: 10px; }
.app.cm .wkg .cal-head small { color: var(--mute); font-weight: 600; }
.app.cm .wkg .cal-head b { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 50%; }
.app.cm .wkg .cal-head.today b { background: var(--acc); color: var(--ink-on-acc, var(--acc-ink)); }
.app.cm .wkg .cal-head.closed b { color: var(--mute); }
.app.cm .wkg .cal-head em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--mute); line-height: 1; }
.app.cm .wkg .cal-col.today { background: color-mix(in srgb, var(--acc) 7%, transparent); }
.app.cm .wkg .now { z-index: 3; }
.app.cm .cal.wkg .ap.mini { container-type: inline-size; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 1px; padding: 3px 4px; border-radius: 5px; line-height: 1.15; text-align: start; overflow: hidden; }
.app.cm .cal.wkg.lanes .ap.mini { border-inline-start: 3px solid var(--sc, transparent); }
.mi-top { display: flex; align-items: center; gap: 3px; min-width: 0; font-size: 11px; line-height: 1; }
.mi-top .ap-m svg { width: 12px; height: 12px; }
.mi-top .ap-paid { font-size: 12px; }
.mi-t { font-size: 11.5px; font-weight: 600; opacity: .85; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mi-n { font-size: 13px; font-weight: 700; overflow-wrap: anywhere; overflow: hidden; }
.app.cm .cal.wkg .ap.mini .mi-n { white-space: normal; text-overflow: clip; }   /* the name wraps, word under word (.ap b cuts it with "…") */
/* The name comes first: the marks and the name keep their height, the service line gives way where the block is low. */
.app.cm .cal.wkg .ap.mini > * { flex-shrink: 0; }
.app.cm .cal.wkg .ap.mini > .mi-s { display: none; }
.app.cm .cal.wkg .ap.mini.tall > .mi-s { display: block; }   /* the service only where the block has room for it */
.mi-s { font-size: 12px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app.cm .cal.wkg .ap.mini.short { padding-block: 2px; }
.app.cm .cal.wkg .ap.mini.short .mi-top, .app.cm .cal.wkg .ap.mini.short .mi-s { display: none; }
.app.cm .cal.wkg .ap.mini.tiny { padding: 0 3px; justify-content: center; }
.app.cm .cal.wkg .ap.mini.tiny .mi-top, .app.cm .cal.wkg .ap.mini.tiny .mi-s { display: none; }
.app.cm .cal.wkg .ap.mini.tiny .mi-n { white-space: nowrap; text-overflow: ellipsis; font-size: 10.5px; }
@container (max-width: 90px) {
  .mi-t, .mi-s { display: none !important; }   /* over .tall's service line: a narrow block has no room for it */
  .mi-n { font-size: 11.5px; line-height: 1.12; }
}
/* Two at the same time on a phone's narrow day: half its width each (less padding), the name smaller, no marks. The
   queries measure the block's inside, its padding left out. */
.app.cm .cal.wkg .ap.mini.split { padding-inline: 2px; }
@container (max-width: 34px) {
  .mi-top { display: none; }
  .mi-n { font-size: 9.5px; letter-spacing: -.2px; line-height: 1.1; }
}
@container (max-width: 8px) { .mi-n { display: none; } }
/* On a phone: a narrow time column, and the day's letter over its date. */
.app.cm .wkg.ph .cal-body { grid-template-columns: 40px 1fr; }
.app.cm .wkg.ph .cal-heads { grid-template-columns: 40px repeat(7, 1fr); }
.app.cm .wkg.ph .cal-times span { font-size: 11px; inset-inline-start: 2px; }
.app.cm .wkg.ph .cal-head { padding: 5px 0 4px; flex-direction: column; gap: 1px; font-size: 13px; }
.app.cm .wkg.ph .cal-off span { font-size: 10px; padding: 0 3px; }
.app.cm .ap.st-done { background: color-mix(in srgb, var(--cm-blk) 85%, var(--bg)); }
.app.cm .ap.st-done .ap-paid { color: var(--cm-blk-ink); } /* the block's own dark ink: green read too faint on the dark theme's block */
.app.cm .ap.st-pending { background: repeating-linear-gradient(-45deg, #ffd99a 0 7px, #ffe8c2 7px 14px); color: #3a2a06; }
/* A no-show: a pale pink block in both themes (like the other blocks), the name struck through; no transparency, which
   let the dark background through and sank the dark text. */
.app.cm .ap.st-noshow { background: #ffd3d9; opacity: 1; }
.app.cm .ap-buf { opacity: .6; }
.app.cm .now { background: var(--ink); height: 1.5px; }
.app.cm .now::before { display: none; }
.cm-fab.fab { width: 64px; height: 64px; border-radius: 50%; inset-inline-start: 18px; bottom: calc(22px + env(safe-area-inset-bottom)); background: var(--acc); box-shadow: 0 6px 20px rgba(43, 101, 240, .45); }
.cm-fab.fab svg { width: 34px; height: 34px; stroke-width: 2.4; }
.app.cm .ai-fab { bottom: calc(26px + env(safe-area-inset-bottom)); inset-inline-start: auto; inset-inline-end: 16px; }
.cm-today { position: fixed; bottom: calc(36px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 18; padding: 8px 20px; border-radius: 30px; border: 1px solid color-mix(in srgb, var(--ink) 15%, transparent); background: var(--cm-pill); backdrop-filter: blur(8px); color: var(--ink); font-weight: 700; font-size: 15px; }
.app.cm .wk-day { box-shadow: none; border: 1px solid var(--line); }

/* ---------- Customers ---------- */
.cm-cust { padding-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.cm-top { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.cm-add, .cm-ghost { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 99px; border: 1px solid var(--line); background: var(--soft); color: var(--ink); font-size: 17px; font-weight: 700; }
.cm-ghost { font-size: 15px; font-weight: 500; background: none; }
.cm-add svg { width: 20px; height: 20px; }
.cm-search { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px; border-radius: 99px; background: var(--soft); border: 1px solid var(--line); }
.cm-search svg { width: 22px; height: 22px; color: var(--mute); flex: none; }
.cm-search input { flex: 1; border: 0 !important; background: none !important; outline: 0; font-size: 17px; min-width: 0; color: var(--ink); box-shadow: none !important; padding: 0; min-height: 0; }
.cm-filter { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.cm-seg, .cm-sort { position: relative; display: flex; flex-direction: row; margin: 0; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 99px; background: var(--soft); border: 1px solid var(--line); font-weight: 700; cursor: pointer; }
.cm-seg span { flex: 1; }
.cm-seg em { font-style: normal; font-size: 13px; padding: 2px 10px; border-radius: 99px; background: var(--line); color: var(--ink); }
.cm-seg svg, .cm-sort svg { width: 18px; height: 18px; color: var(--mute); }
.cm-sort { width: 48px; padding: 0; justify-content: center; }
.cm-seg select, .cm-sort select { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
/* Statistics (2026-11-08): the unit, the period with its arrows, the numbers, one chart that follows. */
.st-head { margin-bottom: 8px; }
.st-unit { margin: 0 0 10px; }
.st-nav { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 0 0 12px; }
.st-nav .ic-btn { width: 40px; height: 40px; }
.st-title { display: flex; flex-direction: column; align-items: center; min-width: 150px; max-width: 70%; padding: 4px 14px; border: 0; border-radius: 12px; background: none; color: var(--ink); font: inherit; line-height: 1.2; cursor: pointer; }
.st-title b { font-size: 18px; font-weight: 700; }
.st-title small { font-size: 13px; color: var(--mute); }
.st-kpis { grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 12px; }
.st-kpi { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.st-kpi small { font-size: 13px; color: var(--mute); }
.st-kpi b { font-size: 24px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.st-kpi b.bad { color: var(--bad); }
.st-kpi em { font-style: normal; font-size: 12px; color: var(--mute); }
.st-kpi em.up { color: var(--ok); } .st-kpi em.down { color: var(--bad); }
.st-chartcard { padding: 14px 10px 8px; }
.st-ch-h { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; margin-bottom: 4px; }
.st-ch-h h3 { margin: 0; }
.st-metric button { padding: 5px 12px; font-size: 13px; }
.st-ch-h .lnk { font-size: 14px; }
#st-chart { display: block; width: 100%; height: auto; }
.st-bar { fill: var(--acc); opacity: .72; transition: opacity .15s; }
.st-bar.now { opacity: 1; }
.st-bar.drill { cursor: pointer; }
.st-bar:hover { opacity: 1; }
.st-grid line { stroke: var(--line); stroke-width: 1; }
.st-ax { fill: var(--mute); font-size: 11px; font-family: inherit; }
.st-val { fill: var(--ink); font-size: 11px; font-weight: 700; font-family: inherit; font-variant-numeric: tabular-nums; }
.st-pick { text-align: center; margin: 4px 0 2px; min-height: 20px; }
.st-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.st-table th, .st-table td { padding: 7px 8px; text-align: start; border-bottom: 1px solid var(--line); }
.st-table th { color: var(--mute); font-weight: 600; font-size: 12px; }
.st-table td:nth-child(2), .st-table td:nth-child(3), .st-table th:nth-child(2), .st-table th:nth-child(3) { text-align: end; font-variant-numeric: tabular-nums; }
.st-table tr.now td { font-weight: 700; }
@media (min-width: 700px) { .st-kpis { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .st-kpis { grid-template-columns: repeat(5, 1fr); } }
.msg-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 2px 2px; }
.msg-tools .lnk { font-size: 14px; }
.msg-prev { margin: 0 0 14px; padding: 10px 12px; border-radius: 14px 14px 4px 14px; background: var(--accs); color: var(--ink); font-size: 14px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
/* A switch row ("להודיע ללקוח/ה", "לשלוח הודעה על השינוי"): the words, then the switch on the side. */
.tgl { position: relative; display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tgl-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.tgl-t b { font-weight: 700; }
.tgl-t small { font-size: 12px; font-weight: 400; color: var(--mute); }
.tgl input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tgl i { position: relative; width: 48px; height: 28px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 22%, var(--card)); flex: none; transition: background .15s; }
.tgl i::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: inset-inline-start .15s; }
.tgl input:checked + i { background: var(--acc); }
.tgl input:checked + i::after { inset-inline-start: 23px; }
.tgl input:focus-visible + i { outline: 2px solid var(--acc); outline-offset: 2px; }
.cm-tell { margin-top: 2px; }
/* The groups as chips with their counts (2026-11-08), one row that scrolls sideways; the sliders open their periods. */
.cm-chips { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; min-width: 0; }
.cm-chips::-webkit-scrollbar { display: none; }
.cm-chips button { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; }
.cm-chips button em { font-style: normal; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: var(--soft); color: var(--mute); }
.cm-chips button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cm-chips button.on em { background: color-mix(in srgb, var(--bg) 22%, transparent); color: var(--bg); }
.cm-chips .cm-gear { width: 42px; padding: 0; justify-content: center; color: var(--mute); }
.cm-chips .cm-gear svg { width: 20px; height: 20px; }
.seg-form .seg-g { padding: 12px 0; border-top: 1px solid var(--line); }
.seg-form .seg-g:first-of-type { border-top: 0; }
.seg-form .seg-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.seg-form .seg-h b { font-size: 16px; }
.seg-form .seg-g p { line-height: 2.2; font-size: 15px; }
.seg-form .seg-g input[type=number] { width: 64px; display: inline-block; padding: 4px 8px; text-align: center; margin: 0 2px; }
.seg-form .seg-g select { width: auto; display: inline-block; padding: 4px 28px 4px 8px; margin: 0 2px; }
.cm-chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--acc) 45%, transparent); background: var(--accs); color: var(--acc-tx, var(--acc)); font-weight: 700; font-size: 14px; }
.cm-chip svg { width: 17px; height: 17px; }
.cm-list { display: flex; flex-direction: column; gap: 10px; }
.cm-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; text-align: start; padding: 16px 18px; border-radius: 15px; border: 1px solid var(--line); background: var(--card); color: var(--ink); width: 100%; }
.cm-card-m { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cm-card-m b { font-size: 17px; }
.cm-card-m small { color: var(--mute); font-size: 15px; text-align: right; }
.cm-card-m p { margin: 4px 0 0; color: var(--mute); font-size: 14px; }
.cm-tag { flex: none; padding: 3px 12px; border-radius: 99px; font-size: 13px; font-weight: 700; background: var(--soft); color: var(--mute); }
.cm-tag.g-new { background: #ece5ff; color: #6b46e0; }
.cm-tag.g-reg { background: var(--oks); color: var(--ok); }
.cm-tag.g-gone { background: var(--soft); color: var(--mute); }
.cm-tag.g-int { background: var(--warns); color: var(--warn); }
.cm-tag.g-blk { background: var(--bads); color: var(--bad); }
.cm-tag.g-act { background: var(--accs); color: var(--acc-tx, var(--acc)); }
.cm-tag.g-inact { background: var(--soft); color: var(--mute); }
:root[data-theme=dark] .cm-tag.g-new { background: #2f2752; color: #b9a6ff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .cm-tag.g-new { background: #2f2752; color: #b9a6ff; } }
.cm-more { min-height: 48px; border-radius: 99px; border: 1px solid var(--line); background: none; color: var(--acc-tx, var(--acc)); font-weight: 700; }
.bulk .li.sent { opacity: .45; }
.bulk .li svg { color: #25d366; }

/* ---------- The WhatsApp inbox (js/inbox.js) ---------- */
.ib-card.unread { border-color: color-mix(in srgb, var(--acc) 45%, transparent); background: var(--accs); }
.ib-card.unread .cm-card-m b::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); margin-inline-end: 6px; vertical-align: middle; }
.ib-unk h3 { margin: 0 0 2px; }
.ib-unk .chip { font-size: 13px; min-height: 30px; padding: 0 10px; }
.ib-thread .ib-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ib-thread .ib-head h2 { margin: 0; font-size: 22px; }
.ib-thread .ib-head p { margin: 0; color: var(--mute); }
.thread { display: flex; flex-direction: column; gap: 6px; max-height: 46vh; overflow: auto; padding: 10px; background: var(--soft); border-radius: 16px; margin-bottom: 10px; }
.thread .spin { align-self: center; }
.bub { max-width: 86%; padding: 8px 12px; border-radius: 16px; background: var(--card); align-self: flex-start; font-size: 15px; white-space: pre-wrap; word-break: break-word; box-shadow: var(--sh); }
.bub.in { background: var(--accs); align-self: flex-end; border-start-start-radius: 4px; }
.bub.out { border-start-end-radius: 4px; }
.bub.own { background: var(--oks); border-start-end-radius: 4px; }
.bub small { display: block; color: var(--mute); font-size: 11px; margin-top: 2px; text-align: end; }
.ib-reply textarea { width: 100%; }

/* ---------- Appointment form and sheet, the quick payment, the documents list: the old system's layout (2026-11-05) ---------- */
.cm-form h2 { text-align: start; font-size: 24px; margin-bottom: 2px; }
.cm-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 0 -20px 4px; border-bottom: 1px solid var(--line); }
.cm-tabs button { border: 0; background: none; padding: 10px 0; font-size: 15px; font-weight: 500; color: var(--mute); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.cm-tabs button.on { color: var(--ink); border-bottom-color: var(--ink); font-weight: 700; }
.cm-pane { display: flex; flex-direction: column; gap: 10px; }
.cm-f { display: flex; flex-direction: column; gap: 4px; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 700; color: var(--ink); }
/* The appointment form's days: a strip to tap (like the times), and a month for any other day. */
.cm-days { margin: 0 -14px; padding: 2px 14px 4px; scroll-padding-inline: 14px; }
.cm-days .day.sm { width: 54px; }
.cm-cal { border-top: 1px solid var(--line); padding-top: 8px; }
.cm-cal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cm-cal-h b { font-size: 16px; }
.cm-cal-h button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--soft); color: var(--ink); }
.cm-cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cm-cal-g small { font-size: 12px; font-weight: 600; color: var(--mute); padding: 2px 0; }
.cm-cal-g button { aspect-ratio: 1; min-height: 40px; border: 0; border-radius: 50%; background: none; color: var(--ink); font-size: 16px; font-weight: 500; }
.cm-cal-g button.closed, .cm-cal-g button.past { color: var(--mute); }
.cm-cal-g button.today { box-shadow: inset 0 0 0 2px var(--acc-tx, var(--acc)); }
.cm-cal-g button.on { background: var(--acc); color: var(--ink-on-acc, var(--acc-ink)); box-shadow: none; }
.cm-cal-g button:disabled, .cm-cal-h button:disabled { opacity: .3; cursor: default; }
/* The shared date field (dateField in owner.js): the date in words on a button, the month opening under it. */
.dpk { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.dpk-l { font-size: 13px; font-weight: 600; color: var(--mute); }
.cm-f .dpk-l { font-size: 14px; font-weight: 700; color: var(--ink); }
.dpk-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 16px; text-align: start; }
.dpk-btn b { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dpk-btn svg { width: 20px; height: 20px; color: var(--mute); flex: none; }
.dpk-btn[aria-expanded="true"] { border-color: var(--acc); }
.cm-f .dpk-btn { border: 0; background: none; padding: 0; min-height: 28px; font-size: 17px; }
.dpk-cal { border: 1px solid var(--line); border-radius: 14px; padding: 8px; background: var(--card); }
/* Two date fields side by side: the one that is open takes the whole row, so the month is never squeezed. */
.f2 > .dpk:has(.dpk-cal:not([hidden])) { grid-column: 1 / -1; }
.dpk.sm .dpk-btn { min-height: 40px; padding: 6px 10px; font-size: 14px; }
.cal-jump .dpk-btn { display: none; } /* the jump sheet shows the month straight away */
/* Settings > מראה היומן */
.cal-look .lk-g { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.cal-look .lk-g:first-of-type { border-top: 0; }
.cal-look .lk-g b { font-size: 15px; }
.cal-look .lk-g small { color: var(--mute); font-size: 13px; line-height: 1.4; min-height: 18px; }
.cal-look .seg button { padding: 9px 4px; font-size: 14px; }
.cm-f > input, .cm-f > select, .cm-f > textarea, .cm-f .cm-in input { border: 0 !important; background: none !important; box-shadow: none !important; padding: 0 !important; min-height: 28px; font-size: 17px; font-weight: 400; color: var(--ink); width: 100%; }
.cm-f > select { appearance: none; -webkit-appearance: none; background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="%23888" stroke-width="2"><path d="m6 9 6 6 6-6"/></svg>') no-repeat left center !important; padding-inline-start: 18px !important; }
.cm-in { display: flex; align-items: center; gap: 8px; font-weight: 400; color: var(--mute); }
.cm-in input { flex: 1; }
.cm-l { font-size: 14px; font-weight: 700; color: var(--ink); }
.cm-box { position: relative; }
.cm-box > input { border: 0 !important; background: none !important; box-shadow: none !important; padding: 0 !important; min-height: 26px; font-size: 16px; font-weight: 400; width: 100%; }
.cm-sel { display: flex; flex-wrap: wrap; gap: 6px; }
.cm-sel:empty { display: none; }
.cm-chipx { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 10px; border-radius: 99px; background: var(--accs); color: var(--ink); font-weight: 600; font-size: 14px; }
.cm-chipx button { display: grid; place-items: center; width: 20px; height: 20px; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--ink) 12%, transparent); color: var(--ink); padding: 0; }
.cm-chipx button svg { width: 12px; height: 12px; }
.cm-dd { position: absolute; inset-inline: 0; top: calc(100% + 4px); z-index: 5; display: flex; flex-direction: column; max-height: 230px; overflow: auto; border-radius: 14px; background: var(--card); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); border: 1px solid var(--line); padding: 4px 0; }
.cm-dd button { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); font-size: 16px; font-weight: 600; text-align: start; }
.cm-dd button:last-child { border-bottom: 0; }
.cm-dd button small { color: var(--mute); font-size: 14px; font-weight: 400; }
.cm-custrow { display: flex; align-items: center; gap: 8px; }
.cm-custrow input { flex: 1; min-width: 0; }
.cm-plus { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink); flex: none; }
.cm-plus svg { width: 22px; height: 22px; }
/* "מתי" (2026-11-09): one line, the time big and the day under it, "שינוי" on the side; open, the days and the free
   times. The whole line is a tap target. */
.cm-when { padding: 0; gap: 0; }
.cm-when-h { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cm-when-i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--accs); color: var(--acc-tx, var(--acc)); flex: none; }
.cm-when-i svg { width: 22px; height: 22px; }
.cm-when-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.cm-tl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cm-tm { font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.2px; }
.cm-tm b { font-weight: inherit; }
.cm-tm span { font-weight: 500; color: var(--mute); }
.cm-when.none .cm-tm { font-size: 18px; font-weight: 700; color: var(--acc-tx, var(--acc)); }
.cm-dt { font-size: 14px; font-weight: 500; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-warn { font-style: normal; font-size: 12px; font-weight: 700; color: var(--warn); background: var(--warns); padding: 1px 8px; border-radius: 99px; }
.cm-chg { flex: none; min-height: 36px; padding: 0 14px; border-radius: 99px; border: 0; background: var(--soft); color: var(--ink); font-size: 14px; font-weight: 700; }
.cm-chg:hover { background: var(--accs); }
.cm-when.open .cm-chg { background: var(--ink); color: var(--bg); }
.cm-when-b { display: flex; flex-direction: column; gap: 8px; padding: 10px 14px 12px; border-top: 1px solid var(--line); }
.cm-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cm-row .cm-l { font-size: 13px; color: var(--mute); }
/* Small side buttons: "לוח שנה" and "שעה אחרת" (never open by themselves). */
.cm-mini { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 11px; border-radius: 99px; border: 1px solid var(--line); background: none; color: var(--ink); font-size: 13px; font-weight: 600; }
.cm-mini svg { width: 16px; height: 16px; color: var(--mute); }
.cm-mini[aria-expanded="true"] { background: var(--accs); border-color: transparent; color: var(--acc-tx, var(--acc)); }
.cm-mini[aria-expanded="true"] svg { color: inherit; }
.cm-free h4 { margin: 4px 0 4px; font-size: 12px; font-weight: 600; color: var(--mute); }
.cm-free h4:first-child { margin-top: 0; }
.cm-free .slots.sm { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.cm-free .slots.sm .slot { height: 40px; font-size: 15px; border-radius: 11px; }
.cm-none { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--soft); color: var(--mute); font-size: 14px; font-weight: 400; }
.cm-other { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; border-radius: 12px; background: var(--soft); font-weight: 400; }
.cm-other select { min-height: 44px; background-color: var(--card); }
/* The customer: a search box, a picked customer's card, a new one's phone under the name. */
.cm-cust { gap: 8px; }
.cm-search { position: relative; flex: 1; min-width: 0; display: flex; }
.cm-search svg { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--mute); pointer-events: none; }
.cm-cust .cm-search input[name] { min-height: 44px; padding-inline-start: 40px; border-radius: 99px; background: var(--soft); border-color: transparent; }
.cm-cust .cm-search input[name]:focus { background: var(--card); border-color: var(--acc); }
.cm-picked { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.cm-av { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accs); color: var(--acc-tx, var(--acc)); font-size: 16px; font-weight: 800; flex: none; }
.cm-pk-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.cm-pk-t b { font-size: 17px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-pk-t small { align-self: flex-start; color: var(--mute); font-size: 14px; font-weight: 400; font-variant-numeric: tabular-nums; }
.cm-pk-t small:empty { display: none; }
.cm-newph { display: flex; }
/* (the phone reads left to right: its padding for the icon is on the right) */
.cm-cust .cm-newph .cm-search input[name] { padding-left: 16px; padding-right: 40px; text-align: right; }
.cm-cust.neu .cm-plus { display: none; }
.cm-hint button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 12px; border: 0; border-radius: 12px; background: var(--accs); color: var(--ink); font-size: 14px; font-weight: 500; text-align: start; }
.cm-hint svg { width: 18px; height: 18px; color: var(--acc-tx, var(--acc)); flex: none; }
.cm-dd .cm-dd-h { padding: 8px 16px 4px; font-size: 12px; font-weight: 700; color: var(--mute); }
.cm-dd button .cm-av { width: 32px; height: 32px; font-size: 14px; }
.cm-dd-t { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cm-dd-t > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-dd button.cm-dd-new { justify-content: flex-start; color: var(--acc-tx, var(--acc)); font-weight: 600; }
.cm-dd-new svg { width: 20px; height: 20px; flex: none; }
.cm-dd-new b, .cm-dd-new bdi { font-weight: 800; }
/* The services: the chosen ones as chips, the search on the same line. */
.cm-svcrow { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.cm-svcrow .cm-sel { display: contents; }
.cm-svcrow input { flex: 1; min-width: 110px; min-height: 34px !important; border: 0 !important; background: none !important; box-shadow: none !important; padding: 0 4px !important; font-size: 15px; }
.cm-save { position: sticky; bottom: -24px; margin: 14px -20px -24px; padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); }
.cm-savebtn { border-radius: 99px; background: var(--ink); color: var(--bg); border: 0; font-size: 18px; min-height: 56px; }
.cm-ad { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; }
.cm-fld { position: relative; display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-align: start; text-decoration: none; }
.cm-fld span { font-size: 14px; font-weight: 700; }
.cm-fld b { font-size: 17px; font-weight: 400; min-height: 22px; word-break: break-word; }
.cm-fld .cm-fi { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--soft); color: var(--ink); }
.cm-fld .cm-fi svg { width: 20px; height: 20px; }
.cm-fld .cm-fi.wa { color: #25d366; }
.cm-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.cm-row3 .cm-fld { padding-inline: 8px; }
.cm-row3 .cm-fld span { font-size: 13px; }
.cm-row3 .cm-fld b { font-size: 15px; white-space: nowrap; }
.cm-fld.has-i { padding-inline-start: 58px; }
.cm-meta { margin: 2px 4px; }
.cm-st { margin-bottom: 2px; }
.cm-acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 6px 0 2px; }
.cm-acts button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px; border: 0; background: none; color: var(--ink); font-size: 14px; font-weight: 600; }
.cm-acts button svg { width: 22px; height: 22px; }
.cm-acts button.bad { color: var(--bad); }
.cm-paybar { display: flex; gap: 10px; margin-top: 4px; }
.cm-paybtn { flex: 1; border-radius: 99px; min-height: 56px; font-size: 19px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.cm-paybtn svg { width: 24px; height: 24px; }
.cm-share { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--acc); color: var(--ink-on-acc, var(--acc-ink)); flex: none; }
.cm-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; font-size: 14px; color: var(--mute); }
.cm-quick span { margin-inline-end: 4px; }
.cm-share svg { width: 24px; height: 24px; }
.cm-paid h3 { margin-bottom: 8px; }
.cm-search { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 16px; border-radius: 99px; background: var(--soft); border: 1px solid var(--line); margin-bottom: 10px; }
.cm-search svg { width: 20px; height: 20px; color: var(--mute); flex: none; }
.cm-search input { flex: 1; border: 0 !important; background: none !important; outline: 0; font-size: 16px; min-width: 0; color: var(--ink); box-shadow: none !important; padding: 0; min-height: 0; }
/* The quick payment (js/pay.js) */
.pay { display: flex; flex-direction: column; min-height: 50vh; }
.pay-h { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; margin: -6px 0 14px; }
.pay-h h2 { grid-column: 2; text-align: center; margin: 0; font-size: 26px; }
.pay-back { grid-column: 1; width: 40px; height: 40px; border: 0; background: none; color: var(--ink); display: grid; place-items: center; }
.pay-back svg { width: 26px; height: 26px; }
.pay-list { display: flex; flex-direction: column; gap: 6px; }
.pay-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 17px; text-align: start; width: 100%; }
.pay-row b { font-variant-numeric: tabular-nums; }
.pay-adds { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 14px 0; }
.pay-add { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 15px; font-weight: 600; }
.pay-add svg { width: 18px; height: 18px; }
.pay-sec { margin: 8px 0 6px; font-size: 16px; }
.pay-foot { margin-top: auto; padding-top: 14px; }
.pay-foot p { margin: 0 0 10px; text-align: start; font-size: 18px; font-weight: 700; }
.pay-foot p b { font-size: 18px; }
.pay-foot .btn.big, .pay-two .btn.big { border-radius: 99px; min-height: 56px; font-size: 18px; }
.pay-two .btn { background: var(--ink); color: var(--bg); border: 0; }
.pay-two .pay-del { background: #e11d5b; color: #fff; }
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pay-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 120px; padding: 12px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 17px; }
.pay-tile b { font-size: 20px; }
.pay-tile span { color: var(--mute); font-size: 16px; }
.pay-tile svg { color: var(--acc-tx, var(--acc)); }
.pay-tile.on { border: 2px solid var(--acc); }
.pay-means .pay-tile { min-height: 130px; font-weight: 700; }
.pay .form { display: flex; flex-direction: column; gap: 12px; }
/* The register's documents list */
.cm-periods { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; }
.cm-periods .chip { flex: none; }
.cm-sum { display: flex; justify-content: space-between; align-items: baseline; margin: 0 4px 10px; font-size: 15px; color: var(--mute); }
.cm-sum b { color: var(--ink); font-size: 20px; }
.cm-docs { display: flex; flex-direction: column; gap: 10px; }
.cm-doc { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-align: start; }
.cm-doc.dim { opacity: .5; }
.cm-doc-m { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cm-doc-m b { font-size: 17px; }
.cm-doc-m small { color: var(--mute); font-size: 14px; display: flex; align-items: center; gap: 6px; }
.cm-doc-m small svg { width: 15px; height: 15px; }
.cm-doc-a { display: flex; align-items: center; gap: 8px; flex: none; }
.cm-doc-a b { font-size: 18px; font-variant-numeric: tabular-nums; }
.cm-doc-a svg { width: 18px; height: 18px; color: var(--mute); }
.app.cm .bk-doc .bk-dh { flex-direction: column; align-items: center; text-align: center; border-bottom: 0; padding-bottom: 0; }
.app.cm .bk-doc .bk-dh > div:first-child { align-items: center; }
.app.cm .bk-doc .bk-sn { font-size: 22px; }
.app.cm .bk-doc .bk-title, .app.cm .bk-doc .bk-meta { text-align: center; justify-content: center; }
.app.cm .bk-doc .bk-meta { display: block; }
.app.cm .bk-doc .bk-meta dt { display: inline; }
.app.cm .bk-doc .bk-meta dd { display: inline; margin-inline-end: 12px; }


/* ---------- "המנוי שלי": the plans sheet (plans.js) ---------- */
.plans h2 { margin: 0; }
.plans > .mute { margin: -6px 0 0; }
.pl-per button { min-height: 44px; font-size: 15px; }
.pl-save { margin: -4px 0 0; text-align: center; font-weight: 600; font-size: 14px; color: var(--ok); }
.pl-list { display: flex; flex-direction: column; gap: 14px; }
.pl-card { position: relative; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 16px 16px; background: var(--card); min-width: 0; }
.pl-card.best { border: 2px solid var(--acc); box-shadow: 0 6px 22px color-mix(in srgb, var(--acc) 18%, transparent); }
.pl-card.mine:not(.best) { border-color: var(--ok); }
.pl-best { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 8px; padding: 3px 10px; border-radius: 99px; background: var(--acc); color: var(--ink-on-acc, var(--acc-ink)); font-size: 13px; font-weight: 700; }
.pl-best svg { width: 15px; height: 15px; }
.pl-card h3 { margin: 0; font-size: 19px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pl-tag { margin: 2px 0 10px; color: var(--mute); font-size: 14px; }
.pl-price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.pl-price b { font-size: 34px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pl-price span { color: var(--mute); font-size: 14px; }
.pl-was { margin: 2px 0 0; color: var(--mute); font-size: 13px; }
.pl-card .btn { margin: 14px 0 4px; }
.pl-lead { margin: 10px 0 4px; font-weight: 700; font-size: 14px; }
.pl-f, .pl-soon ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pl-f li { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
.pl-f svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--ok); }
.pl-soon { border-radius: var(--r); background: var(--soft); padding: 16px; }
.pl-soon h3 { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 6px; }
.pl-soon h3 svg { width: 18px; height: 18px; color: var(--mute); }
.pl-soon li { position: relative; padding-inline-start: 16px; font-size: 14px; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.pl-soon li::before { content: ''; position: absolute; inset-inline-start: 2px; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--mute); }
.pl-done { align-items: center; text-align: center; padding-top: 10px; }
.pl-done h2 { padding: 0; margin: 4px 0 0; }
.pl-done p { margin: 0; }
.pl-ok { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--oks); color: var(--ok); }
.pl-ok svg { width: 34px; height: 34px; }
/* ---------- The team (team.js): Settings > צוות והרשאות, the invitation page, and a member's limits ---------- */
.team h4 { margin: 8px 0 4px; font-size: 13px; color: var(--mute); }
.tm-row { display: flex; align-items: center; gap: 10px; }
.tm-row > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tm-row small { color: var(--mute); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-role { width: auto; min-height: 40px; padding: 6px 10px; font-size: 14px; }
.radio-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; font-size: 15px; font-weight: 400; color: var(--ink); cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--acc); background: var(--accs); }
.radio-card input { margin-top: 4px; accent-color: var(--acc); }
.radio-card span { display: flex; flex-direction: column; gap: 2px; }
.radio-card small { color: var(--mute); font-size: 13px; }
.card.join { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; padding: 24px 18px; }
.join-note { margin: 16px auto 0; max-width: 460px; padding: 14px 16px; }
.join-note b { display: flex; align-items: center; gap: 8px; }
.join-note p { margin: 4px 0 0; color: var(--mute); font-size: 14px; }
.tm-me { cursor: default; }
/* What a member does not use is not drawn (the rules refuse it anyway). */
body[data-role=view] #sheet .cm-acts, body[data-role=view] #sheet .cm-paybar, body[data-role=view] #sheet .cm-quick,
body[data-role=view] #sheet .cm-paid, body[data-role=view] #sheet .seg, body[data-role=view] #sheet a.cm-fld.has-i,
body[data-role=view] #sheet .cm-fi, body[data-role=view] .pills,
body[data-role=staff] #sheet .cm-paybar, body[data-role=staff] #sheet .cm-quick { display: none !important; }

/* ---------- Visits to the booking page (visits.js), on Reports ---------- */
.vis-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.vis .kpis.sm { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0; }
.vis .kpis.sm > div { background: var(--soft); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; }
.vis .kpis.sm small { color: var(--mute); font-size: 12px; }
.vis .kpis.sm b { font-size: 20px; }
.vis-by { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; }
.vis-by > small { color: var(--mute); font-size: 13px; margin-inline-end: 4px; }
.vis-list { margin-top: 8px; max-height: 480px; overflow: auto; }
.vis-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.vis-row > div { display: flex; flex-direction: column; min-width: 0; }
.vis-row small { color: var(--mute); font-size: 13px; }
.vis-row time { color: var(--mute); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vis-row small bdi { white-space: nowrap; }

/* the old system's receipts, kept as an archive (old-receipts.js) */
.cmk-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 12px 0; }
.cmk-card h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 16px; }
.cmk-card h3 svg { width: 18px; height: 18px; }
.cmk-card p { margin: 2px 0; }
.cmk-card .btn { flex: none; }
@media (max-width: 520px) { .cmk-card { flex-direction: column; align-items: stretch; } }
.cmk-months { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin: 6px 0 14px; }
.cmk-months > div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--soft, rgba(127,127,127,.08)); }
.cmk-months small { color: var(--mute); }
.cmk-months b { font-size: 16px; }

/* ---------- The guided tour (js/tour.js): above sheets (50-58), under ask() (70) ---------- */
.tour { position: fixed; inset: 0; z-index: 66; }
.tour.dim { background: rgba(10, 8, 30, .62); }
.tour-hole { position: fixed; border-radius: 16px; pointer-events: none; box-shadow: 0 0 0 3px color-mix(in srgb, #fff 75%, transparent), 0 0 0 200vmax rgba(10, 8, 30, .62); transition: top .25s, left .25s, width .25s, height .25s; }
.tour-card { position: fixed; inset-inline: 16px; max-width: 440px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; padding: 14px 18px 16px; border-radius: 20px; background: var(--card); color: var(--ink); box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.tour-card.at-bottom { bottom: calc(16px + env(safe-area-inset-bottom)); }
.tour-card.at-top { top: calc(16px + env(safe-area-inset-top)); }
.tour-card.mid { top: 50%; transform: translateY(-50%); }
.tour-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tour-n { color: var(--mute); font-size: 13px; font-weight: 600; }
.tour-x { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 4px 10px; border: 0; border-radius: 10px; background: var(--soft); color: var(--ink); font-weight: 600; font-size: 14px; }
.tour-x svg { width: 16px; height: 16px; }
.tour-bar { height: 4px; border-radius: 9px; background: var(--soft); overflow: hidden; }
.tour-bar i { display: block; height: 100%; border-radius: 9px; background: var(--acc); transition: width .25s; }
.tour-card h3 { font-size: 19px; margin-top: 2px; }
.tour-card p { margin: 0; font-size: 15.5px; line-height: 1.55; }
.tour-acts { display: flex; gap: 8px; margin-top: 6px; }
.tour-acts .btn { flex: 1; min-height: 46px; }
@media (prefers-reduced-motion: reduce) { .tour-hole, .tour-bar i { transition: none; } }

/* ---------- The register, simple (2026-11-09, books-ui.js viewBooks / bkQuick / bkOpen) ---------- */
.bk-head { align-items: center; }
.set-g { scroll-margin-top: 76px; }   /* #/settings/books scrolls its heading clear of the top bar */
.bk-gear svg { width: 20px; height: 20px; }
.bk-big { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 78px; margin: 4px 0 14px; padding: 14px 18px; border: 0; border-radius: 20px; background: var(--acc); color: var(--ink-on-acc, var(--acc-ink)); text-align: start; box-shadow: 0 8px 24px color-mix(in srgb, var(--acc) 35%, transparent); transition: transform .1s; }
.bk-big:active { transform: scale(.98); }
.bk-big > svg { flex: none; width: 44px; height: 44px; padding: 9px; border-radius: 50%; background: color-mix(in srgb, #fff 22%, transparent); stroke-width: 2.4; }
.bk-big span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.bk-big b { font-size: 20px; }
.bk-big small { font-size: 14px; opacity: .9; }
.bk-month { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 12px; }
.bk-month > div { display: flex; flex-direction: column; gap: 1px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); min-width: 0; }
.bk-month small { color: var(--mute); font-size: 13px; font-weight: 600; }
.bk-month b { font-size: 21px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bk-month span { color: var(--mute); font-size: 13px; }
.bk-month .warn b { color: var(--warn); }
.bk-month .bar { display: block; height: 5px; border-radius: 9px; background: var(--soft); margin-top: 6px; overflow: hidden; }
.bk-month .bar i { display: block; height: 100%; background: var(--acc); border-radius: 9px; }
.bk-month .warn .bar i { background: var(--warn); }
.bk-bnote { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 8px 12px; border-radius: 12px; background: var(--soft); color: var(--mute); font-size: 14px; }
.bk-bnote svg { width: 18px; height: 18px; flex: none; }
.bk-bnote span { flex: 1; }
.bk-view { margin: 6px 0 10px; }
.bk-find .cm-periods { margin-top: 4px; }
.bk-lhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 6px 4px 2px; color: var(--mute); font-size: 14px; }
.bk-lhead b { color: var(--ink); }
.bk-lhead .lnk { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.bk-lhead .lnk svg { width: 16px; height: 16px; }
.bk-day { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 16px 4px 8px; font-size: 15px; }
.bk-day small { color: var(--mute); font-size: 13px; font-weight: 500; }
.bk-rows { display: flex; flex-direction: column; gap: 8px; }
.bk-rows > .bk-day:first-child { margin-top: 8px; }
.bk-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-align: start; }
button.bk-row:hover { border-color: var(--acc); }
.bk-row.dim > :not(.bk-row-a) { opacity: .55; }
.bk-av { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accs); color: var(--acc-tx, var(--acc)); font-weight: 700; font-size: 17px; }
.bk-av svg { width: 19px; height: 19px; }
.bk-row-m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.bk-row-m b, .bk-row-m small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-row-m b { font-size: 16px; }
.bk-row-m small { color: var(--mute); font-size: 13.5px; }
.bk-row-a { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.bk-row-a b { font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bk-row-a small { color: var(--mute); font-size: 13px; }
/* The round "+" with its words, once the big button has scrolled away (bindBooks). */
.bk-fab { position: fixed; z-index: 19; bottom: calc(22px + env(safe-area-inset-bottom)); inset-inline-start: 16px; display: none; align-items: center; gap: 8px; height: 56px; padding: 0 20px 0 18px; border: 0; border-radius: 99px; background: var(--acc); color: var(--ink-on-acc, var(--acc-ink)); font-weight: 700; font-size: 16px; box-shadow: 0 8px 24px color-mix(in srgb, var(--acc) 45%, transparent); }
.bk-fab svg { width: 24px; height: 24px; stroke-width: 2.4; }
body.bk-fab-on .bk-fab { display: flex; }
/* A receipt in seconds (bkQuick) */
.bkq { gap: 14px; }
.bkq-amt { gap: 6px; }
.bkq-amt > span:first-child { font-size: 15px; color: var(--ink); }
.bkq-amt-in { display: flex; align-items: center; gap: 8px; padding: 0 18px; border: 2px solid var(--acc); border-radius: 18px; background: var(--bg); }
.bkq-amt-in:focus-within { box-shadow: 0 0 0 4px var(--accs); }
.bkq-amt-in input:not([type=checkbox]) { border: 0; box-shadow: none; background: none; min-height: 66px; padding: 0; font-size: 34px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.bkq-amt-in input:focus { box-shadow: none; }
.bkq-amt-in b { font-size: 26px; color: var(--mute); }
.bkq-svcs, .bkq-ms { display: flex; flex-wrap: wrap; gap: 8px; }
.bkq-svcs .chip small { margin-inline-start: 4px; opacity: .85; }
.bkq-ms .chip { min-height: 42px; padding: 0 16px; font-size: 15px; }
.bkq-fs { border: 0; padding: 0; margin: 0; min-width: 0; }
.bkq-fs legend { font-size: 15px; color: var(--ink); margin-bottom: 8px; }
.bkq-chq { margin-top: 10px; }
.bkq-chq > p { margin: 0 0 6px; }
.bkq-chq .dpk { margin-top: 8px; }
.bkq-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 420px) { .bkq-4 { grid-template-columns: 1fr 1fr; } }
.bkq-more > summary { cursor: pointer; padding: 6px 0; color: var(--acc-tx, var(--acc)); font-weight: 600; font-size: 15px; }
.bkq-more > :not(summary) { margin-top: 10px; }
.bkq > label > span small { font-weight: 400; }
/* The issue button stays at the bottom of the sheet while the form scrolls (the sheet's own bottom padding is
   taken back, so nothing shows under it). */
.bkq-foot { position: sticky; z-index: 1; bottom: calc(-24px - env(safe-area-inset-bottom)); margin-bottom: calc(-24px - env(safe-area-inset-bottom)); padding: 10px 0 calc(16px + env(safe-area-inset-bottom)); background: var(--card); box-shadow: 0 -12px 12px -12px color-mix(in srgb, var(--ink) 25%, transparent); display: flex; flex-direction: column; gap: 6px; }
.bkq-sum { margin: 0; text-align: center; }
.bkq-full { align-self: center; font-size: 14px; }
/* The document right after it was issued */
.bk-done { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 14px 16px; border-radius: 16px; background: var(--oks); }
.bk-done-i { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ok); color: var(--card); }
.bk-done-i svg { width: 24px; height: 24px; stroke-width: 2.8; }
.bk-done div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.bk-done b { font-size: 18px; }
.bk-done small { color: var(--mute); font-size: 14px; }
.bk-send { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.bk-send2 { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-send2 .btn { flex: 1 1 28%; }
.bk-sheet .bk-st { margin: 12px 0 4px; }
.bk-adv > summary { cursor: pointer; padding: 8px 0; color: var(--acc-tx, var(--acc)); font-weight: 600; font-size: 15px; }
.bk-adv > .bk-fs { margin-top: 10px; }
/* ---------- ניהול Tormate: the platform admin's screen (js/admin.js) ---------- */
.ad-head { align-items: flex-start; flex-wrap: wrap; gap: 10px; }
.ad-head h1 { display: flex; align-items: center; gap: 8px; }
.ad-head h1 svg { color: var(--acc); }
/* Seven tabs since 2026-11-09 (פניות, וואטסאפ): the row scrolls sideways on a phone; the count sits inside its tab. */
.ad-tabs { width: 100%; overflow-x: auto; scrollbar-width: none; }
.ad-tabs::-webkit-scrollbar { display: none; }
.ad-tabs button { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.ad-tabs .dot-n { position: static; }
.ad-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 12px; }
.ad-kpi { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-align: start; cursor: pointer; }
.ad-kpi small { color: var(--mute); font-size: 13px; }
.ad-kpi b { font-size: 20px; }
.ad-kpi b i { font-style: normal; font-size: 12px; color: var(--ok); margin-inline-start: 4px; }
.ad-kpi.on { border-color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc); }
.ad-kpi.live b { color: var(--ok); }
.ad-kpi.warn b { color: var(--bad); }
.ad-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.ad-bar input[type=search] { flex: 1 1 220px; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; }
.ad-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ad-row.is-on { border-color: var(--ok); }
/* (the tags go under the text on a narrow phone instead of past its edge) */
.ad-row { flex-wrap: wrap; }
.ad-row .cm-card-m { flex: 1 1 220px; min-width: 0; }
.ad-row .li-acts { flex: 0 1 auto; max-width: 100%; flex-wrap: wrap; justify-content: flex-start; gap: 6px; }
.ad-row .cm-tag { white-space: nowrap; }
.ad-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--mute); opacity: .5; margin-inline-end: 4px; vertical-align: middle; }
.ad-dot.on { background: var(--ok); opacity: 1; box-shadow: 0 0 0 3px var(--oks); }
.ad-foot { margin-top: 14px; }
.ad-users .li { align-items: flex-start; }
.ad-users .li > div { min-width: 0; }
.ad-users .li small { display: block; }
.ad-biz .ad-btabs { margin: 8px 0 12px; }
.ad-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; font-size: 15px; }
.ad-dl dt { color: var(--mute); }
.ad-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.ad-dl .ad-note { white-space: pre-wrap; background: var(--soft); padding: 8px 10px; border-radius: 10px; }
.ad-pane h4 { margin: 16px 0 6px; font-size: 15px; }
.ad-tb { width: 100%; font-size: 14px; }
.ad-tb tr.is-cx td { color: var(--mute); text-decoration: line-through; }
.ad-mini { max-height: 260px; overflow: auto; }
.ad-acts { display: flex; flex-direction: column; gap: 10px; }
.ad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.ad-form { background: var(--soft); border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.ad-form h4 { margin: 0 0 8px; }
.adm-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: var(--bad); color: var(--on-bad, #fff); font-size: 14px; }
.adm-bar svg { flex: none; }
.adm-bar span { flex: 1; min-width: 0; }
.adm-bar .btn { background: #fff; color: var(--bad); border: 0; padding: 6px 14px; }
@media (max-width: 480px) { .ad-dl { grid-template-columns: 1fr; gap: 2px 0; } .ad-dl dt { margin-top: 6px; } }


/* ---------- The subscription (billing.js): the sheet, the calendar's card, the bar over a locked app ---------- */
.sub-st { border-radius: 14px; padding: 14px 16px; background: var(--soft); border-inline-start: 4px solid var(--acc); }
.sub-st.ok { border-color: var(--ok); } .sub-st.warn { border-color: var(--warn); } .sub-st.bad { border-color: var(--bad); }
.sub-st b { display: block; font-size: 17px; margin-bottom: 4px; }
.sub-st p { margin: 0; font-size: 14.5px; line-height: 1.5; }
.sub-pend { margin: 0; }
.sub-pick { display: flex; flex-direction: column; gap: 10px; }
.sub-price { margin: 4px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.sub-price b { font-size: 34px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sub-price span { color: var(--mute); font-size: 14px; }
.sub-ok { color: var(--ok); font-weight: 600; margin: 0; }
.sub-code summary, .sub-inc summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--acc-tx, var(--acc)); }
.sub-code-f { display: flex; gap: 8px; margin-top: 8px; }
.sub-code-f input { flex: 1; min-width: 0; }
.sub-code p { margin: 6px 0 0; }
.sub-inc .pl-f { margin-top: 10px; }
.sub-h { margin: 6px 0 0; font-size: 15px; }
.sub-pays .li { padding: 10px 4px; }
.sub-cancel { align-self: flex-start; padding: 4px 0; }
.sub-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; border-inline-start: 4px solid var(--warn); }
.sub-card.bad { border-color: var(--bad); }
.sub-card > div:first-child { flex: 1 1 220px; min-width: 0; }
.sub-card b { display: block; font-size: 16px; }
.sub-card p { margin: 2px 0 0; color: var(--mute); font-size: 14px; line-height: 1.45; }
.sub-card .f-acts { margin: 0; align-items: center; }
.sub-bar { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 8px 14px; background: var(--bads); color: var(--bad); font-weight: 600; font-size: 14px; text-align: center; }
.sub-bar .lnk { color: inherit; text-decoration: underline; padding: 0; }
.s-lock p { color: var(--mute); margin: 0 0 12px; }
.s-lock .f-acts { max-width: 420px; }
.ad-bill-f { margin-top: 8px; }
.ad-bill-f h4 { margin: 8px 0 0; font-size: 15px; }
.ad-bill-cfg .note-box { margin: 6px 0 4px; }
.ad-pays .li { flex-wrap: wrap; }
.ad-pays .li > div:first-of-type { flex: 1 1 170px; }
.ad-pays .li-acts { flex-wrap: wrap; justify-content: flex-start; gap: 6px; }

/* ---------- Dragging an appointment on the calendar (js/drag.js, 2026-11-09) ---------- */
/* No selection or phone menu from a long press on a block. */
.cal .ap { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.cal .ap.ap-press { transform: scale(.97); transition: transform .35s ease-out; }
.cal .ap.ap-lifted { opacity: .3; box-shadow: none; }
/* The copy under the finger, over the page (below sheets), with the time it would land at above it. */
.ap.ap-drag { position: fixed !important; z-index: 45; pointer-events: none; overflow: visible; transform: scale(1.04); transition: none; box-shadow: 0 16px 36px rgba(10, 8, 40, .35); outline: 2px solid var(--acc); outline-offset: -1px; }
.ap.ap-drag.busy { outline-color: var(--warn); }
.ap-drag .ap-dt { position: absolute; bottom: calc(100% + 6px); inset-inline-start: -2px; padding: 3px 9px; border-radius: 9px; background: var(--ink); color: var(--bg); font-style: normal; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; box-shadow: var(--sh); }
.ap-drag.busy .ap-dt { background: var(--warn); color: #1a1000; }
/* Where it lands: a dashed frame in the column. */
.ap-drop { position: absolute; inset-inline: 2px; z-index: 3; border: 2px dashed var(--acc); border-radius: 10px; background: color-mix(in srgb, var(--acc) 14%, transparent); pointer-events: none; }
.ap-drop.busy { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 16%, transparent); }
body.cal-dragging, body.cal-dragging * { cursor: grabbing !important; }
/* The sheet after letting go: who, before and after, a warning, the switch and the message itself. */
.mv-ask { gap: 12px; }
.mv-who { display: flex; align-items: center; gap: 10px; margin: 0; }
.mv-who > span:last-child { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.mv-who b { font-size: 17px; }
.mv-who small { color: var(--mute); font-size: 13px; }
.mv-ask .mv-cmp b { font-size: 15px; }
.mv-warn { display: flex; align-items: center; gap: 8px; margin: 0; padding: 9px 12px; border-radius: 12px; background: var(--warns); color: var(--warn); font-size: 14px; font-weight: 600; }
.mv-warn svg { width: 18px; height: 18px; flex: none; }
.mv-msg { margin: -4px 0 0; padding: 10px 12px; border-radius: 14px 14px 4px 14px; background: color-mix(in srgb, #25d366 12%, var(--card)); border: 1px solid color-mix(in srgb, #25d366 30%, var(--line)); color: var(--ink); font-size: 14px; line-height: 1.45; white-space: pre-wrap; }

/* ---------- A day's hours, as in the old system (js/day-sheet.js, 2026-11-10) ---------- */
.dy { gap: 12px; }
.dy-h { display: flex; flex-direction: column; gap: 2px; }
.dy-h h2 { margin: 0; }
.dy-h small { color: var(--mute); font-size: 14px; }
.dy-who { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.dy-who::-webkit-scrollbar { display: none; }
.dy-tog { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--soft); cursor: pointer; transition: background .15s, border-color .15s; color: var(--ink); font-size: inherit; font-weight: inherit; }
.dy-tog.on { background: color-mix(in srgb, var(--ok) 10%, var(--card)); border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
.dy-tog-t { display: flex; flex-direction: column; gap: 1px; }
.dy-tog-t b { font-size: 18px; }
.dy-tog.on .dy-tog-t b { color: var(--ok); }
.dy-tog-t small { color: var(--mute); font-size: 13px; }
.dy-sw { position: relative; flex: none; width: 54px; height: 32px; }
.dy-sw input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.dy-sw i { position: absolute; inset: 0; border-radius: 99px; background: var(--line); transition: background .15s; }
.dy-sw i::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.dy-sw input:checked + i { background: var(--ok); }
.dy-sw input:checked + i::after { transform: translateX(-22px); }
.dy-sw input:focus-visible + i { outline: 2px solid var(--acc); outline-offset: 2px; }
.dy-shifts { display: flex; flex-direction: column; gap: 8px; }
.dy-shifts[hidden] { display: none; }
.dy-sh { display: grid; grid-template-columns: auto 1fr 1fr 32px; align-items: end; gap: 8px; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
.dy-k { align-self: center; font-size: 13px; font-weight: 700; color: var(--mute); min-width: 58px; }
.dy-f { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--mute); font-weight: 600; margin: 0; }
.dy-f .tsel { width: 100%; min-height: 46px; font-size: 17px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.dy-del { align-self: center; }
.dy-add { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 99px; border: 1px dashed color-mix(in srgb, var(--acc) 55%, var(--line)); background: none; color: var(--acc-tx, var(--acc)); font-size: 15px; font-weight: 700; }
.dy-add svg { width: 18px; height: 18px; }
.dy-src { display: flex; align-items: flex-start; gap: 6px; margin: 0; color: var(--mute); font-size: 13.5px; line-height: 1.45; }
.dy-src svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--acc-tx, var(--acc)); }
.dy-warn { margin: 0; font-size: 13.5px; }
.dy-warn b { display: block; }
.dy-all { align-self: flex-start; }
.dy-links { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.dy-links .lnk { font-size: 14.5px; }
@media (max-width: 360px) { .dy-sh { grid-template-columns: 1fr 1fr 32px; } .dy-k { grid-column: 1 / -1; } }
/* The week grid's day heads open that day's hours: a dot under a day with hours of its own. */
.app.cm .wkg .cal-head.own::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--acc); margin-top: 2px; }
.wk-day header .wk-dh { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; color: var(--ink); font: inherit; cursor: pointer; }
.wk-day header .wk-dh svg { width: 15px; height: 15px; color: var(--mute); }

/* ---------- Products (js/products.js, 2026-11-10) ---------- */
.prd-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--accs); color: var(--acc-tx, var(--acc)); font-style: normal; }
.prd-ic svg { width: 20px; height: 20px; }
.prd-li .prd-p { font-variant-numeric: tabular-nums; }
.prd-low { color: var(--warn) !important; font-weight: 700; }
.prd-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.prd-sum span { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 14px; background: var(--soft); font-size: 12.5px; color: var(--mute); font-weight: 600; }
.prd-sum b { font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; }
.prd-sum .warn { background: var(--warns); }
.prd-sum .warn b { color: var(--warn); }
.prd-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 12px; border-radius: 18px; border: 1px dashed var(--line); color: var(--mute); text-align: center; font-size: 14px; }
.prd-empty svg { width: 34px; height: 34px; color: var(--acc-tx, var(--acc)); margin-bottom: 4px; }
.prd-empty b { color: var(--ink); font-size: 16px; }
.prd-ideas { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.prd-ideas .chip svg { width: 14px; height: 14px; }
.prd-price .cm-in { display: flex; align-items: center; gap: 6px; }
.prd-stock { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 16px; background: var(--soft); }
.prd-stk { display: flex; flex-direction: column; gap: 6px; }
.prd-stk[hidden] { display: none; }
.prd-stk > span { font-size: 14px; font-weight: 600; }
.stepper { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; padding: 4px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); }
.stepper .ic-btn { width: 40px; height: 40px; border-radius: 50%; }
.stepper input { width: 64px; min-height: 40px; padding: 0 4px; border: 0 !important; background: none !important; box-shadow: none !important; text-align: center; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* In the payment: tabs, a bag on product lines, the quantity, quick product chips. */
.pay-tabs { margin: 10px 0 2px; width: 100%; }
.pay-tabs button { flex: 1; }
.pay-row.prd > span { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.pay-pi { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--accs); color: var(--acc-tx, var(--acc)); font-style: normal; }
.pay-pi svg { width: 15px; height: 15px; }
.pay-q { font-style: normal; font-size: 13px; font-weight: 700; color: var(--acc-tx, var(--acc)); }
.pay-pq { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; width: 100%; }
.prd-chip { display: inline-flex; align-items: center; gap: 4px; }
.prd-chip svg { width: 15px; height: 15px; opacity: .8; }
.pay-qrow { align-items: end; }
.pay-qt { margin: 0; font-size: 15px; color: var(--mute); }
.pay-qt b { color: var(--ink); font-variant-numeric: tabular-nums; }
.pay-mkp { display: inline-flex; align-items: center; gap: 6px; align-self: center; margin-top: 4px; font-size: 14.5px; }
.pay-mkp svg { width: 17px; height: 17px; }
.pay .li.prd-li .prd-ic { width: 32px; height: 32px; border-radius: 10px; }
.prd-stock .chip-c, .prd-f > .chip-c { align-self: flex-start; }

/* ---------- Sharing the business page (extras.js ps-*, 2026-11-10) ---------- */
.cm-page-w { display: flex; align-items: center; border-top: 1px solid var(--line); }
.cm-page-w .cm-page { flex: 1; min-width: 0; border-top: 0; }
.cm-page-a { display: flex; gap: 4px; padding-inline-end: 6px; }
.cm-page-a .cm-ic { width: 40px; height: 40px; background: var(--soft); }
.cm-page-a .cm-ic svg { width: 19px; height: 19px; }
.ps { gap: 14px; }
.ps-biz { display: flex; align-items: center; gap: 12px; }
.ps-biz .logo { width: 46px; height: 46px; border-radius: 14px; font-size: 20px; flex: none; }
.ps-biz div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ps-biz b { font-size: 17px; overflow-wrap: anywhere; }
.ps-biz small { color: var(--mute); font-size: 13.5px; }
.ps-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 54px; padding: 8px; padding-inline-start: 14px; border-radius: 16px; border: 1px dashed color-mix(in srgb, var(--acc) 50%, var(--line)); background: var(--soft); color: var(--ink); cursor: pointer; text-align: start; }
.ps-link code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: var(--ink); }
.ps-link > span { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 8px 14px; border-radius: 99px; background: var(--acc); color: var(--ink-on-acc, var(--acc-ink)); font-weight: 700; font-size: 14.5px; }
.ps-link > span svg { width: 17px; height: 17px; }
.ps-link.done { border-style: solid; border-color: var(--ok); }
.ps-link.done > span { background: var(--ok); color: #fff; }
.ps-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ps-acts .btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 50px; }
.ps-acts .btn svg { width: 19px; height: 19px; }
.ps-acts .ps-wa { grid-column: span 2; min-height: 54px; font-size: 16.5px; font-weight: 700; background: #1f8c4a; border-color: transparent; color: #fff; }
.ps-msg { margin: 0; font-size: 13px; color: var(--mute); line-height: 1.5; }
.ps-msg small { font-weight: 700; }

/* ---------- The customers' directory, Tormate ללקוחות (js/listing.js): the Settings sheet and the one-time card ---------- */
.lst-form > * + * { margin-top: 12px; }
.lst-form .note-box { margin: 12px 0 0; }
.lst-state.ok { background: var(--oks); }
.lst-state.ok b { color: var(--ok); }
.note-box.warn { background: var(--warns); }
.lst-h { margin-top: 18px; font-size: 14px; color: var(--mute); font-weight: 600; }
.lst-geo { margin: 6px 0 0; font-weight: 600; }
.lst-geo small { display: block; font-size: 13px; font-weight: 400; color: var(--mute); }
.lst-form .f-acts:empty { display: none; }
.lst-card { position: relative; margin-bottom: 12px; padding: 14px 16px; background: var(--accs); box-shadow: none; }
.lst-card b { display: block; margin-inline-end: 34px; font-size: 14.5px; line-height: 1.4; }
.lst-card .f-acts { margin-top: 10px; }
.lst-card .btn:not(.pri) { background: var(--card); }
.lst-x { position: absolute; top: 0; inset-inline-end: 0; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--ink); }
.lst-x svg { width: 17px; height: 17px; }
