/* Soul Spa & Beauty — Bookings.
   Custom component styles that layer on top of the site's Tailwind config
   (palette + fonts are also declared inline in each HTML head). These cover the
   widgets Tailwind utilities don't express cleanly: modals, calendar, slot grid,
   cart drawer, add-on banner, toasts, admin tables. */

:root {
  --washi: #F7F8F4;
  --paper: #F1ECE2;
  --cream: #D4D8CF;
  --olive: #98A393;
  --olive-shadow: #727D6D;
  --olive-dark: #62685A;
  --sumi: #1E211B;
  --clay: #B27C54;
  --clay-deep: #8A5A37;
  --card: #FBFBF8;
  --line: rgba(114, 125, 109, 0.45);
}

html, body { background: var(--washi); color: var(--sumi); }
body { font-family: "Glacial Indifference", "Jost", "Raleway", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
/* Hold the page until the brand webfonts are ready so text never flashes from a system
   fallback to the correct fonts (FOUT). The inline <head> script on each page adds
   html.fonts-loading before first paint and removes it on document.fonts.ready (with a
   safety timeout). The washi html background shows during the brief hold, then content
   fades in already wearing the right fonts. */
body { transition: opacity 0.2s ease-out; }
html.fonts-loading body { opacity: 0; }
.font-display { font-family: "Cormorant Garamond", Georgia, serif; }
.font-jp { font-family: "Noto Serif JP", serif; }
.eyebrow { letter-spacing: 0.32em; text-transform: uppercase; font-size: 0.72rem; font-weight: 600; }

/* ---------- Buttons (mirror the main site) ---------- */
.ss-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; cursor: pointer;
  transition: all 0.25s ease; border-radius: 99px; font-weight: 500; letter-spacing: 0.02em; border: 1px solid transparent; }
.ss-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.ss-btn-clay { background: var(--clay-deep); color: var(--washi); box-shadow: 0 10px 24px -12px rgba(138, 90, 55, 0.7); }
.ss-btn-clay:hover:not(:disabled) { background: #74492c; transform: translateY(-2px); }
.ss-btn-ghost { background: transparent; color: var(--sumi); border-color: rgba(98, 104, 90, 0.45); }
.ss-btn-ghost:hover:not(:disabled) { background: rgba(98, 104, 90, 0.08); border-color: var(--olive-dark); }
.ss-btn-olive { background: var(--olive-dark); color: var(--washi); }
.ss-btn-olive:hover:not(:disabled) { background: var(--olive-shadow); transform: translateY(-2px); }
/* Category filter tabs: light olive (dark text) -> darker on hover -> darkest when selected. */
.ss-cat-tab { background: #bcc6b0; color: var(--sumi); }
.ss-cat-tab:hover:not(:disabled) { background: var(--olive-dark); color: var(--washi); transform: translateY(-2px); }
.ss-cat-tab.is-active, .ss-cat-tab.is-active:hover:not(:disabled) { background: #41463a; color: var(--washi); transform: none; }
/* Featured group pill — light clay with twinkling sparkles around it. */
.ss-cat-tab--featured { background: rgba(178,124,84,0.15); color: var(--clay-deep); position: relative; overflow: visible; box-shadow: inset 0 0 0 1px rgba(178,124,84,0.4); }
.ss-cat-tab--featured:hover:not(:disabled) { background: rgba(178,124,84,0.28); color: var(--clay-deep); transform: translateY(-2px); }
.ss-cat-tab--featured.is-active, .ss-cat-tab--featured.is-active:hover:not(:disabled) { background: rgba(178,124,84,0.32); color: var(--clay-deep); box-shadow: inset 0 0 0 1.5px var(--clay-deep), 0 4px 14px rgba(178,124,84,0.3); transform: none; }
.ss-cat-tab--featured .ss-spark { font-size: 0.85em; }
.ss-cat-tab--featured::before, .ss-cat-tab--featured::after { content: "✦"; position: absolute; color: var(--clay); font-size: 0.72rem; pointer-events: none; animation: ssSparkle 1.9s ease-in-out infinite; }
.ss-cat-tab--featured::before { top: -7px; left: -3px; }
.ss-cat-tab--featured::after { bottom: -7px; right: 2px; animation-delay: 0.95s; }
@keyframes ssSparkle { 0%, 100% { opacity: 0.25; transform: scale(0.7) rotate(0deg); } 50% { opacity: 1; transform: scale(1.15) rotate(25deg); } }
/* Featured service card — sale badge in the corner. */
.ss-svc-featured { position: relative; }
.ss-svc-featured-badge { position: absolute; top: 0.9rem; right: 0.9rem; background: var(--clay-deep); color: var(--washi); font-size: 0.66rem; letter-spacing: 0.05em; font-weight: 600; padding: 0.22rem 0.55rem; border-radius: 99px; box-shadow: 0 2px 6px rgba(138,90,55,0.3); z-index: 1; }
/* Featured group disclaimer subheading (sale end date + gift-voucher note). */
.ss-featured-note { margin-top: -1.25rem; margin-bottom: 1.75rem; font-size: 0.92rem; color: var(--clay-deep); display: flex; align-items: center; gap: 0.5rem; }
.ss-featured-note > span:first-child { color: var(--clay); }
/* Pagination */
.ss-page-btn { min-width: 2.25rem; height: 2.25rem; padding: 0 0.6rem; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--olive-dark); font-weight: 500; cursor: pointer; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.ss-page-btn:hover:not(:disabled) { border-color: var(--olive-dark); background: rgba(152, 163, 147, 0.12); }
.ss-page-btn.is-active { background: var(--olive-dark); color: var(--washi); border-color: var(--olive-dark); }
.ss-page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.ss-btn-danger { background: transparent; color: #9c3b2e; border-color: rgba(156, 59, 46, 0.4); }
.ss-btn-danger:hover:not(:disabled) { background: rgba(156, 59, 46, 0.08); }
.ss-btn-sm { padding: 0.4rem 0.9rem; font-size: 0.85rem; }

/* ---------- Cards ---------- */
.ss-card { background: var(--card); border: 1px solid var(--line); border-radius: 1.5rem;
  box-shadow: 0 1px 2px rgba(30, 33, 27, 0.04); transition: box-shadow 0.18s ease, border-color 0.18s ease; }
.ss-card:hover { border-color: rgba(98, 104, 90, 0.9); box-shadow: 0 16px 38px -10px rgba(98, 104, 90, 0.5); }
/* Coloured-border card variants: the shadow tint matches the border colour. */
.ss-card-clay { border-color: rgba(178, 124, 84, 0.4); background: rgba(178, 124, 84, 0.06); box-shadow: 0 1px 2px rgba(138, 90, 55, 0.12); }
.ss-card-clay:hover { border-color: var(--clay-deep); box-shadow: 0 16px 38px -10px rgba(138, 90, 55, 0.42); }
.ss-card-olive { border-color: rgba(98, 104, 90, 0.5); box-shadow: 0 1px 2px rgba(98, 104, 90, 0.12); }
.ss-card-olive:hover { border-color: var(--olive-dark); box-shadow: 0 16px 38px -10px rgba(98, 104, 90, 0.5); }

/* ---------- Modal / overlay ---------- */
.ss-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(30, 33, 27, 0.55);
  backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 1rem;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
.ss-overlay.is-open { opacity: 1; pointer-events: auto; }
.ss-modal { background: var(--washi); border-radius: 1.75rem; width: 100%; max-width: 880px;
  max-height: 92vh; overflow-y: auto; box-shadow: 0 40px 90px -30px rgba(30, 33, 27, 0.6);
  transform: translateY(16px) scale(0.98); transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1); }
.ss-overlay.is-open .ss-modal { transform: none; }
.ss-modal-sm { max-width: 460px; }
.ss-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.5rem 1.75rem 0.5rem; }
.ss-modal-body { padding: 1rem 1.75rem 1.75rem; }
/* Square Web Payments card field: collapse the reserved inline error-message line while
   empty so the card field sits snug above the Pay button (invalid-card errors are also
   surfaced via a toast). It reappears when Square writes a message. */
.sq-card-message:empty { display: none; margin: 0; }
.ss-close { background: none; border: none; cursor: pointer; font-size: 1.75rem; line-height: 1; color: var(--olive-dark); padding: 0.25rem; }
.ss-close:hover { color: var(--sumi); }
/* Hollow "Close" button (cart drawer): dark grey border + text, light grey on hover */
.ss-btn-close-txt { background: transparent; color: #4d4d4d; border-color: #6b6b6b; }
.ss-btn-close-txt:hover:not(:disabled) { background: #e8e8e8; color: #333333; }

/* ---------- Calendar ---------- */
.ss-cal { user-select: none; }
.ss-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.ss-cal-nav { background: none; border: 1px solid var(--line); border-radius: 99px; width: 2rem; height: 2rem; cursor: pointer; color: var(--olive-dark); flex: none; }
.ss-cal-nav:hover:not(:disabled) { background: rgba(98, 104, 90, 0.08); }
.ss-cal-nav:disabled { opacity: 0.3; cursor: not-allowed; }
/* Month / year selectors in the calendar header */
.ss-cal-period { display: flex; align-items: center; gap: 0.5rem; }
.ss-cal-period .ss-select { width: auto; padding-top: 0.4rem; padding-bottom: 0.4rem; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.25rem; }
.ss-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: 1fr; gap: 4px; }
.ss-cal-dow { text-align: center; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--olive-dark); padding: 0.35rem 0; }
/* Every day cell is the same size: same min-height + equal grid rows. */
.ss-cal-day { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px;
  min-height: 4rem; padding: 0.45rem 0.3rem; border-radius: 0.7rem;
  border: 1px solid transparent; background: transparent; cursor: pointer; font-size: 0.92rem; color: var(--sumi); transition: all 0.15s ease; position: relative; }
.ss-cal-day:hover:not(:disabled) { background: rgba(152, 163, 147, 0.18); border-color: var(--line); }
.ss-cal-day.is-selected { background: var(--olive-dark); color: var(--washi); }
.ss-cal-day.is-today { box-shadow: inset 0 0 0 1px var(--clay); }
.ss-cal-day:disabled, .ss-cal-day.is-empty { color: rgba(30, 33, 27, 0.25); cursor: default; background: transparent; }
.ss-cal-daynum { font-weight: 600; line-height: 1; }
/* Per-day booking-count bubble (icon + number), colour-coded by payment state. */
.ss-cal-bubble { display: inline-flex; align-items: center; gap: 0.2rem; padding: 0.1rem 0.42rem; border-radius: 99px;
  font-size: 0.66rem; font-weight: 700; line-height: 1; letter-spacing: 0.02em; }
.ss-cal-bubble svg { width: 0.82rem; height: 0.82rem; display: block; }
.ss-cal-bubble--green  { background: rgba(86, 130, 89, 0.20);  color: #3f6b41; }
.ss-cal-bubble--orange { background: rgba(198, 150, 60, 0.24); color: #8a6418; }
.ss-cal-bubble--red    { background: rgba(156, 59, 46, 0.18);  color: #9c3b2e; }
.ss-cal-bubble--grey   { background: rgba(98, 104, 90, 0.20);  color: var(--olive-dark); }
.ss-cal-bubble--neutral{ background: rgba(152, 163, 147, 0.26); color: var(--olive-dark); }
.ss-cal-day.is-selected .ss-cal-bubble { background: rgba(247, 248, 244, 0.22); color: var(--washi); }

/* ---------- Time-slot grid ---------- */
.ss-slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
@media (max-width: 520px) { .ss-slot-grid { grid-template-columns: repeat(2, 1fr); } }
.ss-slot { padding: 0.7rem 0.5rem; border-radius: 0.7rem; border: 1px solid var(--line); background: var(--card);
  cursor: pointer; font-size: 0.9rem; font-weight: 600; color: var(--sumi); text-align: center; transition: all 0.15s ease; }
.ss-slot:hover:not(:disabled) { border-color: var(--olive-dark); background: rgba(152, 163, 147, 0.12); }
.ss-slot.is-selected { background: var(--olive-dark); color: var(--washi); border-color: var(--olive-dark); }
.ss-slot:disabled { opacity: 0.4; cursor: not-allowed; background: var(--paper); text-decoration: line-through; }

/* ---------- Cart drawer ---------- */
.ss-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 92vw); z-index: 90;
  background: var(--washi); box-shadow: -30px 0 80px -30px rgba(30, 33, 27, 0.5); transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); display: flex; flex-direction: column; }
.ss-drawer.is-open { transform: none; }
/* Locked: the add-on prompt is shown over the cart — dim it and block interaction. */
.ss-drawer.is-locked::after { content: ""; position: absolute; inset: 0; z-index: 10; background: rgba(247, 248, 244, 0.55); cursor: not-allowed; }
.ss-drawer-scrim { position: fixed; inset: 0; z-index: 89; background: rgba(30, 33, 27, 0.4); opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.ss-drawer-scrim.is-open { opacity: 1; pointer-events: auto; }
.ss-drawer-head { padding: 1.4rem 1.5rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.ss-drawer-body { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.ss-drawer-foot { padding: 1.25rem 1.5rem; border-top: 1px solid var(--line); background: var(--paper); }
.ss-cart-line { display: flex; gap: 0.75rem; padding: 0.9rem 0; border-bottom: 1px solid rgba(114, 125, 109, 0.22); }
.ss-cart-line:last-child { border-bottom: none; }

/* ---------- Badges / pills ---------- */
.ss-pill { display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem; padding: 0.2rem 0.65rem; border-radius: 99px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; white-space: nowrap; }
.ss-pill-clay { background: rgba(178, 124, 84, 0.16); color: var(--clay-deep); }
.ss-pill-olive { background: rgba(152, 163, 147, 0.22); color: var(--olive-dark); }
.ss-pill-green { background: rgba(86, 130, 89, 0.16); color: #3f6b41; }
.ss-pill-amber { background: rgba(198, 150, 60, 0.18); color: #8a6418; }
.ss-pill-red { background: rgba(156, 59, 46, 0.14); color: #9c3b2e; }
.ss-pill-grey { background: rgba(98, 104, 90, 0.14); color: var(--olive-dark); }
/* Outline variant — used for "Completed" so it reads as done, not active. */
.ss-pill-outline { background: transparent; border: 1px solid currentColor; }
.ss-pill-green.ss-pill-outline { color: #3f6b41; }
/* Status pills that line up in a column are all sized to the widest label. */
.ss-pill-status { min-width: 6.4rem; }

/* ---------- Add-on search chips (category editor) ---------- */
.ss-chip-input-wrap { position: relative; }
.ss-chip-results { position: absolute; left: 0; right: 0; top: calc(100% + 0.25rem); z-index: 5; max-height: 220px; overflow-y: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 0.7rem; box-shadow: 0 18px 44px -20px rgba(30, 33, 27, 0.4); display: none; }
.ss-chip-results.is-open { display: block; }
.ss-chip-result { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; width: 100%; text-align: left;
  padding: 0.55rem 0.8rem; background: none; border: none; cursor: pointer; color: var(--sumi); font: inherit; }
.ss-chip-result:hover, .ss-chip-result.is-active { background: rgba(178, 124, 84, 0.12); }
.ss-chip-result:disabled { opacity: 0.45; cursor: default; }
.ss-chip-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.ss-chip { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.4rem 0.35rem 0.85rem; border-radius: 99px;
  background: rgba(152, 163, 147, 0.18); border: 1px solid var(--line); font-size: 0.85rem; max-width: 100%; }
.ss-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-chip-x { display: inline-flex; align-items: center; justify-content: center; width: 1.3rem; height: 1.3rem; flex: none;
  border-radius: 99px; border: none; background: rgba(98, 104, 90, 0.18); color: var(--olive-dark); cursor: pointer; font-size: 1rem; line-height: 1; }
.ss-chip-x:hover { background: rgba(156, 59, 46, 0.16); color: #9c3b2e; }

/* Clickable customer name (links through to the user's detail) */
.ss-link { color: var(--clay-deep); text-decoration: none; border-bottom: 1px solid rgba(138, 90, 55, 0.35); cursor: pointer; background: none; border-top: none; border-left: none; border-right: none; padding: 0; font: inherit; }
.ss-link:hover { color: #74492c; border-bottom-color: currentColor; }

/* ---------- Add-on banner ---------- */
.ss-banner { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%) translateY(140%);
  z-index: 95; width: min(960px, 94vw); background: var(--washi); border: 1px solid var(--line); border-radius: 1.5rem;
  box-shadow: 0 30px 70px -25px rgba(30, 33, 27, 0.5); padding: 1.25rem 1.5rem; transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.ss-banner.is-open { transform: translateX(-50%) translateY(0); }
.ss-addon-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
@media (max-width: 760px) { .ss-addon-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .ss-addon-row { grid-template-columns: 1fr; } }
.ss-addon-chip { text-align: left; border: 1px solid var(--line); border-radius: 0.9rem; padding: 0.7rem 0.85rem; background: var(--card); cursor: pointer; transition: all 0.15s ease; }
.ss-addon-chip:hover { border-color: var(--olive-dark); background: rgba(152, 163, 147, 0.1); }

/* ---------- Forms ---------- */
.ss-field { display: block; margin-bottom: 0.9rem; }
.ss-label { display: block; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--olive-dark); margin-bottom: 0.35rem; font-weight: 600; }
.ss-input, .ss-select, .ss-textarea { width: 100%; padding: 0.65rem 0.85rem; border: 1px solid var(--line); border-radius: 0.7rem;
  background: var(--card); color: var(--sumi); font: inherit; transition: border-color 0.15s ease; }
.ss-input:focus, .ss-select:focus, .ss-textarea:focus { outline: none; border-color: var(--olive-dark); box-shadow: 0 0 0 3px rgba(152, 163, 147, 0.18); }
/* Custom select arrow, inset from the field edge */
.ss-select { -webkit-appearance: none; -moz-appearance: none; appearance: none; padding-right: 2.1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2362685A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.7rem center; }
.ss-textarea { resize: vertical; min-height: 5rem; }
/* Native time inputs carry a UA intrinsic min-width that can push them past a narrow
   card on mobile — let them shrink to their column. */
.ss-input[type="time"] { min-width: 0; max-width: 100%; }

/* Invalid field + inline error message (shown once a field has been touched) */
.ss-input.is-invalid, .ss-select.is-invalid, .ss-textarea.is-invalid { border-color: #b4503a; }
.ss-input.is-invalid:focus, .ss-select.is-invalid:focus, .ss-textarea.is-invalid:focus { box-shadow: 0 0 0 3px rgba(180, 80, 58, 0.15); }
.ss-field-error { display: block; font-size: 0.72rem; color: #9c3b2e; margin-top: 0.3rem; }
.ss-btn:disabled, .ss-btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* intl-tel-input phone field — fill the field + adopt the .ss-input look */
.iti { width: 100%; display: block; }
.iti__selected-country { border-radius: 0.7rem 0 0 0.7rem; }
.iti--separate-dial-code .iti__selected-dial-code { color: var(--sumi); }
.iti__dropdown-content { font: inherit; border-radius: 0.7rem; box-shadow: 0 18px 44px -20px rgba(30, 33, 27, 0.4); }
.iti__country.iti__highlight { background-color: rgba(178, 124, 84, 0.12); }

/* ---------- Admin layout ---------- */
.ss-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
.ss-tab { padding: 0.6rem 1.1rem; border: none; background: none; cursor: pointer; color: var(--olive-dark); font-weight: 500;
  border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ss-tab:hover { color: var(--sumi); }
.ss-tab.is-active { color: var(--sumi); border-bottom-color: var(--clay-deep); }
.ss-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.ss-table th { text-align: left; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--olive-dark);
  padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); }
.ss-table td { padding: 0.7rem 0.75rem; border-bottom: 1px solid rgba(114, 125, 109, 0.2); vertical-align: top; }
.ss-table tr:hover td { background: rgba(152, 163, 147, 0.06); }
/* Sortable column headers (bookings + gift-card tables) */
.ss-th-sort { transition: color 0.15s ease; }
.ss-th-sort:hover, .ss-th-sort:focus-visible { color: var(--clay-deep); outline: none; }
.ss-th-sort.is-sorted { color: var(--clay-deep); }

/* ---------- Admin day-view (Teamup-style schedule) ---------- */
.ss-dayview-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 1rem; background: var(--washi, #F7F8F4); }
.ss-dayview { display: grid; min-width: max-content; }
.ss-dayview-corner { position: sticky; top: 0; left: 0; z-index: 6; background: var(--washi, #F7F8F4); border-bottom: 1px solid var(--line); }
.ss-dayview-colhead { position: sticky; top: 0; z-index: 5; background: var(--washi, #F7F8F4); padding: 0.6rem 0.6rem; font-size: 0.86rem; font-weight: 600; color: var(--sumi); text-align: center;
  border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 0.4rem; }
.ss-dayview-colhead .dot { width: 0.8rem; height: 0.8rem; border-radius: 50%; flex: none; border: 1px solid rgba(30,33,27,0.18); }
.ss-dayview-gutter { position: sticky; left: 0; z-index: 4; background: var(--washi, #F7F8F4); }
.ss-dayview-gutter .hr { position: absolute; right: 0.5rem; transform: translateY(-0.5em); font-size: 0.92rem; font-weight: 700; color: var(--sumi); }
.ss-dayview-col { position: relative; border-left: 1px solid var(--line); }
.ss-dayview-seg { position: absolute; z-index: 2; border-radius: 0.55rem; overflow: hidden; cursor: pointer; box-shadow: 0 1px 2px rgba(30,33,27,0.12);
  transition: filter 0.15s ease, box-shadow 0.15s ease; }
.ss-dayview-seg:hover { filter: brightness(1.04); box-shadow: 0 3px 8px rgba(30,33,27,0.2); z-index: 3; }
.ss-dayview-sub { padding: 0.4rem 0.6rem; overflow: hidden; }
.ss-dayview-block { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, rgba(98,104,90,0.16) 0 8px, rgba(98,104,90,0.08) 8px 16px);
  border-top: 1px solid rgba(98,104,90,0.35); border-bottom: 1px solid rgba(98,104,90,0.35); pointer-events: none; z-index: 1; }
.ss-dayview-block .lbl { position: sticky; top: 0; padding: 0.2rem 0.6rem; font-size: 0.72rem; color: var(--olive-dark); }
.ss-dayview-cool { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, rgba(120,128,110,0.22) 0 6px, rgba(120,128,110,0.10) 6px 12px);
  font-size: 0.72rem; color: var(--olive-dark); padding: 0.2rem 0.6rem; overflow: hidden; }
.ss-dayview-empty { padding: 2rem 1rem; text-align: center; color: var(--olive-dark); font-size: 0.85rem; }
/* On mobile the day-view segments stay readable by showing only the title,
   time·duration and status pills; customer / price / notes are hidden until the
   admin taps the block to open the detail modal. */
@media (max-width: 640px) { .ss-dayview-seg .ss-seg-extra { display: none; } }

/* ---------- Toasts ---------- */
.ss-toast-host { position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%); z-index: 200;
  display: flex; flex-direction: column; gap: 0.5rem; align-items: center; pointer-events: none; }
.ss-toast { pointer-events: auto; padding: 0.7rem 1.2rem; border-radius: 99px; font-size: 0.9rem; font-weight: 500;
  background: var(--sumi); color: var(--washi); box-shadow: 0 14px 30px -12px rgba(30, 33, 27, 0.55);
  opacity: 0; transform: translateY(10px); transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.ss-toast.is-in { opacity: 1; transform: none; }
.ss-toast--success { background: #3f6b41; }
.ss-toast--error { background: #9c3b2e; }
.ss-toast--info { background: var(--olive-dark); }

/* ---------- Spinner ---------- */
.ss-spinner { width: 1.4rem; height: 1.4rem; border: 2px solid rgba(98, 104, 90, 0.25); border-top-color: var(--clay-deep);
  border-radius: 50%; animation: ss-spin 0.8s linear infinite; display: inline-block; }
@keyframes ss-spin { to { transform: rotate(360deg); } }
.ss-loading { display: flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 3rem 1rem; color: var(--olive-dark); }

/* ---------- Avatar menu ---------- */
.ss-menu { position: absolute; right: 0; top: calc(100% + 0.5rem); min-width: 220px; background: var(--washi);
  border: 1px solid var(--line); border-radius: 1rem; box-shadow: 0 24px 50px -24px rgba(30, 33, 27, 0.5);
  padding: 0.5rem; z-index: 60; display: none; }
.ss-menu.is-open { display: block; }
.ss-menu a, .ss-menu button { display: block; width: 100%; text-align: left; padding: 0.55rem 0.75rem; border-radius: 0.6rem;
  background: none; border: none; cursor: pointer; color: var(--sumi); font: inherit; text-decoration: none; }
.ss-menu a:hover, .ss-menu button:hover { background: rgba(152, 163, 147, 0.14); }

/* count badge on the cart icon */
.ss-count { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px;
  background: var(--clay-deep); color: var(--washi); font-size: 0.68rem; font-weight: 700; display: none; align-items: center; justify-content: center; }
.ss-count.is-visible { display: flex; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.05ms !important; }
}
