/* B2B-Service look, close to the "Velvet" admin template (our own CSS, no template files):
   navy side menu in groups, blue→violet gradient header and title band, white cards with a header line,
   soft tinted icons and badges, Inter 13px. On touch screens (tablets) controls stay 44px high and text a bit bigger. */

@media (pointer: coarse) { :root { --fs: 14.5px; --ctl: 44px; } }

html, body { margin: 0; background: var(--bg); }
body { font-size: var(--fs); line-height: 1.5; color: var(--ink); -webkit-tap-highlight-color: transparent; }
a { color: var(--brand); }
h1 { font-size: 24px; font-weight: 500; margin: 0; }
h2 { font-size: 16px; font-weight: 600; margin: 0 0 10px; }
h3 { font-size: 14px; font-weight: 600; margin: 0 0 8px; }
small, .muted { color: var(--muted); }
small { font-size: .92em; }
.hidden { display: none !important; }
.i { width: 18px; height: 18px; flex: 0 0 auto; }
/* The platform's mark (bb-IBC) on a white tile, readable on the navy menu. */
.mark { display: inline-block; width: 30px; height: 30px; background: #fff url(/img/bb-logo.png) center / 86% no-repeat; border-radius: 8px; flex: 0 0 auto; }
.mark.ini { display: inline-grid; place-items: center; background: #151A2D; color: #fff; font-size: 12px; font-weight: 700; } /* a business's own address: its initials */
/* A business's menu head: its name; folded menu: its initials. */
.biz-ini { display: none; width: 30px; height: 30px; border-radius: 8px; background: rgba(255, 255, 255, .12); font-size: 13px; place-items: center; flex: 0 0 auto; }
body.mini .biz-ini { display: grid; }
.side-head span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
/* The business's type under its name (Sports & fitness, Clinic…): small, not bold */
.side-head .biz-name { line-height: 1.2; }
.side-head .biz-name small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; letter-spacing: 0; color: #fff; overflow: hidden; text-overflow: ellipsis; }
.login .logo small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; }

/* ---------- Shell: side menu, header, title band, footer ---------- */
.app { min-height: 100vh; }
.side { position: fixed; inset: 0 auto 0 0; width: var(--nav-w); background: var(--nav-bg); z-index: 40; display: flex; flex-direction: column; transition: width .18s, transform .2s; border-right: 1px solid rgba(255, 255, 255, .06); }
.side-head { height: var(--head-h); flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 0 20px; color: #fff; text-decoration: none; font-size: 19px; font-weight: 700; letter-spacing: -.01em; border-bottom: 1px solid rgba(255, 255, 255, .07); white-space: nowrap; overflow: hidden; }
.side-menu { flex: 1; overflow-y: auto; padding: 4px 12px 20px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .15) transparent; }
.side-cat { font-size: 9.6px; font-weight: 600; letter-spacing: .065rem; text-transform: uppercase; color: var(--nav-cat); opacity: .6; padding: 10px 14px 2px; white-space: nowrap; }
.side-menu a { display: flex; align-items: center; gap: 10px; margin: 1px 0; padding: 8px 12px; border-radius: var(--radius); color: var(--nav-ink); text-decoration: none; font-size: 12.5px; white-space: nowrap; overflow: hidden; }
.side-menu a .i { width: 18.4px; height: 18.4px; }
.side-menu a:hover { color: #fff; }
.side-menu a.on { color: #fff; background: rgba(255, 255, 255, .06); }
.side-menu a.on .i { color: #fff; }
.side-shade { display: none; }

.main { margin-left: var(--nav-w); min-height: 100vh; display: flex; flex-direction: column; transition: margin-left .18s; min-width: 0; }

.app-header .grow { flex: 1; }

.hbtn .i { width: 20px; height: 20px; }
.hsearch { position: relative; width: min(350px, 40vw); margin-left: 6px; }

.hsearch-res a:hover, .hsearch-res a:focus { background: var(--brand-soft); }
.hsearch-res [data-newc] { margin: 0 10px 8px; }
.hsearch-res p { margin: 8px 10px; }
.profile { position: relative; margin-left: 6px; }

.profile-btn .who { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; text-align: left; }
.profile-btn .who b { font-size: 13px; font-weight: 600; }

.profile-btn .chev { width: 14px; height: 14px; opacity: .8; }

.profile-menu { position: absolute; right: 0; top: 50px; width: 230px; background: #fff; color: var(--ink); border-radius: 8px; box-shadow: 0 8px 24px rgba(27, 44, 63, .16); padding: 6px; z-index: 35; }
.pm-head { display: flex; flex-direction: column; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.profile-menu button { width: 100%; justify-content: flex-start; border: 0; background: transparent; font-weight: 500; }
.profile-menu button:hover:not(:disabled) { background: var(--brand-soft); color: var(--brand-dark); }

#view { flex: 1; padding: 0 var(--gut) var(--gut); min-width: 0; }
/* Title band: the gradient goes on under the header; the first card overlaps its bottom by 24px. */
.topbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.topbar .grow { flex: 1; }
.topbar.band { background: var(--grad); color: #fff; margin: 0 calc(-1 * var(--gut)) -24px; padding: 0 var(--gut) 34px; position: relative; z-index: 0; }

.band-tools { flex: 0 0 100%; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 10px; }
.band-tools .grow { flex: 1; }

.band-tools button:not(.btn-primary):hover:not(:disabled), .band-tools .btn:not(.btn-primary):hover { background: rgba(255, 255, 255, .24); border-color: rgba(255, 255, 255, .45); }

.band-tools .btn-primary:hover:not(:disabled) { background: #F4EEFE; border-color: #F4EEFE; }
.band-tools input:not([type=checkbox]) { border-color: transparent; }

.topbar.band ~ * { position: relative; }
/* Plain text or a lone button right under the band would sit on the gradient: no overlap then */
.topbar.band:has(+ :is(p, small, .muted, .notice, .row, .chips, input, a.btn, label, .legend)) { margin-bottom: 20px; padding-bottom: 24px; }
.app-foot { background: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, .1); padding: 16px var(--gut); text-align: center; font-size: 13px; color: var(--muted); }

/* Menu shrunk to icons (computer) */
body.mini .side { width: var(--nav-mini); }
body.mini .main { margin-left: var(--nav-mini); }
body.mini .side-head span, body.mini .side-menu a span { display: none; }
body.mini .side-head { padding: 0 21px; }
body.mini .side-cat { font-size: 0; padding: 8px 0; margin: 0 14px; border-top: 1px solid rgba(255, 255, 255, .08); }
body.mini .side-cat:first-child { border-top: 0; }
body.mini .side-menu a { justify-content: center; }

/* Tablet and phone: the menu slides in over the page */
@media (max-width: 991px) {
  .side { transform: translateX(-100%); width: var(--nav-w) !important; }
  body.drawer .side { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
  body.drawer .side-shade { display: block; position: fixed; inset: 0; background: rgba(16, 24, 40, .45); z-index: 39; }
  .main, body.mini .main { margin-left: 0; }
  body.mini .side-head span, body.mini .side-menu a span { display: inline; }
  body.mini .biz-ini { display: none; }
  body.mini .side-cat { font-size: 9.6px; padding: 12px 14px 4px; border: 0; margin: 0; }
  body.mini .side-menu a { justify-content: flex-start; }
  .side-menu a { min-height: 36px; }
}
@media (max-width: 699px) {
  :root { --gut: 12px; }
  .app-header { padding-right: 8px; gap: 2px; }
  .hsearch { flex: 1; width: auto; }
  .app-header > .grow { display: none; }
  .hsearch input { height: 38px; }
  .profile-btn .who, .profile-btn .chev, [data-full] { display: none; }
  .topbar.band > .band-title { font-size: 20px; }
}

/* ---------- Cards ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; border: 0; }
.card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 16px 20px; margin: -20px -20px 20px; border-bottom: 1px solid var(--line); min-height: 58px; }
.card-head h2 { margin: 0; flex: 1; }
.card-head > small { flex-basis: 100%; margin-top: -8px; }
.card:has(> .card-head) { padding: 20px; }
.card > .card-head + .card-body { margin: 0; }
.card-body { padding: 0; }
.card > .card-head + .table-wrap { margin: -20px -20px -20px; }
/* A card whose first line is its title (h2) gets the same header line */
.card > h2:first-child, .card > .row:first-child:has(> h2) { margin: -20px -20px 20px; padding: 16px 20px; border-bottom: 1px solid var(--line); min-height: 58px; display: flex; align-items: center; gap: 10px; }
.card > .row:first-child:has(> h2) h2 { margin: 0; }
.grid { display: grid; gap: 24px; }
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row .grow { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 10px; }
#view > .card, #view > .grid, #view > .stats, #view > div > .card { margin-bottom: 24px; }

/* ---------- Buttons ---------- */
button, .btn { font: inherit; font-size: 13.6px; font-weight: 500; border: 1px solid #E4E9F4; background: #fff; color: var(--ink); border-radius: 5.6px; padding: 7px 13.6px; min-height: var(--ctl); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; line-height: 1.5; transition: background .15s, border-color .15s, color .15s; }
/* Hover colours only with a mouse: on a touch screen a tap would leave them stuck (a button turning white or purple). */
/* :where() keeps this plain-button hover weaker than any coloured button's own (Today, the day, Waiting, New…). */
@media (hover: hover) { :where(button:hover:not(:disabled), .btn:hover) { border-color: #D2D9E8; background: #F8F9FC; } }
button:disabled { opacity: .5; cursor: default; }
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover:not(:disabled), .btn-primary.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }

@media (hover: hover) { .btn-soft:hover { background: var(--brand); color: #fff; border-color: var(--brand); } }

.btn-wa { background: var(--wa); color: #fff; border-color: var(--wa); }
.btn-wa:hover:not(:disabled) { background: #0E7368; border-color: #0E7368; }

button.link { border: 0; background: none; padding: 6px; min-height: 0; color: var(--brand); }
button.link:hover:not(:disabled) { background: none; text-decoration: underline; }

/* ---------- Forms ---------- */
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; color: #232323; }
input, select, textarea { font: inherit; font-size: max(13px, var(--fs)); border: 1px solid var(--line-2); border-radius: 6px; padding: 6px 12px; background: #fff; color: var(--ink); min-height: var(--ctl); width: 100%; line-height: 1.5; }
@media (pointer: coarse) { input, select, textarea { font-size: 16px; } }
select { appearance: none; padding-right: 36px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%236F7A88' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 12px 10px; }
textarea { min-height: 80px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #9AA3AF; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: #C3A6F4; box-shadow: 0 0 0 3px rgba(142, 84, 233, .12); }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); }
label.check { display: flex; gap: 10px; align-items: center; font-weight: 400; font-size: max(13px, var(--fs)); min-height: var(--ctl); }
label.check input { width: 18px; height: 18px; min-height: 0; flex: 0 0 auto; box-shadow: none; }
@media (pointer: coarse) { label.check input { width: 22px; height: 22px; } }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.err { color: var(--bad); font-weight: 500; min-height: 1em; margin: 0; }

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 13.6px; color: var(--ink); font-weight: 600; white-space: nowrap; }
td { font-weight: 500; }
td small { font-weight: 400; }
th:first-child, td:first-child { padding-left: 20px; }
th:last-child, td:last-child { padding-right: 20px; }
tbody tr:hover > td { background: #FAFAFD; }
.table-wrap { overflow-x: auto; }
.card > .table-wrap:first-child { margin: 0 -20px; }

/* ---------- Badges ---------- */
.pill { display: inline-block; font-size: 12px; font-weight: 600; line-height: 1.4; padding: 3px 9px; border-radius: 800px; background: var(--brand-soft); color: var(--brand-dark); white-space: nowrap; }

.pill.confirmed, .pill.taken, .pill.yes, .pill.done { background: var(--ok-soft); color: var(--ok); }
.pill.cancelled, .pill.no, .pill.expired, .pill.no_show, .pill.failed { background: var(--bad-soft); color: var(--bad); }

.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.notice { background: var(--warn-soft); color: #7A4E0A; border-radius: var(--radius); padding: 10px 14px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--nav-bg); color: #fff; padding: 12px 18px; border-radius: 8px; z-index: 100; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); max-width: 90vw; }
.toast.undo { display: flex; align-items: center; gap: 16px; padding: 8px 8px 8px 18px; }
.toast.undo button { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .5); border-radius: 6px; padding: 6px 14px; font-weight: 600; min-height: 36px; cursor: pointer; }
.toast.undo button:hover { background: rgba(255, 255, 255, .12); }

/* Modal: centred on tablet/computer, bottom sheet on phone. Header line and footer line like the cards. */
.modal-bg { position: fixed; inset: 0; background: rgba(16, 24, 40, .45); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: #fff; border-radius: 8px; width: min(560px, 100%); max-height: 92vh; max-height: 92dvh; overflow: auto; overscroll-behavior: contain; padding: 20px; box-shadow: 0 16px 48px rgba(16, 24, 40, .22); }
.modal-head { display: flex; align-items: center; gap: 10px; margin: -20px -20px 20px; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line); position: sticky; top: -20px; background: #fff; z-index: 2; }
.modal-head h2 { margin: 0; flex: 1; font-size: 16px; }
/* modal({ top: true }): Cancel and Save in the top bar, the same buttons as at the bottom. */
.modal .head-actions { margin: 0; padding: 0; border: 0; position: static; flex-wrap: nowrap; gap: 8px; }
.modal .head-actions button { flex: none; min-height: calc(var(--ctl) - 4px); padding: 4px 14px; }
.modal-head:has(.head-actions) + .err:empty { display: none; }
.modal-head:has(.head-actions) + .err { margin: -8px 0 12px; }
.modal-x { min-width: 40px; min-height: 40px; padding: 0; border: 0; background: transparent; font-size: 18px; color: var(--muted); border-radius: 8px; }
.modal-x:hover { background: var(--line); color: var(--text, #1d2433); }
.modal.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin: 16px -20px -20px; padding: 14px 20px; border-top: 1px solid var(--line); position: sticky; bottom: -20px; background: #fff; z-index: 2; }
@media (max-width: 599px) {
  .modal-bg { align-items: flex-end; padding: 0; }
  .modal { border-radius: 12px 12px 0 0; max-height: 94vh; max-height: 94dvh; }
  .modal .actions button { flex: 1; }
}

/* Login */
/* Tablet (default): a card centred on the gradient. Phone: the form alone on white. Desktop 992px+: form + side panel. */

.login-shell { display: flex; width: min(440px, 100%); border-radius: 12px; overflow: hidden; box-shadow: 0 20px 50px rgba(30, 20, 70, .25); }
.login { margin: 0; flex: 1; padding: 36px 32px; border-radius: 0; box-shadow: none; }
.login .logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; }
.login-title { font-size: 22px; font-weight: 600; margin: 28px 0 4px; }
.login-sub { margin: 0 0 22px; }
.login .field input { min-height: 42px; }
.login-go { width: 100%; min-height: 44px; font-size: 15px; }
.login-help { font-size: 12px; margin: 18px 0 0; text-align: center; }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 44px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; min-height: 0; padding: 0; border: 0; background: none;
  color: var(--muted); display: grid; place-items: center; border-radius: 6px; cursor: pointer; }
.pw-eye:hover { color: var(--brand); background: var(--brand-soft); }
.pw-eye svg { width: 20px; height: 20px; }
.login-side { display: none; }
@media (min-width: 992px) {
  .login-shell { width: min(940px, 100%); min-height: 540px; }
  .login { flex: 0 0 440px; padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; }
  .login-side { display: flex; flex-direction: column; justify-content: center; flex: 1; padding: 48px; color: #fff;
    background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .18), transparent 40%), linear-gradient(135deg, #5B3FD9 0%, #8E54E9 100%); }
  .login-side h2 { font-size: 28px; line-height: 1.2; margin: 0 0 10px; color: #fff; }
  .login-side > p { margin: 0 0 28px; opacity: .85; font-size: 15px; }
  .login-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
  .login-side li { display: flex; gap: 14px; align-items: flex-start; }
  .login-side li svg { width: 22px; height: 22px; flex: 0 0 auto; padding: 9px; box-sizing: content-box; border-radius: 10px; background: rgba(255, 255, 255, .16); }
  .login-side li b { display: block; font-size: 15px; }
  .login-side li span { opacity: .92; font-size: 13px; line-height: 1.45; }
}
@media (max-width: 575px) {
  .login-bg { background: #fff; padding: 0; align-items: stretch; }
  .login-shell { width: 100%; border-radius: 0; box-shadow: none; }
  .login { padding: 32px 20px; display: flex; flex-direction: column; justify-content: center; }
  .login-title { margin-top: 36px; font-size: 24px; }
  .login .field input { font-size: 16px; } /* no zoom on iPhone */
}

/* ---------- Calendar (day view, one column per staff) ---------- */

.cal { display: grid; position: relative; min-width: 100%; }

.cal-head.corner { left: 0; z-index: 6; }
button.cal-head { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; min-height: 0; flex-direction: column; gap: 2px; font-size: 16px; }
button.cal-head:hover { background: var(--brand-soft); }
.cal-col.off { cursor: not-allowed; background: repeating-linear-gradient(45deg, #fff, #fff 8px, #F2F4F7 8px, #F2F4F7 16px); }
.cal-times { position: sticky; left: 0; z-index: 4; background: #fff; border-right: 1px solid var(--line); }
.cal-times div { height: var(--hour); font-size: 12px; color: var(--muted); padding: 2px 6px; border-top: 1px solid var(--line); }
.cal-col { position: relative; border-right: 1px solid var(--line); cursor: pointer;
  background-image: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px calc(var(--hour) / 4)); }
.cal-col::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(to bottom, #C9CEDD 0 1px, transparent 1px var(--hour)); }

.appt.done { background: #EEF2F6; border-color: #98A2B3; color: #475467; }

.appt.cancelled { background: repeating-linear-gradient(45deg, #fff, #fff 6px, #F2F4F7 6px, #F2F4F7 12px); border-color: #D0D5DD; color: #98A2B3; text-decoration: line-through; z-index: 1; }
.now-line { position: absolute; left: 0; right: 0; height: 2px; background: var(--bad); z-index: 3; pointer-events: none; }
.legend { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; }

/* ---------- Client search in the booking form ---------- */
.results { border: 1px solid var(--line); border-radius: 10px; max-height: 200px; overflow: auto; }
.results button { width: 100%; justify-content: space-between; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; font-weight: 500; }
.results button:last-child { border-bottom: 0; }
.chosen { background: var(--brand-soft); border-radius: 10px; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* ---------- WhatsApp simulator ---------- */
.sim { display: grid; grid-template-columns: 280px 1fr; gap: 14px; height: calc(100vh - 120px); }
.sim .phones { overflow: auto; }
.sim .phones button { width: 100%; justify-content: flex-start; text-align: left; flex-direction: column; align-items: flex-start; margin-bottom: 6px; }
.sim .phones button.on { border-color: var(--wa); background: var(--wa-soft); }
.chat { display: flex; flex-direction: column; background: #ECE5DD; border-radius: var(--radius); overflow: hidden; }
.chat .msgs { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 80%; padding: 8px 12px; border-radius: 10px; white-space: pre-wrap; box-shadow: 0 1px 1px rgba(0,0,0,.1); font-size: 15px; }
.bubble.out { background: #fff; align-self: flex-start; }
.bubble.in { background: var(--wa-soft); align-self: flex-end; }
.bubble small { display: block; font-size: 12px; margin-top: 3px; }
.chat form { display: flex; gap: 8px; padding: 10px; background: #F0F0F0; }
@media (max-width: 899px) { .sim { grid-template-columns: 1fr; height: auto; } .sim .phones { max-height: 26vh; } .chat { min-height: 60vh; } }

/* ---------- Interviews ---------- */
.q { padding: 12px 0; border-bottom: 1px solid var(--line); }
.q:last-child { border-bottom: 0; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.opt { min-height: 36px; padding: 5px 12px; border-radius: 99px; font-size: 14px; font-weight: 500; border: 1px solid var(--line); background: #fff; display: inline-flex; align-items: center; gap: 6px; }

.q .num { display: inline-block; min-width: 34px; font-weight: 800; color: var(--brand); }
.answer-list { margin: 6px 0 0; padding-left: 18px; }
.answer-list li { margin-bottom: 4px; }

/* ---------- Front desk ---------- */

.client-row:active { background: var(--brand-soft); }
.client-row .chev { font-size: 26px; color: var(--muted); }
.new-client { width: 100%; min-height: 54px; font-size: 17px; }
.client-head { display: flex; gap: 12px; align-items: flex-start; }
.client-head .grow { flex: 1; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.service { flex-direction: column; align-items: flex-start; min-height: 74px; text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 12px 14px; }

.service small { color: var(--muted); font-weight: 500; }
.appt-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.appt-row .grow { flex: 1; min-width: 180px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px; scrollbar-width: thin; }

.chip small { font-size: 12px; color: var(--muted); font-weight: 500; }
.chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.chip.on small { color: #E0E3FF; }
.day-chips .chip { min-width: 92px; }
.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; max-height: 46vh; overflow: auto; }
.time { flex-direction: column; gap: 0; min-height: 56px; font-size: 18px; font-weight: 700; border: 2px solid var(--line); }
.time small { font-size: 12px; color: var(--muted); font-weight: 500; }
.time:hover, .time:active { border-color: var(--ok); background: var(--ok-soft); }
.booking-sum { background: var(--brand-soft); border-radius: 12px; padding: 12px 14px; line-height: 1.6; }
.days-check { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.days-check label.check { min-height: 36px; }

/* ---------- Dashboards ---------- */
.dash-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dash-grid .span-2 { grid-column: span 2; }
@media (max-width: 1199px) { .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 699px) { .dash-grid { grid-template-columns: 1fr; } .dash-grid .span-2 { grid-column: auto; } }
.chart { position: relative; width: 100%; margin-top: 6px; }
.chart svg { display: block; max-width: 100%; }
.chart .tip { position: absolute; pointer-events: none; background: #1C2030; color: #fff; padding: 6px 10px; border-radius: 8px; font-size: 13px; line-height: 1.35; min-width: 120px; z-index: 5; }

.chart-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.table-toggle { margin-top: 6px; font-size: 13px; color: var(--muted); }
.table-toggle summary { cursor: pointer; }
.hbars { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.hbar-label { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.hbar-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { height: 10px; background: #EEF1F6; border-radius: 99px; margin-top: 4px; overflow: hidden; }
.hbar small { color: var(--muted); font-size: 12px; }
.next-list { display: flex; flex-direction: column; }
.next { display: flex; gap: 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.next:last-child { border-bottom: 0; }
.next b { font-size: 17px; min-width: 50px; }
.stack-bar { display: flex; gap: 2px; height: 14px; border-radius: 99px; overflow: hidden; margin: 10px 0 14px; }
.stack-bar i { display: block; }
.status-list > div { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.status-list .grow { flex: 1; }
.status-list small { color: var(--muted); min-width: 36px; text-align: right; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; }

/* Paged tables */

/* Cancel: choose who on the waiting list is contacted */
.pick-list { border: 1px solid var(--line); border-radius: 10px; padding: 4px 12px; max-height: 240px; overflow: auto; margin-left: 32px; }
.pick-list label.check { min-height: 40px; align-items: flex-start; padding-top: 8px; }
/* Setup: who does what */
table.matrix th, table.matrix td { text-align: center; vertical-align: middle; }
table.matrix th:first-child, table.matrix td:first-child { text-align: left; position: sticky; left: 0; background: #fff; }
table.matrix input { width: 22px; height: 22px; min-height: 0; }
table.matrix button.link { font-weight: 600; font-size: 13px; color: inherit; }

/* ---------- Interview (live, phone/tablet first) ---------- */
.iv-new { width: 100%; min-height: 56px; font-size: 18px; }
.iv-card { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.iv-card .grow { flex: 1; min-width: 0; }
.iv-card:active { background: var(--brand-soft); }
.iv-card-actions { display: flex; flex-direction: column; gap: 6px; }
.mini-bar { height: 5px; background: #EEF1F6; border-radius: 99px; margin: 8px 0 2px; max-width: 240px; overflow: hidden; }
.mini-bar i { display: block; height: 100%; background: var(--brand); }

.iv-title { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.iv-status { font-size: 13px; color: var(--muted); white-space: nowrap; }
.iv-status.ok { color: var(--ok); }
.iv-status.warn { color: var(--warn); font-weight: 600; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.seg button { border: 0; border-radius: 0; min-height: 38px; padding: 6px 12px; font-size: 14px; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--brand); color: #fff; }
.seg.big { display: flex; margin-top: 4px; }
.seg.big button { flex: 1; min-height: 52px; font-size: 16px; }
.iv-progress { height: 6px; background: #E3E6EE; border-radius: 99px; overflow: hidden; margin-bottom: 12px; }
.iv-progress i { display: block; height: 100%; background: var(--brand); transition: width .2s; }
.iv-step { margin-bottom: 12px; }
.iv.step .iv-step:not(.cur) { display: none; }
.iv.step .iv-finish { display: none; }
.iv-sec { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--brand); font-weight: 700; margin-bottom: 4px; }
.iv-q { font-size: 21px; line-height: 1.35; margin: 2px 0 12px; }
.iv-q .num { display: inline-block; min-width: 40px; font-weight: 800; color: var(--brand); }
.iv .opts { margin: 0 0 12px; }
.iv .opt { min-height: 46px; font-size: 16px; padding: 8px 16px; }
.iv textarea { min-height: 64px; }
.big-input { font-size: 20px; min-height: 54px; }
.iv-tip { font-size: 14px; margin: 14px 0 0; }

.iv-nav button { min-height: 56px; font-size: 17px; }
.iv-nav #back, .iv-nav #next { flex: 1; }
.iv-count { flex: 0 0 auto; font-weight: 600; font-size: 15px !important; }
.iv.all .iv-nav #back, .iv.all .iv-nav #next { display: none; }
.iv.all .iv-nav { justify-content: center; }
.jump-row { justify-content: space-between; text-align: left; font-weight: 500; gap: 12px; width: 100%; }
.jump-row.on { border-color: var(--brand); background: var(--brand-soft); }
@media (max-width: 899px) {
  .iv-q { font-size: 19px; }
  .iv-head .seg button { padding: 6px 9px; font-size: 13px; }
}

/* ---------- Velvet widgets ---------- */
/* Stat cards: label + big number, tinted square icon on the right, soft badge and "view more" under */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
@media (min-width: 1000px) { .stats:has(> .tile:nth-child(6)) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1600px) { .stats:has(> .tile:nth-child(6)) { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.stat { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.stat > small { display: block; font-weight: 500; margin-bottom: 4px; }
.stat > b { display: block; font-size: 24px; font-weight: 600; line-height: 1.2; }
.tile { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 10px; transition: box-shadow .15s, transform .15s; }
a.tile:hover { box-shadow: 0 6px 16px rgba(27, 44, 63, .08); transform: translateY(-1px); }
.tile-top { display: flex; align-items: flex-start; gap: 10px; }
.tile-top .grow { flex: 1; min-width: 0; }
.tile-top small { display: block; font-weight: 500; font-size: 13px; margin-bottom: 4px; }
.tile-top b { display: block; font-size: 24px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.tile .ico { width: 40px; height: 40px; border-radius: 4px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.tile .ico .i { width: 20px; height: 20px; }
.tile-foot { display: flex; align-items: flex-end; gap: 8px; margin-top: auto; }
.tile-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; font-size: 12px; font-weight: 600; border-radius: 800px; padding: 2px 8px; background: var(--brand-soft); color: var(--brand-dark); line-height: 1.5; }
.tile-foot .more { margin-left: auto; font-size: 12px; color: var(--muted); text-decoration: underline; white-space: nowrap; }
.ico.violet { background: var(--brand-soft); color: var(--brand); }
.ico.orange { background: var(--orange-soft); color: var(--orange); }
.ico.green { background: var(--ok-soft); color: #1FA67F; }
.ico.yellow { background: var(--warn-soft); color: #D99A22; }
.ico.info { background: var(--info-soft); color: #2B9BE0; }
.ico.red { background: var(--bad-soft); color: #E6533C; }
.tile-sub.violet { background: var(--brand-soft); color: var(--brand-dark); }
.tile-sub.orange { background: var(--orange-soft); color: #B4441F; }
.tile-sub.green { background: var(--ok-soft); color: var(--ok); }
.tile-sub.yellow { background: var(--warn-soft); color: var(--warn); }
.tile-sub.info { background: var(--info-soft); color: var(--info); }
.tile-sub.red { background: var(--bad-soft); color: var(--bad); }

/* Dashboard rows (12-column like the template): 3 · 6 · 3, then 6 · 6 */
.dash-row { display: grid; gap: 24px; margin-bottom: 24px; }
.r-3-6-3 { grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr); }
.r-6-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dash-row > .card { height: 100%; }
@media (max-width: 1199px) { .r-3-6-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .r-3-6-3 > :nth-child(2) { grid-column: 1 / -1; order: -1; } }
@media (max-width: 767px) { .r-3-6-3, .r-6-6 { grid-template-columns: 1fr; } .r-3-6-3 > :nth-child(2) { grid-column: auto; } }

/* Activity list: coloured diamond on a line, name + time, details, status */
.activity { list-style: none; margin: 0; padding: 0; max-height: 380px; overflow-y: auto; scrollbar-width: thin; }
.activity li { position: relative; padding: 0 0 18px 28px; }
.activity li::before { content: ""; position: absolute; left: 4px; top: 5px; width: 8px; height: 8px; transform: rotate(45deg); background: var(--brand); border-radius: 1px; }
.activity li::after { content: ""; position: absolute; left: 7.5px; top: 20px; bottom: 2px; border-left: 1px dashed #DCE0E8; }
.activity li:last-child::after { display: none; }
.activity li.booked::before { background: #49B6F5; }
.activity li.confirmed::before { background: #26BF94; }
.activity li.done::before { background: #98A2B3; }
.activity li.no_show::before { background: #E6533C; }
.activity a { display: flex; flex-direction: column; gap: 2px; color: var(--ink); text-decoration: none; }
.activity a:hover b { color: var(--brand); }
.act-top { display: flex; justify-content: space-between; gap: 8px; }
.act-top b { font-weight: 600; }
.act-top time { font-size: 12px; color: var(--muted); white-space: nowrap; }
.activity small { font-size: 12px; }
.activity .pill { align-self: flex-start; margin-top: 3px; }

/* Donut with the number in the middle, split under it */
.donut { position: relative; width: min(190px, 100%); margin: 0 auto; }
.donut svg { display: block; width: 100%; height: auto; }
.donut-mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut-mid small { font-weight: 500; }
.donut-mid b { font-size: 22px; font-weight: 600; }
.donut-split { display: grid; grid-template-columns: repeat(3, 1fr); margin: 20px -20px -20px; border-top: 1px solid var(--line); }
.donut-split > div { display: flex; flex-direction: column; align-items: center; padding: 14px 6px; text-align: center; gap: 2px; }
.donut-split > div + div { border-left: 1px solid var(--line); }
.donut-split span { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.donut-split .dot { width: 8px; height: 8px; }
.donut-split b { font-size: 16px; font-weight: 600; }

/* Table inside a dashboard card */
.vtable td { padding-top: 11px; padding-bottom: 11px; }
.vtable tbody tr:last-child td { border-bottom: 0; }
.vtable .share { width: 32%; }
.vtable .hbar-track { display: block; margin: 0; height: 6px; }
.svc-dot { display: inline-flex; width: 28px; height: 28px; border-radius: 6px; background: var(--brand-soft); color: var(--brand); align-items: center; justify-content: center; font-weight: 600; margin-right: 10px; font-size: 12px; vertical-align: middle; }
.hbar-track i { display: block; height: 100%; border-radius: 99px; background: var(--grad); }
.chart-legend { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }

/* ---------- Tables with a title, "Show N per page", search, numbered pages ---------- */
.ptable { padding: 0; overflow: hidden; }
.ptable-title { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); min-height: 58px; }
.ptable-title h2 { margin: 0; }
.ptable-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 20px; }
.ptable-top .grow, .ptable-title .grow { flex: 1; }
.ptable-size { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.ptable-size select { width: auto; min-height: 32px; padding: 3px 30px 3px 10px; font-size: 13px; }
.ptable-q { margin-bottom: 12px; }
.ptable-top .ptable-q { width: min(280px, 100%); min-height: 34px; margin: 0; font-size: 13px; padding: 6px 12px; }

.ptable tbody tr:last-child > td { border-bottom: 0; }
.ptable .empty { padding: 26px 20px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; font-size: 13px; color: var(--muted); flex-wrap: wrap; border-top: 1px solid var(--line); }
.pager:empty { display: none; }
.pager .pages { display: inline-flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.pager .pages button { min-width: 32px; min-height: 32px; padding: 3px 9px; font-size: 13px; border-radius: 5.6px; }
.pager .pages button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager .pages .gap { padding: 0 4px; }
tr.sub > td { background: #F7F8FA !important; padding-top: 4px; }
@media (max-width: 599px) { .ptable-top .ptable-q { width: 100%; } .pager { justify-content: center; } }
table.matrix tr:first-child th { padding: 11px 10px; }
table.matrix td { border-bottom: 1px solid var(--line); }

/* ---------- Page bits on the new shell ---------- */
.cal-wrap { overflow: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); max-height: calc(100vh - 300px); min-height: 360px; }
.iv-head { position: sticky; z-index: 10; background: var(--bg); display: flex; gap: 10px; align-items: center; padding: 6px 0 8px; flex-wrap: wrap; top: var(--head-h); }
.iv-nav { position: sticky; bottom: 0; z-index: 10; display: flex; gap: 10px; align-items: center; padding: 10px 0; background: var(--bg); }
.big-search { font-size: 18px; min-height: 52px; padding: 10px 16px; border-radius: 8px; border-width: 1px; }
.client-row { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); box-shadow: none; padding: 12px 16px; min-height: 58px; }
.client-row:hover { border-color: #D9C8F8; background: #FCFAFF; }
.chip { flex: 0 0 auto; min-height: 40px; padding: 6px 14px; flex-direction: column; gap: 0; line-height: 1.15; border-radius: 800px; }
.chip.on, .seg button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.opt.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-dark); }
.iv-progress i, .mini-bar i { background: var(--grad); }

.service, .time { border-width: 1px; border-radius: 8px; }
.service:hover, .service:active { border-color: var(--brand); background: var(--brand-soft); }

/* ---------- Calendar page: calendar card + waiting-list side panel (template's "full calendar" layout) ---------- */

@media (max-width: 1199px) { .cal-layout { grid-template-columns: 1fr; } }
.cal-card .card-head h2 { flex: 1; }
.cal-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.btn-group { display: inline-flex; }
.btn-group button { border-radius: 0; min-width: 38px; font-size: 18px; padding: 4px 12px; }
.btn-group button:first-child { border-radius: 5.6px 0 0 5.6px; }
.btn-group button:last-child { border-radius: 0 5.6px 5.6px 0; border-left-color: rgba(255, 255, 255, .25); }
.cal-title { flex: 1; text-align: center; font-size: 22px; font-weight: 600; white-space: nowrap; }
.cal-toolbar input[type=date] { width: auto; }
.cal-card .cal-wrap { box-shadow: none; border: 1px solid var(--line); border-radius: 4px; max-height: calc(100vh - 330px); }
/* The grid runs edge to edge in the card: no white margin left and right (the card's padding: 20px, 12px when compact) */
.cal-card .cal-wrap { margin-left: -20px; margin-right: -20px; border-left: 0; border-right: 0; border-radius: 0; }
body.cal-compact .cal-card .cal-wrap { margin-left: -12px; margin-right: -12px; }
.cal-card .legend { margin-top: 12px; align-items: center; }
@media (max-width: 699px) { .cal-title { order: 5; flex-basis: 100%; text-align: left; font-size: 18px; } }

.cal-side { display: flex; flex-direction: column; gap: 16px; }
.wl-add { width: 100%; min-height: 42px; font-size: 14px; }
.wl-services { display: flex; flex-direction: column; gap: 8px; margin: 20px -20px 0; padding: 20px 20px 0; border-top: 1px solid var(--line); }
.wl-services:has(> p) { padding-top: 16px; }
.wl-svc { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 4px; color: #fff; text-decoration: none; font-size: 12.5px; }
.wl-svc span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-svc b { background: rgba(255, 255, 255, .25); border-radius: 800px; padding: 0 8px; font-size: 12px; }
.wl-svc:hover { filter: brightness(.95); }
.wl-svc.violet, .dot.violet { background: #8E54E9; }
.wl-svc.orange, .dot.orange { background: #F5774E; }
.wl-svc.green, .dot.green { background: #26BF94; }
.wl-svc.info, .dot.info { background: #49B6F5; }
.wl-svc.yellow, .dot.yellow { background: #E8A43A; }
.wl-svc.red, .dot.red { background: #E6533C; }
.wl-svc.teal, .dot.teal { background: #12C2C2; }

.wl-head h2 { margin: 0; font-size: 18px; }
.wl-cards { display: flex; flex-direction: column; gap: 16px; }
.wl-card { display: flex; flex-direction: column; gap: 4px; }
.wl-top { display: flex; align-items: center; gap: 8px; }
.wl-top small { flex: 1; }
.wl-top .dot { width: 10px; height: 10px; }
.wl-top button.link { font-size: 12px; color: var(--muted); }
.wl-top button.link:hover { color: var(--bad); }
.wl-card a { color: var(--ink); text-decoration: none; font-size: 14px; }
.wl-card a:hover b { color: var(--brand); }
.wl-note { font-style: italic; }

/* ---------- Activities: pick one log, days, then its table and how it is made ---------- */
.act-filter { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding: 12px 16px; }
.act-filter label.field { flex-direction: row; align-items: center; gap: 8px; margin: 0; white-space: nowrap; }
.act-filter input { width: auto; }
.act-log select { min-width: 220px; }
#view > .act-filter { margin-bottom: 24px; }
#view > #t > .card { margin-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; }
.act-how { border-radius: 0 0 var(--radius) var(--radius) !important; border-top: 1px dashed #E3E6EE !important; background: #FBFAFE; padding: 14px 20px; }
.act-how h3 { font-size: 13px; margin: 0 0 4px; color: var(--brand-dark); }
.act-how p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.6; max-width: 900px; }
.msg-body { display: block; max-width: 360px; white-space: normal; }

/* Dashboard: this month's results (owner) */
.month-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: -20px; }
.month-strip > div { display: flex; flex-direction: column; gap: 4px; padding: 18px 16px; text-align: center; }
.month-strip > div + div { border-left: 1px solid var(--line); }
.month-strip b { font-size: 24px; font-weight: 600; }
.month-strip b.ok { color: var(--ok); } .month-strip b.warn { color: var(--warn); } .month-strip b.bad { color: var(--bad); }
.month-strip small { font-size: 12px; }
@media (max-width: 999px) { .month-strip { grid-template-columns: repeat(3, 1fr); } .month-strip > div:nth-child(4) { border-left: 0; } .month-strip > div:nth-child(n+4) { border-top: 1px solid var(--line); } }
@media (max-width: 499px) { .month-strip { grid-template-columns: repeat(2, 1fr); } .month-strip > div { border: 0 !important; } }

/* ---------- Setup: opening hours (small) · rooms · machines ---------- */
.setup-top { display: grid; grid-template-columns: 300px minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-bottom: 24px; align-items: start; }
@media (max-width: 1199px) { .setup-top { grid-template-columns: 1fr 1fr; } .setup-top .hours-card { grid-column: 1 / -1; } }
@media (max-width: 767px) { .setup-top { grid-template-columns: 1fr; } }
.setup-top > div > .card { margin: 0; }
.hours-card { display: flex; flex-direction: column; gap: 12px; }
.hours-card > h2:first-child { margin-bottom: 4px; }
.hours-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hours-row label.field:nth-child(3) { grid-column: 1 / -1; }
.hours-row label.field { font-size: 12px; gap: 4px; }
.hours-row input, .hours-row select { padding: 4px 8px; font-size: 13px; }
.hours-row select { padding-right: 26px; background-position: right 8px center; }
.closed-days small { display: block; font-weight: 500; color: #232323; margin-bottom: 6px; }
.closed-days > div { display: flex; gap: 3px; flex-wrap: wrap; }
.day-tick input { position: absolute; opacity: 0; width: 0; height: 0; }
.day-tick span { display: inline-flex; align-items: center; justify-content: center; min-width: 33px; height: 30px; padding: 0 4px; border: 1px solid var(--line-2); border-radius: 5px; font-size: 12px; cursor: pointer; }
.day-tick input:checked + span { background: var(--bad-soft); border-color: #F2B8AD; color: var(--bad); font-weight: 600; text-decoration: line-through; }
.day-tick input:focus-visible + span { outline: 2px solid var(--brand); }
.hours-card .row { margin: 0; }
.hours-card > small { font-size: 12px; }
/* Setup: rooms and machines as chips */
.place-card { min-height: 100%; }
.place-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.place-chip { min-height: 32px; padding: 4px 14px; border-radius: 800px; font-size: 13px; font-weight: 500; background: var(--brand-soft); color: var(--brand-dark); border-color: transparent; }
.place-chip:hover:not(:disabled) { background: var(--brand); color: #fff; border-color: var(--brand); }
#machT .place-chip { background: var(--info-soft); color: var(--info); }
#machT .place-chip:hover:not(:disabled) { background: var(--info); color: #fff; border-color: var(--info); }
.place-chip.off { background: #F2F4F7 !important; color: #98A2B3 !important; text-decoration: line-through; }
.place-empty { margin: 0; font-size: 12.5px; }
/* Setup → Employees: the services each employee does, read-only (Edit to change) */
.does { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 6px; }
.does label { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.does input { width: 13px; height: 13px; min-height: 0; margin: 0; }
.does input:checked + * , .does label:has(input:checked) { color: var(--ink); }
.btn-small { min-height: calc(var(--ctl) - 6px); padding: 4px 10px; font-size: 12.5px; white-space: nowrap; }

/* ---------- Client folder, recall, booking requests (2026-11-05) ---------- */
.side-menu a .badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--orange); color: #fff; font-size: 12px; display: grid; place-items: center; }
body.mini .side-menu a .badge { position: absolute; margin: -18px 0 0 14px; }
.folder-alerts { display: grid; gap: 8px; margin: 12px 0 0; }
.folder-alert { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; background: var(--bad-soft); color: #8E2A1A; border-left: 4px solid var(--bad); border-radius: var(--radius); padding: 10px 14px; }
.folder-alert small { color: #8E2A1A; opacity: .8; }
.folder-stats { margin-top: 12px; padding: 20px; }
.folder-stats .month-strip b { font-size: 18px; }
.folder-due { margin-top: 12px; }
.due-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.due-item { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 10px 12px; }
.note-form textarea { width: 100%; resize: vertical; }
.note-form .row { margin-top: 8px; flex-wrap: wrap; }
.note-form select { max-width: 260px; }
.note-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.note-list li > .grow, .recall-row > .grow, .online-link > .grow, .req-main > .grow { flex: 1; min-width: 0; }
.note-list li { display: flex; align-items: flex-start; gap: 8px; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 10px 12px; }
.note-list li.pinned { border-color: var(--bad); background: var(--bad-soft); }
.note-list p { margin: 0 0 2px; white-space: pre-wrap; }
.folder-msgs { margin-top: 18px; }
.folder-msgs summary { cursor: pointer; }
.msg-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; max-height: 420px; overflow-y: auto; }
.msg-list li { max-width: 80%; border-radius: 10px; padding: 8px 12px; background: var(--wa-soft); }
.msg-list li.in { justify-self: end; background: var(--info-soft); }
.msg-list p { margin: 2px 0 0; white-space: pre-wrap; }
.recall-how { display: flex; margin-bottom: 14px; }
.recall-rows { display: grid; gap: 6px; }
.recall-row { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 10px 12px; cursor: pointer; }
.recall-row input { width: 18px; height: 18px; flex: 0 0 auto; }
.recall-row.off { opacity: .65; cursor: default; }
.req-list { display: grid; gap: 12px; }
.req-main { display: flex; gap: 16px; align-items: flex-start; }
.req-when { flex: 0 0 auto; width: 92px; text-align: center; background: var(--brand-soft); color: var(--brand-dark); border-radius: var(--radius); padding: 8px 4px; display: flex; flex-direction: column; }
.req-when span { font-size: 20px; font-weight: 700; }
.req-note { margin: 6px 0; font-style: italic; }
.req-free { flex: 0 0 auto; text-align: right; }
.req-actions { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.online-card { margin: 24px 0; }
.online-card .card-head { display: flex; align-items: center; gap: 12px; }
.online-card .card-head h2 { flex: 1; margin: 0; }
.online-link { display: flex; align-items: center; gap: 10px; background: var(--brand-soft); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 6px; word-break: break-all; }
.online-card textarea { width: 100%; resize: vertical; }
@media (max-width: 640px) { .req-main { flex-wrap: wrap; } .req-free { text-align: left; } }

/* ---------- Side menu footer: counts + account (same as the Pikabook CMS) ---------- */
.side-foot { flex: 0 0 auto; padding: 14px 16px 16px; border-top: 1px solid rgba(255, 255, 255, .07); }
.side-sum { list-style: none; margin: 0 0 12px; padding: 0 0 10px; border-bottom: 1px solid rgba(255, 255, 255, .07); color: var(--nav-ink); font-size: 12px; }
.side-sum li { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; }
.side-sum li + li { border-top: 1px dashed rgba(255, 255, 255, .06); }
.side-sum b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.side-sum:empty { display: none; }
.acc-btns { display: flex; gap: 6px; margin-top: 10px; flex-wrap: nowrap; }
.acc-btns button { flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 26px; height: 26px; padding: 0 6px; border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .18); background: transparent; color: #D3DAEC; font-size: 12px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.acc-btns button:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.acc-btns .i { width: 13px; height: 13px; }
/* Menu shrunk to icons: only the round initials stay. */
body.mini .side-sum, body.mini .acc-btns { display: none; }
body.mini .side-foot { padding: 12px 0; display: flex; justify-content: center; }

/* Name menu (top right): Profile, Settings, Sign out. Profile and Settings pages are placeholders for now. */
.profile-menu a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; font-weight: 500; }
.profile-menu a:hover, .profile-menu a:focus { background: var(--brand-soft); color: var(--brand-dark); }
.profile-menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.soon-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 20px; text-align: center; }
.soon-card h2 { margin: 6px 0 0; }
.soon-av { width: 56px; height: 56px; font-size: 18px; }

/* ---------- Calendar page (2026-11-05): the page never scrolls, only the calendar; waiting-list drawer; full screen ---------- */
body.fixed-page { height: 100vh; height: 100dvh; overflow: hidden; }
body.fixed-page .main { height: 100vh; height: 100dvh; min-height: 0; }
body.fixed-page #view { display: flex; flex-direction: column; min-height: 0; padding-bottom: 16px; }
body.fixed-page .app-foot { display: none; }
body.fixed-page .cal-layout { flex: 1; min-height: 0; }
.cal-layout { grid-template-columns: minmax(0, 1fr) 320px; display: flex; gap: 16px; align-items: stretch; position: relative; }
.cal-card { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
#view > .cal-layout > .cal-card { margin-bottom: 0; }
body.fixed-page .cal-card .cal-wrap { flex: 1; min-height: 0; max-height: none; }
.cal-card .card-head { flex-wrap: wrap; }
.cal-full-btn .i { width: 15px; height: 15px; }

.wl-drawer { display: none; flex: 0 0 230px; width: 230px; min-height: 0; flex-direction: column; gap: 10px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; }
.cal-layout.wl-open .wl-drawer { display: flex; }
.cal-layout.wl-open .wl-tab { display: none; }
.wl-dhead { display: flex; align-items: center; gap: 8px; }
.wl-dhead b { font-size: 15px; }
.wl-count { color: var(--muted); font-weight: 500; }
.btn-fold { width: 28px; min-height: 28px; height: 28px; padding: 0; font-size: 18px; line-height: 1; }
.wl-drawer .wl-add { width: 100%; min-height: 34px; font-size: 13px; }
.wl-groups { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; margin: 0 -4px; padding: 0 4px; }
.wl-gname { margin: 0 0 4px; font-weight: 600; }

.wl-group ul { list-style: none; margin: 0; padding: 0 0 0 10px; display: flex; flex-direction: column; gap: 8px; }
.wl-person { display: flex; flex-direction: column; gap: 1px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.wl-person:last-child { border-bottom: 0; padding-bottom: 0; }
.wl-person .wl-top a { flex: 1; min-width: 0; color: var(--ink); text-decoration: none; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-person .wl-top button.link { min-height: 0; padding: 0; border: 0; background: none; font-size: 12px; color: var(--muted); }
.wl-person .wl-top button.link:hover { color: var(--bad); }
.wl-person small { font-size: 12px; line-height: 1.4; }
.wl-person .wl-top a:hover { color: var(--brand); }
.wl-empty { margin: 8px 0; text-align: center; }
.wl-all { font-size: 12px; text-align: right; text-decoration: none; }
.wl-tab { flex: 0 0 auto; align-self: flex-start; writing-mode: vertical-rl; min-height: 0; padding: 12px 7px; gap: 8px; border: 0; border-radius: 8px;
  background: var(--brand); color: #fff; font-size: 12.5px; font-weight: 600; }
.wl-tab b { writing-mode: horizontal-tb; background: rgba(255, 255, 255, .25); border-radius: 800px; padding: 1px 6px; font-size: 12px; }
.wl-tab:hover { background: var(--brand-dark); }
/* Narrow screens: the open drawer slides over the calendar instead of taking its width. */
@media (max-width: 899px) {
  /* starts under the calendar's toolbar, so "+ New" and full screen stay reachable */
  .cal-layout.wl-open .wl-drawer { position: absolute; top: calc(var(--wl-top, 56px) + 4px); right: 0; bottom: 0; z-index: 8; box-shadow: -8px 0 24px rgba(0, 0, 0, .18); }
}

/* Full screen: only the calendar (no menu, header or title band). */
body.cal-full .side, body.cal-full .side-shade, body.cal-full .app-header, body.cal-full #view > .topbar { display: none !important; }
body.cal-full .main, body.cal-full.mini .main { margin-left: 0; }
body.cal-full #view { padding-top: 16px; }

.wl-pos { flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.wl-phone { font-size: 12px; color: var(--ink); text-decoration: none; }
.wl-phone:hover { color: var(--brand); }

/* Calendar page header on tablets and phones (body.cal-compact, under 1280 px; 2026-11-05): no title band (the menu shows where you are)
   and one toolbar row (‹ › · Today · 📅 day · cancelled · + New · full screen) instead of a heading row + a toolbar. Half the old height.
   Computers keep the full header. */
body.cal-compact #view > .topbar { display: none; }
body.cal-compact #view { padding-top: 12px; }
body.cal-compact .cal-card { padding: 12px; }
body.cal-compact .cal-toolbar { gap: 8px; margin-bottom: 8px; }
body.cal-compact .cal-toolbar button { min-height: 32px; height: 32px; padding-top: 0; padding-bottom: 0; }
body.cal-compact .cal-toolbar .btn-group button { font-size: 16px; }
body.cal-compact .cal-title { flex: 0 1 auto; position: relative; display: inline-flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 600; text-align: left;
  margin: 0 4px; padding: 3px 8px; border-radius: 6px; cursor: pointer; white-space: nowrap; }
body.cal-compact .cal-title:hover { background: var(--brand-soft); }
body.cal-compact .cal-title .i { color: var(--brand); }
body.cal-compact .cal-title input[type=date] { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; opacity: 0; pointer-events: none; }
body.cal-compact .cal-full-btn { width: 32px; padding: 0 !important; }
.cal-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cal-tools label.check { min-height: 0; font-size: 12.5px; white-space: nowrap; }
body.cal-compact .cal-card .legend { margin-top: 8px; }
body.cal-compact .wl-drawer { padding: 12px; }
@media (max-width: 699px) {
  body.cal-compact .cal-title { order: 0; flex-basis: auto; font-size: 15px; }
  .cal-tools { margin-left: 0; width: 100%; }
  .cal-tools #add { flex: 1; }
}

/* Explanation at the top of an action's popup ("what happens when I do this"). */
.info-line { margin: 0; padding: 10px 12px; border-radius: var(--radius); background: var(--info-soft); color: #0E4F78; font-size: 13px; line-height: 1.5; }

/* Client folder (2026-11-05): tabs instead of one long page; actions on each appointment; archived / erased banner. */
.folder-kicker { display: block; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; font-weight: 600; margin-bottom: 2px; }
.folder-banner { margin-top: 12px; }
.folder-tabs { display: flex; width: 100%; margin: 16px 0; overflow-x: auto; }
.folder-tabs button { flex: 1; white-space: nowrap; }
.folder-tabs button small { opacity: .75; margin-left: 2px; }
.folder-tabs button.on small { color: #fff; }
[data-pane] > .card:first-child, [data-pane] > .folder-stats { margin-top: 0; }
.folder-appt { align-items: flex-start; flex-wrap: wrap; }
.folder-appt .appt-actions { flex-wrap: wrap; justify-content: flex-end; }
.earlier-on { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 3px 10px; border-radius: 800px; background: var(--info-soft); color: #0E4F78; font-size: 12px; font-weight: 600; }
.earlier-on button.link, .info-btn { min-height: 0; padding: 0; border: 0; background: none; color: var(--brand); font-size: 12px; font-weight: 600; cursor: pointer; text-decoration: underline; }
.info-btn { text-decoration: none; font-size: 14px; margin-left: 4px; }
.more-details { border: 1px solid var(--line-2); border-radius: var(--radius); padding: 8px 12px; }
.more-details summary { cursor: pointer; font-weight: 600; font-size: 13px; }
.more-details[open] summary { margin-bottom: 10px; }
.more-details .field + .field, .more-details > .field { margin-top: 10px; }
/* Clients list */
.clients-bar { margin-bottom: 16px; align-items: center; gap: 12px; flex-wrap: wrap; }
tr.row-link { cursor: pointer; }
tr.row-link:hover td { background: #FBF9FF; }
.client-link { color: var(--ink); text-decoration: none; }
.client-link:hover { color: var(--brand); }
.phone-link { color: var(--ink); text-decoration: none; white-space: nowrap; }

/* Help ("How it works"): one card per guide, each question folds out. */
.help-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.help-top h2 { margin: 0; }
.help-top p { margin: 4px 0 0; }
.help-search { width: min(360px, 100%); }
.help-jump { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.help-jump a { padding: 6px 14px; border-radius: 800px; background: var(--card); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; font-weight: 600; }
.help-jump a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.help-soon { font-size: 12px; }
.help-guide { scroll-margin-top: calc(var(--head-h) + 12px); }
.help-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 8px; }
.help-head h2 { margin: 0; font-size: 18px; }
.help-head p { margin: 2px 0 0; }
.help-ico { font-size: 26px; line-height: 1; }
.help-topic { border-top: 1px solid var(--line); scroll-margin-top: calc(var(--head-h) + 12px); }
.help-topic summary { cursor: pointer; padding: 12px 4px; font-weight: 600; font-size: 14px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.help-topic summary::-webkit-details-marker { display: none; }
.help-topic summary::after { content: "+"; color: var(--brand); font-size: 18px; line-height: 1; }
.help-topic[open] summary::after { content: "−"; }
.help-topic summary:hover { color: var(--brand-dark); }
.help-body { padding: 0 4px 14px; font-size: 13.5px; line-height: 1.65; }
.help-body ul, .help-body ol { margin: 0 0 8px; padding-left: 20px; }
.help-body li + li { margin-top: 4px; }
.help-body p { margin: 0 0 8px; }
.help-table { width: 100%; border-collapse: collapse; margin: 6px 0; }
.help-table td { padding: 7px 8px; border-top: 1px solid var(--line); vertical-align: top; }
.help-table td:first-child { white-space: nowrap; width: 1%; }
@media (max-width: 599px) { .help-table td:first-child { white-space: normal; } }

/* ---------- Team page (2026-11-05, Velvet "team" grid): one card per team member ---------- */
.team-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; }
.team-filters { max-width: 100%; overflow-x: auto; }
.team-filters button { white-space: nowrap; }
.team-filters button b { margin-left: 4px; font-size: 12px; opacity: .8; }
.team-bar .grow { flex: 1; }
.team-search { width: min(260px, 100%); }
.team-info { margin: 0 0 20px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }

.team-card.archived { opacity: .65; }

.team-cover.violet { background: linear-gradient(120deg, #8E54E9, #B78CF5); } .team-cover.orange { background: linear-gradient(120deg, #F5774E, #F9A98B); }
.team-cover.green { background: linear-gradient(120deg, #26BF94, #7DDDBF); } .team-cover.info { background: linear-gradient(120deg, #4776E6, #49B6F5); }
.team-cover.yellow { background: linear-gradient(120deg, #E8A43A, #F5CD7E); } .team-cover.red { background: linear-gradient(120deg, #E6533C, #F29482); }
.team-cover.teal { background: linear-gradient(120deg, #12C2C2, #6FDCDC); }
.team-card.owner .team-cover { background: linear-gradient(120deg, #1C2C3F, #3B4F6B); }

.team-card.owner .team-av { background: #1C2C3F; color: #fff; }
.team-card h3 { margin: 10px 0 0; font-size: 16px; }

.team-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.team-stats { align-self: stretch; display: grid; grid-template-columns: repeat(3, 1fr); margin: 7px -16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.team-stats > div { padding: 10px 4px; display: flex; flex-direction: column; }
.team-stats > div + div { border-left: 1px solid var(--line); }
.team-stats b { font-size: 17px; }
.team-stats small { font-size: 12px; color: var(--muted); }
.team-svcs { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; margin-top: 10px; min-height: 22px; }
.team-svcs span { padding: 1px 8px; border-radius: 800px; background: var(--bg); font-size: 12px; }

.team-phone { position: absolute; top: 8px; right: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 800px;
  background: rgba(28, 44, 63, .55); color: #fff; font-size: 12px; font-weight: 600; text-decoration: none; backdrop-filter: blur(2px); }
.team-phone:hover { background: rgba(28, 44, 63, .75); }
.team-phone .i { width: 12px; height: 12px; }
.team-job { margin: 2px 0 4px; color: var(--muted); font-size: 12.5px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.team-cal { display: inline-grid; place-items: center; color: #B4BCC8; }
.team-cal.in { color: var(--brand); }
.team-cal .i { width: 15px; height: 15px; }
.team-access { align-self: stretch; display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 12px; border-radius: var(--radius); background: var(--bg); text-align: left; }
.team-access label { cursor: pointer; min-width: 0; }
.team-reset { min-height: 0; padding: 4px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.team-reset:hover { color: var(--brand); }
.team-reset .i { width: 15px; height: 15px; }
/* Services: hover (or tap) the number to see the list */
.team-svc-stat { position: relative; cursor: default; outline: none; }
.team-svc-stat b { text-decoration: underline dotted var(--muted); text-underline-offset: 3px; }
.svc-pop { display: none; position: absolute; z-index: 20; bottom: calc(100% + 6px); left: 0; min-width: 190px; max-height: 240px; overflow-y: auto; margin: 0; padding: 6px;
  list-style: none; text-align: left; background: #1C2C3F; color: #fff; border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.svc-pop li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 8px; font-size: 12.5px; white-space: nowrap; }
.svc-pop li + li { border-top: 1px solid rgba(255, 255, 255, .08); }
.svc-pop small { color: #A3AED1; }
.team-svc-stat:hover .svc-pop, .team-svc-stat:focus .svc-pop, .team-svc-stat:focus-within .svc-pop { display: block; }
.team-access small { display: block; color: var(--muted); font-size: 12px; word-break: break-all; }
.team-login { margin-top: 12px; display: flex; flex-direction: column; font-size: 12.5px; word-break: break-all; }
.team-note { font-size: 12px; margin: 10px 0 0; }
.team-actions { align-self: stretch; display: flex; gap: 4px; margin-top: 10px; }
.team-actions button { flex: 1 1 0; min-width: 0; min-height: 28px; height: 28px; padding: 0 4px; gap: 4px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.team-actions .i { width: 13px; height: 13px; }
/* Switch (App access) */
input.switch { appearance: none; -webkit-appearance: none; width: 40px; min-width: 40px; height: 22px; min-height: 0; padding: 0; border: 0; border-radius: 800px; background: #CDD3DE;
  position: relative; cursor: pointer; transition: background .15s; }
input.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
input.switch:checked { background: var(--ok); }
input.switch:checked::after { left: 21px; }
input.switch:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
/* Generated login popup */
.cred { display: flex; flex-direction: column; padding: 10px 12px; border: 1px dashed var(--line-2); border-radius: var(--radius); }
.cred small { color: var(--muted); }
.cred b { font-size: 16px; word-break: break-all; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; }

/* Team member photos */

.team-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-pick { display: flex; align-items: center; gap: 16px; }
.photo-pick .team-av { margin-top: 0; border-color: var(--line-2); flex: 0 0 auto; }
.photo-pick label.btn { cursor: pointer; }
.cal-who { display: inline-flex; align-items: center; gap: 8px; }
/* Employee header: photo or initials, then the name with the day's hours under it, all on the left */
/* The header row reads as the table's header: a light band, a line under it and between the employees */
.cal > .cal-head { background: #F7F8FC; border-bottom: 1px solid var(--line); }
.cal > .cal-head:not(:last-of-type) { border-right: 1px solid var(--line); }
button.cal-head.cal-emp { align-items: flex-start; justify-content: center; text-align: left; padding: 10px 12px; background: #F7F8FC; }
button.cal-head.cal-emp:hover { background: var(--brand-soft); }
.cal-emp .cal-who { gap: 10px; min-width: 0; max-width: 100%; }
/* Photo or initials: a white circle with a purple border; initials in purple */
.cal-emp .cal-av { width: 38px; height: 38px; border: 2px solid var(--brand); }
.cal-ini { display: inline-grid; place-items: center; background: #fff; color: var(--brand); font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.cal-nm { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.cal-nm b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-nm small { font-size: 12px; font-weight: 400; color: var(--muted); }
.cal-nm small.cal-off { color: #C0362C; font-weight: 600; }
/* Tablet and phone: smaller hours (and a smaller circle on a phone) */
@media (max-width: 991px) { .cal-nm b { font-size: 14px; } .cal-nm small { font-size: 10.5px; } }
@media (max-width: 599px) { .cal-emp .cal-av { width: 32px; height: 32px; } .cal-ini { font-size: 12px; } button.cal-head.cal-emp { padding: 8px; } .cal-emp .cal-who { gap: 8px; } }
.cal-av { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }

.team-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 16px 16px; overflow: visible; }
.team-cover { position: relative; align-self: stretch; height: 88px; margin: 0 -16px; background: var(--grad); border-radius: var(--radius) var(--radius) 0 0; }

.ok-line { margin: 0; color: var(--ok); font-weight: 600; font-size: 13px; }

.team-av { overflow: hidden; width: 112px; height: 112px; margin-top: -56px; border-radius: 50%; border: 4px solid var(--card); background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; font-size: 34px; font-weight: 700; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); position: relative; z-index: 1; }

th .th-sub { font-weight: 400; }

/* Table header row: tinted, not white (all tables). */
thead th { background: var(--brand-soft); color: var(--brand-dark); border-bottom-color: #E2D6FA; }
.ptable thead th { border-top: 1px solid var(--line); border-top-color: #E2D6FA; }

/* Client folder header: the client's name, tags, Edit / Archive in the blue title band (2026-11-05). */
.band-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

.band-tools .btn-small .i { width: 14px; height: 14px; }
.folder-note { margin-bottom: 0; }
.folder-tiles { margin-bottom: 24px; }
.folder-tiles .tile-top b { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 599px) {
  .folder-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .folder-tiles .tile { padding: 14px; }
  .folder-tiles .tile .ico { width: 32px; height: 32px; }
  .folder-tiles .tile-top b { font-size: 17px; }
}

/* Client folder Overview (2026-11-05): "Next treatment due" as a narrow column of cards on the left (25%), "Upcoming" on the right.
   Tablet and phone: one column, the due cards become a row you swipe sideways, above Upcoming. */
.folder-cols { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 3fr); gap: 24px; align-items: start; }
.folder-cols.no-due { grid-template-columns: minmax(0, 1fr); }
.folder-cols h2 { margin: 0 0 12px; font-size: 16px; }
.folder-due-col .due-list { display: flex; flex-direction: column; gap: 10px; }

.folder-due-col .due-item.confirmed { border-left-color: var(--ok); }
.folder-due-col .due-item .row { gap: 6px; flex-wrap: wrap; }
.folder-up-col .folder-appt { padding: 14px 16px; }
.folder-up-col .folder-appt .appt-actions .btn-small { min-height: 30px; font-size: 12px; padding: 4px 10px; }
@media (max-width: 1199px) {
  .folder-cols { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .folder-due-col .due-list { flex-direction: row; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .folder-due-col .due-item { flex: 0 0 220px; scroll-snap-align: start; }
}
@media (max-width: 599px) {
  .folder-due-col .due-item { flex-basis: 78%; }
  .folder-up-col .folder-appt { flex-direction: column; align-items: stretch; }
  .folder-up-col .folder-appt .appt-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; justify-content: stretch; }
  .folder-up-col .folder-appt .appt-actions .btn-small { width: 100%; }
}

/* Calendar "Live" marker: a pulsing dot, the time of the last update; tap to update now. */
.cal-card .legend .grow { flex: 1; }
.live { display: inline-flex; align-items: center; gap: 6px; min-height: 0; padding: 3px 10px; border: 1px solid var(--line-2); border-radius: 800px; background: #fff;
  font-size: 12px; color: var(--muted); white-space: nowrap; cursor: pointer; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(20, 138, 105, .5); animation: livepulse 2s infinite; }
.live.busy i { background: var(--info); }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(20, 138, 105, .45); } 70% { box-shadow: 0 0 0 7px rgba(20, 138, 105, 0); } 100% { box-shadow: 0 0 0 0 rgba(20, 138, 105, 0); } }
@media (prefers-reduced-motion: reduce) { .live i { animation: none; } }
/* The time a client asked for (booking request review) */
.time.asked { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; }
.time.asked small { color: var(--brand-dark); }
.time.on, .time.on.asked { border-color: var(--brand); background: var(--brand); color: #fff; }
.time.on small, .time.on .fit-star { color: #fff; }
/* New appointment: the last day chip picks any other day (the date field sits inside it). */
.chip-date { position: relative; cursor: pointer; }
.chip-date input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }

/* ---------- Help in the Velvet "FAQ" style (2026-11-05) ---------- */
.faq-hero { position: relative; text-align: center; padding: 34px 20px 30px; margin-bottom: 24px; border-radius: var(--radius); color: #fff;
  background: linear-gradient(120deg, #1C2C3F 0%, #4776E6 60%, #8E54E9 100%); box-shadow: var(--shadow); overflow: hidden; }
.faq-hero h2 { margin: 0; font-size: 24px; font-weight: 600; }
.faq-hero p { margin: 6px 0 18px; opacity: .85; }
.faq-search { display: flex; align-items: center; gap: 8px; width: min(340px, 100%); padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); }
.faq-search .i { width: 16px; height: 16px; flex: none; }
.faq-search input { border: 0; background: transparent; min-height: 38px; padding: 0; box-shadow: none !important; }
.faq-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; }
.faq-side { position: sticky; top: calc(var(--head-h) + 16px); display: flex; flex-direction: column; gap: 16px; }
.faq-nav h3 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.faq-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; font-weight: 500; }
.faq-nav a:hover { background: var(--bg); }
.faq-nav a.on { background: var(--brand-soft); color: var(--brand-dark); }
.faq-nav a b { min-width: 24px; padding: 1px 7px; border-radius: 800px; background: var(--bg); font-size: 12px; text-align: center; }
.faq-nav a.on b { background: #fff; }
.faq-ico { width: 30px; height: 30px; border-radius: 8px; background: var(--brand-soft); display: grid; place-items: center; font-size: 16px; flex: 0 0 auto; }
.faq-ico.big { width: 44px; height: 44px; font-size: 22px; border-radius: 10px; }
.faq-soon { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px; }
.faq-soon small { flex: 0 0 100%; color: var(--muted); }
.faq-soon span { padding: 2px 10px; border-radius: 800px; background: var(--bg); color: var(--muted); font-size: 12px; }
.faq-ask p { margin: 4px 0 0; font-size: 13px; }
.faq-group { margin-bottom: 28px; scroll-margin-top: calc(var(--head-h) + 12px); }
.faq-ghead { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.faq-ghead h2 { margin: 0; font-size: 18px; }
.faq-ghead p { margin: 2px 0 0; }
.faq-item { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 10px; border-left: 3px solid transparent; scroll-margin-top: calc(var(--head-h) + 12px); }
.faq-item[open] { border-left-color: var(--brand); }
.faq-item summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; font-weight: 600; font-size: 14px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary { color: var(--brand-dark); border-bottom: 1px solid var(--line); }
.faq-n { width: 24px; height: 24px; border-radius: 50%; background: var(--bg); color: var(--muted); display: grid; place-items: center; font-size: 12px; flex: 0 0 auto; }
.faq-item[open] .faq-n { background: var(--brand); color: #fff; }
.faq-chev { color: var(--muted); transition: transform .15s; }
.faq-item[open] .faq-chev { transform: rotate(180deg); color: var(--brand); }
.faq-item .help-body { padding: 14px 16px 16px 52px; }
@media (max-width: 991px) {
  .faq-layout { grid-template-columns: minmax(0, 1fr); }
  .faq-side { position: static; }
  .faq-nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  .faq-nav h3, .faq-soon, .faq-ask { display: none; }
  .faq-nav a { padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 800px; }
  .faq-ico { width: 24px; height: 24px; font-size: 13px; }
  .faq-item .help-body { padding-left: 16px; }
}

/* ---------- Profile (2026-11-05, Velvet "profile" style) ---------- */
.prof-cover { padding: 0; overflow: hidden; margin-bottom: 24px; }
.prof-banner { height: 120px; background: linear-gradient(120deg, #1C2C3F 0%, #4776E6 55%, #8E54E9 100%); }
.prof-id { display: flex; align-items: flex-end; gap: 18px; padding: 0 24px 20px; margin-top: -52px; flex-wrap: wrap; }
.prof-av { width: 112px; height: 112px; border-radius: 50%; border: 5px solid var(--card); background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center;
  font-size: 34px; font-weight: 700; overflow: hidden; flex: 0 0 auto; box-shadow: 0 2px 8px rgba(0, 0, 0, .1); }
.prof-av img { width: 100%; height: 100%; object-fit: cover; }
.prof-id h2 { margin: 0; font-size: 22px; }
.prof-id p { margin: 2px 0 0; color: var(--muted); }
.prof-id .btn-small .i { width: 14px; height: 14px; }
.prof-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: start; }
.prof-info h3, .prof-main h3 { margin: 0 0 12px; font-size: 15px; }
.prof-info dl { margin: 0; }
.prof-info dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.prof-info dt { color: var(--muted); }
.prof-info dd { margin: 0; font-weight: 500; text-align: right; word-break: break-all; }
.prof-note { font-size: 12px; margin: 12px 0 0; }
.prof-main { display: flex; flex-direction: column; gap: 24px; }
.prof-stats { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important; }
.prof-svcs { display: flex; flex-wrap: wrap; gap: 8px; }
.prof-svcs span { padding: 4px 12px; border-radius: 800px; background: var(--brand-soft); color: var(--brand-dark); font-size: 12.5px; font-weight: 500; }
.prof-sec .row { padding: 10px 0; border-top: 1px solid var(--line); align-items: center; }
.prof-sec .row:first-of-type { border-top: 0; }
.prof-sec small { display: block; }
@media (max-width: 991px) { .prof-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 599px) { .prof-id { justify-content: center; text-align: center; } .prof-id .grow { flex-basis: 100%; } .prof-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
.faq-item summary .grow, .faq-nav a .grow { flex: 1; min-width: 0; }

/* Profile header like Velvet: one card overlapping the title band, soft wavy background; picture with a green dot, name, job, meta;
   three numbers and an orange button on the right. */
.prof-head { display: flex; align-items: center; gap: 20px; padding: 24px; margin-bottom: 24px; position: relative; overflow: hidden;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200' preserveAspectRatio='none'%3E%3Cpath d='M0 120 C300 40 500 200 800 110 S1100 40 1200 90 V200 H0Z' fill='%23E6F4F7' opacity='.7'/%3E%3Cpath d='M0 160 C250 90 600 210 900 140 S1150 110 1200 130 V200 H0Z' fill='%23EAF1FB' opacity='.8'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat; }
.prof-head .prof-av { width: 84px; height: 84px; border: 3px solid #fff; position: relative; overflow: visible; font-size: 28px; }
.prof-head .prof-av img { border-radius: 50%; }
.prof-online { position: absolute; right: 2px; bottom: 4px; width: 16px; height: 16px; border-radius: 50%; background: #26BF94; border: 3px solid #fff; }
.prof-who h2 { margin: 0; font-size: 20px; font-weight: 700; }
.prof-job { margin: 4px 0 6px; color: var(--muted); font-size: 13.5px; }
.prof-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: var(--ink); }
.prof-meta span { display: inline-flex; align-items: center; gap: 5px; }
.prof-meta .i { width: 14px; height: 14px; color: var(--muted); }
.prof-side { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.prof-nums { display: flex; gap: 28px; }
.prof-nums div { display: flex; flex-direction: column; align-items: center; }
.prof-nums b { font-size: 20px; font-weight: 700; }
.prof-nums small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.prof-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 14px; border: 0; border-radius: 5px; background: var(--brand); color: #fff; font-weight: 600; font-size: 13px; }
.prof-btn:hover { background: var(--brand-dark); }
.prof-btn .i { width: 14px; height: 14px; }
.prof-acts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.prof-acts div { display: flex; flex-direction: column; padding: 12px; border-radius: var(--radius); background: var(--bg); }
.prof-acts b { font-size: 20px; }
.prof-acts small { color: var(--muted); }
@media (max-width: 767px) {
  .prof-head { flex-direction: column; text-align: center; }
  .prof-meta { justify-content: center; }
  .prof-side { align-items: center; width: 100%; }
  .prof-nums { justify-content: space-around; width: 100%; gap: 8px; }
}
.prof-who { flex: 1; min-width: 0; }

/* Setup → Settings (rooms / machines on or off) */
.set-card h2 { margin-bottom: 8px; }
.set-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.set-row:last-of-type { border-bottom: 0; margin-bottom: 6px; }
.set-row b { display: block; font-size: 14px; }
.set-row small { display: block; font-size: 12px; line-height: 1.35; }

/* Calendar: room / machine columns for self-service bookings (solarium…); other appointments using the room shown faded */
.cal-place { cursor: default; background: #FAF7FF; }
.cal-room { display: inline-grid; place-items: center; font-size: 14px; background: var(--brand-soft); }
.cal-place-col { background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(142, 84, 233, .035) 14px 28px); }
.appt.in-use { background: repeating-linear-gradient(135deg, #F2F4F7 0 8px, #E9ECF1 8px 16px); border-color: #C5CBD5; color: #667085; opacity: .9; }
/* Room / machine popup: the services that use it, one per line with duration and who does it. */
.svc-list { margin-top: 6px; border: 1px solid var(--line); border-radius: 10px; max-height: 280px; overflow-y: auto; }
.svc-row { display: flex; align-items: flex-start; gap: 10px; padding: 5px 12px; cursor: pointer; border-bottom: 1px solid var(--line); }
.svc-row:last-child { border-bottom: 0; }
.svc-row:hover { background: #F9FAFB; }
.svc-row:has(input:checked) { background: var(--brand-soft); }
.svc-list .svc-row input[type=checkbox] { width: 16px; height: 16px; min-height: 0; margin: 2px 0 0; padding: 0; flex: none; }
.svc-row b { font-size: 14px; font-weight: 500; line-height: 20px; }
.svc-row small { color: var(--muted); font-size: 13px; }
/* Setup: rooms / machines listed like the Settings card (name, comment, "in use" switch). */
.place-row .place-open { flex: 1; min-width: 0; display: block; text-align: left; background: none; border: 0; padding: 0; min-height: 0; color: inherit; font: inherit; cursor: pointer; }
.place-row .place-open:hover b { color: var(--brand); }
.place-row .place-open small:empty { display: none; }
.place-row.off .place-open b, .place-row.off .place-open small { color: #98A2B3; }
.place-head { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.booked-list { margin: 10px 0 0; padding: 0; list-style: none; max-height: 300px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; }
.booked-list li + li { border-top: 1px solid var(--line); }
.booked-list a { display: block; padding: 8px 12px; font-size: 13px; color: inherit; text-decoration: none; }
.booked-list a:hover { background: var(--brand-soft); }
.recall-sub { font-size: 14px; margin: 14px 0 6px; }
.folder-due-col .due-acts { margin-top: 4px; }
.recall-left { white-space: nowrap; }
/* Tabs + hint in a white card that rides over the header band (Clients, Booking requests), like Team's filter bar. */
.list-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 16px; }
.list-bar .grow { flex: 1; min-width: 0; }
@media (max-width: 575px) { .list-bar .grow { flex-basis: 100%; order: 3; } .team-bar .grow { display: none; } .team-bar .team-search { flex: 1; } }
.hbtn:disabled { opacity: .45; cursor: not-allowed; }
/* New appointment popup: the waiting-list part (closed: one link; open: the client's wish). */
.wait-part { border-top: 1px solid var(--line); padding-top: 12px; }
.wait-part .wait-wish { display: none; }
.wait-part.open .wait-open { display: none; }
.wait-part.open .wait-wish { display: block; }
.wait-wish h3 { font-size: 15px; margin: 0 0 2px; }
.wish-days { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.wish-day { position: relative; cursor: pointer; }
.wish-day input { position: absolute; opacity: 0; pointer-events: none; }
.wish-day span { display: inline-block; min-width: 46px; padding: 7px 10px; text-align: center; border: 1px solid var(--line-2); border-radius: 800px; font-size: 13px; font-weight: 500; }
.wish-day input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.wish-day input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.wish-win { margin-top: 4px; flex-wrap: wrap; }
.wish-label { display: block; }
/* Calendar "Free spots": dashed yellow blocks in the empty time (tap: who could fill it); lost (grey) = too short for any service. */
.spot { position: absolute; left: 4px; right: 4px; z-index: 1; border: 1.5px dashed #E3B505; border-radius: 8px; background: rgba(250, 204, 21, .14); cursor: pointer; overflow: hidden; }
.spot span { display: block; padding: 3px 8px; font-size: 12px; font-weight: 600; color: #8A6A00; }
.spot:hover { background: rgba(250, 204, 21, .28); }
.spot.lost { border-color: #B8BFCA; background: repeating-linear-gradient(135deg, rgba(152, 162, 179, .14) 0 6px, transparent 6px 12px); }
.spot.lost span { color: #667085; }
.spot-sum { margin-top: 10px; padding: 8px 12px; border-radius: 8px; background: #FEF7D6; font-size: 13px; display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.spot-lost-n { color: #667085; }
/* Fill panel */
.fill-group { margin-top: 14px; }
.fill-group h3 { font-size: 14px; margin: 0; }
.fill-why { margin: 2px 0 6px; font-size: 12px; }
.fill-row { display: flex; align-items: flex-start; gap: 10px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; cursor: pointer; }
.fill-row:has(input:checked) { background: var(--brand-soft); border-color: transparent; }
.fill-row input { width: 16px; height: 16px; min-height: 0; margin: 3px 0 0; flex: none; }
.fill-row .grow { flex: 1; min-width: 0; }
/* Booking picker: ★ best-fit times */
.time .fit-star { font-style: normal; color: #E8A43A; font-size: 12px; }
.time.fit { border-color: #F2C77E; }
.fit-note { grid-column: 1 / -1; margin: 4px 0 0; font-size: 12px; }
.fill-sub { margin: 8px 0 4px; font-size: 13px; font-weight: 600; }
.appt-mc { opacity: .75; }
/* Header bell: count (red = something needs action) and the notifications list */
.bell { position: relative; }
.bell .hbtn { position: relative; }
.bell-n { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 800px; background: #fff; color: var(--brand-dark); font-size: 12px; line-height: 18px; text-align: center; }
.bell-n.urgent { background: var(--bad); color: #fff; }
.bell-menu { position: absolute; right: -80px; top: 50px; width: min(400px, calc(100vw - 24px)); background: #fff; color: var(--ink); border-radius: 10px; box-shadow: 0 8px 24px rgba(27, 44, 63, .18); z-index: 36; overflow: hidden; }
.bell-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.bell-head .grow { flex: 1; }
.bell-tabs button { min-height: 30px; padding: 3px 10px; font-size: 12px; }
.bell-list { max-height: min(60vh, 460px); overflow-y: auto; }
.bell-item { display: flex; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.bell-item:hover { background: #F9FAFB; }
.bell-item.new { background: var(--brand-soft); }
.bell-item.action .bell-text { color: var(--bad); font-weight: 600; }
.bell-item .grow { flex: 1; min-width: 0; }
.bell-item small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.bell-text { font-size: 13px; }
.bell-ico { flex: none; font-size: 14px; line-height: 20px; }
.bell-failed { color: var(--bad); font-weight: 600; }
.bell-empty { padding: 18px 14px; margin: 0; text-align: center; }

.bell-foot a { color: var(--brand); text-decoration: none; font-weight: 500; }
@media (max-width: 575px) { .bell-menu { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; } }
.bell-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-size: 13px; gap: 14px; }
.bell-foot .grow { flex: 1; }
.bell-foot .bell-clear { color: var(--bad); }
.bell-item.warn .bell-text { color: #B54708; }
/* Team form: own working hours */
.wh-box { margin-top: 6px; }
.wh-row { display: grid; grid-template-columns: 130px 1fr auto 1fr; align-items: center; gap: 8px; padding: 4px 0; }
.wh-row label.check { min-height: 0; }
.wh-row input[type=time] { min-height: 36px; }
.wh-row:not(.on) input[type=time], .wh-row:not(.on) .muted { opacity: .35; pointer-events: none; }
/* Calendar: outside an employee's own working hours */
.off-hours { position: absolute; left: 0; right: 0; z-index: 0; background: repeating-linear-gradient(135deg, #F2F4F7 0 8px, #E9ECF1 8px 16px); pointer-events: none; }
/* Team member page: the white bar (name, Archive, Cancel, Save) and the photo in Personal info */
.member-bar b { font-size: 15px; }
.member-nums { white-space: nowrap; }
.member-photo { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.member-photo .prof-av { width: 84px; height: 84px; font-size: 26px; border-width: 3px; flex: none; }
@media (max-width: 575px) { .member-bar .grow { order: 0; } }
.acc-until { margin-top: 12px; display: grid; gap: 6px; } .acc-until .field { max-width: 240px; } .acc-until .btn-small { justify-self: start; }
/* Admin: status bar, tiles, two columns, rows, health checks */
.adm-status.ok { border-left: 4px solid var(--ok); } .adm-status.warn { border-left: 4px solid #E8A43A; } .adm-status.bad { border-left: 4px solid var(--bad); }
.adm-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 20px; }
.adm-tile { display: flex; flex-direction: column; gap: 4px; padding: 16px; color: var(--ink); text-decoration: none; margin: 0; }
a.adm-tile:hover { box-shadow: 0 6px 18px rgba(27, 44, 63, .12); }
.adm-tile small { color: var(--muted); font-size: 12px; }
.adm-tile b { font-size: 24px; font-weight: 600; }
.adm-tile span { font-size: 12px; }

@media (max-width: 991px) { .adm-two { grid-template-columns: 1fr; } }
.adm-two h3, .adm-health h3 { margin: 0 0 10px; font-size: 15px; }
.adm-row { display: flex; flex-direction: column; gap: 2px; padding: 9px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
a.adm-row:hover b { color: var(--brand); }
.adm-red { color: var(--bad); }
.adm-health { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 12px; }
.adm-check { margin: 0; border-left: 4px solid var(--ok); }
.adm-check.warn { border-left-color: #E8A43A; } .adm-check.bad { border-left-color: var(--bad); }
.adm-check p { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.adm-dl { margin: 0; } .adm-dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.adm-dl dt { color: var(--muted); } .adm-dl dd { margin: 0; font-weight: 500; text-align: right; }
.act-filter.card { margin-bottom: 24px; }
.twostep-steps { padding-left: 18px; margin: 0 0 8px; } .twostep-steps li { margin-bottom: 8px; } .twostep-key { margin: 6px 0; padding: 10px 12px; background: var(--brand-soft); border-radius: 8px; font-size: 16px; letter-spacing: .08em; font-weight: 600; word-break: break-all; }
.help-code { background: #1E2433; color: #E6E9F2; padding: 10px 12px; border-radius: 8px; font-size: 12px; overflow-x: auto; white-space: pre; margin: 6px 0; } .help-body code { background: var(--brand-soft); padding: 1px 5px; border-radius: 4px; font-size: 12px; }
/* Backups settings: label beside its box, checkboxes beside their text */
.bk-keep { display: grid; gap: 8px; }
.bk-keep label { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 500; }
.bk-keep input { width: 90px; min-height: 36px; }
.bk-checks { display: grid; gap: 8px; margin-top: 4px; }
.bk-checks label { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.bk-checks input { width: 18px; height: 18px; min-height: 0; margin: 0; flex: none; }
.bk-checks small { font-size: 12px; }
/* Admin: plans table and licence usage bars */
.plans-t input { min-height: 34px; padding: 4px 8px; width: 100%; min-width: 70px; }
.plans-t td:first-child input { min-width: 110px; }
.lic-use dd { display: flex; align-items: center; gap: 8px; }
.lic-bar { display: inline-block; width: 90px; height: 6px; border-radius: 4px; background: var(--line); overflow: hidden; }
.lic-bar i { display: block; height: 100%; background: var(--ok); }
.lic-bar i.full { background: var(--bad); }
/* Licence banner under the header (owner, front desk) */
.lic-banner { display: flex; gap: 10px; align-items: flex-start; margin: 12px var(--gut) 0; padding: 10px 14px; border-radius: 8px; font-size: 13px; background: #FEF7D6; color: #7A5B00; position: relative; z-index: 3; }
.lic-banner.grace, .lic-banner.readonly, .lic-banner.blocked { background: var(--bad-soft); color: #9B2C1B; }
/* Licence ended (read-only): action buttons look switched off; looking around still works */
body.lic-ro #view .btn-primary, body.lic-ro #view .btn-danger, body.lic-ro #view .btn-wa, body.lic-ro .modal [data-submit]:not(.lic-ok) { opacity: .45; filter: grayscale(.6); cursor: not-allowed; }
body.lic-ro .cal-col { cursor: not-allowed; }
.pill.suspended { background: #3B1E6E; color: #fff; }
.lic-timeline { margin: 4px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-dark); font-size: 12px; }
.plans-t select { min-height: 34px; padding: 4px 8px; min-width: 120px; }
/* Admin dashboard: WhatsApp per business */
.adm-wa { margin-bottom: 20px; }
.adm-wa table td, .adm-wa table th { white-space: nowrap; }
.adm-total td { border-top: 2px solid var(--line); background: #FAFAFC; }
.plan-off td { opacity: .55; } .plan-off td.plan-acts { opacity: 1; }
.plan-acts { white-space: nowrap; } .plan-acts .btn-small + .btn-small { margin-left: 6px; }
/* Backups: yellow download buttons, layout, how a restore works */
.btn-yellow { background: #FACC15; border-color: #FACC15; color: #3F2D00; font-weight: 600; }
.btn-yellow:hover:not(:disabled) { background: #EAB308; border-color: #EAB308; }
.bk-layout { grid-template-columns: 400px minmax(0, 1fr); }
@media (max-width: 1199px) { .bk-layout { grid-template-columns: minmax(0, 1fr); } }
.bk-how ol { padding-left: 18px; margin: 0 0 8px; font-size: 13px; } .bk-how li { margin-bottom: 6px; }
/* Admin dashboard: tile accents, three columns, licence rows */
.adm-tile.alert { border-left: 4px solid var(--bad); } .adm-tile.alert b { color: var(--bad); }
.adm-tile.warn { border-left: 4px solid #E8A43A; }
.adm-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1199px) { .adm-three { grid-template-columns: 1fr; } }
.adm-three h3 { margin: 0 0 10px; font-size: 15px; }
.adm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.adm-lic span { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* Sortable table headers */
th.sortable { padding: 0; }
th.sortable button { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 6px; width: 100%; padding: 12px 14px; cursor: pointer; font: inherit; color: inherit; }
th.sortable button:hover { background: rgba(124, 92, 252, .08); }
th.sortable button:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.sort-ar { font-style: normal; font-size: 12px; opacity: .45; }
th.sorted .sort-ar { opacity: 1; color: var(--brand); }
th.sortable:first-child button { padding-left: 20px; }

/* Questionnaires editor */
.qn-row .btn, .qn-row button { flex: 0 0 auto; }
.qn-sec { margin-bottom: 16px; }
.qn-sec-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.qn-sec-title { flex: 1 1 240px; font-weight: 700; font-size: 16px; }
.qn-for { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.qn-for label.check { min-height: 0; gap: 6px; }
.qn-tools { display: flex; gap: 6px; }
.qn-tools.col { flex-direction: column; }
.qn-q { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.qn-q .num { flex: 0 0 auto; min-width: 38px; font-weight: 700; color: var(--brand, #6d4aff); padding-top: 8px; }
.qn-q-row { display: flex; gap: 12px; align-items: flex-start; }
.qn-q-row textarea { flex: 1; }
.qn-q-row > .stack { flex: 0 0 170px; }
.qn-q.off { align-items: center; padding: 8px 0; }
.qn-old { margin-top: 10px; }
.qn-old summary { cursor: pointer; font-size: 13px; }
@media (max-width: 640px) { .qn-q-row { flex-direction: column; } .qn-q-row > .stack { flex-basis: auto; } .qn-tools.col { flex-direction: row; } .qn-q { flex-wrap: wrap; } }

/* Change date: the WhatsApp choices and the message preview */
.move-ask { display: grid; gap: 2px; margin: 4px 0 0 28px; padding: 10px 12px; border-left: 3px solid var(--line); }
.move-ask.off { opacity: .45; }
.move-ask label.check { min-height: 30px; }
.move-preview { margin: 4px 0 0; padding: 10px 12px; background: #e7fbe9; border-radius: 10px; font: 13px/1.45 var(--font, inherit); white-space: pre-wrap; color: #1d2b1f; }

/* Arrived: the client is here (between confirmed and done) */

/* Appointment popup: one main step, the rest under "More" */
.appt-main { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.appt-main-btn { min-width: 160px; min-height: 46px; font-size: 15px; font-weight: 600; }
.appt-more > summary { cursor: pointer; color: var(--muted); font-size: 13px; padding: 6px 0; }
.appt-more .row { flex-wrap: wrap; gap: 8px; margin-top: 6px; }
/* Money: the Done sheet and the client folder card */
.done-how button { flex: 1; }
.pay-amount { display: flex; gap: 8px; align-items: center; }
.pay-amount input { flex: 1; }
.pay-cur button { min-width: 44px; }
.pay-method { flex-wrap: wrap; }
.pay-quick { gap: 8px; flex-wrap: wrap; }
.done-after { margin: 4px 0 0; font-size: 15px; }
.done-after .bad, .bad { color: var(--bad); }
.done-after .good, .good { color: var(--ok); }
.money-card { margin-bottom: 16px; }
.money-card h3 { margin: 14px 0 2px; font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.cur-form { display: grid; gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.cur-form > small { margin-top: -4px; }

/* Touch screens (tablet at the desk): every control at least about 44 px, so a finger hits the right one. */
@media (pointer: coarse) {
  .btn-small, button.btn-small, a.btn-small { min-height: 42px; padding: 6px 14px; font-size: 14px; }
  .seg > button, .chip, .opt, .time { min-height: 42px; }
  .side-foot button, .side-foot .btn { min-height: 42px; }
  .cal-toolbar button, .cal-toolbar .btn { min-width: 44px; min-height: 44px; }
  .wl-drawer .wl-add, .wl-drawer button { min-height: 42px; }
  .pill { font-size: 12px; }
  .modal .actions button { min-height: 46px; padding: 0 20px; }
  .appt-more > summary { padding: 12px 0; font-size: 14px; }
}

/* Setup → WhatsApp messages */
.msg-card { margin-bottom: 24px; }
.msg-card .card-head { flex-wrap: wrap; }
.msg-lang { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.msg-group { margin: 16px 0 2px; font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }

.msg-preview[dir="rtl"], textarea[dir="rtl"] { text-align: right; }
.msg-row .grow { min-width: 0; flex: 1; }
.msg-row .btn-small { flex: 0 0 auto; }
.msg-row.auto-only > .grow { opacity: .5; } /* Assisted: a message that needs Automatic (messages.js) */

/* Calendar header: ‹ 📅 › · Today · the day, then the options; no separate title or toolbar row. */

.cal-day-wrap { position: relative; }
.cal-date-input { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; }
/* Cancelled / Free spots: light grey toggle buttons, coloured when on. */
.cal-togs { display: inline-flex; gap: 6px; margin-right: 6px; }

.tog { display: inline-flex; align-items: center; min-height: calc(var(--ctl) - 6px); padding: 4px 12px; border-radius: 6px; background: #F2F4F7; color: #475467; font-size: 12.5px; font-weight: 500; cursor: pointer; user-select: none; border: 1px solid #E4E7EC; position: relative; }
.tog input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; min-height: 0; margin: 0; opacity: 0; pointer-events: none; }
@media (hover: hover) { .tog:hover { background: #EAECF0; } }
.tog:has(input:checked) { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.tog:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.cal-day { font-weight: 600; white-space: nowrap; }

/* The calendar header on every screen: ‹ › · Today · day on the left; Cancelled · Free spots · New · full screen on the right
   (on a phone the right group goes to a second line, still on the right). */
.cal-right { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.cal-head { gap: 10px; position: sticky; top: 0; z-index: 5; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 8px; font-weight: 700; text-align: center; flex-wrap: wrap; row-gap: 8px; }
.cal-head .cal-day, .cal-head #today { white-space: nowrap; }
.cal-head .cal-day:active, .cal-head #today:active { background: var(--brand); color: #fff; }
.cal-full-btn { min-width: 36px; padding-left: 8px !important; padding-right: 8px !important; display: inline-flex; align-items: center; justify-content: center; }
/* The tool bar only (> .cal-head): the employee header cells inside the grid keep their place */
body.cal-compact .cal-card > .cal-head { margin: -12px -12px 10px; padding: 8px 12px; min-height: 0; gap: 8px; }
body.cal-compact .cal-card > .cal-head button, body.cal-compact .cal-card > .cal-head .tog { min-height: 36px; }
@media (max-width: 599px) {
  .cal-head .cal-right { flex-basis: 100%; flex-wrap: nowrap; gap: 6px; }
  .cal-head .cal-togs { margin-right: 0; gap: 6px; }
  .cal-head .tog { padding: 4px 9px; font-size: 12.5px; }
  .cal-head #add { padding: 4px 12px; }
}

/* Soft buttons (Today, the day, …): clearly darker when hovered, pressed or focused, never lighter. */

.wl-tab:active, .wl-tab:focus-visible { background: var(--brand-dark); }

/* No scroll bars anywhere: pages, lists and the calendar still scroll (wheel, touch, keys), the bar is just not drawn. */
* { box-sizing: border-box; scrollbar-width: none; }
*::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* Licence alert in the header: yellow triangle (trial / ending), red (ended); the message on hover or tap. */
.lic-alert { position: relative; display: inline-flex; }

.lic-alert.red .hbtn { color: #FF5A47; animation: lic-pulse 2s ease-in-out infinite; }
@keyframes lic-pulse { 50% { opacity: .55; } }
.lic-pop { display: none; position: absolute; right: 0; top: calc(100% + 8px); width: min(340px, 86vw); z-index: 60; padding: 12px 14px; border-radius: 8px;
  font-size: 13px; line-height: 1.45; box-shadow: 0 12px 32px rgba(16, 24, 40, .2); border: 1px solid; }
.lic-alert.yellow .lic-pop { background: #FFF8E1; color: #7A4E0A; border-color: #F5D77A; }
.lic-alert.red .lic-pop { background: #FDECEA; color: #9B2C1B; border-color: #F4B4AA; }
.lic-alert.open .lic-pop { display: block; }
@media (hover: hover) { .lic-alert:hover .lic-pop { display: block; } }
/* Setup in topics (like Help): the cards of the chosen topic, one under the other. */
.setup-cards { gap: 16px; }
.setup-cards > .card, .setup-cards > form.card { margin: 0; }
.setup-cards .setup-info { margin: 0 !important; }
/* WhatsApp messages: one fold per group */

.msg-fold summary small { margin-right: 8px; }
.msg-fold .msg-list { padding: 0 16px 6px; }
.msg-fold { margin-top: 10px; min-width: 0; overflow: hidden; }
.msg-fold .msg-row { min-width: 0; }
.msg-fold .msg-row > .grow { flex: 1 1 0; min-width: 0; overflow: hidden; }
.msg-row .msg-sample { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
/* Group titles: dark text like the other card titles (only the left edge turns purple when open). */
.msg-fold summary, .msg-fold[open] summary, .msg-fold summary:hover { color: var(--ink); }

/* ===== Look A (7 Nov 2026): white header, no gradients, one purple main button per screen =====
   The navy side menu frames the app; purple only marks the main action, the selected item and links;
   green / red / amber are for statuses; other buttons are white with a grey border. */
:root { --bg: #EDEEF1; --card: #FFFFFF; --ink: #1B2C3F; --muted: #5B6676; --line: #F0F0F0; --line-2: #E4E9F4; --brand-ink: #FFFFFF; --ok: #148A69; --ok-soft: #E2F7F0; --warn: #A86A0C; --warn-soft: #FEF3DF; --bad: #CC3F29; --bad-soft: #FCE9E5; --info: #1A80BF; --info-soft: #E5F4FE; --orange: #D9552F; --orange-soft: #FEEDE7; --wa: #128C7E; --wa-soft: #DCF8C6; --nav-bg: #1C2C3F; --nav-ink: #A3AED1; --nav-cat: #ABB8C7; --radius: 6.4px; --shadow: 0 2.4px 1.6px rgba(0, 0, 0, .04); --nav-w: 240px; --nav-mini: 72px; --head-h: 64px; --gut: 24px; --hour: 96px; --fs: 13px; --ctl: 36px; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", sans-serif; color: var(--ink); --brand: #7C4DDB; --brand-dark: #6A3DC4; --brand-soft: #F1EBFC; --grad: #7C4DDB; }
.login-bg { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px; background: #1E2340; }

.app-header { position: sticky; top: 0; z-index: 30; height: var(--head-h); display: flex; align-items: center; gap: 6px; padding: 0 var(--gut) 0 16px; background: #fff; color: var(--ink); border-bottom: 1px solid #E4E7EC; }
.hbtn { width: 38px; height: 38px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #475467; }
.hbtn:hover:not(:disabled) { background: #F2F4F7; }
.hsearch input { height: 42px; min-height: 0; border-radius: 50px; padding: 8px 40px 8px 16px; font-size: 13px; background: #F2F4F7; color: var(--ink); border: 1px solid transparent; }
.hsearch input::placeholder { color: #98A2B3; }
.hsearch input:focus { outline: 0; background: #fff; border-color: #C3A6F4; }
.hsearch > .i { position: absolute; right: 14px; top: 12px; pointer-events: none; color: #98A2B3; }
.profile-btn { border: 0; background: transparent; min-height: 0; padding: 4px 6px; gap: 8px; font-weight: 500; color: var(--ink); }
.profile-btn:hover:not(:disabled) { background: #F2F4F7; }
.profile-btn .who small { font-size: 12px; color: var(--muted); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; border: 2px solid rgba(255, 255, 255, .5); background: var(--brand-soft); color: #5B34B8; border-color: transparent; }
.lic-alert.yellow .hbtn { color: #D99A00; }

.topbar.band, .topbar.band:has(+ :is(p, small, .muted, .notice, .row, .chips, input, a.btn, label, .legend)) { background: transparent; color: var(--ink); margin: 0 0 14px; padding: 16px 0 0; }
.topbar.band > .band-title { flex: 1; min-width: 0; font-size: 21px; line-height: 1.2; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #101828; font-weight: 600; }
.band-tools .muted, .band-tools small, .band-tools b, .band-tools label { color: inherit; }
.band-tools button:not(.btn-primary), .band-tools .btn:not(.btn-primary) { background: #fff; border-color: #D0D5DD; color: #344054; }
.band-tools .btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.band-tools .seg { border-color: #E4E7EC; background: #fff; }
.band-tools .seg button.on { background: var(--brand); color: #fff; }

/* Secondary buttons (Today, the day, …): white, grey border; hover and press show purple. */
.btn-soft { background: #fff; color: #344054; border-color: #D0D5DD; }
@media (hover: hover) { .btn-soft:hover { background: #fff; color: var(--brand-dark); border-color: var(--brand); } }
.btn-soft:active, .btn-soft:focus-visible { background: var(--brand-soft); color: var(--brand-dark); border-color: var(--brand); }
/* Confirm = the main action of its popup (purple); WhatsApp and download = secondary; danger = red outline, solid only in a confirm box. */
.btn-ok { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-ok:hover:not(:disabled) { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-wa, .btn-yellow { background: #fff; border-color: #D0D5DD; color: #344054; font-weight: 500; }
.btn-wa:hover:not(:disabled), .btn-yellow:hover:not(:disabled) { background: #F9FAFB; border-color: #98A2B3; color: #101828; }
.btn-wa::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #25D366; margin-right: 6px; }
.btn-danger { background: #fff; color: #C0362C; border-color: #F4B4AA; }
.btn-danger:hover:not(:disabled) { background: #FEF3F2; color: #A12A21; border-color: #E8907F; }
.modal .actions .btn-danger { background: #C0362C; color: #fff; border-color: #C0362C; }
.modal .actions .btn-danger:hover:not(:disabled) { background: #A12A21; border-color: #A12A21; }
.cal-nav button { min-width: 40px; background: #fff; color: #344054; border-color: #D0D5DD; }
@media (hover: hover) { .cal-nav button:hover:not(:disabled) { background: #fff; color: var(--brand-dark); border-color: var(--brand); } }
.cal-nav button:active { background: var(--brand-soft); color: var(--brand-dark); }

/* Header search over the whole system: sections (Go to · Clients · Help), icon + title + where. */
.hsearch-res { position: absolute; top: 48px; left: 0; right: 0; background: #fff; border-radius: 8px; box-shadow: 0 8px 24px rgba(27, 44, 63, .16); padding: 6px; z-index: 35; max-height: min(70vh, 520px); overflow: auto; }
.hs-sec { padding: 8px 10px 2px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.hsearch-res a { display: flex; padding: 8px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; flex-direction: row; align-items: center; gap: 10px; }
.hsearch-res a .grow { display: flex; flex-direction: column; min-width: 0; }
.hsearch-res a b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hsearch-res a small { color: var(--muted); font-size: 12px; }
.hsearch-res a.on { background: var(--brand-soft); }
.hs-ico { width: 28px; height: 28px; flex: none; border-radius: 7px; background: #F2F4F7; color: #475467; display: grid; place-items: center; }
.hs-ico .i { width: 15px; height: 15px; }

/* Look A: title bars are on the light page, so their tags and buttons are dark-on-light (they were white for the old band). */
.band-tools .pill { text-decoration: none; font-weight: 500; background: #F2F4F7; color: #344054; border: 1px solid #E4E7EC; }
.band-tools a.pill:hover { background: #EAECF0; }
.band-tools .pill.warn { background: #FEF3F2; color: #B42318; border-color: #FECDCA; }
.band-tools .pill.confirmed { background: var(--ok-soft); color: #0E7A5C; border-color: transparent; }
.band-tools .pill.cancelled { background: #FEF3F2; color: #B42318; border-color: transparent; }
@media (hover: hover) { .band-tools button:not(.btn-primary):hover:not(:disabled), .band-tools .btn:not(.btn-primary):hover { background: #F9FAFB; border-color: var(--brand); color: var(--brand-dark); } }
.band-tools .seg button { background: transparent; border-color: transparent; color: #344054; }
/* Client folder like Help: the sections on the left, the chosen one on the right (the number cards above stay). */
.folder-layout { margin-top: 4px; }
.folder-layout .faq-main > section > .card:first-child, .folder-layout .faq-main > section > .info-line:first-child { margin-top: 0; }
.faq-ico.line { color: var(--brand); }
.faq-ico.line .i { width: 17px; height: 17px; }
.faq-nav a.on .faq-ico.line { background: var(--brand); color: #fff; }
/* Folder overview: both column titles the same height (the ⓘ no longer pushes one down), on the line of "FOLDER". */
.folder-layout .folder-cols h2 { display: flex; align-items: center; gap: 6px; height: 28px; line-height: 28px; margin: 14px 0 12px; font-size: 16px; }
.folder-layout .folder-cols h2 .info-btn { min-height: 0; height: 22px; padding: 0 4px; line-height: 1; }

/* ===== One colour per status, everywhere (pills, calendar blocks, client folder) =====
   Booked = blue · Confirmed = green · Arrived = purple · Done = grey · No-show / failed = red · Due (follow-up) = teal,
   due within 2 weeks = amber. Dark text on a light tint (readable, AA). */
.pill.booked { background: #EFF8FF; color: #175CD3; }
.pill.confirmed, .pill.taken, .pill.yes { background: #ECFDF3; color: #067647; }
.pill.arrived { background: #F1EBFC; color: #5B34B8; }
.pill.done { background: #F2F4F7; color: #475467; }
.pill.no_show, .pill.failed, .pill.cancelled, .pill.no, .pill.expired { background: #FEF3F2; color: #B42318; }
.pill.open, .pill.maybe, .pill.late, .pill.filled { background: #FFFAEB; color: #B54708; }

.appt.booked { background: #EFF8FF; border-color: #2E90FA; }
.appt.confirmed { background: #ECFDF3; border-color: #17B26A; }
.appt.arrived { background: #F1EBFC; border-color: #7C4DDB; }
.appt.no_show { background: #FEF3F2; border-color: #F04438; }
.folder-due-col .due-item { margin: 0; padding: 12px 14px; border: 0; border-left: 4px solid var(--info); gap: 4px; border-left-color: #14A39A; }

.folder-due-col .due-item.due { border-left-color: #14A39A; }
.folder-due-col .due-item.open { border-left-color: #F79009; }
.folder-due-col .due-item.no_show { border-left-color: #F04438; }
.h-note { font-size: 12.5px; font-weight: 400; }
.h-note::before { content: "· "; }
.due-item .due-date { display: inline; font-size: inherit; color: var(--ink); }
/* Due (next treatment) = pink, so it never reads as green "confirmed". A card already booked is greyed and says "Upcoming". */
.pill.due { background: #FDF2FA; color: #C11574; }
.folder-due-col .due-item, .folder-due-col .due-item.due { border-left-color: #EE46BC; }
.folder-due-col .due-item.booked { background: #F2F4F7; border-left-color: #2E90FA; position: relative; }
.due-up { position: absolute; top: 10px; right: 12px; font-size: 12px; font-weight: 600; color: #175CD3; background: #EFF8FF; border-radius: 800px; padding: 2px 8px; }
.folder-due-col .due-item.booked > b { padding-right: 76px; }
.folder-due-col .due-item[role=button] { cursor: pointer; transition: box-shadow .15s, transform .15s; }
@media (hover: hover) { .folder-due-col .due-item[role=button]:hover { box-shadow: 0 4px 14px rgba(16, 24, 40, .1); transform: translateY(-1px); } }
.folder-appt.flash { box-shadow: 0 0 0 3px var(--brand); transition: box-shadow .3s; }
/* "Early": booked sooner than its treatment's interval, on purpose (rule skipped). */
.early-note { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; background: #F9FAFB; border: 1px solid #E4E7EC; font-size: 13px; margin-bottom: 4px; }
.early-note.on { background: #FFFAEB; border-color: #FEDF89; color: #93370D; }
.early-tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 0 5px; border-radius: 4px; background: #FFFAEB; color: #B54708; border: 1px solid #FEDF89; vertical-align: 1px; }
.early-line { color: #93370D; background: #FFFAEB; border-radius: 6px; padding: 6px 10px; font-size: 13px; }

/* Money: day picker and filters in one bar (wraps on a phone). */
.money-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.money-bar input[type=date], .money-bar input[type=month] { width: auto; }
.money-bar select { width: auto; min-width: 120px; }

/* Client form: referral (how they found us, and who sent them). */
.ref-box { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px 14px; margin: 0; }
.ref-box legend { font-weight: 600; padding: 0 6px; }
.ref-pick .results { margin-top: 6px; }
.ref-list .btn { width: 100%; justify-content: space-between; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.pill.pill-btn { cursor: pointer; min-height: 0; border: 0; padding: 3px 9px; font-size: 12px; display: inline-block; }

/* "A new version of the app is ready · Reload": bottom-left, above everything, until tapped. */
.new-version { position: fixed; left: 16px; bottom: 16px; z-index: 120; display: flex; align-items: center; gap: 12px; background: var(--nav-bg); color: #fff;
  padding: 10px 12px 10px 16px; border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); max-width: calc(100vw - 32px); font-size: 13.6px; }

/* Clients: a treatment overdue with no appointment: 1–7 days orange, 8–15 red, more than 15 purple. */
.pill.late-1 { background: #FFF4E5; color: #B54708; }
.pill.late-2 { background: #FEE4E2; color: #B42318; }
.pill.late-3 { background: #53389E; color: #fff; }
/* Clients → Due: how many, in a circle on the button. */
.seg-count { min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 10px; background: #53389E; color: #fff; font-size: 12px; font-weight: 600; display: inline-grid; place-items: center; line-height: 1; }
.seg button.on .seg-count { background: #fff; color: #53389E; }
/* Setup → Money: the payment methods, ticked in one row. */
.pay-methods { display: flex; flex-wrap: wrap; gap: 4px 18px; }
/* Calendar blocks: the client's name is never cut ("MANSOUR a…"): it wraps onto a second line when the column is narrow;
   the service line gives way first (one line, cut). */
.appt b { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.appt { position: absolute; left: 4px; right: 4px; border-radius: 8px; padding: 4px 8px; font-size: 13px; overflow: hidden; z-index: 2; cursor: pointer; border-left: 4px solid; box-shadow: 0 1px 2px rgba(0,0,0,.08); line-height: 1.3; }
/* Signs on a block, as line icons: amber = check, grey = information, purple = waiting list, red = alert */
.appt-ic { display: inline-flex; vertical-align: -2px; }
.appt-ic .i { width: 14px; height: 14px; stroke-width: 2.2; }
.appt-ic.late { color: #DC6803; } .appt-ic.nowa { color: #98A2B3; } .appt-ic.earlier { color: var(--brand); } .appt-ic.alert { color: #D92D20; }
/* A thin border all round in the status colour (the left one stays thick) */
.appt { border: 1px solid; border-left-width: 4px; }
/* Keyboard focus: always visible (calendar blocks, cards, buttons). */
.appt:focus-visible, [role=button]:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.faq-ico.big.line .i { width: 22px; height: 22px; }
/* Phone and tablet calendar: the waiting list opens from a header button; no 60 px side tab eating the calendar. */
.wl-head { align-items: center; justify-content: space-between; padding: 8px 2px 0; display: none; }
@media (max-width: 991px) {
  .wl-head { display: inline-flex; gap: 6px; align-items: center; }
  .wl-head b { background: var(--brand); color: #fff; border-radius: 99px; padding: 0 6px; font-size: 12px; }
  .cal-layout .wl-tab { display: none !important; }
  .cal-layout.wl-open .wl-drawer { left: 0; width: auto; }
}
@media (max-width: 599px) {
  .cal-head .wl-head { margin-left: 0; }
  .cal-head .tog { white-space: nowrap; }
  .appt b { -webkit-line-clamp: 3; }
}
@media (max-width: 599px) { .cal-head .wl-head { padding: 0 10px; } .cal-head .wl-head .i { width: 17px; height: 17px; } }

/* Lists on a phone: each row becomes a card, one "label  value" line per column (no squeezed table, no sideways scroll).
   The first column (usually the name) is the card's title. Sorting stays in the header of the table on bigger screens. */
@media (max-width: 599px) {
  .ptable .ptable-body { overflow: visible; }
  .ptable .ptable-body table, .ptable .ptable-body tbody { display: block; width: 100%; }
  .ptable .ptable-body thead { display: none; }
  .ptable .ptable-body tr { display: block; margin: 0 0 10px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); }
  .ptable .ptable-body td { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 4px 0; border: 0; text-align: right; min-height: 0; }
  .ptable .ptable-body td::before { content: attr(data-label); flex: none; max-width: 45%; text-align: left; color: var(--muted); font-size: 12px; font-weight: 500; }
  .ptable .ptable-body td:first-child { display: block; text-align: left; font-size: 15px; font-weight: 600; padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
  .ptable .ptable-body td:first-child::before { display: none; }
  .ptable .ptable-body td[data-label=""]::before { display: none; }
  .ptable .ptable-body td:empty { display: none; }
}
.td-v { display: contents; }
@media (max-width: 599px) { .ptable .ptable-body .td-v { display: block; min-width: 0; } .ptable .ptable-body td:first-child .td-v { display: inline; } }

/* Dashboard: "Next up" + "Needs you" first, the charts below. */
.r-4-8 { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.r-5-3-4 { grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); }
@media (max-width: 1199px) { .r-5-3-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .r-5-3-4 > :first-child { grid-column: 1 / -1; } }
@media (max-width: 767px) { .r-4-8, .r-5-3-4 { grid-template-columns: 1fr; } .r-5-3-4 > :first-child { grid-column: auto; } }
.needs .card-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; align-items: start; }
.need { border: 1px solid var(--line-2); border-left: 4px solid #98A2B3; border-radius: 0 8px 8px 0; padding: 10px 12px; }
.need.bad { border-left-color: #F04438; } .need.warn { border-left-color: #F79009; } .need.info { border-left-color: var(--brand); }
.need h3 { margin: 0 0 6px; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.need h3 b { font-size: 12px; background: #F2F4F7; border-radius: 99px; padding: 0 7px; }
.need ul { list-style: none; margin: 0; padding: 0; }
.need li { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-top: 1px solid var(--line); }
.need li:first-child { border-top: 0; }
.need li > a:first-child { flex: 1; min-width: 0; display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.need li small { color: var(--muted); }

/* Client folder → Photos */
.ph-filter { flex-wrap: wrap; margin-bottom: 12px; }
.ph-filter small { opacity: .7; margin-left: 4px; }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.ph.hidden { display: none; }
.ph { position: relative; margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #F4F5F8; cursor: pointer; }
.ph img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.ph.broken img { visibility: hidden; }
.ph figcaption { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; font-size: 12px; background: #fff; }
.ph figcaption b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph figcaption > span { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.ph-pick { position: absolute; top: 4px; right: 4px; width: 36px; height: 36px; display: grid; place-items: center; background: rgba(255,255,255,.9); border-radius: 8px; cursor: pointer; }
.ph-pick input { width: 18px; height: 18px; margin: 0; accent-color: #7C4DDB; }
.ph:focus-within { outline: 2px solid #7C4DDB; outline-offset: 2px; }
.ph-drop { display: grid; place-items: center; min-height: 160px; border: 2px dashed var(--line); border-radius: 12px; cursor: pointer; color: var(--muted); padding: 10px; text-align: center; gap: 8px; }
.ph-drop img { max-width: 100%; max-height: 260px; border-radius: 8px; }
.ph-view { text-align: center; background: #111; border-radius: 10px; min-height: 120px; color: #fff; display: grid; place-items: center; }
.ph-view img { max-width: 100%; max-height: 70vh; display: block; }
.ph-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ph-cmp figure { margin: 0; }
.ph-cmp img { width: 100%; max-height: 60vh; object-fit: contain; background: #111; border-radius: 10px; display: block; }
.ph-cmp figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; text-align: center; }
.ph-slide { position: relative; background: #111; border-radius: 10px; overflow: hidden; }
.ph-slide > img, .ph-top img { width: 100%; max-height: 65vh; object-fit: contain; display: block; }
.ph-top { position: absolute; inset: 0; }
.ph-slide input[type=range] { position: absolute; left: 0; right: 0; bottom: 34px; width: 90%; margin: 0 5%; accent-color: #7C4DDB; }
.ph-tag { position: absolute; bottom: 8px; font-size: 12px; color: #fff; background: rgba(0,0,0,.55); padding: 2px 8px; border-radius: 6px; }
.ph-tag.l { left: 8px; } .ph-tag.r { right: 8px; }
@media (max-width: 599px) { .ph-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } .ph-cmp { grid-template-columns: 1fr; } }

/* Admin: a business as a folder; the home page's health link; the WhatsApp table folded away */
.biz-danger { border: 1px solid #FEE4E2; }

/* Admin home: three answers and "Today, do this" */
.adm-hello { align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.adm-hello h1 { margin: 0; font-size: 24px; }
.adm-answers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
@media (max-width: 1100px) { .adm-answers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .adm-answers { grid-template-columns: minmax(0, 1fr); } }
.adm-answer { display: flex; flex-direction: column; gap: 4px; min-height: 190px; padding: 20px 22px; margin: 0; color: var(--ink); text-decoration: none; transition: border-color .15s; border: 1px solid transparent; }
@media (hover: hover) { .adm-answer:hover { border-color: var(--brand); } }
.adm-answer:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.adm-q { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.adm-q .i { width: 18px; height: 18px; }
.adm-big { font-size: 36px; font-weight: 700; line-height: 1.15; margin-top: 6px; letter-spacing: -.02em; }
.adm-big small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.adm-big.ok { color: var(--ok); } .adm-big.bad { color: #B42318; }
.adm-say { align-self: flex-start; margin-top: auto; padding: 5px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; }
.adm-say.ok { background: var(--ok-soft); color: var(--ok); } .adm-say.warn { background: #FFF3DC; color: var(--warn); } .adm-say.bad { background: #FEE4E2; color: #B42318; }
.adm-today { padding: 18px 22px; }
.adm-today h2 { margin: 0 0 6px; font-size: 17px; }
.adm-today ul { list-style: none; margin: 0; padding: 0; }
.adm-do { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.adm-do:first-child { border-top: 0; }
.adm-do > a.grow { flex: 1; display: flex; flex-direction: column; min-width: 0; color: var(--ink); text-decoration: none; }
.adm-do > a.grow small { color: var(--muted); font-size: 13px; }
.adm-do-ico { flex: 0 0 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
.adm-do-ico .i { width: 18px; height: 18px; }
.adm-do.bad .adm-do-ico { background: #FEE4E2; color: #B42318; } .adm-do.warn .adm-do-ico { background: #FFF3DC; color: var(--warn); }
.adm-do.hidden { display: none; }
.adm-more { margin-top: 8px; }
.adm-clear { margin: 6px 0 0; color: var(--ok); font-weight: 600; }
@media (max-width: 599px) { .adm-big { font-size: 30px; } .adm-do { flex-wrap: wrap; } .adm-do > .btn { margin-left: 48px; } }
.lic-type { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.lic-type > b { font-size: 13px; font-weight: 600; }

/* Admin → Plans & prices: plan cards, licence rules, WhatsApp margin */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-bottom: 20px; }
.plan-card { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; margin: 0; }
.plan-card.off { opacity: .75; }
.plan-top { display: flex; align-items: center; gap: 8px; }
.plan-top h3 { margin: 0; font-size: 17px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.plan-price b { font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
.plan-price span { color: var(--muted); font-size: 14px; }
.plan-inc { list-style: none; margin: 10px 0 4px; padding: 10px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 14px; }
.plan-inc li { display: flex; align-items: center; gap: 8px; }
.plan-inc .i { width: 16px; height: 16px; color: var(--brand); }
.plan-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.plan-used { font-size: 13px; font-weight: 600; color: var(--brand); text-decoration: none; }
.plan-used.none { color: var(--muted); font-weight: 500; }
.plan-off { margin-bottom: 20px; }
.plan-off > summary { cursor: pointer; color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.plan-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; margin-bottom: 16px; }
@media (min-width: 1200px) { .plan-addons .rule-row { flex-wrap: wrap; } }
@media (max-width: 1199px) { .plan-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } .plan-rules .plan-addons { grid-column: 1 / -1; } }
.plan-rules .card { margin: 0; }
.plan-rules h3 { margin: 0 0 10px; font-size: 16px; }
.rule-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.rule-row:first-of-type { border-top: 0; }
.rule-row label { display: flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--muted); }
.rule-row input { width: 90px; }
.plan-margin { margin: 10px 0 0; padding: 8px 12px; border-radius: 8px; background: var(--ok-soft); color: var(--ok); font-size: 14px; }
.plan-margin.bad { background: #FEE4E2; color: #B42318; }
.plan-save { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.plan-sum { margin: 14px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--brand-soft); font-size: 14px; }
@media (max-width: 799px) { .plan-rules { grid-template-columns: minmax(0, 1fr); } .rule-row { flex-wrap: wrap; } }
.plan-intro { margin: 0 0 16px; }
.plan-add { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 220px; border: 2px dashed #D0D5DD; border-radius: 12px; background: transparent; color: var(--muted); font-size: 15px; font-weight: 600; cursor: pointer; }
.plan-add span { font-size: 34px; line-height: 1; font-weight: 400; }
@media (hover: hover) { .plan-add:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); } }
.plan-add:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
#view .plan-grid > .card { margin: 0; }
/* Plans & prices: recommended plan, order, cost / profit per plan, the month's profit and "what if" */
.plan-card.featured { border: 2px solid var(--brand); }
.plan-badge { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #fff; background: var(--brand); padding: 3px 8px; border-radius: 99px; }
.plan-move { display: inline-flex; gap: 2px; }
.plan-move button { margin: 0; min-height: 0; width: 28px; height: 28px; padding: 0; border-radius: 6px; font-size: 16px; line-height: 1; }
.plan-move button:disabled { opacity: .3; }
.plan-calc { margin: 4px 0 2px; padding: 10px 12px; border-radius: 8px; background: #F8F9FB; font-size: 13px; display: grid; gap: 4px; }
.plan-calc > div { display: flex; justify-content: space-between; gap: 8px; }
.plan-calc span { color: var(--muted); }
.plan-calc .tot { border-top: 1px solid var(--line); padding-top: 5px; margin-top: 2px; }
.plan-calc .tot span { color: var(--ink); font-weight: 600; } .plan-calc .tot b { color: var(--ok); font-size: 15px; }
.plan-keep { margin-top: 14px; padding: 12px 14px; border-radius: 8px; background: #FFF3DC; display: grid; gap: 8px; }
.plan-sum { line-height: 1.6; }
.plan-dirty { font-size: 13px; font-weight: 600; color: var(--warn); }
.plan-idle { opacity: .55; }
.lic-next { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; background: var(--brand-soft); font-size: 14px; }
.lic-next .i { width: 18px; height: 18px; color: var(--brand); flex: 0 0 auto; }
.lic-over { margin: 8px 0 0; color: var(--warn); font-size: 13px; font-weight: 600; } .lic-over:empty { display: none; }
/* Admin → Businesses: one status per business, contact buttons on the row */
.biz-filters { flex-wrap: wrap; }
.biz-filters button.demo { color: var(--muted); }
.biz-owner { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.biz-acts { display: inline-flex; gap: 4px; flex: 0 0 auto; }
.biz-act { min-height: 0; width: 32px; height: 32px; padding: 0; display: inline-grid; place-items: center; }
.biz-act .i { width: 16px; height: 16px; }
.biz-idle { color: var(--warn); font-weight: 600; }
/* Admin → New business: 3 steps, then the invite */
.nb-steps { list-style: none; display: flex; gap: 8px; margin: 0 0 16px; padding: 0; counter-reset: nb; }
.nb-steps li { flex: 1; counter-increment: nb; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: #F4F5F8; color: var(--muted); font-size: 13px; font-weight: 600; }
.nb-steps li::before { content: counter(nb); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-size: 12px; flex: 0 0 auto; }
.nb-steps li.on { background: var(--brand-soft); color: var(--brand); } .nb-steps li.on::before { background: var(--brand); color: #fff; }
.nb-steps li.done { color: var(--ok); } .nb-steps li.done::before { content: '✓'; background: var(--ok-soft); color: var(--ok); }
.nb-sum { margin: 14px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--brand-soft); font-size: 14px; }
.nb-invite { margin: 0; padding: 12px 14px; border-radius: 8px; background: #F4F5F8; font: 13px/1.6 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-word; }
@media (max-width: 599px) { .nb-steps li { font-size: 0; justify-content: center; } .nb-steps li::before { font-size: 12px; } }
.pay-void > .grow > b, .pay-void > .grow > small:not(.pay-why) { text-decoration: line-through; opacity: .6; }
.pay-why { display: block; margin-top: 2px; }
/* Admin → a business: the overview's headline, its use, the licence in three parts */
.biz-sum { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 0; padding: 0; overflow: hidden; margin-bottom: 20px; border-left: 4px solid var(--ok); }
.biz-sum.collect { border-left-color: #F04438; } .biz-sum.trial { border-left-color: #F79009; } .biz-sum.closing, .biz-sum.suspended { border-left-color: #475467; } .biz-sum.demo, .biz-sum.free { border-left-color: var(--brand); }
.biz-sum-main, .biz-sum-owner { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 18px 22px; }
.biz-sum-owner { background: #F8F9FB; border-left: 1px solid var(--line); }
.biz-sum-main .btn-primary { margin-top: 10px; }
.biz-k { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.biz-big { font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.biz-sum.collect .biz-big { color: #B42318; }
.biz-sum-owner .biz-acts { margin-top: 8px; }
.biz-h { margin: 0 0 10px; font-size: 15px; }
.biz-use .adm-tile b { display: flex; align-items: baseline; gap: 4px; }
.biz-use .adm-tile b .muted { font-size: 15px; font-weight: 500; }
.biz-use .lic-bar { margin: 2px 0; }
.biz-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; align-items: start; }
.biz-two .card { margin: 0; } .biz-two h3 { margin: 0 0 8px; font-size: 15px; }
.lic-parts { display: grid; gap: 16px; }
.lic-parts > .card { margin: 0; }
/* Plan & licence and This month side by side, the same height; Payments (and anything else) full width under them. */
@media (min-width: 992px) {
  .lic-parts { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .lic-parts > :not(.lic-part), .lic-parts > .lic-part:nth-child(n+3) { grid-column: 1 / -1; }
}
.lic-part-h { display: flex; align-items: center; gap: 12px; margin: -2px 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.lic-part-h h3 { margin: 0; font-size: 16px; }
.lic-num { flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 14px; }
.log-sent { display: block; max-width: 320px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 799px) { .biz-sum, .biz-two { grid-template-columns: minmax(0, 1fr); } .biz-sum-owner { border-left: 0; border-top: 1px solid var(--line); } }
.lic-part-h > .grow { flex: 1; min-width: 0; }
.appt-alert-line { margin: 6px 0; }
/* Profile → Edit my details: the picture */
.me-pic { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.me-av { width: 72px; height: 72px; flex: 0 0 72px; font-size: 22px; }
.avatar img, .me-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.avatar { overflow: hidden; }
/* New appointment: the client list (opens on click) */
.res-head { margin: 0; padding: 6px 12px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.res-more { margin: 0; padding: 8px 12px; font-size: 13px; color: var(--muted); }
/* The client list: a drop-down over the rest of the form (not pushing it down) */
#clientBox { position: relative; }
#clientBox > .results { position: absolute; left: 0; right: 0; z-index: 30; margin-top: 4px; max-height: 340px; overflow-y: auto; background: #fff;
  border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 12px 28px rgba(16, 24, 40, .14); }
/* Free times: at most 4 lines in view, the rest scroll inside without a scrollbar */
#times.time-grid { max-height: none; scrollbar-width: none; overscroll-behavior: contain; }
#times.time-grid::-webkit-scrollbar { display: none; }
#times.time-grid.rows-more { -webkit-mask-image: linear-gradient(#000 85%, transparent); mask-image: linear-gradient(#000 85%, transparent); }
/* The employee buttons (New appointment, Book, Change date): small corners; colours like the day buttons (grey border, purple when chosen) */
#cols { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.with-label { font-weight: 600; margin-right: 2px; }
.with-others { flex-basis: 100%; }
.emp-btn { margin: 0; min-height: 40px; padding: 6px 14px; border-radius: 6px; }
.emp-btn.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Studio add-on (only on Studio pages: st-* classes) ---------- */
.st-class { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; width: 100%; padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--line); border-left: 4px solid var(--brand); background: var(--brand-soft); color: var(--ink); cursor: pointer; font: inherit; }
.st-class b { font-size: 14px; overflow-wrap: anywhere; }
.st-class small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.st-class.c-violet { border-left-color: #7c3aed; } .st-class.c-teal { border-left-color: #0d9488; } .st-class.c-orange { border-left-color: #ea580c; }
.st-class.c-pink { border-left-color: #db2777; } .st-class.c-blue { border-left-color: #2563eb; }
.st-class.past { opacity: .65; }
.st-class.off { opacity: .55; text-decoration: line-through; }
.st-time { font-size: 12px; font-weight: 600; color: var(--brand-dark); }
.st-count { font-size: 12px; font-weight: 600; color: var(--ok); }
.st-count.full { color: var(--bad); }
.st-h { margin: 10px 0 4px; font-size: 15px; }
.st-person { flex-wrap: wrap; gap: 6px; }
.st-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 10px; font-size: 12px; background: var(--warn-soft); color: var(--ink); }
.st-tag.waiting { background: var(--info-soft); } .st-tag.came { background: var(--ok-soft); } .st-tag.no_show { background: var(--bad-soft); }
.st-addp { position: relative; border-top: 1px solid var(--line); padding-top: 6px; }
.st-foot { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.st-skipped { margin: 0; padding-left: 18px; }
.lic-addons { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 6px; }
/* An add-on's button says its state: green when on, red when off (Licence & payments). */
.lic-addons .set-row > .grow { flex: 1; min-width: 0; } .lic-addons .addon-btn { flex: none; margin-left: auto; }
.addon-btn.is-on { background: var(--ok); border-color: var(--ok); color: #fff; }
.addon-btn.is-on:hover:not(:disabled) { background: #0F7458; border-color: #0F7458; }
.addon-btn.is-off { background: var(--bad); border-color: var(--bad); color: #fff; }
.addon-btn.is-off:hover:not(:disabled) { background: #AD3422; border-color: #AD3422; }
.studio-box { margin-top: 12px; padding: 10px 12px; border: 1px dashed var(--brand); border-radius: 8px; background: var(--brand-soft); }
.studio-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; background: var(--brand-soft); color: var(--brand-dark); }
.sched-box { margin-top: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.sched-row { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr auto; gap: 8px; margin-top: 8px; align-items: center; }
@media (max-width: 575px) { .sched-row { grid-template-columns: 1fr 1fr; } }
.appt.class-block { background: var(--brand-soft); border-left: 4px solid var(--brand); color: var(--ink); }
.class-tag { display: inline-block; padding: 0 6px; border-radius: 8px; font-size: 11px; background: var(--brand); color: #fff; margin-left: 4px; }
.st-row > .grow { flex: 1 1 0; min-width: 0; }
.st-row > select, .st-row > .st-num { flex: 0 0 210px; width: 210px; margin-left: auto; }
.st-row > .switch { margin-left: auto; }
.st-num { display: flex; align-items: center; gap: 8px; } .st-num input { width: 90px; flex: 0 0 90px; } .st-num small { white-space: nowrap; }
@media (max-width: 575px) { .st-row { flex-wrap: wrap; } .st-row > select, .st-row > .st-num { flex: 1 1 100%; width: 100%; } }
.st-pass { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 10px; font-size: 12px; background: var(--ok-soft); color: var(--ink); }
.st-pass.low { background: var(--warn-soft); } .st-pass.none { background: var(--bad-soft); }
.pass-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
#passBox > .card + .card { margin-top: 16px; }
.pass-card.closed, .pass-card.voided, .pass-card.expired { opacity: .7; }
.pass-card.voided .pass-big { text-decoration: line-through; }
.pass-big { font-size: 15px; margin: 6px 0 4px; } .pass-big b { font-size: 20px; }
.pass-warn { margin: 2px 0; color: var(--warn); font-weight: 600; font-size: 13px; }
.pass-acts { margin-top: 8px; gap: 6px; flex-wrap: wrap; }
.pass-log { margin-top: 6px; font-size: 13px; } .pass-log ul { margin: 6px 0 0; padding-left: 18px; }
.st-came { margin-left: auto; font-weight: 600; }
.st-done { background: var(--ok-soft); color: var(--ink); font-weight: 600; }
/* A class closed with Done looks like a done appointment (grey) and is locked */
.appt.class-block.done { background: #EEF2F6; border-left-color: #98A2B3; color: #475467; }
.class-filter { width: auto; min-width: 170px; }

/* Calendar toolbar: every control the same height, font and corners, on every screen (phone, tablet, computer). */
.cal-card > .cal-head { align-items: center; }
.cal-card > .cal-head :is(button, .tog) { height: 36px; min-height: 36px; padding: 0 12px; font-size: 13px; line-height: 1; border-radius: 6px;
  align-items: center; justify-content: center; box-sizing: border-box; }
.cal-card > .cal-head :is(button, .tog):not(.wl-head) { display: inline-flex; } /* the waiting-list button keeps its own show / hide */
.cal-card > .cal-head .cal-nav button { width: 40px; min-width: 40px; padding: 0; font-size: 18px; }
.cal-card > .cal-head .cal-nav button:first-child { border-radius: 6px 0 0 6px; }
.cal-card > .cal-head .cal-nav button:last-child { border-radius: 0 6px 6px 0; margin-left: -1px; }
.cal-card > .cal-head .cal-full-btn { width: 36px; min-width: 36px; padding: 0 !important; }
.cal-card > .cal-head .cal-right { align-items: center; gap: 6px; }
.cal-card > .cal-head .cal-togs { gap: 6px; margin-right: 0; }
.cal-card > .cal-head .wl-head { padding: 0 10px; gap: 6px; }
/* Phone and tablet: the second row shares the whole width (nothing goes past the edge). */
@media (max-width: 991px) {
  .cal-card > .cal-head .cal-right { flex: 1 1 100%; flex-wrap: nowrap; min-width: 0; }
  .cal-card > .cal-head .cal-togs { flex: 1 1 auto; min-width: 0; }
  .cal-card > .cal-head .tog { flex: 1 1 0; min-width: 0; padding: 0 4px; font-size: 12px; white-space: nowrap; }
  .cal-card > .cal-head #add { flex: 0 0 auto; padding: 0 10px; }
  .cal-card > .cal-head .wl-head { flex: 0 0 auto; padding: 0 6px; gap: 4px; }
}

/* Studio class popup: like the appointment popup; students in even rows (initials · name · payment · action). */
.cls-fill { display: flex; align-items: center; gap: 10px; }
.cls-fill .lic-bar { flex: 1; max-width: 260px; }
.cls-sec h3 { margin: 4px 0 2px; font-size: 14px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.cls-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cls-row:last-of-type { border-bottom: 0; }
.cls-av { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand-dark); font-size: 13px; font-weight: 700; }
.cls-who { display: flex; flex-direction: column; min-width: 0; }
.cls-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.cls-pay .pill { white-space: nowrap; }
.cls-acts { display: inline-flex; gap: 6px; justify-content: flex-end; align-items: center; }
.cls-came { font-weight: 600; margin: 0; }
.cls-empty { margin: 6px 0; }
.cls-add { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.cls-add > b, .cls-add > small { grid-column: 1 / -1; }
.cls-add > small { margin-top: -6px; }
.cls-addrow { position: relative; min-width: 0; z-index: 3; }
.cls-addrow .results { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 10; }
.cls-addrow > input { width: 100%; }
.cls-addrow #newc { margin-top: 10px; }
.cls-add #addP { min-height: var(--ctl); }
/* Phone: the payment pill goes under the name, the action stays on the right; Add someone stacks. */
@media (max-width: 599px) {
  .cls-row { grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: "av who acts" "av pay acts"; row-gap: 4px; }
  .cls-row .cls-av { grid-area: av; } .cls-row .cls-who { grid-area: who; } .cls-row .cls-pay { grid-area: pay; } .cls-row .cls-acts { grid-area: acts; }
  .cls-add { grid-template-columns: 1fr; }
  .cls-add #addP { width: 100%; }
}
/* New appointment / waiting-list popup: the full height of the screen, same width; its content scrolls inside. */
.modal-bg.appt-modal { padding-top: 0; padding-bottom: 0; align-items: stretch; }
.modal-bg.appt-modal .modal { height: 100%; height: 100dvh; max-height: none; border-radius: 0; }
/* Studio class popup on a phone: full screen, the ✕ hidden, a red Close button at the bottom. */
@media (max-width: 599px) {
  .modal-bg.cls-modal { padding: 0; align-items: stretch; }
  .modal-bg.cls-modal .modal { width: 100%; max-height: none; height: 100%; height: 100dvh; border-radius: 0; display: flex; flex-direction: column; }
  .modal-bg.cls-modal .modal > .stack { flex: 1; }
  .modal-bg.cls-modal .modal-x { display: none; }
  .modal-bg.cls-modal .actions [data-close] { background: #C0362C; color: #fff; border-color: #C0362C; font-weight: 600; }
}
.acct-void { text-decoration: line-through; color: var(--muted); }
.acct-plus { color: #067647; } .acct-minus { color: #C0362C; }
.acct-bar { display: block; width: 100%; max-width: 100%; height: 6px; border-radius: 3px; background: #F1EBFC; margin-bottom: 4px; overflow: hidden; }
.acct-bar i { display: block; height: 100%; border-radius: 3px; background: #7C4DDB; } .acct-bar.out i { background: #E8907F; }
.acct-acts { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
/* Money tabs (Accounting add-on): Day · Month · Who owes */
.money-tabrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.money-tabs .badge { position: static; margin-left: 4px; background: #C0362C; color: #fff; border-radius: 9px; padding: 0 6px; font-size: 11px; line-height: 17px; display: inline-block; }
.money-tabrow .grow { flex: 1; }
.acct-share { margin: 0; white-space: nowrap; font-size: 14px; }
.acct-visits { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); padding-left: 2px; }
/* Accounting → Month: last 6 months as rows (two thin bars each), the breakdown's choices, the packs line */
.acct-months { display: grid; gap: 2px; }
.acct-month { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; text-align: left; font: inherit; min-height: 0; }
.acct-month:hover { background: #F7F7FA; } .acct-month.on { background: #F6F2FF; }
.acct-month-name { font-weight: 600; white-space: nowrap; } .acct-month-bars { display: grid; gap: 4px; }
.acct-legend { display: flex; gap: 8px; align-items: center; margin-top: 8px; } .acct-legend i { width: 14px; height: 6px; border-radius: 3px; background: #7C4DDB; } .acct-legend i.out { background: #E8907F; }
.acct-bd { flex-wrap: wrap; margin-bottom: 14px; }
.notice.acct-prepaid { margin: 0 0 18px; }
.modal:focus { outline: none; }
.late-line { background: #FEF6E7; color: #7A4D0B; }
/* Backups page: is everything safe? (2026-11-12) */
.bk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 20px; margin-top: 12px; }
.bk-stat { display: flex; align-items: flex-start; gap: 10px; }
.bk-stat .dot { margin-top: 4px; }
.bk-stat div { display: grid; gap: 2px; min-width: 0; }
.bk-stat b { font-size: 14px; }
.bk-key { margin-top: 12px; }
.bk-alert { margin-top: 12px; }
.bk-key + .bk-layout { margin-top: 12px; }
.bk-tabs { margin: 16px 0 12px; }
.bk-btns { display: inline-flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.bk-right .bk-tabs { margin: 0; }
.bk-right .bk-how, .bk-right .info-line { margin: 0; }
.bk-left .bk-tabs { margin: 0; }
.bk-right .ptable-title { flex-wrap: wrap; }
.bk-right .ptable td:last-child, .bk-right .ptable th:last-child { text-align: right; }
.lic-due { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; background: var(--warn-soft); border-left: 4px solid var(--warn); font-size: 14px; }
.acct-void-sw { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.acct-void-sw input { width: 16px; height: 16px; min-height: 0; margin: 0; }
/* Owner → Plan & billing */
.bill-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.bill-grid .card { margin: 0; }
.bill-head { display: flex; align-items: center; gap: 10px; }
.bill-head b { font-size: 18px; }
.bill-say { margin: 12px 0; font-size: 14px; }
.bill-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.bill-price b { font-size: 28px; } .bill-price span { color: var(--muted); }
.bill-use h3 { margin: 0 0 8px; font-size: 16px; }
.bill-docs .card-head { margin-bottom: 8px; }
@media (max-width: 899px) { .bill-grid { grid-template-columns: minmax(0, 1fr); } }
.coll-note { margin: 8px 2px 20px; font-size: 13px; }
#invhist .ptable-title { flex-wrap: wrap; row-gap: 8px; }
.coll-open { margin: 0 0 14px; }
@media (max-width: 599px) { .topbar .seg button { white-space: nowrap; padding: 6px 9px; font-size: 13px; } }
.coll-sum { margin-top: 22px; }
/* Summary: the collection tiles say so under their icon; the note on the figures at the bottom. */
.coll-sum .tile-top .ico { position: relative; margin-bottom: 14px; }
.coll-sum .tile-top .ico::after { content: 'collection'; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 3px;
  font-size: 9px; font-weight: 600; letter-spacing: .02em; color: var(--muted); white-space: nowrap; }
.sum-note { margin: 18px 2px 0; font-size: 13px; }
.setup-layout .faq-nav h3:not(:first-child) { margin-top: 16px; }
/* A side menu of topics on a computer (Settings, Help) looks like the main menu, in the light colors:
   small faded group names, plain line icons (no tiles), compact rows; the open one tinted. */
@media (min-width: 992px) {
  .faq-nav { padding: 12px; }
  .faq-nav h3 { margin: 0; padding: 10px 12px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .065rem; color: var(--brand); opacity: .7; }
  .setup-layout .faq-nav h3:not(:first-child) { margin-top: 6px; }
  .faq-nav a { margin: 1px 0; padding: 8px 12px; border-radius: var(--radius); font-size: 13px; font-weight: 500; color: var(--ink); }
  .faq-nav a .faq-ico.line, .faq-nav a.on .faq-ico.line { width: auto; height: auto; background: none; border-radius: 0; color: var(--brand); }
  .faq-nav a .faq-ico.line .i { width: 18.4px; height: 18.4px; }
  .faq-nav a:hover { background: var(--brand-soft); color: var(--brand-dark); }
  .faq-nav a.on { background: var(--brand); color: #fff; font-weight: 600; box-shadow: 0 4px 10px rgba(124, 77, 219, .3); }
  .faq-nav a.on .faq-ico.line { color: #fff; }
}
/* Studio → Memberships & packs → Rules: one card, three short parts. */
.st-rules h3 { margin: 16px 0 2px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.st-rules h2 + h3 { margin-top: 4px; }
/* A side menu of links (Settings, a client's folder) is a drop-down on a phone (ui.js navDropdown), like Velvet's Select2:
   a white box with an arrow; its panel opens under it, never over the whole page. */
.nav-dd { display: none; position: relative; }
.nav-dd-btn { display: flex; align-items: center; gap: 8px; width: 100%; min-height: var(--ctl); padding: 0 10px 0 8px; background: var(--card);
  border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--ink); font-size: var(--fs); text-align: left; cursor: pointer; }
.nav-dd-btn[aria-expanded="true"] { border-color: var(--brand); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.nav-dd-cur { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; font-weight: 600; }
.nav-dd-cur .grow, .nav-dd li .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-dd-arrow { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--muted); transition: transform .15s; }
.nav-dd-btn[aria-expanded="true"] .nav-dd-arrow { transform: rotate(180deg); }
.nav-dd .faq-ico { width: 24px; height: 24px; flex: none; }
.nav-dd .faq-ico svg { width: 14px; height: 14px; }
.nav-dd b { min-width: 22px; padding: 1px 7px; border-radius: 800px; background: var(--bg); font-size: 11px; text-align: center; }
.nav-dd-panel { position: absolute; z-index: 40; left: 0; right: 0; top: 100%; margin-top: -1px; background: var(--card);
  border: 1px solid var(--brand); border-top-color: var(--line-2); border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 6px 16px rgba(27, 44, 63, .12); padding: 6px; }
.nav-dd.up .nav-dd-btn[aria-expanded="true"] { border-radius: 0 0 var(--radius) var(--radius); }
.nav-dd.up .nav-dd-panel { top: auto; bottom: 100%; margin: 0 0 -1px; border-top-color: var(--brand); border-bottom-color: var(--line-2); border-radius: var(--radius) var(--radius) 0 0; box-shadow: 0 -6px 16px rgba(27, 44, 63, .12); }
.nav-dd-q { width: 100%; min-height: 32px; margin-bottom: 4px; padding: 4px 8px; border: 1px solid var(--line-2); border-radius: var(--radius); font-size: var(--fs); }
.nav-dd ul { list-style: none; margin: 0; padding: 0; max-height: min(320px, 50vh); overflow-y: auto; }
.nav-dd li[role="option"] { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 4px; font-size: var(--fs); cursor: pointer; }
.nav-dd li[role="option"].on { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.nav-dd li[role="option"].hi, .nav-dd li[role="option"]:hover { background: var(--brand); color: #fff; }
.nav-dd li[role="option"].hi .faq-ico, .nav-dd li[role="option"]:hover .faq-ico { background: rgba(255, 255, 255, .2); color: #fff; }
.nav-dd li[role="option"].hi b, .nav-dd li[role="option"]:hover b { background: rgba(255, 255, 255, .25); color: #fff; }
.nav-dd-group { padding: 8px 8px 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.nav-dd-none { margin: 6px 8px; color: var(--muted); font-size: var(--fs); }
@media (max-width: 991px) {
  .nav-dd { display: block; }
  .faq-side:has(.nav-dd) .faq-nav { display: none; }
}
@media (max-width: 599px) { .team-filters { max-width: 100%; overflow-x: auto; } .team-filters button { white-space: nowrap; } }

/* A multiple select like Velvet's Select2 (multiple): chips and the search in one box, the list under it (ui.js multiSelect). */
.ms { position: relative; }
.ms-box { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: var(--ctl); padding: 3px 6px; background: var(--card);
  border: 1px solid var(--line-2); border-radius: var(--radius); cursor: text; }
.ms-box[aria-expanded="true"] { border-color: var(--brand); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.ms.up .ms-box[aria-expanded="true"] { border-radius: 0 0 var(--radius) var(--radius); }
.ms-chips { display: contents; }
.ms-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 2px 8px 2px 4px; border-radius: 4px; background: var(--brand);
  color: #fff; font-size: 13px; line-height: 20px; }
.ms-chip button { width: 18px; height: 18px; padding: 0; border: 0; border-right: 1px solid rgba(255, 255, 255, .35); border-radius: 0; background: none;
  color: #fff; font-size: 15px; line-height: 1; cursor: pointer; min-height: 0; }
.ms-chip button:hover { color: #ffd6d6; }
.ms-q { flex: 1; min-width: 90px; min-height: 26px; padding: 2px 4px; border: 0 !important; outline: none; box-shadow: none !important; background: none; font-size: var(--fs); }
.ms.full .ms-q { min-width: 20px; }
.ms-panel { position: fixed; z-index: 1000; padding: 4px; background: var(--card);
  border: 1px solid var(--brand); border-top-color: var(--line-2); border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 6px 16px rgba(27, 44, 63, .12); }
.ms.up .ms-panel { border-top-color: var(--brand); border-bottom-color: var(--line-2); border-radius: var(--radius) var(--radius) 0 0; }
.ms ul { list-style: none; margin: 0; padding: 0; max-height: min(260px, 45vh); overflow-y: auto; }
.ms li[role="option"] { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 4px; font-size: var(--fs); cursor: pointer; }
.ms li[role="option"] small { color: var(--muted); }
.ms li[role="option"].on { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.ms li[role="option"].hi, .ms li[role="option"]:hover { background: var(--brand); color: #fff; }
.ms li[role="option"].hi small, .ms li[role="option"]:hover small { color: rgba(255, 255, 255, .8); }
.ms-none { margin: 6px 8px; color: var(--muted); font-size: var(--fs); }

/* PWA (js/offline.js): the bar when the connection drops, and the offline screen with the saved calendar. */
.offline-bar { position: sticky; top: 0; z-index: 70; padding: 8px 16px; background: #B42318; color: #fff; font-size: 14px; text-align: center; }
.offline-bar a { color: #fff; font-weight: 600; text-decoration: underline; margin-left: 6px; }
.offline-page { max-width: 760px; margin: 0 auto; padding: 24px 16px; display: flex; flex-direction: column; gap: 16px; }
.off-head { display: flex; align-items: center; gap: 14px; }
.off-head h1 { margin: 0; font-size: 20px; }
.off-head p { margin: 2px 0 0; }
.off-note { margin: 0; font-size: 13px; }
.off-day h2 { margin: 0 0 8px; font-size: 16px; }
.off-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.off-row .grow { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.off-day h2 + .off-row { border-top: 0; }
.off-time { display: flex; flex-direction: column; min-width: 48px; font-size: 14px; }
.off-time small { color: var(--muted); font-weight: 400; }
@media (max-width: 599px) { .off-head { flex-wrap: wrap; } .off-head .btn-primary { width: 100%; } }

/* Install the app (js/offline.js install): on the login page, and the steps for Safari / Firefox. */
.login-install { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 14px; padding: 9px 12px;
  border: 1px dashed var(--brand); border-radius: var(--radius); background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; cursor: pointer; }
.login-install .i { width: 18px; height: 18px; }
.login-install small { font-weight: 400; opacity: .8; }
.login-install:hover { background: var(--brand); color: #fff; }
.install-steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; }

/* The company behind the service, under the sign-in (Meta's business verification looks for it). */
.login-legal { margin: 12px 0 0; font-size: 11px; line-height: 1.6; text-align: center; color: var(--muted); }
.login-legal a { color: inherit; }

/* Waiting bar (calendar): the classes' waiting lists (Studio), after the appointments. */
.wl-svc.wl-class { background: var(--bg); color: var(--ink, #1F2937); border: 1px solid var(--line-2); }
.wl-svc.wl-class b { background: var(--brand); color: #fff; }
.wl-head { margin: 10px 2px 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* WhatsApp add-on off (body.no-wa, app.js): nothing about WhatsApp shows (consent ticks, "No WhatsApp" marks, WhatsApp buttons). */
.no-wa .wa-only, .no-wa .btn-wa, .no-wa [title^="No WhatsApp"], .no-wa label.check:has(input[name="wa"]), .no-wa label.check:has(input[name="cwa"]),
.no-wa label.check:has(input[name="waNow"]) { display: none !important; }
.ts-text { margin: 8px 0 10px; padding: 10px 12px; border-radius: var(--radius); background: var(--bg); white-space: pre-line; font-size: 13.5px; }
/* Settings → WhatsApp: the choice on top; when Off, the settings below stay visible but greyed and inactive. */
.wa-type button { min-width: 110px; }
.wa-type button:disabled { opacity: .5; cursor: not-allowed; }
.wa-greyed { opacity: .45; filter: grayscale(1); pointer-events: none; user-select: none; }
