/* SalonFinder.lk brand — charcoal + muted gold (matches the BEMS logo). Loaded last. */
:root,
:root[data-bs-theme-color] {
  --bs-primary: #1F1F1F !important;
  --bs-primary-rgb: 31, 31, 31 !important;
  --bs-primary-bg-subtle: #ECE6DA !important;
  --bs-primary-border-subtle: #D9CBAE !important;
  --bs-primary-text-emphasis: #1F1F1F !important;
  --bs-primary-hover-bg: #000000 !important;
  --bs-primary-hover-border: #000000 !important;
  --bs-primary-active-bg: #000000 !important;
  --bs-primary-active-border: #000000 !important;
  --bs-secondary: #B89B5E !important;
  --bs-secondary-rgb: 184, 155, 94 !important;
  --bs-secondary-bg-subtle: #F3EDE1 !important;
  --bs-secondary-border-subtle: #DCCBA6 !important;
  --bs-secondary-hover-bg: #9E8249 !important;
  --bs-secondary-hover-border: #9E8249 !important;
  --bs-secondary-active-bg: #9E8249 !important;
  --bs-secondary-active-border: #9E8249 !important;
  --bs-warning: #B89B5E !important;
  --bs-warning-rgb: 184, 155, 94 !important;
  --bs-link-color: #1F1F1F;
  --bs-link-hover-color: #B89B5E;
}

/* One brand font for every theme. Defined on :root (not per theme) so light, dark
   and system all resolve the same family; Bootstrap's font variables point at it. */
:root {
  --sf-font-sans: "Lexend Deca", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --bs-font-sans-serif: var(--sf-font-sans);
  --bs-body-font-family: var(--sf-font-sans);
}
body { font-family: var(--sf-font-sans); }

/* Charcoal disappears on a dark background, so gold leads in dark mode. */
:root[data-bs-theme=dark],
:root[data-bs-theme=dark][data-bs-theme-color] {
  --bs-primary: #B89B5E !important;
  --bs-primary-rgb: 184, 155, 94 !important;
  --bs-primary-bg-subtle: #2A2418 !important;
  --bs-primary-border-subtle: #5C4E30 !important;
  --bs-primary-text-emphasis: #D4BC8A !important;
  --bs-primary-hover-bg: #9E8249 !important;
  --bs-primary-hover-border: #9E8249 !important;
  --bs-primary-active-bg: #9E8249 !important;
  --bs-primary-active-border: #9E8249 !important;
  --bs-body-bg: #121212;
  --bs-link-color: #B89B5E;
}

.text-warning,
.star-rating .ph-fill,
.rating i {
  color: #B89B5E !important;
}

/* Wordmark is wide; give it room in the site header. */
.landing-header .navbar-brand .logo-normal img,
.landing-header .navbar-brand .logo-dark img {
  height: 56px !important;
  max-height: 56px !important;
  width: auto;
}

/* Theme's lavender/pink utilities → warm cream to fit charcoal + gold. */
.bg-purple,
.bg-purple-subtle,
.bg-pink-subtle,
.bg-soft-primary {
  background-color: #F3EFE6 !important;
}

:root[data-bs-theme=dark] .bg-purple,
:root[data-bs-theme=dark] .bg-purple-subtle {
  background-color: #1E1B16 !important;
}

:root {
  --bs-purple: #B89B5E;
  --bs-purple-rgb: 184, 155, 94;
  --bs-pink: #B89B5E;
  --bs-pink-rgb: 184, 155, 94;
  --sf-surface: #FFFFFF;
  --sf-surface-subtle: #F3EFE6;
  --sf-text: #1F1F1F;
  --sf-text-muted: #5F6670;
  --sf-border: #9AA2AC;
  --sf-border-strong: #59616B;
  --sf-border-subtle: #E6DECD;
  --sf-accent: #B89B5E;
  --sf-focus: #175CD3;
  --sf-danger: #B42318;
}

/* Shared primitives. New frontend work must compose these rather than add page-local controls. */
.darkmode-logo { display: none; }
html[data-bs-theme="dark"] .darkmode-logo { display: inline-block; }
html[data-bs-theme="dark"] .light-logo { display: none; }

.sf-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #1F1F1F;
  color: #FFFFFF;
  font: inherit;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}
.sf-button:hover { background: #000000; color: #FFFFFF; }
.sf-button:focus-visible, .sf-field:focus-visible { outline: 3px solid rgba(23, 92, 211, .45); outline-offset: 2px; }
.sf-button:disabled, .sf-button[aria-disabled="true"] { cursor: not-allowed; opacity: .48; pointer-events: none; }
.sf-button--accent { background: #B89B5E; color: #1F1F1F; }
.sf-button--accent:hover { background: #9E8249; color: #1F1F1F; }
.sf-button--secondary { background: transparent; border-color: var(--sf-border-strong); color: var(--sf-text); }
.sf-button--secondary:hover { background: var(--sf-surface-subtle); color: var(--sf-text); }

.sf-field {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1.5px solid var(--sf-border);
  border-radius: 8px;
  background: var(--sf-surface);
  color: var(--sf-text);
  font: inherit;
}
.sf-field::placeholder { color: #69727D; opacity: 1; }
.sf-field:hover { border-color: var(--sf-border-strong); }
.sf-field:focus { border-color: var(--sf-focus); box-shadow: 0 0 0 3px rgba(23, 92, 211, .18); }
.sf-field[aria-invalid="true"], .sf-field.is-invalid { border-color: var(--sf-danger); }

.sf-card { border: 1px solid #E6DECD; border-radius: 12px; background: var(--sf-surface); }
.sf-rating__partial-fill { position: absolute; inset: 0 auto 0 0; width: var(--sf-rating-fill); overflow: hidden; }
.branch-card .card-img-top { aspect-ratio: 4 / 3; object-fit: cover; }
.sf-star-rating { font-size: 2rem; text-align: center; }
.sf-status { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 10px; font-size: .875rem; font-weight: 700; }
.sf-status--pending { background: #F2E9D7; color: #45340F; }
.sf-status--success { background: #DFF3E4; color: #14532D; }
.sf-status--danger { background: #FCE8E6; color: #8A1C14; }
.sf-form-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 640px) {
  .sf-form-grid { grid-template-columns: minmax(0, 1fr); }
  .sf-button { width: 100%; }
}

:root[data-bs-theme=dark] {
  --sf-surface: #1A1A1A;
  --sf-surface-subtle: #1E1B16;
  --sf-text: #EDEDED;
  --sf-text-muted: #B8BDC5;
  --sf-border: #5E6671;
  --sf-border-strong: #AEB5BF;
  --sf-border-subtle: #3A3326;
}
:root[data-bs-theme=dark] .sf-button { background: #B89B5E; color: #121212; }
:root[data-bs-theme=dark] .sf-button:hover { background: #9E8249; color: #121212; }
:root[data-bs-theme=dark] .sf-button--secondary { background: transparent; border-color: var(--sf-border-strong); color: var(--sf-text); }
:root[data-bs-theme=dark] .sf-button--secondary:hover { background: var(--sf-surface-subtle); }
:root[data-bs-theme=dark] .sf-card { border-color: #3A3326; }

/* Destructive button (e.g. Logout): red filled, white text, both themes. Matches the
   logout confirm dialog (sf-swal-danger-confirm) which also uses --sf-danger. */
.sf-button--danger,
:root[data-bs-theme=dark] .sf-button--danger { background: var(--sf-danger, #B42318); border-color: var(--sf-danger, #B42318); color: #FFFFFF; }
.sf-button--danger:hover,
:root[data-bs-theme=dark] .sf-button--danger:hover { background: #8A1C14; border-color: #8A1C14; color: #FFFFFF; }

/* Admin sidebar: wide wordmark needs more height than the theme's 30px cap. */
.sidebar .logo-main .navbar-brand img.logo-normal {
  height: 42px !important;
  max-height: 42px !important;
  width: auto;
}
/* Dark mode: the template slides the dark wordmark back by a fixed 120px (its own logo's width), which left
   ours 48px to the right, under the collapse arrow. Slide it back by its own width so it sits exactly where
   the light one is, whatever the logo's size. */
:root[data-bs-theme=dark] .sidebar .logo-main .logo-normal.dark-normal {
  transform: translateX(-100%);
}
/* Dark + collapsed sidebar: the template left the dark wordmark and the light mark showing, and pushed the dark
   mark 70px right (onto the top bar). Show only the dark mark, on the light mark's spot (it comes right after it). */
:root[data-bs-theme=dark] .sidebar.sidebar-mini .logo-main .logo-normal.dark-normal,
:root[data-bs-theme=dark] .sidebar.sidebar-mini .logo-main .logo-mini:not(.dark-mini) {
  opacity: 0;
}
:root[data-bs-theme=dark] .sidebar.sidebar-mini .logo-main .logo-mini.dark-mini {
  transform: translateX(calc(-75px - 100%));
}
/* The collapse arrow sits on a gold circle in dark mode: charcoal arrow, never white (2.6:1). */
:root[data-bs-theme=dark] .sidebar .sidebar-toggle,
:root[data-bs-theme=dark] .sidebar .sidebar-toggle .icon {
  color: #1F1F1F;
}

/* ---- Contrast: gold is a light colour, so text on it is charcoal (6.4:1), never white (2.6:1). ---- */
.btn-secondary,
.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active,
.badge.bg-secondary,
.bg-secondary.text-white {
  color: #1F1F1F !important;
  --bs-btn-color: #1F1F1F;
  --bs-btn-hover-color: #1F1F1F;
  --bs-btn-active-color: #1F1F1F;
}

:root[data-bs-theme=dark] .btn-primary,
:root[data-bs-theme=dark] .btn-primary:hover,
:root[data-bs-theme=dark] .btn-primary:focus,
:root[data-bs-theme=dark] .btn-primary:active,
:root[data-bs-theme=dark] .badge.bg-primary {
  color: #121212 !important;
  --bs-btn-color: #121212;
  --bs-btn-hover-color: #121212;
}

/* Plain announcement bar: page surface, hairline divider. Overrides Bootstrap .bg-primary/.text-white;
   remove with those classes' last caller. */
.top-header.bg-primary {
  background-color: var(--sf-surface) !important;
  color: var(--sf-text-muted) !important;
  border-bottom: 1px solid var(--sf-border-subtle);
}

/* ---- Cards ---- */
.export-card {
  background-color: #F3EFE6 !important;
  border: 1px solid #E6DECD;
}

/* Purposeful micro-interactions: feedback, not decoration. */
@keyframes sf-reveal-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.sf-motion-reveal {
  animation: sf-reveal-up 360ms cubic-bezier(.2, .8, .2, 1) both;
}

.sf-motion-reveal--delay { animation-delay: 100ms; }

.sf-card-lift {
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

@media (hover: hover) {
  .sf-card-lift:hover {
    transform: translateY(-4px);
    border-color: #D9CBAE;
    box-shadow: 0 8px 20px rgba(31, 31, 31, .08);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Expert portraits always occupy a fixed square. Generated avatars and long names cannot stretch cards. */
.export-card .sf-expert-avatar {
  display: block;
  width: 128px;
  height: 128px;
  max-width: 100%;
  aspect-ratio: 1;
  margin-inline: auto;
  object-fit: cover;
  object-position: center;
  border: 4px solid #FFFFFF;
  background: #F3EFE6;
}

.export-card .title-export {
  min-height: 52px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (max-width: 575.98px) {
  .export-card .sf-expert-avatar { width: 104px; height: 104px; }
}

:root[data-bs-theme=dark] .export-card {
  background-color: #1E1B16 !important;
  border-color: #3A3326;
}

:root[data-bs-theme=dark] .sf-card-lift:hover { border-color: #5C4E30; box-shadow: none; }

/* ---- Hero: soft panel behind the copy so it stays readable over busy photos on phones. ---- */
@media (max-width: 767.98px) {
  .banner-section-wrapper .banner-content {
    background: rgba(255, 255, 255, .86);
    border-radius: 12px;
    padding: 16px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }

  .banner-section-wrapper .banner-content h1,
  .banner-section-wrapper .banner-content h2,
  .banner-section-wrapper .banner-content .title {
    color: #1F1F1F !important;
  }

  .banner-section-wrapper .banner-content p {
    color: #4A4A4A !important;
  }
}

@media (max-width: 767.98px) {
  .banner-section-wrapper .banner-content {
    max-width: calc(100vw - 32px);
    box-sizing: border-box;
  }

  .banner-section-wrapper .slick-arrow {
    display: none !important;
  }

  /* dots are enough on touch screens */
}

/* Theme switch icon remains clearly visible in both light (charcoal) and dark (gold accent). */
.change-mode i {
  color: #1F1F1F !important;
  font-size: 1.125rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

:root[data-bs-theme=dark] .change-mode i {
  /* the toggle has no fill in the dark header (#1A1A1A): gold reads at about 7:1, near-black was invisible */
  color: #B89B5E !important;
}

/* ---- Breadcrumb strip: plain, no tinted band. ---- */
.breadcrumb-section {
  background: transparent !important;
  padding-block: 12px !important;
  border-bottom: 1px solid var(--sf-border-subtle);
}

/* ---- Website soft surface: the frontend theme sets --bs-gray-800 to lavender #FAF8FF and uses it as the
   background of ~47 parts (booking cards, search inputs, dropdowns, filter pills). Swap it for brand cream at the
   root. Scoped to pages that load the website stylesheet: in the admin, gray-800 is a dark text grey. ---- */
:root:not([data-bs-theme=dark]):has(link[href*="modules/frontend/style.css"]) {
  --bs-gray-800: #F7F4EE;
  --bs-gray-dark: #F7F4EE;
}

/* ---- Theme .btn-orange (Reschedule on My Bookings): peach + gold text was 2:1. Secondary style, charcoal text. ---- */
.btn.btn-orange { background: var(--sf-surface-subtle); border: 1px solid var(--sf-border-strong); color: var(--sf-text) !important; }
.btn.btn-orange:hover, .btn.btn-orange:focus-visible { background: var(--sf-border-subtle); color: var(--sf-text) !important; }

/* ---- Search page band: theme used --bs-gray-800 (lavender); use the brand cream. ---- */
.search-box { background-color: var(--sf-surface-subtle) !important; border-bottom: 1px solid var(--sf-border-subtle); }

/* ---- Pill tabs (salon page): outlined when idle, charcoal/gold when active. ---- */
.branch-tab-content .nav-link {
  background-color: transparent !important;
  color: #1F1F1F !important;
  border: 1px solid #D9CBAE;
}

.branch-tab-content .nav-link.active {
  background-color: #1F1F1F !important;
  color: #FFFFFF !important;
  border-color: #1F1F1F;
}

:root[data-bs-theme=dark] .branch-tab-content .nav-link {
  color: #EDEDED !important;
  border-color: #3A3326;
}

:root[data-bs-theme=dark] .branch-tab-content .nav-link.active {
  background-color: #B89B5E !important;
  color: #121212 !important;
  border-color: #B89B5E;
}

.nav-pills .nav-link.active {
  color: #FFFFFF;
}

:root[data-bs-theme=dark] .nav-pills .nav-link.active {
  color: #121212 !important;
}

/* ---- Theme templates hard-code .text-dark; flip it in dark mode so it stays readable. ---- */
:root[data-bs-theme=dark] .text-dark {
  color: #EDEDED !important;
}

/* ---- Admin ---- */
/* On tablets/phones the sidebar is off-canvas; its mini logo was peeking over the top-bar logo. */
@media (max-width: 1199.98px) {
  .sidebar .logo-mini {
    display: none !important;
  }
}

/* Primary text in tables reads as a heading, not muted grey. */
.table td.fw-semibold {
  color: var(--bs-heading-color, #1F1F1F);
}

:root[data-bs-theme=dark] .table td.fw-semibold {
  color: #EDEDED;
}

/* Page header band: plain surface, no pattern, seamless light/dark mode text contrast. */
.navs-bg-color {
  background: var(--sf-surface) !important;
  color: var(--sf-text) !important;
  border-bottom: 1px solid var(--sf-border-subtle);
}

.navs-bg-color h2,
.navs-bg-color h1,
.navs-bg-color h3,
.navs-bg-color h4,
.navs-bg-color h5,
.navs-bg-color h6,
.navs-bg-color p,
.navs-bg-color span {
  color: inherit;
}

/* Admin top bar: swap to the light-text wordmark in dark mode. */
.brand-logo-dark {
  display: none;
}

:root[data-bs-theme=dark] .brand-logo-light {
  display: none;
}

:root[data-bs-theme=dark] .brand-logo-dark {
  display: inline-block;
}

/* ---- Focus: visible gold ring for keyboard users in both modes. ---- */
:focus-visible {
  outline: 2px solid #B89B5E !important;
  outline-offset: 2px;
}

.form-control:focus,
.form-select:focus {
  border-color: #B89B5E !important;
  box-shadow: 0 0 0 .2rem rgba(184, 155, 94, .25) !important;
}

/* ---- Vueform Multiselect (Appointment Modal, Branch & Service pickers) ---- */
.multiselect {
  --ms-bg: var(--bs-body-bg, #ffffff);
  --ms-color: var(--bs-body-color, #1F1F1F);
  --ms-border-color: var(--bs-border-color, #dee2e6);
  --ms-border-color-active: #B89B5E;
  --ms-radius: var(--bs-border-radius, 0.375rem);
  --ms-ring-width: 0.2rem;
  --ms-ring-color: rgba(184, 155, 94, 0.25);
  --ms-placeholder-color: var(--bs-secondary-color, #6c757d);
  --ms-dropdown-bg: var(--bs-body-bg, #ffffff);
  --ms-dropdown-border-color: var(--bs-border-color, #dee2e6);
  --ms-dropdown-border-width: 1px;
  --ms-dropdown-radius: var(--bs-border-radius, 0.375rem);
  --ms-option-font-size: 0.875rem;
  --ms-option-line-height: 1.5;
  --ms-option-bg-pointed: #F3EDE1;
  --ms-option-color-pointed: #1F1F1F;
  --ms-option-bg-selected: #1F1F1F;
  --ms-option-color-selected: #FFFFFF;
  --ms-option-bg-selected-pointed: #000000;
  --ms-option-color-selected-pointed: #FFFFFF;
  --ms-tag-bg: #B89B5E;
  --ms-tag-color: #1F1F1F;
  --ms-tag-radius: 4px;
  --ms-tag-font-weight: 500;
}

.multiselect.is-active,
.multiselect:focus {
  border-color: #B89B5E !important;
  box-shadow: 0 0 0 0.2rem rgba(184, 155, 94, 0.25) !important;
}

.multiselect-dropdown {
  background: var(--bs-body-bg, #ffffff) !important;
  border: 1px solid var(--bs-border-color, #dee2e6) !important;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.12) !important;
}

.multiselect-option {
  color: var(--bs-body-color, #1F1F1F) !important;
}

.multiselect-option.is-pointed {
  background: #F3EDE1 !important;
  color: #1F1F1F !important;
}

.multiselect-option.is-selected {
  background: #B89B5E !important;
  color: #FFFFFF !important;
  font-weight: 600;
}

.multiselect-option.is-selected.is-pointed {
  background: #9E8249 !important;
  color: #FFFFFF !important;
}

.multiselect-tag,
.multiselect-tag:hover {
  background: #B89B5E !important;
  color: #1F1F1F !important;
  border: 1px solid #9E8249 !important;
}

.multiselect-tag i,
.multiselect-tag-remove {
  color: #1F1F1F !important;
}

.multiselect-caret {
  border-color: var(--bs-secondary-color, #6c757d) transparent transparent !important;
}

.multiselect.is-active .multiselect-caret {
  border-color: transparent transparent #B89B5E !important;
}

.multiselect-clear:hover .multiselect-clear-icon {
  color: #B89B5E !important;
}

/* Multiselect dark mode */
:root[data-bs-theme=dark] .multiselect {
  --ms-bg: #1A1A1A;
  --ms-color: #EDEDED;
  --ms-border-color: #2A2A2A;
  --ms-border-color-active: #B89B5E;
  --ms-dropdown-bg: #1A1A1A;
  --ms-dropdown-border-color: #2A2A2A;
  --ms-option-bg-pointed: #2A2418;
  --ms-option-color-pointed: #D4BC8A;
  --ms-option-bg-selected: #B89B5E;
  --ms-option-color-selected: #121212;
  --ms-option-bg-selected-pointed: #9E8249;
  --ms-option-color-selected-pointed: #121212;
  --ms-tag-bg: #B89B5E;
  --ms-tag-color: #121212;
}

:root[data-bs-theme=dark] .multiselect-dropdown {
  background: #1A1A1A !important;
  border-color: #2A2A2A !important;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.45) !important;
}

:root[data-bs-theme=dark] .multiselect-option {
  color: #EDEDED !important;
}

:root[data-bs-theme=dark] .multiselect-option.is-pointed {
  background: #2A2418 !important;
  color: #D4BC8A !important;
}

:root[data-bs-theme=dark] .multiselect-option.is-selected {
  background: #B89B5E !important;
  color: #121212 !important;
}

:root[data-bs-theme=dark] .multiselect-option.is-selected.is-pointed {
  background: #9E8249 !important;
  color: #121212 !important;
}

:root[data-bs-theme=dark] .multiselect-tag,
:root[data-bs-theme=dark] .multiselect-tag:hover {
  background: #B89B5E !important;
  color: #121212 !important;
  border: 1px solid #9E8249 !important;
}

:root[data-bs-theme=dark] .multiselect-tag i,
:root[data-bs-theme=dark] .multiselect-tag-remove {
  color: #121212 !important;
}

/* ---- Form Checks, Radios, & Switches ---- */
.form-check-input:focus {
  border-color: #B89B5E !important;
  outline: 0 !important;
  box-shadow: 0 0 0 0.2rem rgba(184, 155, 94, 0.25) !important;
}

.form-check-input:checked {
  background-color: #1F1F1F !important;
  border-color: #1F1F1F !important;
}

.form-check-input[type=checkbox]:indeterminate {
  background-color: #1F1F1F !important;
  border-color: #1F1F1F !important;
}

:root[data-bs-theme=dark] .form-check-input:checked,
:root[data-bs-theme=dark] .form-check-input[type=checkbox]:indeterminate {
  background-color: #B89B5E !important;
  border-color: #B89B5E !important;
}

/* Dark mode: an UNCHECKED radio/checkbox needs a visible ring, otherwise it vanishes on the
   dark surface (e.g. the profile "Gender" options looked like there was no control at all). */
:root[data-bs-theme=dark] .form-check-input:not(:checked) {
  background-color: transparent !important;
  border-color: var(--sf-border-strong, #AEB5BF) !important;
}

/* Reusable empty-state placeholder (My Bookings, Saved salons, etc.) — theme-aware. */
.sf-empty-state { color: var(--sf-text-muted, #6b6b6b); }
.sf-empty-state__icon { font-size: 44px; line-height: 1; color: #B89B5E; display: block; margin: 0 auto 12px; opacity: .9; }
.sf-empty-state__text { margin: 0; font-size: 15px; }
:root[data-bs-theme=dark] .sf-empty-state { color: var(--sf-text-muted, #B8BDC5); }
/* Hide DataTables info + pagination when a list is empty (added by sfHideEmptyPaging). */
.dataTables_wrapper.sf-dt-empty .dataTables_info,
.dataTables_wrapper.sf-dt-empty .dataTables_paginate { display: none !important; }

/* intl-tel-input (separate dial code) inside .custom-input-group: make room for the flag + dial
   code so the number never sits under the flag (profile Contact Number). Works in both themes. */
.custom-input-group .iti { flex: 1 1 auto; width: 1%; }
.custom-input-group .iti > input.form-control { padding-left: 92px !important; border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.custom-input-group .iti__flag-container { z-index: 5; }
.custom-input-group .iti--separate-dial-code .iti__selected-flag { background-color: transparent; }
:root[data-bs-theme=dark] .custom-input-group .iti__selected-dial-code { color: var(--sf-text, #ededed); }

/* ---- Select2 Alignment ---- */
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: #B89B5E !important;
  box-shadow: 0 0 0 0.2rem rgba(184, 155, 94, 0.25) !important;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: #F3EDE1 !important;
  color: #1F1F1F !important;
}

.select2-container--default .select2-results__option--selected {
  background-color: #1F1F1F !important;
  color: #FFFFFF !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: #B89B5E !important;
  color: #1F1F1F !important;
  border: 1px solid #9E8249 !important;
}

:root[data-bs-theme=dark] .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: #2A2418 !important;
  color: #D4BC8A !important;
}

:root[data-bs-theme=dark] .select2-container--default .select2-results__option--selected {
  background-color: #B89B5E !important;
  color: #121212 !important;
}

:root[data-bs-theme=dark] .select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: #B89B5E !important;
  color: #121212 !important;
  border-color: #9E8249 !important;
}

/* ---- Flatpickr Calendar ---- */
.flatpickr-calendar .dayContainer .flatpickr-day.selected,
.flatpickr-calendar .dayContainer .flatpickr-day.startRange,
.flatpickr-calendar .dayContainer .flatpickr-day.endRange {
  background: #1F1F1F !important;
  border-color: #1F1F1F !important;
  color: #FFFFFF !important;
}

.flatpickr-calendar .dayContainer .flatpickr-day:hover,
.flatpickr-calendar .dayContainer .flatpickr-day.prevMonthDay:hover,
.flatpickr-calendar .dayContainer .flatpickr-day.nextMonthDay:hover {
  background: #F3EDE1 !important;
  border-color: #DCCBA6 !important;
  color: #1F1F1F !important;
}

.flatpickr-calendar .dayContainer .flatpickr-day.today {
  border-color: #B89B5E !important;
}

.flatpickr-calendar .dayContainer .flatpickr-day.inRange {
  background: #F3EDE1 !important;
  border-color: #DCCBA6 !important;
  color: #1F1F1F !important;
}

:root[data-bs-theme=dark] .flatpickr-calendar .dayContainer .flatpickr-day.selected,
:root[data-bs-theme=dark] .flatpickr-calendar .dayContainer .flatpickr-day.startRange,
:root[data-bs-theme=dark] .flatpickr-calendar .dayContainer .flatpickr-day.endRange {
  background: #B89B5E !important;
  border-color: #B89B5E !important;
  color: #121212 !important;
}

:root[data-bs-theme=dark] .flatpickr-calendar .dayContainer .flatpickr-day:hover,
:root[data-bs-theme=dark] .flatpickr-calendar .dayContainer .flatpickr-day.prevMonthDay:hover,
:root[data-bs-theme=dark] .flatpickr-calendar .dayContainer .flatpickr-day.nextMonthDay:hover,
:root[data-bs-theme=dark] .flatpickr-calendar .dayContainer .flatpickr-day.inRange {
  background: #2A2418 !important;
  border-color: #5C4E30 !important;
  color: #D4BC8A !important;
}

/* ---- Sliders & Range inputs ---- */
.form-range::-webkit-slider-thumb {
  background-color: #B89B5E !important;
}

.form-range::-moz-range-thumb {
  background-color: #B89B5E !important;
}

.slider .noUi-base .noUi-connect,
.slider-primary .noUi-base .noUi-connect {
  background: #B89B5E !important;
}

.slider.noUi-horizontal .noUi-handle,
.slider-primary.noUi-horizontal .noUi-handle {
  border-color: #B89B5E !important;
}

/* ---- Pagination ---- */
.pagination {
  --bs-pagination-padding-x: 0.85rem;
  --bs-pagination-padding-y: 0.5rem;
  --bs-pagination-font-size: 0.95rem;
  --bs-pagination-color: #1F1F1F;
  --bs-pagination-bg: #FFFFFF;
  --bs-pagination-border-width: 1px;
  --bs-pagination-border-color: #E5E5E5;
  --bs-pagination-border-radius: 8px;
  --bs-pagination-hover-color: #1F1F1F;
  --bs-pagination-hover-bg: #F3EDE1;
  --bs-pagination-hover-border-color: #DCCBA6;
  --bs-pagination-focus-color: #1F1F1F;
  --bs-pagination-focus-bg: #F3EDE1;
  --bs-pagination-focus-box-shadow: none;
  --bs-pagination-active-color: #FFFFFF;
  --bs-pagination-active-bg: #1F1F1F;
  --bs-pagination-active-border-color: #1F1F1F;
  --bs-pagination-disabled-color: #9CA3AF;
  --bs-pagination-disabled-bg: #F8F9FA;
  --bs-pagination-disabled-border-color: #E5E5E5;
  gap: 4px;
}

.page-item .page-link {
  color: #1F1F1F !important;
  background-color: #FFFFFF !important;
  border: 1px solid #E5E5E5 !important;
  border-radius: 8px !important;
  font-weight: 500;
  min-width: 38px;
  text-align: center;
  transition: all 0.15s ease-in-out;
}

.page-item .page-link:hover {
  background-color: #F3EDE1 !important;
  border-color: #DCCBA6 !important;
  color: #1F1F1F !important;
}

.page-item.active .page-link,
.page-link.active,
.active > .page-link {
  background-color: #1F1F1F !important;
  border-color: #1F1F1F !important;
  color: #FFFFFF !important;
  font-weight: 600;
}

.page-item.disabled .page-link,
.page-link.disabled,
.disabled > .page-link {
  background-color: #F8F9FA !important;
  border-color: #E5E5E5 !important;
  color: #9CA3AF !important;
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.7;
}

:root[data-bs-theme=dark] .pagination {
  --bs-pagination-color: #EDEDED;
  --bs-pagination-bg: #1A1A1A;
  --bs-pagination-border-color: #333333;
  --bs-pagination-hover-color: #D4BC8A;
  --bs-pagination-hover-bg: #2A2418;
  --bs-pagination-hover-border-color: #5C4E30;
  --bs-pagination-active-color: #121212;
  --bs-pagination-active-bg: #B89B5E;
  --bs-pagination-active-border-color: #B89B5E;
  --bs-pagination-disabled-color: #666666;
  --bs-pagination-disabled-bg: #141414;
  --bs-pagination-disabled-border-color: #262626;
}

:root[data-bs-theme=dark] .page-item .page-link {
  color: #EDEDED !important;
  background-color: #1A1A1A !important;
  border: 1px solid #333333 !important;
}

:root[data-bs-theme=dark] .page-item .page-link:hover {
  background-color: #2A2418 !important;
  border-color: #5C4E30 !important;
  color: #D4BC8A !important;
}

:root[data-bs-theme=dark] .page-item.active .page-link,
:root[data-bs-theme=dark] .page-link.active,
:root[data-bs-theme=dark] .active > .page-link {
  background-color: #B89B5E !important;
  border-color: #B89B5E !important;
  color: #121212 !important;
}

:root[data-bs-theme=dark] .page-item.disabled .page-link,
:root[data-bs-theme=dark] .page-link.disabled,
:root[data-bs-theme=dark] .disabled > .page-link {
  background-color: #141414 !important;
  border-color: #262626 !important;
  color: #666666 !important;
}

/* ---- Progress & Circular ---- */
.progress-bar,
.bg-primary.progress-bar {
  background-color: #1F1F1F !important;
}

:root[data-bs-theme=dark] .progress-bar,
:root[data-bs-theme=dark] .bg-primary.progress-bar {
  background-color: #B89B5E !important;
}

.circle-progress-primary svg .circle-progress-value {
  stroke: #B89B5E !important;
}

.circle-progress-primary svg .circle-progress-text {
  fill: #B89B5E !important;
}

/* ---- Choices.js ---- */
.choices__list--dropdown .choices__item--selectable.is-highlighted,
.choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
  background-color: #F3EDE1 !important;
  color: #1F1F1F !important;
}

:root[data-bs-theme=dark] .choices__list--dropdown .choices__item--selectable.is-highlighted,
:root[data-bs-theme=dark] .choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
  background-color: #2A2418 !important;
  color: #D4BC8A !important;
}

.choices__inner:hover,
.choices.is-focused .choices__inner {
  border-color: #B89B5E !important;
}

/* ---- Accordion & List Groups ---- */
.accordion-button:not(.collapsed) {
  color: #1F1F1F !important;
  background-color: #F3EDE1 !important;
}

:root[data-bs-theme=dark] .accordion-button:not(.collapsed) {
  color: #D4BC8A !important;
  background-color: #2A2418 !important;
}

.list-group-item.active {
  background-color: #1F1F1F !important;
  border-color: #1F1F1F !important;
  color: #FFFFFF !important;
}

:root[data-bs-theme=dark] .list-group-item.active {
  background-color: #B89B5E !important;
  border-color: #B89B5E !important;
  color: #121212 !important;
}

/* ---- Active tabs and pills, every kind (root rule, docs/admin-ui-guidelines.md §3) ----
   One pair per mode, so the label can never be the same colour as its background:
   light = charcoal fill + white text, dark = gold fill + charcoal text.
   Exclude all header navigation (.navbar, .horizontal-nav, #header-menu). */
:root .nav:not(.navbar):not(.navbar-nav):not(.horizontal-nav):not(.iq-main-menu) .nav-link.active, :root .nav-tabs .nav-link.active, :root .nav-pills .nav-link.active,
:root .nav:not(.navbar):not(.navbar-nav):not(.horizontal-nav):not(.iq-main-menu) .nav-link.active *, :root .nav-tabs .nav-link.active *, :root .nav-pills .nav-link.active * {
  background-color: #1F1F1F !important;
  color: #FFFFFF !important;
}
:root .nav:not(.navbar):not(.navbar-nav):not(.horizontal-nav):not(.iq-main-menu) .nav-link.active, :root .nav-tabs .nav-link.active, :root .nav-pills .nav-link.active {
  border-color: #B89B5E !important;
}
:root[data-bs-theme=dark] .nav:not(.navbar):not(.navbar-nav):not(.horizontal-nav):not(.iq-main-menu) .nav-link.active, :root[data-bs-theme=dark] .nav-tabs .nav-link.active, :root[data-bs-theme=dark] .nav-pills .nav-link.active,
:root[data-bs-theme=dark] .nav:not(.navbar):not(.navbar-nav):not(.horizontal-nav):not(.iq-main-menu) .nav-link.active *, :root[data-bs-theme=dark] .nav-tabs .nav-link.active *, :root[data-bs-theme=dark] .nav-pills .nav-link.active * {
  background-color: #B89B5E !important;
  color: #121212 !important;
}
/* Children only inherit; no second fill inside the tab. */
:root .nav:not(.navbar):not(.navbar-nav):not(.horizontal-nav):not(.iq-main-menu) .nav-link.active *, :root[data-bs-theme=dark] .nav:not(.navbar):not(.navbar-nav):not(.horizontal-nav):not(.iq-main-menu) .nav-link.active * { background-color: transparent !important; }

/* Footer uses the same wordmark at the same size as the header. */
footer .navbar-brand img {
  height: 56px !important;
  width: auto !important;
  max-width: none;
}

/* ---- Skeleton shimmer (docs/ui-guidelines.md §Loading) ----
   Only regions waiting for data shimmer; content already on the page renders normally. */
.sf-skel {
  position: relative;
  overflow: hidden;
  background: #ECE6DA;
  border-radius: 6px;
}

.sf-skel::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(248, 245, 238, .85), transparent);
  animation: sf-shimmer 1.2s infinite;
}

:root[data-bs-theme=dark] .sf-skel {
  background: #1E1B16;
}

:root[data-bs-theme=dark] .sf-skel::after {
  background: linear-gradient(90deg, transparent, rgba(42, 36, 24, .9), transparent);
}

@keyframes sf-shimmer {
  100% {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sf-skel::after {
    animation: none;
  }
}

.sf-skel-line {
  height: 12px;
  margin-bottom: 8px;
}

.sf-skel-line.lg {
  height: 18px;
  width: 70%;
}

.sf-skel-line.sm {
  width: 45%;
}

.sf-skel-img {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  margin-bottom: 12px;
}

.sf-skel-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 12px;
}

.sf-skel-card {
  border: 1px solid #E6DECD;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

:root[data-bs-theme=dark] .sf-skel-card {
  background: #1A1A1A;
  border-color: #3A3326;
}

/* DataTables loading is handled by public/js/skeleton.js (skeleton rows), not here. */
/* SweetAlert2 dialogs follow the brand (confirm = primary, cancel = outline). */
.swal2-popup {
  font-family: inherit;
  border-radius: 16px !important;
}

.swal2-styled.swal2-confirm {
  background-color: var(--bs-primary) !important;
  color: #fff !important;
  border-radius: 8px !important;
}

:root[data-bs-theme=dark] .swal2-styled.swal2-confirm {
  color: #121212 !important;
}

.swal2-styled.swal2-cancel {
  background: transparent !important;
  color: var(--bs-body-color) !important;
  border: 1px solid #D9CBAE !important;
  border-radius: 8px !important;
}

/* Destructive confirm (e.g. Logout): red filled confirm + outline cancel, both themes.
   Opt-in via customClass so non-destructive dialogs keep the gold confirm. */
.swal2-styled.sf-swal-danger-confirm,
:root[data-bs-theme=dark] .swal2-styled.sf-swal-danger-confirm {
  background-color: var(--sf-danger, #B42318) !important;
  border-color: var(--sf-danger, #B42318) !important;
  color: #fff !important;
}
/* Red focus ring (not the default gold) so the destructive confirm reads as one red button. */
.swal2-styled.sf-swal-danger-confirm:focus,
.swal2-styled.sf-swal-danger-confirm:focus-visible {
  box-shadow: 0 0 0 3px rgba(180, 35, 24, .35) !important;
  outline: none !important;
}
.swal2-styled.sf-swal-outline-cancel,
:root[data-bs-theme=dark] .swal2-styled.sf-swal-outline-cancel {
  background: transparent !important;
  color: var(--bs-body-color) !important;
  border: 1px solid var(--bs-border-color, #D9CBAE) !important;
}

.swal2-icon.swal2-warning {
  border-color: #B89B5E !important;
  color: #B89B5E !important;
}

:root[data-bs-theme=dark] .swal2-popup {
  background: #1A1A1A !important;
  color: #EDEDED !important;
}

/* ---- Salon finder (/salons) ---- */
.sf-filters__grid { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.sf-filters__grid > :first-child { grid-column: 1 / -1; }
.sf-filters__grid .sf-field { width: 100%; }
.sf-filters__grid .sf-near { width: 100%; }
.sf-filters__grid .form-label { display: block; line-height: 1.4; margin-bottom: 4px; }
/* Select2 (third-party) drawn as .sf-field; remove when these become native selects. */
.sf-filters__grid .form-select,
.sf-filters__grid .select2-container .select2-selection--single {
  min-height: 48px; height: 48px; display: flex; align-items: center;
  border: 1px solid var(--sf-border) !important; border-radius: 8px;
  background-color: var(--sf-surface) !important; color: var(--sf-text);
}
.sf-filters__grid .select2-selection__rendered { color: var(--sf-text) !important; }
.sf-filters__grid .select2-selection__arrow { top: 50% !important; transform: translateY(-50%); }
.sf-finder-page { padding-top: 32px !important; }
@media (min-width: 992px) {
  .sf-filters__grid { grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); }
  .sf-filters__grid > :first-child { grid-column: auto; }
}

.sf-filters {
  background: #F3EFE6;
  border: 1px solid #E6DECD;
  border-radius: 12px;
  padding: 16px;
}

:root[data-bs-theme=dark] .sf-filters {
  background: #1E1B16;
  border-color: #3A3326;
}

.sf-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sf-chip span {
  display: inline-block;
  padding: 8px 16px;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid #D9CBAE;
  background: #fff;
  color: #1F1F1F;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.sf-chip input:checked+span {
  background: #1F1F1F;
  border-color: #1F1F1F;
  color: #fff;
}

.sf-chip input:focus-visible+span {
  outline: 2px solid #B89B5E;
  outline-offset: 2px;
}

:root[data-bs-theme=dark] .sf-chip span {
  background: transparent;
  color: #EDEDED;
  border-color: #3A3326;
}

:root[data-bs-theme=dark] .sf-chip input:checked+span {
  background: #B89B5E;
  border-color: #B89B5E;
  color: #121212;
}

.sf-near.active {
  background: #1F1F1F;
  color: #fff;
}

.sf-salon-card {
  background: #fff;
  border: 1px solid #E6DECD;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .15s ease-out, transform .15s ease-out;
}

.sf-salon-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  transform: translateY(-2px);
}

:root[data-bs-theme=dark] .sf-salon-card {
  background: #1A1A1A;
  border-color: #3A3326;
}

.sf-salon-card__img {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #ECE6DA;
}

.sf-salon-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sf-salon-card__type,
.sf-salon-card__dist {
  position: absolute;
  top: 12px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.sf-salon-card__type {
  left: 12px;
  background: rgba(255, 255, 255, .92);
  color: #1F1F1F;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.sf-salon-card__dist {
  right: 12px;
  background: #1F1F1F;
  color: #fff;
}

.sf-salon-card__name {
  color: var(--bs-heading-color, #1F1F1F);
}

:root[data-bs-theme=dark] .sf-salon-card__name {
  color: #EDEDED;
}

/* Breadcrumb decorative blobs were pink/blue: hide them, the cream strip is enough. */
.breadcrumb-section .gradient {
  display: none !important;
}

/* Header: keep every menu item on one line at laptop widths. */
@media (min-width: 1200px) {
  #header-menu .nav-link {
    padding-left: 10px !important;
    padding-right: 10px !important;
    white-space: nowrap;
  }

  #header-menu {
    flex-wrap: nowrap;
  }
}

.branch-panel,
.branch-panel * {
  white-space: nowrap;
}

.landing-header .navbar-brand {
  flex-shrink: 0;
}

.landing-header .navbar-brand img {
  max-width: none !important;
}

.sf-partner-btn {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

:root[data-bs-theme=dark] .sf-partner-btn {
  color: #EDEDED;
  border-color: #3A3326;
}

/* Top bar: static (no marquee), offer left, salon-owner links right. */
/* Charcoal brand strip with a gold accent line, matching the admin page band. */
.sf-topbar,
.top-header.bg-primary.sf-topbar {
  padding: 8px 0;
  font-size: 13px;
  font-weight: 600;
  background: #1F1F1F radial-gradient(60% 220% at 100% 0%, rgba(184,155,94,.22) 0%, rgba(184,155,94,0) 70%) !important;
  border-top: 3px solid var(--sf-accent);
  border-bottom: 0;
  color: #CFC8BA !important;
}

.sf-topbar__offer {
  min-width: 0;
  color: #F3EFE6;
}

.sf-topbar a {
  color: #D4BC8A;
  text-decoration: none;
  text-underline-offset: 3px;
}

.sf-topbar a:hover,
.sf-topbar a:focus-visible {
  color: #F3EFE6;
  text-decoration: underline;
}

.sf-topbar a:focus-visible {
  outline: 2px solid var(--sf-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

:root[data-bs-theme=dark] .top-header.bg-primary.sf-topbar { background-color: #141414 !important; }

@media (max-width: 575.98px) {
  .sf-topbar__offer {
    display: none;
  }

  .sf-topbar .container-fluid {
    justify-content: center !important;
  }

  /* Tamil / Sinhala links are wider than 390px: let them wrap instead of overflowing. */
  .sf-topbar__partner {
    white-space: normal !important;
    text-align: center;
    min-width: 0;
  }
}

/* ---- Shared control sizes & button centralization (docs/button-guidelines.md, docs/ui-guidelines.md). ---- */

/* Rule 1: Standalone Action / CTA Buttons (Horizontally & Vertically Centered) */
.btn,
.btn-sm,
.btn-lg,
a.btn,
button.btn,
label.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  vertical-align: middle;
  line-height: 1.25;
}

label.btn {
  margin-bottom: 0;
  cursor: pointer;
}

/* Force flex alignment even when d-block, w-100, or btn-block is added to buttons */
.btn.d-block,
.btn.w-100,
.btn.btn-block,
label.btn.d-block,
label.btn.w-100 {
  display: flex !important;
  width: 100% !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.btn:not(.btn-sm):not(.btn-xs):not(.btn-icon):not(.btn-link):not(.btn-close):not(.btn-sidebar-nav) {
  min-height: 44px;
  height: 44px;
  border-radius: 8px;
  column-gap: 0.5rem;
}

.btn > i,
.btn > svg,
.btn > [class^="fa-"],
.btn > [class*=" fa-"],
.btn > .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  vertical-align: 0;
}

.btn > i.me-1,
.btn > i.me-2,
.btn > svg.me-1,
.btn > svg.me-2 {
  margin-right: 0.375rem;
}

/* Rule 2: Full-Width Navigation & Sidebar Buttons (Settings, Profile, List Groups)
   Each item occupies the SAME full remaining width (100%), left-aligned with icon slots. */
.setting-sidebar-inner .btn,
#setting-list .btn,
#setting-sidebar .btn,
.profile-sidebar .btn,
.list-group .btn-border,
/* :not(.btn-sm): small icon actions inside list rows (e.g. the BookingForm trash button) must keep their own width, or the row text gets squeezed to one word per line. */
.list-group-flush .btn:not(.btn-sm),
/* (was also .btn.w-100 / .btn.btn-block site-wide, which left-aligned every full-width button) */
.btn.btn-sidebar-nav {
  display: flex !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: left !important;
  padding: 0.625rem 1rem !important;
  min-height: 44px !important;
  border-radius: 8px !important;
  gap: 0.75rem !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

.setting-sidebar-inner .btn > i,
.setting-sidebar-inner .btn > svg,
#setting-list .btn > i,
#setting-list .btn > svg,
.profile-sidebar .btn > i,
.profile-sidebar .btn > svg,
.list-group .btn-border > i,
.list-group .btn-border > svg,
.list-group-flush .btn:not(.btn-sm) > i,
.list-group-flush .btn:not(.btn-sm) > svg {
  width: 1.25rem !important;
  min-width: 1.25rem !important;
  text-align: center !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-right: 0.25rem;
}

/* Sidebar navigation item spacing: consistent vertical rhythm */
.setting-sidebar-inner #setting-list > div,
.profile-sidebar .list-group > div {
  margin-bottom: 0.5rem !important;
  width: 100% !important;
}

/* Sidebar navigation button states */
.setting-sidebar-inner .btn-border,
#setting-list .btn-border,
.profile-sidebar .btn-border,
.list-group-flush .btn-border {
  border: 1px solid var(--bs-border-color) !important;
  background-color: var(--bs-body-bg) !important;
  color: var(--bs-heading-color) !important;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

.setting-sidebar-inner .btn-border:hover,
#setting-list .btn-border:hover,
.profile-sidebar .btn-border:hover,
.list-group-flush .btn-border:hover {
  border-color: #B89B5E !important;
  color: #B89B5E !important;
  background-color: rgba(184, 155, 94, 0.08) !important;
}

.setting-sidebar-inner .btn-border.router-link-exact-active,
.setting-sidebar-inner .btn-border.router-link-active,
#setting-list .btn-border.router-link-exact-active,
#setting-list .btn-border.router-link-active,
.profile-sidebar .btn-border.router-link-exact-active,
.profile-sidebar .btn-border.router-link-active,
.list-group-flush .btn-border.active {
  background-color: #1F1F1F !important;
  border-color: #1F1F1F !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

:root[data-bs-theme=dark] .setting-sidebar-inner .btn-border.router-link-exact-active,
:root[data-bs-theme=dark] .setting-sidebar-inner .btn-border.router-link-active,
:root[data-bs-theme=dark] #setting-list .btn-border.router-link-exact-active,
:root[data-bs-theme=dark] #setting-list .btn-border.router-link-active,
:root[data-bs-theme=dark] .profile-sidebar .btn-border.router-link-exact-active,
:root[data-bs-theme=dark] .profile-sidebar .btn-border.router-link-active,
:root[data-bs-theme=dark] .list-group-flush .btn-border.active {
  background-color: #B89B5E !important;
  border-color: #B89B5E !important;
  color: #121212 !important;
  font-weight: 600;
}

.card { border-radius: 12px; }

/* Dark mode button & control contrast safeguards (docs/button-guidelines.md, docs/ui-guidelines.md) */
:root[data-bs-theme=dark] .btn-dark {
  background-color: #242424 !important;
  border: 1px solid #444444 !important;
  color: #EDEDED !important;
}

:root[data-bs-theme=dark] .btn-dark:hover,
:root[data-bs-theme=dark] .btn-dark:focus,
:root[data-bs-theme=dark] .btn-dark:active {
  background-color: #333333 !important;
  border-color: #555555 !important;
  color: #FFFFFF !important;
}

:root[data-bs-theme=dark] .btn-secondary,
:root[data-bs-theme=dark] .btn-secondary:hover,
:root[data-bs-theme=dark] .btn-secondary:focus,
:root[data-bs-theme=dark] .btn-secondary:active {
  background-color: #B89B5E !important;
  border-color: #B89B5E !important;
  color: #121212 !important;
}

:root[data-bs-theme=dark] .dropdown-menu {
  background-color: #1A1A1A;
  border-color: #333333;
}

:root[data-bs-theme=dark] .dropdown-item {
  color: #EDEDED;
}

:root[data-bs-theme=dark] .dropdown-item:hover,
:root[data-bs-theme=dark] .dropdown-item:focus {
  background-color: #2A2418;
  color: #D4BC8A;
}

/* ---- Motion: 150-300ms, transform and opacity only. ---- */
.sf-will-reveal { opacity: 0; transform: translateY(16px); }
main section, .sf-reveal, .sf-card-lift { transition: opacity 280ms ease, transform 280ms cubic-bezier(.2,.8,.2,1); }
.sf-button:active, .btn:active { transform: scale(.98); }
@view-transition { navigation: auto; }

/* ---- Booking wizard: mirrors the app's four steps. ---- */
.sf-book-cta { padding: 24px 0; }
.sf-wiz { padding: 16px 0 140px; min-height: 70vh; }
.sf-wiz__head { display: flex; align-items: center; gap: 12px; }
.sf-wiz__back { width: 44px; height: 44px; border: 0; background: transparent; color: inherit; font-size: 20px; }
.sf-wiz__bar { height: 3px; margin: 8px 0 24px; background: var(--sf-surface-subtle); overflow: hidden; }
.sf-wiz__bar span { display: block; height: 100%; background: #B89B5E; transform: scaleX(.25); transform-origin: left; transition: transform 240ms ease; }
.sf-wiz__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.sf-wiz__group { font-size: 1rem; margin: 16px 0 8px; }
.sf-wiz__skel { height: 64px; margin-bottom: 12px; position: relative; overflow: hidden; }
.sf-wiz__empty { padding: 32px 0; text-align: center; }
.sf-wiz__why { display: block; min-height: 18px; margin: 4px 0; }
.sf-wiz__summary { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--sf-surface); border-top: 1px solid #E6DECD; }
.sf-wiz__summary-text { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.sf-tile { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; margin-bottom: 12px; padding: 12px 16px; text-align: start; color: inherit; background: var(--sf-surface); border: 1px solid #E6DECD; border-radius: 12px; transition: transform 150ms ease, border-color 150ms ease; }
.sf-tile > span:first-of-type { flex: 1; min-width: 0; }
.sf-tile small { display: block; }
.sf-tile img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.sf-tile__tick { color: #B89B5E; opacity: 0; transform: scale(.5); transition: opacity 150ms ease, transform 150ms ease; }
.sf-tile[aria-pressed="true"] { border-color: #B89B5E; }
.sf-tile[aria-pressed="true"] .sf-tile__tick { opacity: 1; transform: scale(1); }
.sf-tile:active, .sf-slot:active, .sf-date:active { transform: scale(.98); }
.sf-dates { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sf-dates::-webkit-scrollbar { display: none; } /* still scrolls by swipe, wheel and keyboard; the "More" date tile covers the rest */
.sf-date { flex: 0 0 56px; min-height: 64px; color: inherit; background: var(--sf-surface); border: 1px solid #E6DECD; border-radius: 12px; }
.sf-date small { display: block; }
.sf-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 16px; }
.sf-slot { min-height: 44px; color: inherit; background: var(--sf-surface); border: 1px solid #E6DECD; border-radius: 8px; }
.sf-date[aria-pressed="true"], .sf-slot[aria-pressed="true"] { color: #1F1F1F; background: #B89B5E; border-color: #B89B5E; }
.sf-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; }
.sf-row--total { margin-top: 8px; border-top: 1px solid #E6DECD; font-weight: 700; }
.sf-in { animation: sf-step-in 240ms ease both; }
.sf-in--back { animation: sf-step-back 240ms ease both; }
@keyframes sf-step-in { from { opacity: 0; transform: translateX(24px); } }
@keyframes sf-step-back { from { opacity: 0; transform: translateX(-24px); } }
.sf-done { max-width: 420px; margin: 32px auto; text-align: center; }
.sf-done__badge { display: inline-flex; width: 72px; height: 72px; margin-bottom: 16px; border-radius: 50%; background: #B89B5E; }
.sf-done__badge path { fill: none; stroke: #1F1F1F; stroke-width: 4; stroke-dasharray: 40; stroke-dashoffset: 40; animation: sf-tick 300ms 120ms ease forwards; }
@keyframes sf-tick { to { stroke-dashoffset: 0; } }
.sf-book-bar { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--sf-surface); border-top: 1px solid #E6DECD; }
@media (min-width: 992px) {
  .sf-wiz { padding-bottom: 48px; }
  .sf-wiz__grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
  .sf-wiz__summary { position: sticky; top: 96px; padding: 16px; border: 1px solid #E6DECD; border-radius: 12px; }
  .sf-book-bar { position: static; border: 0; padding: 16px 0 0; background: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sf-will-reveal { opacity: 1; transform: none; }
  .sf-button:active, .btn:active, .sf-tile:active, .sf-slot:active, .sf-date:active { transform: none; }
}

/* Booking steps: focused page, app-style details. */
body:has(#sf-wiz) footer { display: none; }
.sf-tile__img { border-radius: 8px !important; }
.sf-tile__any { display: inline-flex; flex: 0 0 44px !important; height: 44px; align-items: center; justify-content: center; border-radius: 50%; background: var(--sf-surface-subtle); font-size: 20px; }
.sf-date--more { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.sf-date--more input { position: absolute; inset: 0; opacity: 0; }
.sf-slots { display: block; margin-top: 8px; }
.sf-slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.sf-done { position: relative; }
.sf-done__close { position: absolute; top: 0; left: 0; display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; color: inherit; font-size: 20px; }
#sf-title:focus, #sf-title:focus-visible { outline: none !important; box-shadow: none !important; }

/* QA fixes: selection must be obvious; the bottom bar must stay small. */
.sf-tile { color: var(--sf-text); padding-inline-end: 12px; }
.sf-tile strong { font-weight: 700; }
.sf-tile__tick { flex: 0 0 24px; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #A3A3A3; border-radius: 50%; color: transparent; opacity: 1; transform: none; font-size: 14px; }
.sf-tile[aria-pressed="true"] { border: 2px solid #B89B5E; background: var(--bs-primary-bg-subtle); }
.sf-tile[aria-pressed="true"] .sf-tile__tick { background: #B89B5E; border-color: #B89B5E; color: #1F1F1F; }
.sf-tile__price { color: var(--sf-text); font-weight: 700; white-space: nowrap; }
.sf-wiz__summary { box-shadow: 0 -4px 16px rgba(31, 31, 31, .08); }
.sf-wiz__summary-text { flex-wrap: nowrap; align-items: center; font-size: .875rem; }
.sf-wiz__summary-text > strong:first-child { display: none; }
.sf-wiz__why { min-height: 0; font-size: .75rem; text-align: center; }
.sf-wiz__why:empty { display: none; }
.sf-wiz { padding-bottom: 150px; }
.sf-book-bar .container { padding: 0; }
@media (min-width: 992px) {
  .sf-wiz { padding-bottom: 48px; }
  .sf-wiz__summary-text { flex-wrap: wrap; font-size: 1rem; }
  .sf-wiz__summary-text > strong:first-child { display: block; width: 100%; }
  /* Desktop has the header "Book now"; a second floating one overlapped the hours card (QA 2026-11-05). */
  .sf-book-bar { display: none; }
}
body:has(#sf-wiz) .sf-topbar { display: none; }
#sf-next { margin-top: 12px; }
.sf-wiz__why:not(:empty) { margin-top: 8px; margin-bottom: 0; }

/* Hero in dark mode: slides are bright photos, so give the text its own dark surface. */
:root[data-bs-theme=dark] .banner-content-wrapper { padding: 24px; border-radius: 12px; background: rgba(18, 18, 18, .78); }
:root[data-bs-theme=dark] .banner-content-wrapper .banner-content-title,
:root[data-bs-theme=dark] .banner-content-wrapper p { color: #FFFFFF !important; }

/* The app section keeps its light beige surface in dark mode, so its text stays dark. */
:root[data-bs-theme=dark] .app-download-section .title,
:root[data-bs-theme=dark] .app-download-section p,
:root[data-bs-theme=dark] .app-download-section li,
:root[data-bs-theme=dark] .app-download-section li span { color: #1F1F1F !important; }
:root[data-bs-theme=dark] .app-download-section .app-download-flow__item { color: #1F1F1F !important; }

/* ------------------------------------------------------------------
   Admin top header, glass style (Settings → Customisation → Navbar: Glass).
   The template's glass assumes a coloured banner behind it (white text on
   translucent white). Our panel has no banner, so on light pages it looked
   grey with unreadable text. Brand version: frosted surface + charcoal text
   in light mode, frosted charcoal + light text in dark mode, gold active tab.
   ------------------------------------------------------------------ */
.iq-navbar.nav-glass {
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(31, 31, 31, .08);
  box-shadow: 0 6px 18px rgba(31, 31, 31, .06);
}
.iq-navbar.nav-glass .navbar-nav .nav-item .nav-link,
.iq-navbar.nav-glass .navbar-nav .caption .caption-title,
.iq-navbar.nav-glass #header-menu .nav-link,
.iq-navbar.nav-glass .iq-sub-card h6 {
  color: #1F1F1F;
}
.iq-navbar.nav-glass .navbar-nav .caption .caption-sub-title,
.iq-navbar.nav-glass .iq-sub-card small {
  color: #5F6670;
}
.iq-navbar.nav-glass .navbar-nav .nav-item .nav-link:hover,
.iq-navbar.nav-glass #header-menu .nav-link:hover {
  color: #8A6F3B;
}
.iq-navbar.nav-glass #header-menu .nav-item.active > .nav-link,
.iq-navbar.nav-glass #header-menu .nav-link.active,
.iq-navbar.nav-glass #header-menu .nav-link[aria-expanded="true"] {
  color: #1F1F1F;
  box-shadow: inset 0 -3px 0 #B89B5E;
}
[data-bs-theme="dark"] .iq-navbar.nav-glass {
  background: rgba(31, 31, 31, .78);
  border-bottom-color: rgba(255, 255, 255, .08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
[data-bs-theme="dark"] .iq-navbar.nav-glass .navbar-nav .nav-item .nav-link,
[data-bs-theme="dark"] .iq-navbar.nav-glass .navbar-nav .caption .caption-title,
[data-bs-theme="dark"] .iq-navbar.nav-glass #header-menu .nav-link,
[data-bs-theme="dark"] .iq-navbar.nav-glass .iq-sub-card h6 {
  color: #F3EFE6;
}
[data-bs-theme="dark"] .iq-navbar.nav-glass .navbar-nav .caption .caption-sub-title,
[data-bs-theme="dark"] .iq-navbar.nav-glass .iq-sub-card small {
  color: #B2ACA0;
}
[data-bs-theme="dark"] .iq-navbar.nav-glass #header-menu .nav-link:hover {
  color: #D4BC8A;
}

/* ------------------------------------------------------------------
   Admin control sizes & filter row uniformity (docs/button-guidelines.md, docs/ui-guidelines.md).
   When controls sit in a row, all controls MUST share the exact same height:
   - Small filter rows / toolbars: 38px
   - Standard form rows: 44px
   ------------------------------------------------------------------ */

/* Small Toolbar & Filter Row: Exactly 38px height for all items */
.btn-sm,
.btn-xs,
.form-control-sm,
.form-select-sm,
.input-group-sm > .form-control,
.input-group-sm > .form-select,
.input-group-sm > .input-group-text,
.input-group-sm > .btn,
.select2-container--sm .select2-selection--single,
.form-select-sm + .select2-container .select2-selection--single {
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  line-height: 1.25 !important;
  border-radius: 6px;
  font-size: 0.875rem !important;
}

.input-group-sm {
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
}

.input-group-sm > .input-group-text {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.375rem 0.75rem !important;
}

.input-group-sm > :first-child {
  border-top-left-radius: 6px !important;
  border-bottom-left-radius: 6px !important;
}
.input-group-sm > :last-child {
  border-top-right-radius: 6px !important;
  border-bottom-right-radius: 6px !important;
}

.btn-sm {
  padding: 0.375rem 0.875rem !important;
  column-gap: 0.375rem;
}

.btn-sm.btn-icon {
  width: 38px !important;
  min-width: 38px !important;
  padding: 0 !important;
}

/* Standard Form Row & Controls: Exactly 44px height */
.form-control:not(.form-control-sm):not(textarea),
.form-select:not(.form-select-sm),
.input-group:not(.input-group-sm) > .form-control,
.input-group:not(.input-group-sm) > .form-select,
.input-group:not(.input-group-sm) > .input-group-text,
.input-group:not(.input-group-sm) > .btn,
/* :root so it beats select2.min.css, which loads after this file. */
:root .select2-container--default .select2-selection--single,
.flatpickr-input:not(textarea):not(.form-control-sm) {
  min-height: 44px !important;
  height: 44px !important;
  border-radius: 8px;
  line-height: 1.25;
}

.select2-container--default .select2-selection--single {
  display: flex !important;
  align-items: center;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 50% !important;
  transform: translateY(-50%);
}
.select2-container--default .select2-selection--multiple { min-height: 44px; border-radius: 8px; }
.multiselect { min-height: 44px; border-radius: 8px; }
textarea.form-control { min-height: 96px; height: auto !important; max-height: none !important; }

/* Toolbar & filter rows: same height, centred, even gaps */
#vendor-filter-form,
.filter-row,
.datatable-filter,
.card-header-toolbar,
.table-top-toolbar,
.page-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Dark button readable in light mode too (charcoal + white), e.g. "Datatable View". */
:root:not([data-bs-theme=dark]) .btn-dark,
:root:not([data-bs-theme=dark]) a.btn-dark {
  background-color: #1F1F1F !important;
  border-color: #1F1F1F !important;
  color: #FFFFFF !important;
}
:root:not([data-bs-theme=dark]) .btn-dark:hover,
:root:not([data-bs-theme=dark]) .btn-dark:focus {
  background-color: #333333 !important;
  border-color: #333333 !important;
  color: #FFFFFF !important;
}
:root:not([data-bs-theme=dark]) .btn-dark i,
:root:not([data-bs-theme=dark]) .btn-dark svg { color: inherit !important; }

/* Website header at laptop widths (1200–1439px): the full menu, search, theme, language
   and the Login/Book button must fit on one line without cutting off the right side. */
@media (min-width: 1200px) and (max-width: 1439.98px) {
  .landing-header #header-menu .nav-link { padding-left: .55rem !important; padding-right: .55rem !important; letter-spacing: 0 !important; font-size: .95rem; }
  .landing-header .navbar-brand img, .landing-header .logo-normal img { max-width: 170px; }
  .landing-header .right-panel .nav-link { padding-left: .4rem !important; padding-right: .4rem !important; }
  .landing-header .right-panel .btn { padding-left: 1rem; padding-right: 1rem; }
}
/* Menu links: brand letter-spacing (not the template's wide tracking). */
.landing-header #header-menu .nav-link { letter-spacing: .01em; }


/* ------------------------------------------------------------------
   Button foregrounds follow the real background (docs/admin-ui-guidelines.md §3, §10).
   Light mode: primary = charcoal → white text; secondary / accent = gold → charcoal text.
   Dark mode:  primary = gold → charcoal text; secondary / accent = gold → charcoal text.
   (One earlier rule forced charcoal text on every primary button, which made charcoal
   buttons and active tabs blank in light mode.)
   ------------------------------------------------------------------ */
:root:not([data-bs-theme=dark]) .btn.btn-primary,
:root:not([data-bs-theme=dark]) .btn.btn-primary *:not(.badge),
:root:not([data-bs-theme=dark]) .swal2-confirm.btn-primary,
:root:not([data-bs-theme=dark]) .nav-pills .nav-link.active,
:root:not([data-bs-theme=dark]) .nav-pills .nav-link.active *,
:root:not([data-bs-theme=dark]) #booking-tabs .nav-link.active,
:root:not([data-bs-theme=dark]) .sf-button:not(.sf-button--secondary):not(.sf-button--accent),
:root:not([data-bs-theme=dark]) .sf-button:not(.sf-button--secondary):not(.sf-button--accent) * {
  color: #FFFFFF !important;
}
:root .btn.btn-secondary, :root .btn.btn-secondary *:not(.badge),
:root .sf-button--accent, :root .sf-button--accent *,
:root .theme-scheme-switch .change-mode i,
:root[data-bs-theme=dark] .btn.btn-primary, :root[data-bs-theme=dark] .btn.btn-primary *:not(.badge),
:root[data-bs-theme=dark] .swal2-confirm.btn-primary,
:root[data-bs-theme=dark] .nav-pills .nav-link.active, :root[data-bs-theme=dark] .nav-pills .nav-link.active *,
:root[data-bs-theme=dark] #booking-tabs .nav-link.active,
:root[data-bs-theme=dark] .sf-button:not(.sf-button--secondary), :root[data-bs-theme=dark] .sf-button:not(.sf-button--secondary) *,
:root[data-bs-theme=dark] header .nav .toggle-rounded-btn i {
  color: #121212 !important;
}

/* Booking tabs (All / Upcoming / Completed): one row, 44px targets, scroll sideways on phones. */
#booking-tabs { display: flex; flex-wrap: nowrap; gap: 12px; overflow-x: auto; scrollbar-width: none; border-bottom: 0; padding-bottom: 4px; }
#booking-tabs::-webkit-scrollbar { display: none; }
#booking-tabs .nav-link { min-height: 44px; white-space: nowrap; border-radius: 8px; padding: 0 20px; display: inline-flex; align-items: center; }
/* Confirm dialogs: buttons stack full width on phones, side by side from 576px. */
.swal2-actions { gap: 12px; width: 100%; }
.swal2-actions .btn { min-height: 44px; min-width: 160px; }
@media (max-width: 575.98px) { .swal2-actions { flex-direction: column; } .swal2-actions .btn { width: 100%; margin: 0 !important; } }
/* Logout confirm dialog: keep Cancel + "Yes, logout" side by side on ONE row at every width
   (overrides the generic mobile stacking above). Buttons share the width equally and never
   overflow the popup — box-sizing + min-width:0 so flex can shrink them. */
.sf-swal-logout .swal2-actions {
    display: flex !important; flex-direction: row !important; flex-wrap: nowrap;
    width: 100%; gap: 12px; margin: 1.25em 0 0 !important; padding: 0 1.6em !important;
    box-sizing: border-box;
}
.sf-swal-logout .swal2-actions .btn {
    flex: 1 1 0; width: auto !important; min-width: 0 !important; max-width: 100%;
    margin: 0 !important; box-sizing: border-box; white-space: nowrap;
}

/* Profile/header dropdown: clean surface, hairline border, shadow and smooth clipping */
.dropdown-user-menu {
  border: 1px solid #E6DECD !important; border-radius: 12px !important;
  background: var(--sf-surface) !important; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
  overflow: hidden;
}
.dropdown-user:focus, .dropdown-user:focus-visible { outline: none !important; box-shadow: none !important; }
[data-bs-theme=dark] .dropdown-user-menu, :root[data-bs-theme=dark] .dropdown-user-menu {
  border-color: #3A3326 !important; background: #1A1A1A !important; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
}

/* Profile/header dropdown "Logout": red TEXT link (matches .sf-account__logout), not a filled bar. */
.btn-logout { border-top: 1px solid #E6DECD; margin-top: 10px; padding: 10px 1rem 14px 1rem; list-style: none; }
.sf-logout-link { display: inline-flex; align-items: center; gap: 8px; color: #B42318 !important; text-decoration: none; transition: color 180ms ease; }
.sf-logout-link:hover, .sf-logout-link:focus { color: #8A1C14 !important; }
[data-bs-theme=dark] .btn-logout, :root[data-bs-theme=dark] .btn-logout { border-color: #3A3326; }
[data-bs-theme=dark] .sf-logout-link, :root[data-bs-theme=dark] .sf-logout-link { color: #FFB4AB !important; }
[data-bs-theme=dark] .sf-logout-link:hover, :root[data-bs-theme=dark] .sf-logout-link:hover { color: #FFC9C2 !important; }

/* Booking wizard: taken times stay visible but greyed out and not selectable (same as the app). */
.sf-slot.is-taken, .sf-slot:disabled {
  background: #F1F1F1 !important; color: #A3A3A3 !important; border-color: #E4E4E4 !important;
  text-decoration: line-through; cursor: not-allowed; pointer-events: none; box-shadow: none !important;
}
:root[data-bs-theme=dark] .sf-slot.is-taken, :root[data-bs-theme=dark] .sf-slot:disabled {
  background: #1C1C1C !important; color: #5E5E5E !important; border-color: #2A2A2A !important;
}

/* Booking wizard: time-slot shimmer has the shape of the time chips. */
.sf-slot-skel { display: block; height: 44px; border-radius: 8px; }

/* Header bell: a visible 40px icon button, the count badge pinned to its top-right corner. */
.iq-navbar .iq-dropdown > .nav-link.btn-action {
  position: relative !important; width: 40px !important; height: 40px !important; padding: 0 !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  background: transparent !important; border: 1px solid rgba(0,0,0,.08) !important; box-shadow: none !important;
  overflow: visible !important;
}
.iq-navbar .iq-dropdown > .nav-link.btn-action .fa-bell { color: #1F1F1F !important; font-size: 16px; }
:root[data-bs-theme=dark] .iq-navbar .iq-dropdown > .nav-link.btn-action { border-color: #333 !important; }
:root[data-bs-theme=dark] .iq-navbar .iq-dropdown > .nav-link.btn-action .fa-bell { color: #EDEDED !important; }
.iq-navbar .iq-dropdown > .nav-link.btn-action .notification-alert {
  position: absolute !important; top: -4px !important; right: -4px !important; left: auto !important; bottom: auto !important; transform: none !important;
  min-width: 20px !important; height: 20px !important; padding: 0 5px !important; border-radius: 999px !important;
  background: #B42318 !important; color: #FFFFFF !important;
  font-size: 11px !important; font-weight: 700 !important; line-height: 16px !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  text-align: center !important; white-space: nowrap !important;
  border: 2px solid #FFFFFF !important; box-sizing: border-box !important;
  z-index: 10 !important; overflow: visible !important; pointer-events: none;
}
:root[data-bs-theme=dark] .iq-navbar .iq-dropdown > .nav-link.btn-action .notification-alert { border-color: #121212 !important; }

/* Dashboard date range: wide enough for "2026-10-25 to 2026-11-04". */
.sf-date-range { min-width: 240px; }
@media (max-width: 575.98px) { .sf-date-range { min-width: 0; width: 100%; } }

/* System & Operations menu: titles read as links, not disabled text. */
.iq-sub-drop .dropdown-item .fw-semibold { color: #1F1F1F !important; }
.iq-sub-drop .dropdown-item:hover { background: #FAF7F1; }
:root[data-bs-theme=dark] .iq-sub-drop .dropdown-item .fw-semibold { color: #EDEDED !important; }
:root[data-bs-theme=dark] .iq-sub-drop .dropdown-item:hover { background: #242424; }

/* Super admin platform overview (resources/views/backend/dashboard/platform.blade.php). */
.sf-platform .card-header { padding: 16px 20px; background: transparent; border-bottom: 1px solid rgba(0,0,0,.06); }
.sf-kpi { transition: box-shadow .15s, transform .15s; }
.sf-kpi:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-1px); }
.sf-kpi__label { font-size: 12px; font-weight: 600; color: #6B665E; }
.sf-kpi__icon { color: #8A6F3B; font-size: 14px; }
.sf-kpi__value { font-size: 26px; font-weight: 700; color: #1F1F1F; line-height: 1.2; margin: 6px 0 2px; }
.sf-row:hover { background: #FAF7F1; }
.sf-avatar { width: 40px; height: 40px; border-radius: 50%; background: #F3EFE6; color: #1F1F1F; border: 1px solid #E6DCC8; font-size: 14px; letter-spacing: .5px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.sf-chip { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.sf-chip--wait { background: rgba(184,155,94,.15); color: #8A6F3B; }
.sf-chip--good { background: rgba(30,123,69,.12); color: #1E7B45; }
.sf-chip--info { background: rgba(31,95,168,.12); color: #1F5FA8; }
.sf-chip--bad  { background: rgba(180,35,24,.10); color: #B42318; }
.sf-bar { height: 6px; border-radius: 3px; background: #F0ECE4; overflow: hidden; }
.sf-bar span { display: block; height: 100%; border-radius: 3px; }
.sf-bar .sf-chip--wait { background: #B89B5E; } .sf-bar .sf-chip--good { background: #1E7B45; }
.sf-bar .sf-chip--info { background: #1F5FA8; } .sf-bar .sf-chip--bad { background: #B42318; }
:root[data-bs-theme=dark] .sf-kpi__value { color: #EDEDED; }
:root[data-bs-theme=dark] .sf-kpi__label { color: #B2ACA0; }
:root[data-bs-theme=dark] .sf-row:hover { background: #242424; }
:root[data-bs-theme=dark] .sf-bar { background: #2A2A2A; }
:root[data-bs-theme=dark] .sf-platform .card-header { border-color: #333; }

/* Avatars, one scale for the whole admin (docs/admin-navigation-and-avatars.md §3).
   24 inline · 32 compact · 40 table rows · 48 list rows/cards · 64 card headers · 96 profile.
   Legacy template sizes snap to the nearest step, so every screen shows the same sizes. */
img.avatar, .avatar img, img.rounded-pill.avatar { aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; flex-shrink: 0; background: #F3EFE6; }
.avatar-18, .avatar-20, .avatar-28 { width: 24px !important; height: 24px !important; min-width: 24px; }
.avatar-32 { width: 32px !important; height: 32px !important; min-width: 32px; }
.avatar-40, .avatar-50 { width: 40px !important; height: 40px !important; min-width: 40px; }
.avatar-48, .avatar-60 { width: 48px !important; height: 48px !important; min-width: 48px; }
.avatar-64, .avatar-70 { width: 64px !important; height: 64px !important; min-width: 64px; }
.avatar-96, .avatar-120, .avatar-140, .avatar-200 { width: 96px !important; height: 96px !important; min-width: 96px; }
:root[data-bs-theme=dark] img.avatar { background: #242424; }

/* Sidebar counts (Salon requests, Staff requests, Notifications). Same colours as the chips. */
.sidebar .nav-link { position: relative; }
.sf-nav-count { margin-left: auto; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 10px; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; }
.sf-nav-count--wait { background: rgba(184,155,94,.18); color: #8A6F3B; }
.sf-nav-count--alert { background: #B42318; color: #FFFFFF; }
:root[data-bs-theme=dark] .sf-nav-count--wait { background: rgba(184,155,94,.25); color: #D4BC8A; }

/* Selected state, one look everywhere in the header (docs/admin-layout-types.md §3):
   a short 2px charcoal underline under the label. No gold boxes, no full-width bars, no rounded rectangle. */
.iq-navbar .iq-nav-menu > .nav-item > .nav-link,
.iq-navbar #header-menu .nav-link,
.horizontal-nav #header-menu .nav-link,
.landing-header #header-menu .nav-link {
  position: relative;
  box-shadow: none !important;
  background: transparent !important;
  background-color: transparent !important;
  border-radius: 0 !important;
}

.iq-navbar #header-menu .nav-link:hover,
.horizontal-nav #header-menu .nav-link:hover,
.landing-header #header-menu .nav-link:hover {
  color: #8A6F3B !important;
  background: transparent !important;
  background-color: transparent !important;
}

:root[data-bs-theme=dark] .iq-navbar #header-menu .nav-link:hover,
:root[data-bs-theme=dark] .horizontal-nav #header-menu .nav-link:hover,
:root[data-bs-theme=dark] .landing-header #header-menu .nav-link:hover {
  color: #D4BC8A !important;
  background: transparent !important;
  background-color: transparent !important;
}

.iq-navbar .iq-nav-menu > .nav-item.sf-current > .nav-link,
.iq-navbar .iq-nav-menu > .nav-item.active > .nav-link,
.iq-navbar .iq-nav-menu > .nav-item > .nav-link.active,
.iq-navbar #header-menu .nav-item.active > .nav-link,
.iq-navbar #header-menu .nav-link.active,
.horizontal-nav #header-menu .nav-item.active > .nav-link,
.horizontal-nav #header-menu .nav-link.active,
.landing-header #header-menu .nav-item.active > .nav-link,
.landing-header #header-menu .nav-link.active {
  color: #1F1F1F !important;
  font-weight: 600 !important;
  background: transparent !important;
  background-color: transparent !important;
  border-radius: 0 !important;
}

.iq-navbar .iq-nav-menu > .nav-item.sf-current > .nav-link::after,
.iq-navbar .iq-nav-menu > .nav-item.active > .nav-link::after,
.iq-navbar .iq-nav-menu > .nav-item > .nav-link.active::after,
.iq-navbar #header-menu .nav-item.active > .nav-link::after,
.iq-navbar #header-menu .nav-link.active::after,
.horizontal-nav #header-menu .nav-item.active > .nav-link::after,
.horizontal-nav #header-menu .nav-link.active::after,
.landing-header #header-menu .nav-item.active > .nav-link::after,
.landing-header #header-menu .nav-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 18px;
  height: 2px;
  margin-left: -9px;
  border-radius: 2px;
  background: #1F1F1F;
}

@media (min-width: 1200px) {
  .horizontal-nav #header-menu .nav-item.active > .nav-link::after,
  .horizontal-nav #header-menu .nav-link.active::after,
  .landing-header #header-menu .nav-item.active > .nav-link::after,
  .landing-header #header-menu .nav-link.active::after {
    bottom: 20px;
  }
}

:root[data-bs-theme=dark] .iq-navbar .iq-nav-menu > .nav-item.sf-current > .nav-link,
:root[data-bs-theme=dark] .iq-navbar .iq-nav-menu > .nav-item.active > .nav-link,
:root[data-bs-theme=dark] .iq-navbar .iq-nav-menu > .nav-item > .nav-link.active,
:root[data-bs-theme=dark] .iq-navbar #header-menu .nav-item.active > .nav-link,
:root[data-bs-theme=dark] .iq-navbar #header-menu .nav-link.active,
:root[data-bs-theme=dark] .horizontal-nav #header-menu .nav-item.active > .nav-link,
:root[data-bs-theme=dark] .horizontal-nav #header-menu .nav-link.active,
:root[data-bs-theme=dark] .landing-header #header-menu .nav-item.active > .nav-link,
:root[data-bs-theme=dark] .landing-header #header-menu .nav-link.active {
  color: #F3EFE6 !important;
  background: transparent !important;
  background-color: transparent !important;
}

:root[data-bs-theme=dark] .iq-navbar .iq-nav-menu > .nav-item.sf-current > .nav-link::after,
:root[data-bs-theme=dark] .iq-navbar .iq-nav-menu > .nav-item.active > .nav-link::after,
:root[data-bs-theme=dark] .iq-navbar .iq-nav-menu > .nav-item > .nav-link.active::after,
:root[data-bs-theme=dark] .iq-navbar #header-menu .nav-item.active > .nav-link::after,
:root[data-bs-theme=dark] .iq-navbar #header-menu .nav-link.active::after,
:root[data-bs-theme=dark] .horizontal-nav #header-menu .nav-item.active > .nav-link::after,
:root[data-bs-theme=dark] .horizontal-nav #header-menu .nav-link.active::after,
:root[data-bs-theme=dark] .landing-header #header-menu .nav-item.active > .nav-link::after,
:root[data-bs-theme=dark] .landing-header #header-menu .nav-link.active::after {
  background: #F3EFE6 !important;
}
/* Header buttons (System & Operations, profile): no gold outline when open or focused. */
.iq-navbar .iq-dropdown > .nav-link, .iq-navbar .nav-item.dropdown > .nav-link,
.iq-navbar .iq-dropdown > .nav-link:focus, .iq-navbar .nav-item.dropdown > .nav-link:focus,
.iq-navbar .iq-dropdown > .nav-link[aria-expanded="true"], .iq-navbar .nav-item.dropdown > .nav-link[aria-expanded="true"],
.iq-navbar .iq-sub-card { outline: none !important; border-color: transparent !important; box-shadow: none !important; }
.iq-navbar .iq-dropdown > .nav-link[aria-expanded="true"] .iq-sub-card { background: rgba(0,0,0,.04); border-radius: 10px; }
:root[data-bs-theme=dark] .iq-navbar .iq-dropdown > .nav-link[aria-expanded="true"] .iq-sub-card { background: rgba(255,255,255,.06); }

/* Cards stand out on the page background (light grey page, white card, hairline edge). */
:root:not([data-bs-theme=dark]) .card { border: 1px solid #ECE8E0; box-shadow: 0 1px 2px rgba(31,31,31,.04); }
:root[data-bs-theme=dark] .card { border: 1px solid #2E2E2E; }

/* Page band (docs/admin-layout-types.md §1). Same structure and sizes as the original template
   (admin-panel/temp_2): .iq-banner wrapper, 120px title area, a 160px band (.iq-header-img) behind it,
   content pulled up 2.5rem over the band. Only the colours change:
   - the header stays solid white and covers the top of the band (no see-through glass on band pages);
   - the band is charcoal instead of the template's primary colour;
   - top tabs stay charcoal (the template turns them white for its transparent header). */
.iq-banner .iq-navbar.nav-glass { background: #FFFFFF !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
:root[data-bs-theme=dark] .iq-banner .iq-navbar.nav-glass { background: #1A1A1A !important; }
.iq-banner .iq-navbar .iq-nav-menu > .nav-item > .nav-link,
.iq-banner .iq-navbar .iq-nav-menu > .nav-item > .menu-arrow { color: #6B665E !important; }
.iq-banner .iq-navbar .iq-nav-menu > .nav-item.sf-current > .nav-link { color: #1F1F1F !important; }
:root[data-bs-theme=dark] .iq-banner .iq-navbar .iq-nav-menu > .nav-item > .nav-link { color: #B2ACA0 !important; }
:root[data-bs-theme=dark] .iq-banner .iq-navbar .iq-nav-menu > .nav-item.sf-current > .nav-link { color: #F3EFE6 !important; }
.iq-banner .navs-bg-color.iq-navbar-header .iq-header-img,
.iq-banner .iq-navbar-header .iq-header-img { display: block !important; background-color: #1F1F1F !important;
  background-image: radial-gradient(90% 160% at 100% 0%, rgba(184,155,94,.24) 0%, rgba(184,155,94,0) 60%) !important; }
:root[data-bs-theme=dark] .iq-banner .iq-navbar-header .iq-header-img { background-color: #161616 !important; }
.iq-banner .iq-navbar-header h2 { color: #F3EFE6 !important; margin: 0; font-weight: 600; }

/* Password show/hide (public/js/sf-password.js, <x-password-field>). */
.sf-pw { position: relative; display: block; }
.sf-pw > input { padding-right: 48px !important; }
.sf-pw-toggle { position: absolute; top: 50%; right: 2px; transform: translateY(-50%); width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: #6B665E; border-radius: 8px; cursor: pointer; }
.sf-pw-toggle:hover { color: #1F1F1F; }
.sf-pw-toggle:focus-visible { outline: 2px solid #B89B5E; outline-offset: -4px; }
.sf-pw-toggle--addon { position: static; transform: none; width: 44px; height: auto; background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); }
:root[data-bs-theme=dark] .sf-pw-toggle { color: #B2ACA0; }
:root[data-bs-theme=dark] .sf-pw-toggle:hover { color: #EDEDED; }

/* Names in lists read as titles (dark), the second line stays muted. The template's body colour is grey,
   so `.text-reset` links inherited grey and looked disabled. */
.sf-platform .fw-semibold, .sf-platform a.text-reset, .table td .fw-semibold { color: #1F1F1F; }
:root[data-bs-theme=dark] .sf-platform .fw-semibold, :root[data-bs-theme=dark] .sf-platform a.text-reset, :root[data-bs-theme=dark] .table td .fw-semibold { color: #EDEDED; }

:root[data-bs-theme=dark] .sf-avatar { background: #2A2621; color: #D4BC8A; border-color: #3A342B; }
/* Band layer: the title area is its own stacking context so the band (z-index -1) paints above the page background. */
.iq-banner .iq-navbar-header { position: relative; z-index: 0; background: transparent !important; }

/* Rules added in the working copy after a156ecd (doc preview, active tab underline, button text). */
.nav-tabs .nav-link.active {
  color: #1F1F1F !important;
  border-color: #dee2e6 #dee2e6 #B89B5E !important;
  border-bottom-width: 2px !important;
}

:root[data-bs-theme=dark] .nav-tabs .nav-link.active {
  color: #B89B5E !important;
  border-color: #2A2A2A #2A2A2A #B89B5E !important;
}

.btn,
.btn-sm,
.btn-lg,
a.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  vertical-align: middle;
  line-height: 1.25;
}

.btn-sm,
.btn-xs,
.form-control-sm,
.form-select-sm,
.input-group-sm>.form-control,
.input-group-sm>.form-select,
.input-group-sm>.input-group-text,
.input-group-sm>.btn,
.select2-container--sm .select2-selection--single,
.form-select-sm+.select2-container .select2-selection--single {
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  line-height: 1.25 !important;
  border-radius: 6px;
  font-size: 0.875rem !important;
}

:root[data-bs-theme=dark] .btn.btn-primary,
:root[data-bs-theme=dark] .btn.btn-primary *:not(.badge),
:root[data-bs-theme=dark] .btn.btn-secondary,
:root[data-bs-theme=dark] .btn.btn-secondary *:not(.badge),
:root[data-bs-theme=dark] .sf-button:not(.sf-button--secondary),
:root[data-bs-theme=dark] .sf-button:not(.sf-button--secondary) *,
:root[data-bs-theme=dark] .theme-scheme-switch .change-mode i,
:root[data-bs-theme=dark] header .nav .toggle-rounded-btn i {
  color: #121212 !important;
}

.sf-doc-preview { border: 1px solid var(--bs-border-color); border-radius: .75rem; overflow: hidden; background: var(--bs-body-bg); }

.sf-doc-preview__bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; padding: .625rem .875rem; border-bottom: 1px solid var(--bs-border-color); }

.sf-doc-preview__name { display: flex; align-items: center; gap: .5rem; font-weight: 600; min-width: 0; }

.sf-doc-preview__name i { color: #8A6F3B; }

[data-bs-theme="dark"] .sf-doc-preview__name i { color: #B89B5E; }

.sf-doc-preview__body { background: var(--bs-tertiary-bg); }

.sf-doc-preview__body iframe { display: block; width: 100%; height: 70vh; min-height: 420px; border: 0; background: #fff; }

.sf-doc-preview__body img { display: block; max-width: 100%; max-height: 70vh; margin: 0 auto; object-fit: contain; }

/* ---- Sinhala and Tamil (html[lang=si], html[lang=ta]) — ui-guidelines §14 ----
   Letter-spacing splits Sinhala/Tamil vowel signs from their consonant (ස ැ ල ූ න්, கொ),
   and uppercase does nothing for either script, so both are reset everywhere for these languages.
   Noto Sans Sinhala / Noto Sans Tamil render the glyphs Inter does not have. */
html[lang="si"] body { font-family: "Lexend Deca", "Noto Sans Sinhala", "Sinhala Sangam MN", system-ui, sans-serif; }
html[lang="ta"] body { font-family: "Lexend Deca", "Noto Sans Tamil", "Tamil Sangam MN", "Latha", system-ui, sans-serif; }
html[lang="si"] *, html[lang="si"] *::before, html[lang="si"] *::after,
html[lang="ta"] *, html[lang="ta"] *::before, html[lang="ta"] *::after { letter-spacing: normal !important; }
html[lang="si"] .sf-chip, html[lang="si"] .badge, html[lang="si"] th,
html[lang="si"] .iq-main-menu .static-item, html[lang="si"] .sidebar .static-item,
html[lang="ta"] .sf-chip, html[lang="ta"] .badge, html[lang="ta"] th,
html[lang="ta"] .iq-main-menu .static-item, html[lang="ta"] .sidebar .static-item { text-transform: none !important; line-height: 1.45; }
html[lang="si"] .btn, html[lang="ta"] .btn { white-space: normal; line-height: 1.3; }

/* ---- Footer & Page Layout Safety (docs/ui-guidelines.md) ----
   Ensures the footer always has a solid background with top border and never overlaps
   page content. Provides bottom breathing space for sticky footer layouts. */
.footer {
  background-color: var(--bs-body-bg) !important;
  border-top: 1px solid var(--bs-border-color) !important;
  color: var(--bs-body-color) !important;
}
:root[data-bs-theme=dark] .footer {
  background-color: #121212 !important;
  border-top-color: #2A2A2A !important;
}
.content-inner#page_layout,
#page_layout {
  padding-bottom: 4.5rem !important;
}

/* ---- Menu Builder Isolation & Control Buttons ----
   Exempt Menu Builder elements from sidebar full-width button stretching (Rule 2). */
.sf-menu-drag-area,
.sf-menu-card,
.sf-btn-ctrl {
  box-sizing: border-box;
}
.sf-btn-ctrl {
  width: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 6px !important;
  white-space: normal !important;
}


/* Menu builder (Settings > Menu Builder): monochrome. Bootstrap "secondary" is gold app-wide, so inside the
   builder icons, outline buttons, badges and selected options use charcoal instead, and titles use full text colour. */
.sf-menu-builder-container .text-secondary,
.sf-menu-builder-container .sf-menu-icon-slot i,
.sf-menu-builder-container .sf-type-badge,
.sf-menu-builder-container .sf-drag-handle { color: #3A3833 !important; }
.sf-menu-builder-container .sf-menu-title { color: #1F1F1F !important; }
.sf-menu-builder-container .btn-outline-secondary { color: #1F1F1F !important; border-color: #1F1F1F !important; background: transparent !important; }
.sf-menu-builder-container .btn-outline-secondary:hover,
.sf-menu-builder-container .btn-outline-secondary:focus-visible { color: #FFFFFF !important; background: #1F1F1F !important; }
.sf-menu-builder-container .btn-outline-secondary:hover * { color: #FFFFFF !important; }
.sf-menu-builder-container .sf-badge-count,
.sf-menu-builder-container .badge.bg-secondary-subtle { color: #1F1F1F !important; background: #F1EFEA !important; border-color: #DDD8CE !important; }
.sf-menu-builder-container .sf-menu-card:hover { border-color: #1F1F1F !important; }
.sf-menu-builder-container .multiselect-option.is-selected { background: #1F1F1F !important; color: #FFFFFF !important; }
.sf-menu-builder-container .multiselect.is-active { box-shadow: 0 0 0 3px rgba(31,31,31,.18) !important; }
:root[data-bs-theme=dark] .sf-menu-builder-container .text-secondary,
:root[data-bs-theme=dark] .sf-menu-builder-container .sf-menu-icon-slot i,
:root[data-bs-theme=dark] .sf-menu-builder-container .sf-type-badge,
:root[data-bs-theme=dark] .sf-menu-builder-container .sf-drag-handle { color: #CFC8BA !important; }
:root[data-bs-theme=dark] .sf-menu-builder-container .sf-menu-title { color: #F3EFE6 !important; }
:root[data-bs-theme=dark] .sf-menu-builder-container .btn-outline-secondary { color: #F3EFE6 !important; border-color: #F3EFE6 !important; }
:root[data-bs-theme=dark] .sf-menu-builder-container .btn-outline-secondary:hover { color: #121212 !important; background: #F3EFE6 !important; }
:root[data-bs-theme=dark] .sf-menu-builder-container .sf-badge-count,
:root[data-bs-theme=dark] .sf-menu-builder-container .badge.bg-secondary-subtle { color: #F3EFE6 !important; background: #2A2A2A !important; border-color: #3A3A3A !important; }
:root[data-bs-theme=dark] .sf-menu-builder-container .sf-menu-card:hover { border-color: #F3EFE6 !important; }

/* ── Customer auth (website sign-in / sign-up): "or" divider, Google and secondary buttons ──
   Buttons are the shared .sf-button (primary) and .sf-button--secondary. */
.sf-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
  color: var(--sf-text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sf-auth-divider::before,
.sf-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--sf-border-subtle);
}
.sf-auth-switch {
  margin-top: 24px;
  text-align: center;
  color: var(--sf-text-muted);
  font-size: 14px;
}
.sf-auth-switch .sf-button { margin-top: 8px; }

/* ===================================================================================
   Website (customer) — salon card, salon page, statuses, empty states, footer links.
   Appended 2026-11-05. Colours: charcoal #1F1F1F, gold #B89B5E (accents only),
   gold ink #8A6F3B for gold text on light, cream #FAF7F1. All text pairs ≥ 4.5:1.
   =================================================================================== */

/* Shared salon card (resources/views/components/sf-salon-card.blade.php) */
.sf-salon-card { display: flex; flex-direction: column; height: 100%; font-family: 'Lexend Deca', sans-serif; }
.sf-salon-card__img { aspect-ratio: 4 / 3; overflow: hidden; }
.sf-salon-card__body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex-grow: 1; }
.sf-salon-card__name { font-size: 1.0625rem; font-weight: 600; line-height: 1.35; margin: 0; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sf-salon-card__area { margin: 0; font-size: .875rem; color: var(--sf-text-muted, #5F6670);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-salon-card__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin-top: auto; padding-top: 4px; }
.sf-salon-card__price { font-size: .875rem; font-weight: 600; color: var(--sf-text, #1F1F1F); white-space: nowrap; }
.sf-salon-card__foot { padding: 0 16px 16px; }
.sf-salon-card .sf-salon-card__link:focus-visible { outline: 3px solid rgba(23, 92, 211, .45); outline-offset: -3px; }
.sf-salon-card.is-selected { border-color: #1F1F1F; box-shadow: 0 0 0 2px #1F1F1F; }

/* Rating: gold star (decorative), number in gold ink so it passes 4.5:1 on white (5.0:1). */
.sf-rating { display: inline-flex; align-items: center; gap: 4px; font-size: .875rem; }
.sf-rating .ph-star { color: #B89B5E; }
.sf-rating strong { color: #8A6F3B; font-weight: 700; }
.sf-rating__count { color: var(--sf-text-muted, #5F6670); }
.sf-rating--new { color: #8A6F3B; font-weight: 600; }
:root[data-bs-theme=dark] .sf-rating strong,
:root[data-bs-theme=dark] .sf-rating--new { color: #D4BC8A; }

/* Verified slot */
.sf-verified { display: inline-flex; align-items: center; gap: 4px; color: #8A6F3B; font-size: 1.125rem; line-height: 1; flex-shrink: 0; }
.sf-verified--label { font-size: .8125rem; font-weight: 600; background: #F2E9D7; color: #5C4A24; border-radius: 999px; padding: 4px 10px; }
:root[data-bs-theme=dark] .sf-verified { color: #D4BC8A; }
:root[data-bs-theme=dark] .sf-verified--label { background: #2A2418; color: #E6D3A8; }

/* Founding salon badge (pre-registration campaign): gold ink #8A6F3B on light (4.9:1 on white), gold #B89B5E on dark. */
.sf-founding { display: inline-flex; align-items: center; gap: 4px; color: #8A6F3B; font-size: 1.125rem; line-height: 1; flex-shrink: 0; }
.sf-founding--label { font-size: .8125rem; font-weight: 600; border: 1px solid #8A6F3B; border-radius: 999px; padding: 3px 10px; background: transparent; }
:root[data-bs-theme=dark] .sf-founding { color: #B89B5E; }
:root[data-bs-theme=dark] .sf-founding--label { border-color: #B89B5E; }
.sf-founding-offer { display: grid; gap: 8px; border: 1px solid #E7DCC6; border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; background: #FAF7F1; color: #1F1F1F; }
:root[data-bs-theme=dark] .sf-founding-offer { border-color: #3A3122; background: #1F1B14; color: #F1EBDD; }

/* Status chips: open #067A3E on #DFF3E4 (5.3:1), closed #B42318 on #FDECEA (5.6:1). */
.sf-status--open { background: #DFF3E4; color: #067A3E; }
.sf-status--closed { background: #FDECEA; color: #B42318; }
.sf-text-open { color: #067A3E; }
.sf-text-closed { color: #B42318; }
:root[data-bs-theme=dark] .sf-status--open { background: #12301E; color: #7EE2A8; }
:root[data-bs-theme=dark] .sf-status--closed { background: #3A1715; color: #FFB4AB; }
:root[data-bs-theme=dark] .sf-status--pending { background: #2A2418; color: #E6D3A8; }
:root[data-bs-theme=dark] .sf-status--success { background: #12301E; color: #7EE2A8; }
:root[data-bs-theme=dark] .sf-text-open { color: #7EE2A8; }
:root[data-bs-theme=dark] .sf-text-closed { color: #FFB4AB; }

/* Salon page header: name + meta on the page background, Book CTA on the right. */
.sf-salon-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.sf-salon-head__main { min-width: 0; flex: 1 1 320px; }
.sf-salon-head__name { overflow-wrap: anywhere; }
.sf-salon-head__type { font-size: .75rem; font-weight: 600; border: 1px solid var(--sf-border, #9AA2AC); border-radius: 999px; padding: 2px 10px; color: var(--sf-text, #1F1F1F); }
.sf-salon-head__cta { flex-shrink: 0; }
/* Tabs and their content never overlap: normal flow, fixed gaps. */
.sf-salon-tabs { position: relative; z-index: 1; margin: 32px 0 0 !important; padding: 0; }
.sf-salon-tabs__content { position: relative; z-index: 0; margin-top: 24px; clear: both; }
/* Sidebar photo: the open/closed chip sits on a scrim, never straight on the image. */
.branch-details-box > div:first-child { position: relative; }
.sf-img-scrim { position: absolute; inset: 0 0 auto 0; height: 96px; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, rgba(18, 18, 18, .6) 0%, rgba(18, 18, 18, 0) 100%); }
.branch-details-box .branch-meta { z-index: 1; }

/* Empty states (search, wishlist, notifications) */
.sf-empty-state { max-width: 460px; margin: 0 auto; padding: 48px 16px; text-align: center; font-family: 'Lexend Deca', sans-serif; }
.sf-empty-state__icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: #FAF7F1; color: #8A6F3B; font-size: 32px; margin-bottom: 16px; }
.sf-empty-state__title { font-size: 1.25rem; font-weight: 600; margin-bottom: 8px; color: var(--sf-text, #1F1F1F); }
.sf-empty-state__text { color: var(--sf-text-muted, #5F6670); margin-bottom: 24px; }
.sf-empty-state__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
:root[data-bs-theme=dark] .sf-empty-state__icon { background: #2A2418; color: #D4BC8A; }

/* Customer auth inside the split layout: Frezka's input-group icon sits flush with the field. */
.sf-auth__card .custom-input-group .input-group-text { background: transparent; border-color: var(--sf-border, #9AA2AC); }
.sf-auth__card .form-group { margin-bottom: 0; }

/* Footer links: muted grey only inside the footer (the old unscoped anchor rule leaked the grey onto every page). */
footer a:not(.sf-button):not(.btn) { color: #3D3D3D; }
footer a:not(.sf-button):not(.btn):hover { color: #1F1F1F; }
:root[data-bs-theme=dark] footer a:not(.sf-button):not(.btn) { color: #C9C9C9; }
:root[data-bs-theme=dark] footer a:not(.sf-button):not(.btn):hover { color: #FFFFFF; }
footer .footer-bottom a { color: #FFFFFF; }

/* ── Salon billing lock (x-salon-lock-banner, x-salon-lock-card, sidebar lock icons) ──────────────
   docs/reusable-components.md §2. State comes from SalonSubscription::state() via the admin layout.
   Gold surfaces carry charcoal text in both modes; gold text on light uses gold ink #8A6F3B. */
.sf-lock-banner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 0 0 16px; padding: 12px 16px; border-radius: 8px;
  background: #FAF7F1; border: 1px solid #E6DCC6; color: #1F1F1F;
  position: relative; z-index: 2;
}
.sf-lock-banner__icon {
  flex: 0 0 36px; width: 36px; height: 36px; border-radius: 8px;
  display: grid; place-items: center; background: rgba(184,155,94,.18); color: #8A6F3B;
}
.sf-lock-banner__text { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.sf-lock-banner__text strong { font-weight: 600; color: #1F1F1F; }
.sf-lock-banner__text span { color: #6B665E; }
.sf-lock-banner__action { flex: 0 0 auto; }
.sf-lock-banner--grace { border-color: rgba(180,35,24,.35); }
.sf-lock-banner--grace .sf-lock-banner__icon,
.sf-lock-banner--locked .sf-lock-banner__icon { background: rgba(180,35,24,.10); color: #B42318; }
.sf-lock-banner--locked { background: #FFFFFF; border-color: rgba(180,35,24,.45); }
:root[data-bs-theme=dark] .sf-lock-banner { background: #1A1A1A; border-color: #3A3326; color: #EDEDED; }
:root[data-bs-theme=dark] .sf-lock-banner__text strong { color: #EDEDED; }
:root[data-bs-theme=dark] .sf-lock-banner__text span { color: #B2ACA0; }
:root[data-bs-theme=dark] .sf-lock-banner__icon { background: rgba(184,155,94,.22); color: #D4BC8A; }
:root[data-bs-theme=dark] .sf-lock-banner--grace .sf-lock-banner__icon,
:root[data-bs-theme=dark] .sf-lock-banner--locked .sf-lock-banner__icon { background: rgba(240,68,56,.16); color: #F97066; }
:root[data-bs-theme=dark] .sf-lock-banner--grace,
:root[data-bs-theme=dark] .sf-lock-banner--locked { border-color: rgba(240,68,56,.45); }

/* Locked page: the real page renders blurred and inert; the card sits on top. */
.sf-locked { position: relative; min-height: 420px; }
.sf-locked__page { filter: blur(6px) saturate(.6); opacity: .55; pointer-events: none; user-select: none; max-height: 70vh; overflow: hidden; }
.sf-locked__overlay { position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; z-index: 3; }
.sf-lock-card {
  width: 100%; max-width: 440px; margin: 0; padding: 32px 28px; text-align: center;
  border-radius: 12px; border: 1px solid #E6DCC6; box-shadow: 0 16px 40px rgba(31,31,31,.14);
}
.sf-lock-card__tile {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 12px;
  display: grid; place-items: center; background: #1F1F1F; color: #B89B5E; font-size: 22px;
}
.sf-lock-card__title { font-size: 20px; line-height: 28px; font-weight: 600; color: #1F1F1F; margin: 0 0 8px; }
.sf-lock-card__line { color: #6B665E; margin: 0 0 16px; font-size: 14px; }
.sf-lock-card__waiting { margin: 0 0 20px; }
.sf-lock-card__note { margin: 0; color: #6B665E; font-size: 14px; }
.sf-lock-card__actions { display: flex; flex-direction: column; gap: 8px; }
.sf-lock-card__actions .btn { width: 100%; min-height: 44px; justify-content: center; }
:root[data-bs-theme=dark] .sf-lock-card { background: #1A1A1A; border-color: #333; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
:root[data-bs-theme=dark] .sf-lock-card__tile { background: #B89B5E; color: #121212; }
:root[data-bs-theme=dark] .sf-lock-card__title { color: #EDEDED; }
:root[data-bs-theme=dark] .sf-lock-card__line,
:root[data-bs-theme=dark] .sf-lock-card__note { color: #B2ACA0; }
@media (max-width: 575.98px) { .sf-locked__overlay { padding: 24px 0; } .sf-lock-card { padding: 24px 16px; } }

/* Sidebar: every module shows a lock while the owner's salon is locked; Billing stays open and highlighted. */
.sf-billing-locked #sidebar-menu > li.nav-item:not(.sf-nav-billing) > .nav-link { opacity: .62; }
.sf-billing-locked #sidebar-menu > li.nav-item:not(.sf-nav-billing) > .nav-link::after {
  content: "\f023"; font-family: "Font Awesome 6 Free", "Font Awesome 5 Free"; font-weight: 900;
  font-size: 11px; margin-left: auto; padding-left: 8px; color: #6B665E;
}
:root[data-bs-theme=dark] .sf-billing-locked #sidebar-menu > li.nav-item:not(.sf-nav-billing) > .nav-link::after { color: #B2ACA0; }
.sf-nav-billing--alert > .nav-link { background: rgba(184,155,94,.15); font-weight: 600; }
:root[data-bs-theme=dark] .sf-nav-billing--alert > .nav-link { background: rgba(184,155,94,.22); }

/* Billing page */
.sf-plan-option { display: block; cursor: pointer; margin: 0; }
.sf-plan-option input { position: absolute; opacity: 0; pointer-events: none; }
.sf-plan-option__box { display: block; padding: 16px; border-radius: 8px; border: 1.5px solid #E6DCC6; background: #FFFFFF; height: 100%; }
.sf-plan-option input:checked + .sf-plan-option__box { border-color: #1F1F1F; box-shadow: 0 0 0 1px #1F1F1F; }
.sf-plan-option input:focus-visible + .sf-plan-option__box { outline: 2px solid #B89B5E; outline-offset: 2px; }
.sf-plan-option__name { font-weight: 600; color: #1F1F1F; }
.sf-plan-option__price { font-size: 20px; font-weight: 600; color: #1F1F1F; }
.sf-plan-option__meta { font-size: 13px; color: #6B665E; }
:root[data-bs-theme=dark] .sf-plan-option__box { background: #1A1A1A; border-color: #333; }
:root[data-bs-theme=dark] .sf-plan-option input:checked + .sf-plan-option__box { border-color: #B89B5E; box-shadow: 0 0 0 1px #B89B5E; }
:root[data-bs-theme=dark] .sf-plan-option__name,
:root[data-bs-theme=dark] .sf-plan-option__price { color: #EDEDED; }
:root[data-bs-theme=dark] .sf-plan-option__meta { color: #B2ACA0; }
.sf-billing-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin: 0; }
.sf-billing-facts dt { font-size: 13px; font-weight: 500; color: #6B665E; margin-bottom: 2px; }
.sf-billing-facts dd { margin: 0; font-weight: 600; color: #1F1F1F; }
:root[data-bs-theme=dark] .sf-billing-facts dt { color: #B2ACA0; }
:root[data-bs-theme=dark] .sf-billing-facts dd { color: #EDEDED; }
.sf-billing-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.sf-billing-steps li { display: flex; gap: 12px; font-size: 14px; }
.sf-billing-steps i { flex: 0 0 20px; margin-top: 3px; color: #8A6F3B; }
:root[data-bs-theme=dark] .sf-billing-steps i { color: #D4BC8A; }

/* Partner status card (x-sf-partner-status) */
.sf-status-chip { display: inline-flex; margin-bottom: 12px; }
.sf-status-note { margin: 0 0 20px; padding: 12px 14px; border-radius: 8px; background: #FAF7F1; border: 1px solid #E6DCC6; font-size: 14px; color: #1F1F1F; }
.sf-status-note strong { display: block; font-size: 13px; color: #8A6F3B; margin-bottom: 4px; }
:root[data-bs-theme=dark] .sf-status-note { background: #242424; border-color: #3A3326; color: #EDEDED; }
:root[data-bs-theme=dark] .sf-status-note strong { color: #D4BC8A; }
.sf-status-actions { display: flex; flex-direction: column; gap: 8px; }
.sf-status-actions .btn-sf, .sf-status-actions .btn-sf-ghost { width: 100%; }
.sf-auth__card .btn-sf-ghost { min-height: 48px; border-radius: 8px; background: transparent; color: var(--sf-text); border: 1.5px solid var(--sf-border); font-weight: 600; padding: 10px 18px; }
.sf-auth__card .btn-sf-ghost:hover { border-color: #B89B5E; }

/* Error page inside the admin layout (errors/admin.blade.php) */
.sf-error-card { max-width: 560px; margin: 0 auto; text-align: center; padding: 40px 28px; }
.sf-error-card__tile { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 12px; display: grid; place-items: center; background: #FAF7F1; color: #8A6F3B; font-size: 22px; border: 1px solid #E6DCC6; }
.sf-error-card__eyebrow { font-size: 13px; font-weight: 600; color: #8A6F3B; margin-bottom: 4px; }
.sf-error-card h2 { font-size: 22px; font-weight: 600; color: #1F1F1F; }
.sf-error-card p { color: #6B665E; }
.sf-error-card__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
:root[data-bs-theme=dark] .sf-error-card__tile { background: #242424; border-color: #3A3326; color: #D4BC8A; }
:root[data-bs-theme=dark] .sf-error-card__eyebrow { color: #D4BC8A; }
:root[data-bs-theme=dark] .sf-error-card h2 { color: #EDEDED; }
:root[data-bs-theme=dark] .sf-error-card p { color: #B2ACA0; }
.sf-chip--neutral { background: rgba(95,102,112,.12); color: #5F6670; }
:root[data-bs-theme=dark] .sf-chip--neutral { background: #2A2A2A; color: #CFC8BA; }
.sf-billing-ref { max-width: 160px; }
.sf-payload { white-space: pre-wrap; word-break: break-word; font-size: 12px; padding: 12px; border-radius: 8px; background: #FAF7F1; color: #1F1F1F; max-height: 60vh; overflow: auto; }
:root[data-bs-theme=dark] .sf-payload { background: #242424; color: #EDEDED; }

/* QA 2026-11-05: the website theme switch is a transparent button (.bg-transparent) on the dark header, so the
   "icons on gold are #121212" lists above made it invisible. Gold icon here (7:1 on #121212). */
:root[data-bs-theme=dark] .theme-scheme-switch .change-mode.bg-transparent i { color: #B89B5E !important; }

/* QA 2026-11-05: toolbar "Export" (btn-secondary = gold fill in ~15 list views) competed with "+ Appointment"
   and "New". One primary per screen (docs/admin-ui-guidelines.md §3): Export is tertiary. */
:root .btn.btn-secondary[data-modal="export"] { background: var(--bs-body-bg) !important; border: 1px solid #59616B !important; color: #1F1F1F !important; }
:root .btn.btn-secondary[data-modal="export"] * { color: inherit !important; }
:root .btn.btn-secondary[data-modal="export"]:hover { background: #F3EFE6 !important; }
:root[data-bs-theme=dark] .btn.btn-secondary[data-modal="export"] { background: transparent !important; border-color: #AEB5BF !important; color: #EDEDED !important; }
:root[data-bs-theme=dark] .btn.btn-secondary[data-modal="export"]:hover { background: #1E1B16 !important; }

/* QA 2026-11-05: admin DataTables set every cell to nowrap, so wide lists (Staffs: 1494px) scrolled sideways at
   1440px and hid Status/Action. Text cells wrap; headers wrap at word gaps; short controls stay on one line. */
table.dataTable tbody td { white-space: normal; overflow-wrap: break-word; }
table.dataTable thead th { white-space: normal; }
table.dataTable tbody td .btn, table.dataTable tbody td .badge, table.dataTable tbody td .form-switch { white-space: nowrap; overflow-wrap: normal; }
table.dataTable tbody td small { overflow-wrap: anywhere; }
table.dataTable tbody td:has(.avatar) { min-width: 15rem; }

/* QA 2026-11-05: dark mode flips .text-dark to light text, but .bg-light badges stayed light grey, so chips like
   "0% Commission" were unreadable (light on light). Neutral chip in dark mode (docs/admin-ui-guidelines.md §4). */
:root[data-bs-theme=dark] .badge.bg-light { background-color: #2A2A2A !important; color: #EDEDED !important; border-color: #444 !important; }

/* Tablet (768–1024) ------------------------------------------------------------------
   QA 2026-11-05 tablet pass (768x1024 / 1024x768). Below 1200px both the website and the
   admin collapse to a hamburger; these controls were 25–38px tall, under the 44px touch
   target (docs/theme-and-css-architecture.md "Responsive contract"). Grids, tables and
   page widths already behave, so this block only fixes tap targets. */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .navbar-toggler { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .calendar-mode-btn, .booking-scheduler .btn-sm { min-height: 44px; }
  .dataTables_wrapper .page-link, .pagination .page-link { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .dataTables_wrapper .form-select-sm { min-height: 44px; }
  /* Inline text links (search suggestions, "Forgot password?", "List it free"): taller hit area, same look. */
  ul.list-inline a.text-decoration-underline.font-size-14,
  form a.font-size-14.fw-semibold,
  form a.text-primary.font-size-14 { display: inline-flex; align-items: center; min-height: 44px; }
  /* Small links inside fixed-height strips and chips: grow the hit area invisibly, not the layout. */
  .sf-topbar__partner a, .sf-auth__foot a, form a.small, a.sf-chip { position: relative; }
  .sf-topbar__partner a::after, .sf-auth__foot a::after, form a.small::after, a.sf-chip::after { content: ""; position: absolute; inset: -12px -4px; }
  /* Admin in-page pills/tabs were 35px. (.btn-sm / -sm fields stay 38px: admin-ui-guidelines.md "Golden Row Rule".) */
  .main-content .nav-pills .nav-link, .main-content .nav-tabs .nav-link { min-height: 44px; display: inline-flex; align-items: center; }
  /* Text links in cards and table cells ("View all", salon names, "LKR 0"): invisible 44px hit area. */
  .main-content .card a.small, .main-content .card-header a:not(.btn), .main-content table td a:not(.btn) { position: relative; }
  .main-content .card a.small::after, .main-content .card-header a:not(.btn)::after, .main-content table td a:not(.btn)::after { content: ""; position: absolute; inset: -14px -4px; }
}

/* ===================================================================================
   Admin forms, queues and detail pages (2026-11-05, boards AdminForm*, AdminApplicationsQueue,
   AdminDisputes, AdminAuditLog, AdminDetail*, AdminPlatformSettings).
   Blade: <x-backend.sf-form>, <x-backend.sf-form-section>, <x-backend.sf-switch-row>, <x-backend.sf-salon-filter>.
   Vue: every offcanvas form shares FormHeader.vue / FormFooter.vue, styled here (no per-form rules).
   =================================================================================== */
.sf-form { border-radius: 12px; overflow: hidden; }
.sf-form__intro { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #ECE8E0; color: #6B665E; font-size: 13px; }
.sf-form__section { padding: 24px 20px; border-bottom: 1px solid #ECE8E0; }
.sf-form__section:last-of-type { border-bottom: 0; }
.sf-form__section-title { font-size: 16px; font-weight: 600; color: #1F1F1F; margin: 0 0 4px; }
.sf-form__section-hint { color: #6B665E; font-size: 13px; margin: 0 0 16px; }
.sf-form__section-title + .sf-form__grid { margin-top: 16px; }
.sf-form__grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sf-form__grid--1 { grid-template-columns: minmax(0, 1fr); }
.sf-form__grid > .sf-span-2 { grid-column: 1 / -1; }
.sf-form__grid .form-group, .sf-form__grid .mb-3 { margin-bottom: 0 !important; }
.sf-form .form-label { font-weight: 600; color: #1F1F1F; }
.sf-form__footer, .offcanvas .offcanvas-footer { display: flex; justify-content: flex-end; gap: 12px; padding: 16px 20px; background: #FAF7F1; border-top: 1px solid #ECE8E0; }
.sf-form__footer .btn, .offcanvas .offcanvas-footer .btn { min-height: 44px; }
.sf-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 10px 12px; border: 1px solid #E6DECD; border-radius: 8px; }
.sf-switch-row .form-check { margin: 0; padding: 0; }
.sf-switch-row .form-check-input { margin: 0; float: none; }
.sf-switch-row__text { display: flex; flex-direction: column; }
.sf-switch-row__text small { color: #6B665E; }
.sf-scope { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sf-scope label { display: flex; gap: 10px; padding: 12px; border: 1px solid #E6DECD; border-radius: 8px; cursor: pointer; }
.sf-scope input:checked + span { font-weight: 600; }
.sf-scope label:has(input:checked) { border-color: #1F1F1F; background: #FAF7F1; }
@media (max-width: 767.98px) { .sf-form__grid, .sf-scope { grid-template-columns: minmax(0, 1fr); } .sf-form__footer { flex-direction: column-reverse; } }

/* Offcanvas forms (Vue FormHeader / FormFooter): same title, sections and cream footer as page forms. */
.offcanvas .offcanvas-header { padding: 16px 20px; border-bottom: 1px solid #ECE8E0; }
.offcanvas .offcanvas-title { font-size: 18px; font-weight: 600; color: #1F1F1F; }
.offcanvas .offcanvas-body { padding: 20px; }
.offcanvas .offcanvas-body .form-label { font-weight: 600; color: #1F1F1F; }
.offcanvas .offcanvas-body h5, .offcanvas .offcanvas-body h6 { font-size: 15px; font-weight: 600; color: #1F1F1F; }

/* In-page pills with counts (Applications, Disputes, Moderation). Charcoal = selected (layout doc §3). */
.sf-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sf-pills a { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px; background: #EFEAE0; color: #1F1F1F; font-weight: 600; font-size: 14px; text-decoration: none; }
.sf-pills a .sf-pills__n { font-weight: 500; color: #6B665E; }
.sf-pills a.active { background: #1F1F1F; color: #FFFFFF; }
.sf-pills a.active .sf-pills__n { color: #D4BC8A; }
.sf-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; }
.sf-toolbar__filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sf-table thead th { background: #1F1F1F; color: #FFFFFF; font-weight: 600; border: 0; white-space: nowrap; }
.sf-table td { vertical-align: middle; }
.sf-table td .sf-sub { display: block; color: #6B665E; font-size: 12px; }
.sf-table tr.is-selected td { background: #FAF7F1; }
.sf-empty { padding: 40px 16px; text-align: center; color: #6B665E; }
.sf-empty strong { display: block; color: #1F1F1F; margin-bottom: 4px; }
/* "Your salon" / "Salon · Branch" context band on per-salon screens (holidays, opening hours). */
.sf-salon-context { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border: 1px solid #ECE8E0; border-left: 3px solid #B89B5E; border-radius: 8px; background: #FAF7F1; }
.sf-form > .sf-salon-context { margin: 16px 20px 0; }
.sf-salon-context__eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #6B665E; }
.sf-salon-context__name { font-size: 16px; color: #1F1F1F; overflow-wrap: anywhere; }
:root[data-bs-theme=dark] .sf-salon-context { background: #242424; border-color: #333; border-left-color: #B89B5E; }
:root[data-bs-theme=dark] .sf-salon-context__eyebrow { color: #B2ACA0; }
:root[data-bs-theme=dark] .sf-salon-context__name { color: #EDEDED; }
.sf-split { display: grid; grid-template-columns: minmax(0, 1fr) 480px; }
.sf-split__panel { border-left: 1px solid #ECE8E0; padding: 20px; }
@media (max-width: 1199.98px) { .sf-split { grid-template-columns: minmax(0, 1fr); } .sf-split__panel { border-left: 0; border-top: 1px solid #ECE8E0; } }
.sf-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; padding: 12px 14px; border-radius: 8px; background: #FAF7F1; margin: 0; }
.sf-facts dt { font-size: 12px; font-weight: 500; color: #6B665E; margin: 0; }
.sf-facts dd { font-weight: 600; color: #1F1F1F; margin: 0; }
.sf-msg { border: 1px solid #ECE8E0; border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; }
.sf-msg--staff { background: #FAF7F1; }
.sf-msg__who { font-size: 12px; font-weight: 600; color: #1F1F1F; }
.sf-msg__when { font-size: 12px; color: #6B665E; }
.sf-bulkbar { display: none; align-items: center; gap: 8px; padding: 10px 16px; background: #FAF7F1; border-top: 1px solid #ECE8E0; }
.sf-bulkbar.is-on { display: flex; }
.sf-chip--neutral { background: rgba(95,102,112,.12); color: #5F6670; }

/* Detail pages (customer, staff, inquiry, order): profile header card + two columns. */
.sf-detail-head { display: flex; align-items: center; gap: 16px; padding: 20px; }
.sf-detail-head h3 { margin: 0; font-size: 20px; font-weight: 600; color: #1F1F1F; }
.sf-detail-head .sf-sub { color: #6B665E; }
.sf-detail-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) 360px; }
@media (max-width: 1199.98px) { .sf-detail-grid { grid-template-columns: minmax(0, 1fr); } }
.sf-card-title { font-size: 16px; font-weight: 600; color: #1F1F1F; margin: 0; }

/* Settings SPA: left nav + titled sections (board AdminPlatformSettings). Behaviour unchanged. */
#setting-list .sf-settings-group { font-size: 11px; font-weight: 700; color: #6B665E; text-transform: uppercase; letter-spacing: .06em; margin: 16px 12px 6px; }
.sf-settings-main .card-header h4, .sf-settings-main .card-header h5 { font-size: 18px; font-weight: 600; color: #1F1F1F; }
.sf-settings-main .card-footer, .sf-settings-main form > .d-flex.justify-content-end:last-child { background: #FAF7F1; border-top: 1px solid #ECE8E0; }

:root[data-bs-theme=dark] .sf-form__intro, :root[data-bs-theme=dark] .sf-form__section,
:root[data-bs-theme=dark] .sf-split__panel, :root[data-bs-theme=dark] .sf-bulkbar,
:root[data-bs-theme=dark] .offcanvas .offcanvas-header { border-color: #333; }
:root[data-bs-theme=dark] .sf-form__section-title, :root[data-bs-theme=dark] .sf-form .form-label,
:root[data-bs-theme=dark] .offcanvas .offcanvas-title, :root[data-bs-theme=dark] .offcanvas .offcanvas-body .form-label,
:root[data-bs-theme=dark] .offcanvas .offcanvas-body h5, :root[data-bs-theme=dark] .offcanvas .offcanvas-body h6,
:root[data-bs-theme=dark] .sf-facts dd, :root[data-bs-theme=dark] .sf-msg__who, :root[data-bs-theme=dark] .sf-empty strong,
:root[data-bs-theme=dark] .sf-detail-head h3, :root[data-bs-theme=dark] .sf-card-title,
:root[data-bs-theme=dark] .sf-settings-main .card-header h4 { color: #EDEDED; }
:root[data-bs-theme=dark] .sf-form__intro, :root[data-bs-theme=dark] .sf-form__section-hint, :root[data-bs-theme=dark] .sf-switch-row__text small,
:root[data-bs-theme=dark] .sf-facts dt, :root[data-bs-theme=dark] .sf-msg__when, :root[data-bs-theme=dark] .sf-table td .sf-sub,
:root[data-bs-theme=dark] .sf-empty, :root[data-bs-theme=dark] .sf-detail-head .sf-sub { color: #B2ACA0; }
:root[data-bs-theme=dark] .sf-form__footer, :root[data-bs-theme=dark] .offcanvas .offcanvas-footer,
:root[data-bs-theme=dark] .sf-facts, :root[data-bs-theme=dark] .sf-msg--staff, :root[data-bs-theme=dark] .sf-bulkbar,
:root[data-bs-theme=dark] .sf-table tr.is-selected td, :root[data-bs-theme=dark] .sf-scope label:has(input:checked),
:root[data-bs-theme=dark] .sf-settings-main .card-footer { background: #242424; border-color: #333; }
:root[data-bs-theme=dark] .sf-switch-row, :root[data-bs-theme=dark] .sf-scope label, :root[data-bs-theme=dark] .sf-msg { border-color: #444; }
:root[data-bs-theme=dark] .sf-scope label:has(input:checked) { border-color: #B89B5E; }
:root[data-bs-theme=dark] .sf-pills a { background: #2A2A2A; color: #EDEDED; }
:root[data-bs-theme=dark] .sf-pills a .sf-pills__n { color: #B2ACA0; }
:root[data-bs-theme=dark] .sf-pills a.active { background: #B89B5E; color: #121212; }
:root[data-bs-theme=dark] .sf-pills a.active .sf-pills__n { color: #121212; }
:root[data-bs-theme=dark] .sf-table thead th { background: #242424; color: #EDEDED; }
/* Every admin table (DataTables use backend.css `.table thead tr { background: var(--bs-primary) }`, which is gold
   in dark mode, with white text): keep the charcoal header in dark mode too (admin-layout-types.md §5). */
:root[data-bs-theme=dark] .table thead tr { background-color: #242424; }
:root[data-bs-theme=dark] .table thead tr th { color: #EDEDED; }
:root[data-bs-theme=dark] .sf-chip--neutral { background: rgba(178,172,160,.15); color: #CFC9BE; }
/* Table text reads dark (the template's body grey made every cell look disabled); second lines stay muted. */
.sf-table td, .sf-table td a.text-reset { color: #1F1F1F; }
:root[data-bs-theme=dark] .sf-table td, :root[data-bs-theme=dark] .sf-table td a.text-reset { color: #EDEDED; }
.sf-table--matrix thead th { white-space: normal !important; min-width: 96px; vertical-align: bottom; line-height: 1.3; }
.sf-table--matrix th:first-child, .sf-table--matrix td:first-child { min-width: 200px; }
/* =================== end Admin forms, queues and detail pages =================== */

/* ==== Website: saved salons, compare, salon status, cancellation policy (web pages agent 2026-11-05) ====
   Parts: frontend::partials.save-salon / salon-status / cancellation-policy, pages /saved-salons and /salons/compare. */
.sf-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(31,31,31,.14); background: #fff; color: #1F1F1F; font-size: 1.25rem; transition: transform .15s, background-color .15s; }
.sf-icon-btn:hover { background: #FAF7F1; color: #1F1F1F; }
.sf-icon-btn:active { transform: scale(.94); }
.sf-save.is-saved, .sf-save.is-saved:hover { color: #B42318; }
:root[data-bs-theme=dark] .sf-icon-btn { background: #1F1F1F; border-color: rgba(255,255,255,.18); color: #EDEDED; }
:root[data-bs-theme=dark] .sf-icon-btn:hover { background: #2A2A2A; }
:root[data-bs-theme=dark] .sf-save.is-saved { color: #FFB4AB; }
.sf-salon-card { position: relative; }
.sf-salon-card__save { position: absolute; top: 10px; right: 10px; z-index: 2; box-shadow: 0 2px 8px rgba(0,0,0,.15); border-color: transparent; }
.sf-salon-card__img .sf-salon-card__dist { top: auto; bottom: 12px; right: auto; left: 12px; } /* heart sits top-right */
.sf-salon-head__tools { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.sf-status--holiday { background: #F2E9D7; color: #45340F; }
:root[data-bs-theme=dark] .sf-status--holiday { background: #2A2418; color: #E6D3A8; }
.sf-policy { border: 1px solid rgba(184,155,94,.45); background: #FAF7F1; border-radius: 12px; padding: 16px; }
.sf-policy__title { font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 8px; margin: 0 0 6px; color: #1F1F1F; }
.sf-policy__title i { color: #8A6F3B; }
.sf-policy__text { margin: 0; font-size: .9375rem; color: #3D3D3D; }
:root[data-bs-theme=dark] .sf-policy { background: #1A1814; border-color: rgba(184,155,94,.35); }
:root[data-bs-theme=dark] .sf-policy__title { color: #EDEDED; }
:root[data-bs-theme=dark] .sf-policy__title i { color: #B89B5E; }
:root[data-bs-theme=dark] .sf-policy__text { color: #CFCFCF; }
.sf-page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; }
.sf-page-head__lede { margin: 0; font-weight: 600; }
.sf-compare__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; border: 1px solid rgba(31,31,31,.1); }
.sf-compare__table { width: 100%; min-width: calc(140px + var(--sf-cols, 3) * 220px); border-collapse: collapse; font-family: 'Lexend Deca', sans-serif; }
.sf-compare__table th, .sf-compare__table td { padding: 14px 16px; border-bottom: 1px solid rgba(31,31,31,.08); vertical-align: top; text-align: left; }
.sf-compare__table tbody th { width: 140px; font-weight: 600; color: #5A5A5A; position: sticky; left: 0; background: #FAF7F1; z-index: 1; }
.sf-compare__table thead th:first-child { position: sticky; left: 0; background: #FAF7F1; z-index: 1; }
.sf-compare__salon { position: relative; }
.sf-compare__salon img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; margin-bottom: 10px; }
.sf-compare__name { display: block; font-weight: 700; color: #1F1F1F; margin-bottom: 6px; }
.sf-compare__remove { position: absolute; top: 20px; right: 22px; width: 36px; height: 36px; border-radius: 999px; border: 0; background: rgba(31,31,31,.75); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.sf-compare__remove::after { content: ""; position: absolute; inset: -4px; }
.sf-compare__hint { margin: 16px 0 0; color: #5A5A5A; }
.sf-compare__hint a { color: #8A6F3B; font-weight: 600; }
:root[data-bs-theme=dark] .sf-compare__scroll { border-color: rgba(255,255,255,.12); }
:root[data-bs-theme=dark] .sf-compare__table th, :root[data-bs-theme=dark] .sf-compare__table td { border-color: rgba(255,255,255,.08); }
:root[data-bs-theme=dark] .sf-compare__table tbody th, :root[data-bs-theme=dark] .sf-compare__table thead th:first-child { background: #1A1814; color: #BDBDBD; }
:root[data-bs-theme=dark] .sf-compare__name { color: #EDEDED; }
:root[data-bs-theme=dark] .sf-compare__hint { color: #BDBDBD; }
:root[data-bs-theme=dark] .sf-compare__hint a { color: #B89B5E; }
@media (max-width: 575.98px) {
  .sf-compare__table { min-width: calc(110px + var(--sf-cols, 3) * 180px); }
  .sf-compare__table tbody th { width: 110px; }
}
/* ==== end website saved/compare block ==== */

/* ==== Website: booking detail head, report a problem, booking success/failed, booking-flow alerts (web pages agent) ==== */
.sf-narrow { max-width: 640px; }
.sf-button.sf-button--ghost { background: transparent; border-color: transparent; color: var(--sf-text); }
.sf-button.sf-button--ghost:hover { background: var(--sf-surface-subtle); color: var(--sf-text); }
.sf-button.sf-button--danger { background: #B42318; border-color: #B42318; color: #fff; }
.sf-button.sf-button--danger:hover { background: #912018; color: #fff; }
.sf-bk-head { border: 1px solid #E6DECD; border-radius: 16px; background: var(--sf-surface); padding: 20px; margin: 24px 0; display: grid; gap: 16px; }
:root[data-bs-theme=dark] .sf-bk-head { border-color: #3A3326; }
.sf-bk-head__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sf-bk-head__id { margin: 0 0 2px; font-size: .8125rem; font-weight: 600; color: #8A6F3B; }
:root[data-bs-theme=dark] .sf-bk-head__id { color: #B89B5E; }
.sf-bk-head__title { font-size: 1.375rem; margin: 0 0 4px; }
.sf-bk-head__when { margin: 0; display: flex; gap: 6px; align-items: center; color: var(--sf-text); }
.sf-bk-head__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sf-bk-mini { padding: 16px; }
.sf-progress { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* Long Sinhala / Tamil words (e.g. உறுதிசெய்யப்பட்டது) must wrap inside a 390px screen, not push the page sideways. */
.sf-bk-head { min-width: 0; }
.sf-progress__label { overflow-wrap: anywhere; }
.sf-bk-head__actions .sf-button { white-space: normal; max-width: 100%; }
.sf-progress__step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: .8125rem; color: #6B6B6B; }
.sf-progress__step::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: #E6DECD; z-index: 0; }
.sf-progress__step:first-child::before { display: none; }
.sf-progress__step.is-done::before, .sf-progress__step.is-current::before { background: #B89B5E; }
.sf-progress__dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; background: var(--sf-surface); border: 2px solid #E6DECD; color: #6B6B6B; }
.sf-progress__step.is-done .sf-progress__dot { background: #B89B5E; border-color: #B89B5E; color: #1F1F1F; }
.sf-progress__step.is-current .sf-progress__dot { border-color: #1F1F1F; color: #1F1F1F; }
.sf-progress__step.is-current { color: var(--sf-text); font-weight: 700; }
:root[data-bs-theme=dark] .sf-progress__step { color: #A8A8A8; }
:root[data-bs-theme=dark] .sf-progress__step::before, :root[data-bs-theme=dark] .sf-progress__dot { border-color: #3A3326; }
:root[data-bs-theme=dark] .sf-progress__step::before { background: #3A3326; }
:root[data-bs-theme=dark] .sf-progress__step.is-current .sf-progress__dot { border-color: #B89B5E; color: #EDEDED; }
.sf-refund { margin: 0 0 12px; display: grid; gap: 6px; }
.sf-refund > div { display: flex; justify-content: space-between; gap: 12px; }
.sf-refund dt { font-weight: 500; } .sf-refund dd { margin: 0; font-weight: 600; }
.sf-refund__total { border-top: 1px solid #E6DECD; padding-top: 8px; font-size: 1.0625rem; }
.sf-refund__note { font-size: .875rem; color: #5A5A5A; }
:root[data-bs-theme=dark] .sf-refund__note { color: #BDBDBD; }
:root[data-bs-theme=dark] .sf-refund__total { border-color: #3A3326; }
.sf-form-error { color: var(--sf-danger, #B42318); font-size: .875rem; margin: 6px 0 0; }
.sf-choice-list { display: grid; gap: 8px; }
.sf-choice { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--sf-border, #E6DECD); border-radius: 10px; cursor: pointer; }
.sf-choice:has(input:checked) { border-color: #1F1F1F; background: #FAF7F1; }
:root[data-bs-theme=dark] .sf-choice:has(input:checked) { border-color: #B89B5E; background: #1A1814; }
.sf-done--failed .sf-done__badge { background: #FDECEA; color: #B42318; align-items: center; justify-content: center; font-size: 32px; }
:root[data-bs-theme=dark] .sf-done--failed .sf-done__badge { background: #3A1715; color: #FFB4AB; }
.sf-wiz-alert { display: flex; gap: 12px; padding: 14px 16px; margin-bottom: 16px; border-radius: 12px; background: #FAF7F1; border: 1px solid rgba(184,155,94,.5); }
.sf-wiz-alert > i { font-size: 1.5rem; color: #8A6F3B; }
.sf-wiz-alert p { margin: 4px 0 10px; }
.sf-wiz-alert--offline { background: #FDECEA; border-color: #F4C7C3; }
.sf-wiz-alert--offline > i { color: #B42318; }
:root[data-bs-theme=dark] .sf-wiz-alert { background: #1A1814; border-color: rgba(184,155,94,.35); }
:root[data-bs-theme=dark] .sf-wiz-alert--offline { background: #3A1715; border-color: #5A2420; }
:root[data-bs-theme=dark] .sf-wiz-alert > i { color: #E6D3A8; }
/* ==== end booking pages block ==== */
:root[data-bs-theme=dark] .sf-button.sf-button--ghost { background: transparent; border-color: transparent; color: #EDEDED !important; }
:root[data-bs-theme=dark] .sf-button.sf-button--ghost:hover { background: #2A2A2A; color: #EDEDED !important; }
:root[data-bs-theme=dark] .sf-button.sf-button--danger, :root[data-bs-theme=dark] .sf-button.sf-button--danger * { background-color: #B42318; border-color: #B42318; color: #fff !important; }

/* ==== Website: customer account shell (frontend::partials.account-shell) ==== */
.sf-account__grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.sf-account__nav, .sf-account__main { min-width: 0; }
@media (min-width: 992px) { .sf-account__grid { grid-template-columns: 260px minmax(0, 1fr); align-items: start; } .sf-account__nav { position: sticky; top: 96px; } }
.sf-account__nav { border: 1px solid #E6DECD; border-radius: 12px; background: var(--sf-surface); overflow: hidden; }
.sf-account__nav ul { list-style: none; margin: 0; padding: 6px; }
.sf-account__nav a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border-radius: 8px; color: var(--sf-text); text-decoration: none; font-weight: 500; }
.sf-account__nav a:hover { background: var(--sf-surface-subtle); color: var(--sf-text); }
.sf-account__nav a.is-active { background: #1F1F1F; color: #fff; font-weight: 700; }
.sf-account__nav a i { font-size: 1.125rem; }
.sf-account__logout { border-top: 1px solid #E6DECD; margin-top: 6px; padding-top: 6px; }
.sf-account__logout a { color: #B42318; }
.sf-account__me { display: flex; gap: 12px; align-items: center; padding: 16px; border-bottom: 1px solid #E6DECD; }
.sf-account__me strong, .sf-account__me small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.sf-account__me small { color: #6B6B6B; }
:root[data-bs-theme=dark] .sf-account__nav, :root[data-bs-theme=dark] .sf-account__me, :root[data-bs-theme=dark] .sf-account__logout { border-color: #3A3326; }
:root[data-bs-theme=dark] .sf-account__nav a.is-active { background: #B89B5E; color: #1F1F1F; }
:root[data-bs-theme=dark] .sf-account__logout a { color: #FFB4AB; }
:root[data-bs-theme=dark] .sf-account__me small { color: #A8A8A8; }
@media (max-width: 991.98px) {
  .sf-account__nav { border: 0; background: none; border-radius: 0; }
  .sf-account__me { display: none; }
  .sf-account__nav ul { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 4px; scrollbar-width: none; }
  .sf-account__nav li { flex: 0 0 auto; }
  .sf-account__nav a { border: 1px solid #E6DECD; border-radius: 999px; white-space: nowrap; padding: 8px 14px; }
  :root[data-bs-theme=dark] .sf-account__nav a { border-color: #3A3326; }
  .sf-account__logout { border: 0; margin: 0; padding: 0; }
}
/* Old sections print their own page wrappers: flatten them inside the shell. */
.sf-account__main .container, .sf-account__main .container-fluid { max-width: none; padding-left: 0; padding-right: 0; }
.sf-account__main .section-spacing-inner-pages, .sf-account__main .section-spacing { padding-top: 0; padding-bottom: 0; }
/* ==== end account shell block ==== */
/* Edit profile (WebEditProfile): one card, small round photo on top, charcoal save. */
.sf-profile-card { margin: 0; padding: 24px 12px; border: 1px solid #E6DECD; border-radius: 12px; background: var(--sf-surface); }
.sf-profile-card > [class*="col-"] { flex: 0 0 100%; max-width: 100%; }
.sf-profile-card .profile-image-section { display: flex; align-items: center; gap: 16px; background: none !important; padding: 0 !important; min-height: 0 !important; }
.sf-profile-card .img-container { width: 96px; height: 96px; flex: 0 0 96px; }
.sf-profile-card .profile-image { width: 96px !important; height: 96px !important; border-radius: 50% !important; border: 2px solid #B89B5E; }
.sf-profile-card .image-actions { position: static !important; margin: 0 !important; transform: none !important; gap: 8px; }
.sf-profile-card .form-actions { justify-content: flex-start !important; }
.sf-profile-card .form-check { border: 1px solid #E6DECD; border-radius: 8px; padding: 10px 14px 10px 36px; min-height: 44px; margin: 0; }
.sf-profile-card .form-check:has(input:checked) { border-color: #B89B5E; background: #FAF7F1; }
:root[data-bs-theme=dark] .sf-profile-card, :root[data-bs-theme=dark] .sf-profile-card .form-check { border-color: #3A3326; }
:root[data-bs-theme=dark] .sf-profile-card .form-check:has(input:checked) { background: #1A1814; }
.sf-danger-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; }
.sf-link-danger { color: #B42318; font-weight: 600; text-decoration: underline; min-height: 44px; display: inline-flex; align-items: center; }
:root[data-bs-theme=dark] .sf-link-danger { color: #FFB4AB; }
.sf-profile-card .img-container { margin: 0 !important; display: block !important; }
.sf-profile-card .profile-image { max-width: none !important; min-width: 96px; display: block; }
.sf-profile-card .image-actions { flex: 0 0 auto; justify-content: flex-start !important; width: auto !important; }
.sf-profile-card .img-container { padding: 0 !important; background: none !important; box-sizing: content-box; }
.sf-account__main .booking-tab-container { max-width: 100%; overflow-x: auto; scrollbar-width: none; } .sf-account__main .booking-tab-container .nav { flex-wrap: nowrap; }
/* Notifications list (WebNotifications) */
.sf-notif { list-style: none; margin-bottom: 12px; }
.sf-notif__link { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid #E6DECD; border-radius: 12px; background: var(--sf-surface); color: var(--sf-text); text-decoration: none; }
a.sf-notif__link:hover { border-color: #B89B5E; color: var(--sf-text); }
.sf-notif.is-unread .sf-notif__link { background: #FAF7F1; border-color: rgba(184,155,94,.55); }
.sf-notif__icon { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #F2E9D7; color: #8A6F3B; font-size: 1.125rem; }
.sf-notif__body { flex: 1 1 auto; min-width: 0; }
.sf-notif__title { display: block; font-weight: 600; }
.sf-notif.is-unread .sf-notif__title { font-weight: 700; }
.sf-notif__text { display: block; color: #5A5A5A; font-size: .9375rem; margin-top: 2px; }
.sf-notif__meta { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font-size: .8125rem; color: #6B6B6B; }
.sf-notif__dot { width: 8px; height: 8px; border-radius: 50%; background: #B89B5E; }
:root[data-bs-theme=dark] .sf-notif__link { border-color: #3A3326; }
:root[data-bs-theme=dark] .sf-notif.is-unread .sf-notif__link { background: #1A1814; border-color: rgba(184,155,94,.4); }
:root[data-bs-theme=dark] .sf-notif__icon { background: #2A2418; color: #E6D3A8; }
:root[data-bs-theme=dark] .sf-notif__text, :root[data-bs-theme=dark] .sf-notif__meta { color: #BDBDBD; }
#datatable:has(.sf-notif) thead { display: none !important; }
#datatable:has(.sf-notif), #datatable:has(.sf-notif) tbody, #datatable:has(.sf-notif) tr, #datatable:has(.sf-notif) td { display: block; width: 100%; background: none !important; border: 0 !important; box-shadow: none !important; }

/* Empty state in tables & account lists: remove any bottom border, divider line, or table borders */
.sf-empty-state,
.sf-empty-state * {
    border: none !important;
    border-bottom: 0 !important;
}
table:has(.sf-empty-state),
table:has(.sf-empty-state) tbody,
table:has(.sf-empty-state) tr,
table:has(.sf-empty-state) td,
table:has(.sf-empty-state) th,
.table:has(.sf-empty-state),
.table:has(.sf-empty-state) tbody,
.table:has(.sf-empty-state) tr,
.table:has(.sf-empty-state) td,
.table:has(.sf-empty-state) th,
.custom-card-table:has(.sf-empty-state),
.custom-card-table:has(.sf-empty-state) tbody,
.custom-card-table:has(.sf-empty-state) tr,
.custom-card-table:has(.sf-empty-state) td,
#datatable:has(.sf-empty-state),
#datatable:has(.sf-empty-state) tbody,
#datatable:has(.sf-empty-state) tr,
#datatable:has(.sf-empty-state) td,
#wishlist-table:has(.sf-empty-state),
#wishlist-table:has(.sf-empty-state) tbody,
#wishlist-table:has(.sf-empty-state) tr,
#wishlist-table:has(.sf-empty-state) td,
#wallet-history-table:has(.sf-empty-state),
#wallet-history-table:has(.sf-empty-state) tbody,
#wallet-history-table:has(.sf-empty-state) tr,
#wallet-history-table:has(.sf-empty-state) td,
table:has(td.dataTables_empty),
table:has(td.dataTables_empty) tbody,
table:has(td.dataTables_empty) tr,
table:has(td.dataTables_empty) td,
table:has(td.dataTables_empty) th,
td.dataTables_empty,
tr:has(td.dataTables_empty) td {
    display: block !important;
    width: 100% !important;
    background: transparent !important;
    border: 0 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 !important;
}
table.dataTable.no-footer {
    border-bottom: 0 !important;
}
.dataTables_wrapper:has(.sf-empty-state) .dataTables_info,
.dataTables_wrapper:has(.sf-empty-state) .dataTables_paginate,
.dataTables_wrapper:has(.sf-empty-state) .row:has(.dataTables_info),
.dataTables_wrapper:has(.sf-empty-state) .row:has(.dataTables_paginate),
.dataTables_wrapper:has(td.dataTables_empty) .dataTables_info,
.dataTables_wrapper:has(td.dataTables_empty) .dataTables_paginate,
.dataTables_wrapper:has(td.dataTables_empty) .row:has(.dataTables_info),
.dataTables_wrapper:has(td.dataTables_empty) .row:has(.dataTables_paginate) {
    display: none !important;
}
.sf-account__main .list-page .tab-content.mt-5 { margin-top: 0 !important; }
.sf-notif__text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Auth states (reset link expired, sent) */
.sf-auth-state { text-align: center; padding: 8px 0; }
.sf-auth-state__icon { display: inline-flex; width: 56px; height: 56px; border-radius: 50%; align-items: center; justify-content: center; font-size: 1.5rem; background: #FDECEA; color: #B42318; margin-bottom: 12px; }
:root[data-bs-theme=dark] .sf-auth-state__icon { background: #3A1715; color: #FFB4AB; }
/* Share + gallery popups (WebSharePopup, WebSalonGallery) */
.sf-share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sf-share-done { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px; background: #DFF3E4; color: #14532D; font-size: .875rem; }
.sf-share-done[hidden] { display: none; }
:root[data-bs-theme=dark] .sf-share-done { background: #12301E; color: #7EE2A8; }
.sf-gallery .modal-header { border-bottom: 0; }
.sf-gallery__stage { position: relative; background: #121212; aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; }
.sf-gallery__stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sf-gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #1F1F1F; display: inline-flex; align-items: center; justify-content: center; font-size: 1.125rem; }
.sf-gallery__nav--prev { left: 12px; } .sf-gallery__nav--next { right: 12px; }
.sf-gallery__count { position: absolute; right: 12px; bottom: 10px; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: .8125rem; }
.sf-gallery__thumbs { display: flex; gap: 8px; padding: 12px; overflow-x: auto; }
.sf-gallery__thumbs button { flex: 0 0 76px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: none; }
.sf-gallery__thumbs button[aria-current="true"] { border-color: #B89B5E; }
.sf-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
#shareModal .d-flex > .sf-button { flex: 0 0 auto; white-space: nowrap; }
/* Header notifications panel reuses the notification row, compact. */
.sf-notif-list { list-style: none; margin: 0; padding: 0; }
.sf-notif-list--compact .sf-notif { margin: 0; }
.sf-notif-list--compact .sf-notif__link { border: 0; border-bottom: 1px solid #E6DECD; border-radius: 0; padding: 12px 16px; }
.sf-notif-list--compact .sf-notif__icon { flex-basis: 32px; width: 32px; height: 32px; font-size: 1rem; }
.sf-notif-list--compact .sf-notif__text { font-size: .8125rem; -webkit-line-clamp: 1; }
:root[data-bs-theme=dark] .sf-notif-list--compact .sf-notif__link { border-color: #3A3326; }
.dropdown-notification { width: min(360px, calc(100vw - 24px)); }
/* Blog article (WebBlogDetail): one readable column. */
.sf-article { max-width: 880px; margin: 0 auto; }
.sf-article__img { width: 100%; aspect-ratio: 21 / 10; object-fit: cover; border-radius: 12px; margin-bottom: 20px; }
.sf-article__meta { color: #8A6F3B; font-size: .875rem; font-weight: 600; margin-bottom: 8px; }
.sf-article__title { font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.2; margin-bottom: 16px; }
.sf-article__body { font-size: 1.0625rem; line-height: 1.7; max-width: 72ch; }
.sf-article__body img { max-width: 100%; height: auto; border-radius: 8px; }
.sf-article .blog-pagination { margin-top: 32px; padding-top: 24px; border-top: 1px solid #E6DECD; }
:root[data-bs-theme=dark] .sf-article__meta { color: #B89B5E; }
:root[data-bs-theme=dark] .sf-article .blog-pagination { border-color: #3A3326; }
/* Finder / district polish: on phones every filter gets the full width so selects never truncate to "Col…". */
@media (max-width: 575.98px) {
  .sf-filters__grid { grid-template-columns: minmax(0, 1fr) !important; }
  .sf-filters { padding: 16px; }
  .sf-finder-page .sf-chip { min-height: 40px; }
}
/* Salon chat (WebSalonChat): list + thread; one pane at a time on phones. */
.sf-chat { display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid #E6DECD; border-radius: 12px; background: var(--sf-surface); overflow: hidden; min-height: 520px; }
@media (min-width: 768px) { .sf-chat { grid-template-columns: 280px minmax(0, 1fr); } .sf-chat__back { display: none !important; } }
.sf-chat__list { border-right: 1px solid #E6DECD; overflow-y: auto; max-height: 640px; }
.sf-chat__list ul { list-style: none; margin: 0; padding: 0; }
.sf-chat__list button { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 12px 14px; border: 0; border-bottom: 1px solid #E6DECD; background: none; color: var(--sf-text); min-height: 64px; }
.sf-chat__list button[aria-current="true"] { background: #FAF7F1; }
.sf-chat__who { flex: 1 1 auto; min-width: 0; } .sf-chat__who strong, .sf-chat__who small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-chat__who small { color: #6B6B6B; }
.sf-chat__none, .sf-chat__hint { padding: 20px; color: #6B6B6B; list-style: none; text-align: center; }
.sf-chat__loading { padding: 16px; display: grid; gap: 10px; } .sf-chat__loading .sf-skel { height: 44px; border-radius: 8px; display: block; }
.sf-chat__thread { display: flex; flex-direction: column; min-height: 520px; }
.sf-chat__head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #E6DECD; min-height: 60px; }
.sf-chat__msgs { list-style: none; margin: 0; padding: 16px; flex: 1 1 auto; overflow-y: auto; max-height: 520px; display: flex; flex-direction: column; gap: 8px; }
.sf-msg { max-width: 78%; align-self: flex-start; }
.sf-msg p { margin: 0; padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: #F2EDE3; color: #1F1F1F; overflow-wrap: anywhere; }
.sf-msg.is-mine { align-self: flex-end; } .sf-msg.is-mine p { background: #1F1F1F; color: #fff; border-radius: 14px 14px 4px 14px; }
.sf-msg time { display: block; font-size: .75rem; color: #6B6B6B; margin-top: 2px; } .sf-msg.is-mine time { text-align: right; }
.sf-chat__composer { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #E6DECD; }
.sf-chat__composer textarea { resize: none; min-height: 48px; }
@media (max-width: 767.98px) {
  .sf-chat__list { border-right: 0; } .sf-chat__thread { display: none; }
  .sf-chat.is-open .sf-chat__list { display: none; } .sf-chat.is-open .sf-chat__thread { display: flex; }
}
:root[data-bs-theme=dark] .sf-chat, :root[data-bs-theme=dark] .sf-chat__list, :root[data-bs-theme=dark] .sf-chat__list button, :root[data-bs-theme=dark] .sf-chat__head, :root[data-bs-theme=dark] .sf-chat__composer { border-color: #3A3326; }
:root[data-bs-theme=dark] .sf-chat__list button[aria-current="true"] { background: #1A1814; }
:root[data-bs-theme=dark] .sf-msg p { background: #2A2A2A; color: #EDEDED; }
:root[data-bs-theme=dark] .sf-msg.is-mine p { background: #B89B5E; color: #1F1F1F; }
:root[data-bs-theme=dark] .sf-chat__who small, :root[data-bs-theme=dark] .sf-msg time, :root[data-bs-theme=dark] .sf-chat__none, :root[data-bs-theme=dark] .sf-chat__hint { color: #A8A8A8; }
.sf-chat__composer .sf-button { flex: 0 0 52px; width: 52px !important; padding: 0; } .sf-chat__composer textarea { flex: 1 1 auto; }
/* Chat photos (website + salon panel /app/messages). */
.sf-msg__img { display: block; width: 220px; max-width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: #EFEAE0; }
.sf-msg a + p { margin-top: 4px; }
.sf-msg__read { font-size: .75rem; color: #8A6F3B; }
.sf-chat__blocked { padding: 12px 16px; border-top: 1px solid #E6DECD; color: #6B665E; background: #FAF7F1; text-align: center; }
.sf-chat__composer .sf-chat__attach { flex: 0 0 48px; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; }
.sf-chat__preview { display: flex; align-items: center; gap: 8px; padding: 8px 12px 0; }
.sf-chat__preview img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.sf-chat__more { align-self: center; }
.sf-chat__head .sf-chat__actions { margin-left: auto; display: flex; gap: 8px; }
.sf-chat--panel .sf-chat__msgs, .sf-chat--panel .sf-chat__list { max-height: calc(100vh - 340px); min-height: 420px; }
:root[data-bs-theme=dark] .sf-msg__img { background: #2A2A2A; }
:root[data-bs-theme=dark] .sf-msg__read { color: #B89B5E; }
:root[data-bs-theme=dark] .sf-chat__blocked { background: #1A1814; color: #A8A8A8; border-color: #3A3326; }
:root[data-bs-theme=dark] .sf-button.sf-button--ghost * { color: inherit !important; }
.sf-compare__table { table-layout: fixed; }
.sf-compare__table thead th:first-child, .sf-compare__table tbody th { width: 140px; }
@media (max-width: 575.98px) {
  .sf-compare__table thead th:first-child, .sf-compare__table tbody th { width: 96px; padding: 12px 10px; font-size: .8125rem; }
  .sf-compare__table th, .sf-compare__table td { padding: 12px 10px; }
  .sf-compare__salon img { aspect-ratio: 16 / 10; }
  .sf-compare__remove { top: 16px; right: 14px; }
}
.sf-compare__salon img { height: auto; }
.sf-compare__table td, .sf-compare__table th, .sf-compare__name { overflow-wrap: anywhere; white-space: normal; }
.sf-compare__table .sf-status { white-space: normal; align-items: flex-start; }

/* ==== Foundation alignment to the Claude Design file (2026-11-06) ==== */

/* Salon card without a photo: warm placeholder + storefront glyph (design: primary-subtle), never initials. */
.sf-salon-card__placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  background: var(--bs-primary-bg-subtle, #ECE6DA);
  color: #8A6F3B; font-size: 2.5rem;
}
:root[data-bs-theme=dark] .sf-salon-card__placeholder { background: #2A2418; color: #D4BC8A; }

/* Tablet header (768-1199px): the template collapsed search, language, theme and account behind a ⋮ kebab.
   Show them inline like desktop; only the page menu stays in the hamburger offcanvas. */
@media (min-width: 768px) and (max-width: 1199.98px) {
  header .iq-navbar .right-panel .navbar-toggler { display: none !important; }
  header .iq-navbar .right-panel .navbar-collapse:not(.offcanvas-collapse) {
    display: flex !important; position: static; width: auto;
    background: transparent; box-shadow: none; flex-basis: auto;
  }
  header .iq-navbar .right-panel .navbar-collapse:not(.offcanvas-collapse) .navbar-nav {
    flex-direction: row; align-items: center; gap: 4px; margin: 0 !important;
  }
  header .iq-navbar .right-panel .navbar-collapse:not(.offcanvas-collapse) .navbar-nav li { padding: 0; }
  header .iq-navbar .right-panel .navbar-collapse .sf-button.w-100 { width: auto !important; white-space: nowrap; }
}

/* Breadcrumb band (design x-breadcrumb): cream band, title + trail centred, 40px padding, '›' separator. */
.breadcrumb-section { background: var(--sf-surface-subtle) !important; padding-block: 40px !important; border-bottom: 1px solid var(--sf-border-subtle); min-height: 0 !important; text-align: center; }
.breadcrumb-section .breadcrumb { font-size: .875rem; justify-content: center; }
.breadcrumb-section .breadcrumb-item + .breadcrumb-item::before {
  content: '›' !important; background: none !important; -webkit-mask: none !important; mask: none !important;
  width: auto !important; height: auto !important; color: var(--sf-text-muted); font-family: inherit !important;
}
.breadcrumb-section .breadcrumb-item a { color: var(--sf-text-muted); text-decoration: none; }
.breadcrumb-section .breadcrumb-item a:hover { color: var(--sf-text); text-decoration: underline; }
.breadcrumb-section .breadcrumb-item.active { color: var(--sf-text); font-weight: 600; }

/* Eyebrows (design web-eyebrow: 12/16, 600, 0.25em, uppercase, gold ink) replace the template's handwritten face. */
.section-sub-title, .sub-title, .iq-title-sub, .font-family-cursive {
  font-family: "Lexend Deca", system-ui, sans-serif !important;
  font-size: 12px !important; line-height: 16px; font-weight: 600 !important;
  letter-spacing: .25em; text-transform: uppercase; color: #8A6F3B !important; font-style: normal !important;
}
:root[data-bs-theme=dark] .section-sub-title, :root[data-bs-theme=dark] .sub-title,
:root[data-bs-theme=dark] .iq-title-sub, :root[data-bs-theme=dark] .font-family-cursive { color: #D4BC8A !important; }
html[lang=si] .section-sub-title, html[lang=si] .sub-title, html[lang=si] .iq-title-sub { letter-spacing: 0; text-transform: none; }

/* Control heights (design: website fields 48px, buttons 44px; admin 44px standard / 38px small). */
:root:has(link[href*="modules/frontend/style.css"]) .form-control:not(textarea):not(.form-control-sm),
:root:has(link[href*="modules/frontend/style.css"]) .form-select:not(.form-select-sm),
:root:has(link[href*="modules/frontend/style.css"]) .select2-container .select2-selection--single { min-height: 48px; border-radius: 8px; }
:root:has(link[href*="modules/frontend/style.css"]) .btn:not(.btn-sm):not(.btn-close):not(.btn-link):not(.p-0) { min-height: 44px; border-radius: 8px; }

/* Hero (tablet/desktop): a cream wash behind the copy column so the subtitle never runs onto the photo. */
@media (min-width: 768px) {
  .banner-section-wrapper .banner-content p { color: #4A4A4A !important; }
  .banner-section-wrapper .slick-item { position: relative; }
  .banner-section-wrapper .slick-item::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(250,247,241,.94) 0%, rgba(250,247,241,.82) 40%, rgba(250,247,241,0) 62%);
  }
  :root[data-bs-theme=dark] .banner-section-wrapper .slick-item::after {
    background: linear-gradient(90deg, rgba(18,18,18,.92) 0%, rgba(18,18,18,.78) 40%, rgba(18,18,18,0) 62%);
  }
  :root[data-bs-theme=dark] .banner-section-wrapper .banner-content p { color: #B8BDC5 !important; }
}
/* Hero arrows: solid charcoal discs with white glyph on any photo (16:1), gold in dark. */
.banner-section-wrapper .slick-arrow {
  width: 44px !important; height: 44px !important; border-radius: 999px !important;
  background: #1F1F1F !important; color: #FFFFFF !important; opacity: 1 !important; z-index: 2;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.banner-section-wrapper .slick-arrow:hover { background: #000 !important; }
:root[data-bs-theme=dark] .banner-section-wrapper .slick-arrow { background: #B89B5E !important; color: #121212 !important; }

/* Text fields with an icon (.custom-input-group): same 12px inset as x-sf-password-field. */
.custom-input-group .form-control,
.custom-input-group input { padding-left: 12px !important; padding-inline-start: 12px !important; }

/* ONE FONT IN BOTH THEMES. The template defines --bs-font-sans-serif only
   inside the [data-bs-theme=light] block, so in dark mode the body font is
   undefined and the browser falls back to a serif (Times) — nav, buttons,
   paragraphs and menu all changed font between light and dark. Define the font
   variables for every theme so the whole app uses Lexend Deca consistently. */
:root,
[data-bs-theme=light],
[data-bs-theme=dark] {
  --sf-font-sans: "Lexend Deca", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --bs-font-sans-serif: "Lexend Deca", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --bs-body-font-family: "Lexend Deca", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Headings use the brand sans (Lexend Deca) in BOTH light and dark. The
   template points headings at --bs-font-monospace, which keeps Lexend Deca in
   light mode but falls back to a serif (Times) in dark mode. Force the brand
   sans everywhere so headings are consistent across themes. */
h1, h2, h3, h4, h5, h6,
.title, .decorator-title,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: "Lexend Deca", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

/* "Why Choose" feature cards with an icon (no uploaded image): a clean, equal
   card instead of the image-overlay style. Consistent padding, clear gold icon,
   static title. h-100 in the markup makes every card the same height.
   Theme-aware: a light surface in light mode, a dark surface in dark mode. */
.why-choose-section-wrapper .choose-us-card--icon {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 20px !important;
  min-height: 150px;
  background: #FFFFFF !important;
  border: 1px solid #ECE4D4 !important;
  box-shadow: 0 1px 2px rgba(31, 31, 31, .04);
}
:root[data-bs-theme=dark] .why-choose-section-wrapper .choose-us-card--icon {
  background: #1A1A1A !important;
  border-color: #2E2E2E !important;
  box-shadow: none;
}
.why-choose-section-wrapper .choose-us-card--icon .icon-color {
  color: #8A6F3B !important; /* gold ink on the light card */
  font-size: 1.75rem !important;
  line-height: 1;
}
:root[data-bs-theme=dark] .why-choose-section-wrapper .choose-us-card--icon .icon-color {
  color: #D4BC8A !important; /* soft gold on the dark card */
}
.why-choose-section-wrapper .choose-us-card--icon .title-text {
  position: static !important;
  inset: auto !important;
  width: auto !important;
  margin-top: auto !important; /* title sits at the card foot, aligned across cards */
  padding: 0 !important;
  background: transparent !important;
  color: #1F1F1F !important;
  font-size: 1rem !important;
  font-weight: 600;
  line-height: 1.35;
}
:root[data-bs-theme=dark] .why-choose-section-wrapper .choose-us-card--icon .title-text {
  color: #F5F1E9 !important;
}

/* Input-group value fields (e.g. "Commission %", "Up to N photos"): give the
   input the same 12px leading inset as every other text field, so the value is
   not flush against the edge or the prefix. */
.input-group > .form-control,
.input-group > input.form-control,
.input-group > .form-select {
  padding-left: 12px !important;
  padding-inline-start: 12px !important;
}

/* Text links on light grounds: gold ink #8A6F3B (4.75:1); soft gold in dark. */
.sf-auth__card a:not(.sf-button):not(.btn),
.sf-link { color: #8A6F3B !important; font-weight: 600; }
:root[data-bs-theme=dark] .sf-auth__card a:not(.sf-button):not(.btn),
:root[data-bs-theme=dark] .sf-link { color: #D4BC8A !important; }
.sf-button--secondary { color: var(--sf-text) !important; border-width: 1.5px; }

/* Segmented switch (filled pills): <div class="sf-segmented" role="tablist"><button class="active">…</button></div>
   Idle pill-idle #EFEAE0 + charcoal; selected charcoal + white; dark: idle #2A2A2A, selected gold + charcoal. */
.sf-segmented { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: #EFEAE0; }
.sf-segmented > a, .sf-segmented > button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 14px; border: 0;
  border-radius: 999px; background: transparent; color: #1F1F1F; font-weight: 600; font-size: 14px; text-decoration: none;
}
.sf-segmented > .active, .sf-segmented > [aria-selected="true"], .sf-segmented > [aria-pressed="true"] { background: #1F1F1F; color: #FFFFFF; }
:root[data-bs-theme=dark] .sf-segmented { background: #2A2A2A; }
:root[data-bs-theme=dark] .sf-segmented > a, :root[data-bs-theme=dark] .sf-segmented > button { color: #EDEDED; }
:root[data-bs-theme=dark] .sf-segmented > .active, :root[data-bs-theme=dark] .sf-segmented > [aria-selected="true"],
:root[data-bs-theme=dark] .sf-segmented > [aria-pressed="true"] { background: #B89B5E; color: #1F1F1F; }

/* Calendar prev/next/Today: outlined (1.5px --sf-border-strong), 38px small-control height. */
.fc .fc-prev-button, .fc .fc-next-button, .fc .fc-today-button, .sf-btn-outline {
  min-height: 38px; border-radius: 6px !important; border: 1.5px solid var(--sf-border-strong) !important;
  background: transparent !important; color: var(--sf-text) !important; box-shadow: none !important; opacity: 1 !important;
}
.fc .fc-prev-button:hover, .fc .fc-next-button:hover, .fc .fc-today-button:hover, .sf-btn-outline:hover { background: var(--sf-surface-subtle) !important; }

/* Status chips: closed = neutral chip, red text only (design). */
.sf-status--closed { background: #F1EFEA !important; color: #B42318 !important; }
:root[data-bs-theme=dark] .sf-status--closed { background: #242424 !important; color: #FFB4AB !important; }

/* Selected pills: exact charcoal (no theme gradient/tint on top). */
.nav-pills { --bs-nav-pills-link-active-bg: #1F1F1F; }
.nav-pills .nav-link.active { background-image: none !important; }
:root[data-bs-theme=dark] .nav-pills { --bs-nav-pills-link-active-bg: #B89B5E; }

/* ===== Admin shell ===== */
/* Top bar 768-1199: keep scope chip, bell, theme, language, avatar inline; only section tabs go to the offcanvas. */
@media (min-width: 768px) and (max-width: 1199.98px) {
  nav.pr-hide.iq-navbar #navbar-toggle { display: none !important; }
  nav.pr-hide.iq-navbar #navbarSupportedContent {
    display: flex !important; position: static !important; width: auto !important; flex-basis: auto;
    background: transparent !important; box-shadow: none !important; margin-left: auto;
  }
  nav.pr-hide.iq-navbar #navbarSupportedContent .navbar-nav { flex-direction: row !important; align-items: center; gap: 6px; margin: 0 !important; }
  nav.pr-hide.iq-navbar #navbarSupportedContent .navbar-nav > li { padding: 0 !important; }
}
/* Text on gold is charcoal, everywhere (counts, badges, chips). */
.badge.bg-warning, .badge.bg-warning *, .badge.bg-secondary, .badge.bg-secondary * { color: #1F1F1F !important; }
:root[data-bs-theme=dark] .badge.bg-warning, :root[data-bs-theme=dark] .badge.bg-warning * { color: #121212 !important; }
/* Dark: gold primary button must look enabled: full-strength gold, charcoal label. */
:root[data-bs-theme=dark] .btn.btn-primary:not(:disabled):not(.disabled) { background-color: #B89B5E !important; border-color: #B89B5E !important; opacity: 1 !important; }
:root[data-bs-theme=dark] .btn.btn-primary:not(:disabled):not(.disabled):hover { background-color: #9E8249 !important; border-color: #9E8249 !important; }
/* Disabled buttons on-palette (bulk Apply): pill-idle fill, muted text, no slate block. */
.btn:disabled, .btn.disabled { background-color: #EFEAE0 !important; border-color: #E6DECD !important; color: #6B665E !important; opacity: 1 !important; }
:root[data-bs-theme=dark] .btn:disabled, :root[data-bs-theme=dark] .btn.disabled { background-color: #242424 !important; border-color: #2A2A2A !important; color: #8A857C !important; }

/* Datatable toolbar: one wrapping flex row, controls keep their width, no orphaned rows at 768. */
.card-header-toolbar, .datatable-filter, .card .card-header .d-flex.flex-wrap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.card .card-header .form-select, .card .card-header .btn { flex: 0 0 auto; }
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* Cells: dates/amounts never break; long emails ellipsis. */
.dataTable td, .table td { vertical-align: middle; }
.dataTable td.text-nowrap, .dataTable td[class*="date"], .dataTable td[class*="amount"], .dataTable td.dt-type-numeric { white-space: nowrap; }
.dataTable td small, .dataTable td .text-body.small, .dataTable td .sf-email { display: block; max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1439.98px) { .dataTable .sf-col-secondary { display: none !important; } }
/* Table names/links read as text: charcoal (dark: near-white), gold-ink on hover. */
.table td a:not(.btn):not(.badge):not([class*="text-"]) { color: #1F1F1F; font-weight: 600; text-decoration: none; }
.table td a:not(.btn):not(.badge):not([class*="text-"]):hover { color: #8A6F3B; }
:root[data-bs-theme=dark] .table td a:not(.btn):not(.badge):not([class*="text-"]) { color: #EDEDED; }
:root[data-bs-theme=dark] .table td a:not(.btn):not(.badge):not([class*="text-"]):hover { color: #D4BC8A; }

/* Settings side-nav: active item is a filled pill (layout-types §3). */
.setting-sidebar .nav-link.active, .settings-sidebar .nav-link.active, #setting-sidebar .nav-link.active, .list-group-item.active {
  background: #1F1F1F !important; color: #FFFFFF !important; border-color: transparent !important; border-radius: 999px !important;
}
:root[data-bs-theme=dark] .setting-sidebar .nav-link.active, :root[data-bs-theme=dark] .settings-sidebar .nav-link.active,
:root[data-bs-theme=dark] #setting-sidebar .nav-link.active, :root[data-bs-theme=dark] .list-group-item.active { background: #B89B5E !important; color: #121212 !important; }

/* Dashboard KPI cards: drop the template pink/purple curves. */
.dashboard-cards, .dashboard-cards .card-body { background-image: none !important; }
.dashboard-cards::before, .dashboard-cards::after, .dashboard-cards .card-body::before, .dashboard-cards .card-body::after { display: none !important; content: none !important; }

/* Date range below 576: full width (input + its wrapper). */
@media (max-width: 575.98px) {
  .sf-date-range, .sf-date-range input, .iq-navbar-header .sf-date-range + .btn { width: 100% !important; max-width: none !important; }
  .iq-navbar-header .d-flex:has(> .sf-date-range) { flex-wrap: wrap; width: 100%; }
}

/* Calendar: horizontal scroll hint (edge shadow) and filled-pill view switcher. */
.fc .fc-scroller, .fc-scrollgrid-section-body .fc-scroller-harness {
  background: linear-gradient(90deg, var(--sf-surface) 30%, transparent), linear-gradient(270deg, var(--sf-surface) 30%, transparent),
              radial-gradient(farthest-side at 0 50%, rgba(0,0,0,.14), transparent), radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.14), transparent);
  background-repeat: no-repeat; background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
  background-position: left, right, left, right; background-attachment: local, local, scroll, scroll;
}
.fc .fc-button-group:has(.fc-dayGridMonth-button, .fc-timeGridWeek-button, .fc-resourceTimeGridDay-button, .fc-timeGridDay-button) { background: #EFEAE0; border-radius: 999px; padding: 4px; gap: 4px; }
.fc .fc-button-group:has(.fc-dayGridMonth-button, .fc-timeGridWeek-button, .fc-resourceTimeGridDay-button, .fc-timeGridDay-button) .fc-button {
  border: 0 !important; border-radius: 999px !important; background: transparent !important; color: #1F1F1F !important; box-shadow: none !important; min-height: 30px; font-weight: 600;
}
.fc .fc-button-group .fc-button.fc-button-active { background: #1F1F1F !important; color: #FFFFFF !important; }
:root[data-bs-theme=dark] .fc .fc-button-group:has(.fc-dayGridMonth-button, .fc-timeGridWeek-button, .fc-resourceTimeGridDay-button, .fc-timeGridDay-button) { background: #2A2A2A; }
:root[data-bs-theme=dark] .fc .fc-button-group:has(.fc-dayGridMonth-button, .fc-timeGridWeek-button, .fc-resourceTimeGridDay-button, .fc-timeGridDay-button) .fc-button { color: #EDEDED !important; }
:root[data-bs-theme=dark] .fc .fc-button-group .fc-button.fc-button-active { background: #B89B5E !important; color: #121212 !important; }
/* Table cells: one line each (table scrolls inside .table-responsive), primary text charcoal, not template grey. */
.dataTable tbody td { color: var(--bs-heading-color, #1F1F1F); }
:root[data-bs-theme=dark] .dataTable tbody td { color: #EDEDED; }
.dataTable tbody td small, .dataTable tbody td .text-muted { color: var(--sf-text-muted) !important; }

/* Hero >=768 (design WebHome): copy overlays the photo, left-aligned and vertically centred, on the cream wash. */
@media (min-width: 768px) {
  .banner-section-wrapper { position: relative; }
  .banner-section-wrapper .banner-content { position: absolute !important; inset: 0 !important; transform: none !important;
    display: flex; align-items: center; z-index: 2; pointer-events: none; max-width: none; }
  .banner-section-wrapper .banner-content > .container-fluid { width: 100%; padding-inline: 80px; }
  .banner-section-wrapper .banner-content .banner-content-wrapper { pointer-events: auto; }
  .banner-section-wrapper .banner-content .banner-content-title { margin-bottom: 16px !important; }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
  .banner-section-wrapper .banner-content .row > [class*="col-"] { flex: 0 0 75%; max-width: 75%; }
  .banner-section-wrapper .slick-item::after { background: linear-gradient(90deg, rgba(250,247,241,.96) 0%, rgba(250,247,241,.88) 55%, rgba(250,247,241,0) 85%); }
  :root[data-bs-theme=dark] .banner-section-wrapper .slick-item::after { background: linear-gradient(90deg, rgba(18,18,18,.94) 0%, rgba(18,18,18,.84) 55%, rgba(18,18,18,0) 85%); }
}
/* Band subtitle under the admin page title (e.g. "All salons · Platform"). */
.sf-band-subtitle { margin-top: 4px; font-size: .875rem; color: #F3EFE6; opacity: .8; }
/* .sf-link keeps gold ink inside alerts/notices (Bootstrap sets alert link colour). */
.alert .sf-link, .sf-notice .sf-link, .alert a.sf-link:hover { color: #8A6F3B !important; text-decoration: underline; }
:root[data-bs-theme=dark] .alert .sf-link, :root[data-bs-theme=dark] .sf-notice .sf-link { color: #D4BC8A !important; }
/* Datatable toolbar at tablet (CompDataAdmin): row 1 = bulk action + Apply + Export, row 2 = filters + search + Advanced filter. */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .d-flex.flex-md-row:has(> div #quick-action-form) { flex-direction: column !important; align-items: stretch !important; }
  .d-flex.flex-md-row:has(> div #quick-action-form) > * { width: 100%; }
  .d-flex.flex-md-row:has(> div #quick-action-form) > div:first-child > .d-flex { flex-wrap: nowrap !important; align-items: center; }
  #quick-action-form { flex-direction: row !important; flex-wrap: nowrap; }
  #quick-action-form .select2-container { min-width: 160px; }
  .d-flex.flex-md-row:has(> div #quick-action-form) > div:last-child,
  .d-flex.flex-md-row:has(> div #quick-action-form) > div:last-child > .d-flex { display: flex; flex-wrap: nowrap !important; gap: 8px; align-items: center; justify-content: flex-start; }
  .d-flex.flex-md-row:has(> div #quick-action-form) > div:last-child .input-group,
  .d-flex.flex-md-row:has(> div #quick-action-form) > div:last-child .datatable-filter { flex: 1 1 auto; min-width: 140px; }
}
/* Admin sidebar (design AdminDashboard): solid surface, never glass. Below 1200 it is an off-canvas drawer with a scrim. */
.sidebar.sidebar-glass { background: var(--sf-surface) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border-right: 1px solid var(--sf-border-subtle); }
:root[data-bs-theme=dark] .sidebar.sidebar-glass { background: #1A1A1A !important; border-right-color: #2A2A2A; }
@media (max-width: 1199.98px) {
  .sidebar:not(.sidebar-mini) { box-shadow: 0 8px 24px rgba(0,0,0,.18); z-index: 1100; }
  .sidebar:not(.sidebar-mini) + .main-content::before {
    content: ""; position: fixed; inset: 0; z-index: 1090; background: rgba(31,31,31,.45);
  }
  /* collapse arrow sits beside the wordmark, not on top of it */
  .sidebar:not(.sidebar-mini) .logo-main { padding-right: 44px; }
  .sidebar:not(.sidebar-mini) .logo-main .navbar-brand img.logo-normal { height: 34px !important; max-height: 34px !important; }
}
/* Collapsed (mini) desktop: section captions become a hairline, not a "-" glyph. */
.sidebar.sidebar-mini .navbar-nav .nav-item.static-item .default-icon,
.sidebar.sidebar-mini .navbar-nav .static-item .mini-icon { font-size: 0 !important; display: block; height: 1px; margin: 10px 14px; background: var(--sf-border-subtle); }

/* Salon card photo: 4:3 always (beats any template height on .card-img/.img). */
.sf-salon-card .sf-salon-card__img { aspect-ratio: 4 / 3 !important; height: auto !important; flex: 0 0 auto; }
.sf-salon-card .sf-salon-card__img img { width: 100%; height: 100% !important; object-fit: cover; }
/* Closed/opens-at text in dark: design danger-on-dark is not pink; use neutral chip + readable red #F87171 (5.6:1 on #242424). */
:root[data-bs-theme=dark] .sf-status--closed { color: #F87171 !important; }
:root[data-bs-theme=dark] .sf-text-closed { color: #F87171 !important; }
/* .btn-outline-secondary = neutral outline (design Cancel): 1.5px --sf-border-strong, charcoal text; not gold. */
.btn.btn-outline-secondary {
  --bs-btn-color: var(--sf-text); --bs-btn-border-color: var(--sf-border-strong);
  --bs-btn-hover-bg: var(--sf-surface-subtle); --bs-btn-hover-color: var(--sf-text); --bs-btn-hover-border-color: var(--sf-border-strong);
  --bs-btn-active-bg: var(--sf-surface-subtle); --bs-btn-active-color: var(--sf-text); --bs-btn-active-border-color: var(--sf-border-strong);
  background-color: transparent !important; color: var(--sf-text) !important; border: 1.5px solid var(--sf-border-strong) !important;
}
.btn.btn-outline-secondary:hover, .btn.btn-outline-secondary:focus-visible { background-color: var(--sf-surface-subtle) !important; color: var(--sf-text) !important; }
.btn.btn-outline-secondary * { color: inherit !important; }
/* Calendar prev/next/Today (Vue: .btn.btn-light.border) and any bordered light button = neutral outline. */
.btn.btn-light.border {
  min-height: 38px; background: transparent !important; border: 1.5px solid var(--sf-border-strong) !important;
  color: var(--sf-text) !important; border-radius: 6px !important; box-shadow: none !important;
}
.btn.btn-light.border:hover, .btn.btn-light.border:focus-visible { background: var(--sf-surface-subtle) !important; }
/* Settings side-nav (#setting-app .list-group a.btn): active = filled pill; charcoal/white light, gold/charcoal dark. */
#setting-app .list-group .btn { border-radius: 999px !important; text-align: left; }
#setting-app .list-group .btn.active { background: #1F1F1F !important; border-color: #1F1F1F !important; color: #FFFFFF !important; }
#setting-app .list-group .btn.active * { color: inherit !important; }
:root[data-bs-theme=dark] #setting-app .list-group .btn.active { background: #B89B5E !important; border-color: #B89B5E !important; color: #121212 !important; }
/* Hero: the template's white ::before wash greys the photo in dark; ours (::after) replaces it and sits above the image. */
.banner-section-wrapper .slick-item::after { z-index: 1; }
:root[data-bs-theme=dark] .banner-section-wrapper .slick-item::before { display: none !important; }

/* Table headers: labels show as written (sentence case), no forced Capitalize. */
.table thead th, .dataTable thead th, table thead th { text-transform: none !important; }
/* Datatables fit at desktop: compact cell padding; text may wrap at >=1200 so key columns + Action fit the card.
   Below 1200 cells stay on one line and the table scrolls. Low-priority columns: className 'sf-col-secondary'. */
.dataTable thead th, .dataTable tbody td { padding: 12px 9px !important; }
.dataTable thead th:first-child, .dataTable tbody td:first-child { padding-left: 16px !important; }
@media (max-width: 1199.98px) { .dataTable tbody td { white-space: nowrap !important; } }
@media (min-width: 1200px) {
  .dataTable tbody td { white-space: normal; overflow-wrap: anywhere; }
  .dataTable thead th { white-space: normal !important; }
  .dataTable td:last-child, .dataTable th:last-child { white-space: nowrap !important; } /* Action */
}
/* Role chip "Manager" etc. (.badge.bg-*-subtle): standard chip palette, never solid red. */
.table .badge.bg-danger-subtle { background: rgba(31,31,31,.08) !important; color: #1F1F1F !important; font-weight: 600; border-radius: 999px; }
:root[data-bs-theme=dark] .table .badge.bg-danger-subtle { background: #242424 !important; color: #EDEDED !important; }
.dataTable thead th.sorting, .dataTable thead th.sorting_asc, .dataTable thead th.sorting_desc, .dataTable thead th.dt-orderable-asc, .dataTable thead th.dt-orderable-desc { padding-right: 22px !important; } /* room for the sort arrows */
@media (min-width: 1200px) and (max-width: 1599.98px) { .dataTable td small, .dataTable td .text-body.small, .dataTable td .sf-email { max-width: 14ch; } .dataTable td img.avatar-40, .dataTable td .avatar-40 { width: 32px; height: 32px; } }

/* == web-2 agent == (public website, second half: PayHere hand-off page) */
.sf-payhere { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.sf-payhere__spinner { width: 64px; height: 64px; border-radius: 999px; border: 5px solid var(--sf-cream-line, #EFE7D6); border-top-color: #B89B5E; animation: sf-payhere-spin 1s linear infinite; }
@keyframes sf-payhere-spin { to { transform: rotate(360deg); } }
/* Global page loader overlay — mirrors the mobile app's submit loading indicator. */
.sf-page-loader { position: fixed; inset: 0; z-index: 20000; display: none; align-items: center; justify-content: center; background: rgba(250,247,241,.72); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.sf-page-loader.is-active { display: flex; }
.sf-top-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: #B89B5E; z-index: 2147483647; transition: width .3s cubic-bezier(.4, 0, .2, 1), opacity .3s ease; pointer-events: none; box-shadow: 0 0 8px rgba(184, 155, 94, .6); }
.sf-top-progress.is-active { width: 75%; }
.sf-top-progress.is-done { width: 100%; opacity: 0; }
/* Uses the SAME animation asset as the mobile app (frezka_loader.gif), tinted to
   match: black on light, white on dark — mirroring the app's color override. */
.sf-page-loader__gif { width: 120px; height: 120px; object-fit: contain; filter: brightness(0); }
[data-bs-theme="dark"] .sf-page-loader { background: rgba(20,18,16,.72); }
[data-bs-theme="dark"] .sf-page-loader__gif { filter: brightness(0) invert(1); }
@media (prefers-reduced-motion: reduce) { .sf-payhere__spinner { animation-duration: 3s; } }
.sf-payhere__title { margin: 0; font-size: 22px; font-weight: 600; }
.sf-payhere__line { margin: 0; color: var(--bs-secondary-color); font-size: 14px; }
.sf-payhere__meta { width: 100%; margin: 0; background: #FAF7F1; border-radius: 10px; padding: 14px 16px; font-size: 13px; text-align: left; display: flex; flex-direction: column; gap: 6px; }
.sf-payhere__meta div { display: flex; justify-content: space-between; gap: 12px; }
.sf-payhere__meta dt { font-weight: 400; color: #5F6670; }
.sf-payhere__meta dd { margin: 0; font-weight: 700; color: #1F1F1F; }
.sf-payhere__stuck { margin: 0; font-size: 13px; color: var(--bs-secondary-color); }
.sf-payhere__stuck .btn-link { color: #8A6F3B; font-size: 13px; font-weight: 600; }
[data-bs-theme="dark"] .sf-payhere__spinner { border-color: #3A3326; border-top-color: #B89B5E; }
[data-bs-theme="dark"] .sf-payhere__meta { background: #1E1B16; }
[data-bs-theme="dark"] .sf-payhere__meta dt { color: #A3A3A3; }
[data-bs-theme="dark"] .sf-payhere__meta dd { color: #EDEDED; }
[data-bs-theme="dark"] .sf-payhere__stuck .btn-link { color: #D4BC8A; }
/* == end web-2 agent == */

/* == admin-1 agent == */
/* .btn-info (template teal) mapped to the brand: charcoal, gold in dark (same as the secondary dark button). */
.btn-info, .btn-info:hover, .btn-info:focus, .btn-info:active, .btn-info.active {
  --bs-btn-bg: #1F1F1F; --bs-btn-border-color: #1F1F1F; --bs-btn-color: #FFFFFF;
  --bs-btn-hover-bg: #000000; --bs-btn-hover-border-color: #000000; --bs-btn-hover-color: #FFFFFF;
  --bs-btn-active-bg: #000000; --bs-btn-active-border-color: #000000; --bs-btn-active-color: #FFFFFF;
  background-color: var(--bs-btn-bg); border-color: var(--bs-btn-border-color); color: var(--bs-btn-color);
}
[data-bs-theme="dark"] .btn-info, [data-bs-theme="dark"] .btn-info:hover, [data-bs-theme="dark"] .btn-info:focus, [data-bs-theme="dark"] .btn-info:active {
  --bs-btn-bg: #B89B5E; --bs-btn-border-color: #B89B5E; --bs-btn-color: #1F1F1F;
  --bs-btn-hover-bg: #D4BC8A; --bs-btn-hover-border-color: #D4BC8A; --bs-btn-hover-color: #1F1F1F;
}
.btn-info-subtle, .text-info { color: var(--sf-text, #1F1F1F) !important; }
.bg-info, .badge.bg-info { background-color: #EFEAE0 !important; color: #1F1F1F !important; }
[data-bs-theme="dark"] .bg-info, [data-bs-theme="dark"] .badge.bg-info { background-color: #242424 !important; color: #F3EFE6 !important; }

/* Row actions in tables (design AdminBranches): 38px outlined squares, 1.5px --sf-border-strong, surface fill.
   Danger keeps its red icon so destructive actions stay recognisable. */
table td .btn-sm[class*="-subtle"] {
  width: 38px; height: 38px; min-width: 38px; padding: 0; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--sf-surface, #FFFFFF) !important; border: 1.5px solid var(--sf-border-strong, #59616B) !important;
  color: var(--sf-text, #1F1F1F) !important; box-shadow: none;
}
table td .btn-sm[class*="-subtle"]:hover { background: #EFEAE0 !important; }
[data-bs-theme="dark"] table td .btn-sm[class*="-subtle"]:hover { background: #242424 !important; }
table td .btn-sm.btn-danger-subtle { color: var(--sf-danger, #B42318) !important; }
/* Same outline for the filled icon buttons in the Action column (blogs, FAQs, pages...). Width grows for text. */
table.dataTable td:last-child .btn-sm:not(.btn-link):not(.dropdown-item):not(.form-check-input) {
  min-width: 38px; height: 38px; padding: 0 10px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--sf-surface, #FFFFFF) !important; border: 1.5px solid var(--sf-border-strong, #59616B) !important;
  color: var(--sf-text, #1F1F1F) !important; box-shadow: none;
}
table.dataTable td:last-child .btn-sm.btn-danger, table.dataTable td:last-child .btn-sm.btn-delete, table.dataTable td:last-child .btn-sm.text-danger { color: var(--sf-danger, #B42318) !important; }
[data-bs-theme="dark"] table.dataTable td:last-child .btn-sm.btn-danger, [data-bs-theme="dark"] table.dataTable td:last-child .btn-sm.btn-delete, [data-bs-theme="dark"] table.dataTable td:last-child .btn-sm.text-danger { color: #F87171 !important; }
table.dataTable td:last-child .btn-sm:not(.btn-link):hover { background: #EFEAE0 !important; }
[data-bs-theme="dark"] table.dataTable td:last-child .btn-sm:not(.btn-link):hover { background: #242424 !important; }
[data-bs-theme="dark"] table td .btn-sm.btn-danger-subtle { color: #F87171 !important; }
/* Top bar 0-1199: backdrop-filter made the navbar the containing block of the fixed section-tabs drawer
   (.iq-product-menu-responsive), so the closed drawer widened the page (scrollWidth 1220 at 820) and the open
   one was only as tall as the bar. Solid surface instead of glass below 1200. */
@media (max-width: 1199.98px) {
  .iq-navbar { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background-color: var(--sf-surface, #FFFFFF) !important; }
}
/* Dashboard KPI values (e.g. "LKR 19,000") broke over two lines in the 6-up row at 1200-1600. One line, size scales. */
.dashboard-cards .card-body h3 { white-space: nowrap; font-size: clamp(1.125rem, 1.5vw, 1.75rem); font-variant-numeric: tabular-nums; }
/* Detail heads (customer/staff): the action button pushed past the card at 390. Wrap instead. */
.sf-detail-head { flex-wrap: wrap; }
.sf-detail-head > .flex-grow-1 { min-width: 0; }
.sf-detail-head .sf-sub { overflow-wrap: anywhere; }
/* Salon lock + due banners (design): charcoal surface, red left edge, cream text, gold pay button. */
.sf-lock-banner, :root[data-bs-theme=dark] .sf-lock-banner {
  background: #1F1F1F; color: #F3EFE6; border: 1px solid #1F1F1F; border-left: 4px solid #B42318;
}
.sf-lock-banner .sf-lock-banner__text strong, :root[data-bs-theme=dark] .sf-lock-banner__text strong { color: #F3EFE6; }
.sf-lock-banner .sf-lock-banner__text span, :root[data-bs-theme=dark] .sf-lock-banner__text span { color: #D9D3C7; }
.sf-lock-banner .sf-lock-banner__icon { background: rgba(240,68,56,.16); color: #F97066; }
.sf-lock-banner .btn.sf-lock-banner__action {
  background: #B89B5E !important; border-color: #B89B5E !important; color: #1F1F1F !important; font-weight: 700;
}
.sf-lock-banner .btn.sf-lock-banner__action:hover { background: #D4BC8A !important; border-color: #D4BC8A !important; }
/* Lock card pay button: gold in light mode too (was charcoal btn-primary). */
.sf-lock-card .btn.btn-primary { background: #B89B5E !important; border-color: #B89B5E !important; color: #1F1F1F !important; font-weight: 700; }
.sf-lock-card .btn.btn-primary:hover { background: #D4BC8A !important; border-color: #D4BC8A !important; }
/* Footer: left text ("Built with ... KDmobileapps.com") clipped to "apps.com" at 1440. */
.footer .footer-body > .left-panel, .footer .footer-body > .right-panel { flex: 0 1 auto; min-width: 0; white-space: normal; overflow: visible; text-overflow: clip; }
.footer .footer-body > .left-panel * { white-space: normal; }
/* Band subtitle (Salon plans): lost to a later p colour rule in light mode. */
.iq-navbar-header .sf-band-subtitle { color: #F3EFE6 !important; opacity: .85; }
/* Outlined Action-column buttons (blogs, FAQs, pages): the global ".btn.btn-primary *" icon colour (white / charcoal)
   matched the outlined surface, so the edit icon vanished. Icons follow the button colour instead. */
table.dataTable td:last-child .btn-sm:not(.btn-link):not(.dropdown-item):not(.form-check-input) * { color: inherit !important; }
/* == end admin-1 agent == */

/* == web-1 agent == */
/* Title band (design x-breadcrumb): title 28/600 above a 13px trail, 28px padding, one band, no second heading. */
.breadcrumb-section { padding-block: 28px !important; }
.breadcrumb-section .sf-band { gap: 6px; }
.breadcrumb-section .sf-band__title { order: -1; margin: 0; font-size: 28px; line-height: 36px; font-weight: 600; color: var(--sf-text); }
.breadcrumb-section .breadcrumb { font-size: 13px; }
@media (max-width: 575.98px) { .breadcrumb-section .sf-band__title { font-size: 22px; line-height: 28px; } .breadcrumb-section { padding-block: 20px !important; } }

/* Eyebrow (design: 12/16, 600, .25em, uppercase, gold ink; deep variant on sand cards). */
.sf-eyebrow { display: inline-block; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .25em; text-transform: uppercase; color: #8A6F3B; }
.sf-eyebrow--deep { color: #6B5428; }
[data-bs-theme=dark] .sf-eyebrow, [data-bs-theme=dark] .sf-eyebrow--deep { color: #D4BC8A; }
html[lang=si] .sf-eyebrow { letter-spacing: 0; text-transform: none; }

/* Home FAQ + quote card (WebHome): two flexible columns, wrap under 800px. */
.sf-home-faq__grid { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.sf-home-faq__list { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.sf-home-faq__title { margin: 0; font-size: 32px; line-height: 40px; font-weight: 600; }
.sf-home-faq .accordion { display: flex; flex-direction: column; gap: 10px; }
.sf-home-faq .accordion-item { margin: 0 !important; border: 1px solid var(--sf-border-subtle) !important; border-radius: 12px !important; overflow: hidden; background: var(--sf-surface); }
.sf-home-faq .accordion-button { font-size: 15px; font-weight: 600; padding: 14px 18px; background: var(--sf-surface) !important; color: var(--sf-text) !important; box-shadow: none !important; }
.sf-home-faq .accordion-body { padding: 0 18px 14px; font-size: 14px; color: var(--sf-text-muted); }
.sf-home-faq__quote { flex: 1 1 380px; margin: 0; background: var(--sf-surface-subtle); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.sf-home-faq__quote blockquote { margin: 0; font-size: 18px; line-height: 28px; color: var(--sf-text); }
.sf-home-faq__quote figcaption { font-size: 14px; color: var(--sf-text-muted); }
.sf-home-faq__stars { color: #B89B5E; margin-right: 6px; letter-spacing: 1px; }
@media (max-width: 575.98px) { .sf-home-faq__title { font-size: 24px; line-height: 32px; } }
/* Expert detail (WebExpertDetail): 360px profile card beside the reviews; stacks under 700px. */
.sf-expert-detail { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; padding-block: 40px 64px; }
.sf-expert-card { flex: 1 1 300px; max-width: 360px; border: 1px solid var(--sf-border-subtle); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; background: var(--sf-surface); }
@media (max-width: 699.98px) { .sf-expert-card { max-width: none; } }
.sf-expert-card__photo { width: 140px; height: 140px; border-radius: 999px; object-fit: cover; border: 3px solid #B89B5E; background: var(--sf-surface-subtle); }
.sf-expert-card__name { margin: 6px 0 0; font-size: 24px; line-height: 32px; font-weight: 600; }
.sf-expert-card__meta { font-size: 15px; color: var(--sf-text-muted); }
.sf-expert-card__rating { font-size: 15px; color: var(--sf-text); }
.sf-expert-card__stars { color: #B89B5E; letter-spacing: 1px; }
.sf-expert-card .sf-button { margin-top: 8px; }
.sf-expert-reviews { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.sf-expert-reviews__title { margin: 0; font-size: 22px; font-weight: 600; }
.sf-review-card { border: 1px solid var(--sf-border-subtle); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 6px; background: var(--sf-surface); }
.sf-review-card p { font-size: 15px; line-height: 24px; color: var(--sf-text-muted); }
.sf-review-card__date { font-size: 13px; color: var(--sf-text-muted); }
.sf-review-card b { font-size: 15px; font-weight: 600; color: var(--sf-text); }
/* Booking success (WebBookingSuccess): 720px column, details table, buttons in one wrapping row. */
.container.sf-narrow:has(.sf-done__table), .sf-done:has(.sf-done__table) { max-width: 720px; }
.sf-done__title { margin: 0 0 8px; font-size: 30px; font-weight: 600; }
.sf-done__table { width: 100%; margin: 4px 0 20px; border: 1px solid var(--sf-border-subtle); border-radius: 12px; padding: 20px; text-align: left; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.sf-done__table > div { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.sf-done__table dt { font-weight: 400; color: var(--sf-text-muted); flex: 0 0 auto; }
.sf-done__table dd { margin: 0; font-weight: 600; text-align: right; color: var(--sf-text); flex: 1 1 auto; min-width: 0; word-break: break-word; }
.sf-done__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
@media (max-width: 575.98px) { .sf-done__actions > * { flex: 1 1 100%; } .sf-done__title { font-size: 24px; } }
/* Legal pages (WebLegal): 880px reading column, left-aligned, policy pills; FAQ page (WebFaq) 880px. */
.sf-legal { max-width: 880px; margin-inline: auto; text-align: left; display: flex; flex-direction: column; gap: 16px; }
.sf-legal__nav { display: flex; flex-wrap: wrap; gap: 8px; }
.sf-legal__pill { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--sf-border-subtle); background: var(--sf-surface); color: var(--sf-text); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; text-decoration: none; }
.sf-legal__pill:hover { border-color: #B89B5E; color: var(--sf-text); }
.sf-legal__pill.active { background: #1F1F1F; border-color: #1F1F1F; color: #FFFFFF; }
[data-bs-theme=dark] .sf-legal__pill.active { background: #B89B5E; border-color: #B89B5E; color: #121212; }
.sf-legal__title { margin: 8px 0 0; font-size: 22px; line-height: 30px; font-weight: 600; }
.sf-legal__body { font-size: 16px; line-height: 26px; color: var(--sf-text-muted); text-align: left !important; }
.sf-legal__body * { text-align: left !important; }
.sf-legal__body h1, .sf-legal__body h2, .sf-legal__body h3, .sf-legal__body h4 { font-size: 22px; line-height: 30px; font-weight: 600; margin: 24px 0 8px; color: var(--sf-text); }
/* Template section eyebrows (.decorator-title: handwritten, underlined) use the design eyebrow everywhere. */
.decorator-title, .decorator-font { font-family: "Lexend Deca", system-ui, sans-serif !important; font-size: 12px !important; line-height: 16px; font-weight: 600 !important; letter-spacing: .25em; text-transform: uppercase; text-decoration: none !important; font-style: normal !important; color: #8A6F3B !important; }
[data-bs-theme=dark] .decorator-title, [data-bs-theme=dark] .decorator-font { color: #D4BC8A !important; }
html[lang=si] .decorator-title, html[lang=ta] .decorator-title { letter-spacing: 0; text-transform: none; }
/* Contact (WebContact): info cards left, bordered form card right. */
.sf-contact-info { display: flex; flex-direction: column; gap: 14px; }
.sf-contact-card { border: 1px solid var(--sf-border-subtle); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 4px; background: var(--sf-surface); }
.sf-contact-card span { font-size: 13px; font-weight: 600; color: #8A6F3B; }
[data-bs-theme=dark] .sf-contact-card span { color: #D4BC8A; }
.sf-contact-card a, .sf-contact-card b { font-size: 16px; font-weight: 600; color: var(--sf-text); text-decoration: none; overflow-wrap: anywhere; }
.sf-contact-form { border: 1px solid var(--sf-border-subtle); border-radius: 12px; padding: 24px; background: var(--sf-surface); }
.contact-us-section.section-spacing-inner-pages { padding-top: 0 !important; padding-bottom: 0 !important; }
.leave-section { padding-block: 56px; }
/* Expert cards (WebExperts / home Meet Our Experts): white bordered card, 96px gold-ring avatar, gold-ink initials. */
.export-card.sf-card { background: var(--sf-surface) !important; border: 1px solid var(--sf-border-subtle) !important; border-radius: 12px !important; padding: 20px !important; }
.export-card .sf-expert-avatar { width: 96px !important; height: 96px !important; border: 2px solid #B89B5E !important; object-fit: cover; }
.export-card .export-image > span, .export-card .sf-expert-avatar:not(img) { color: #8A6F3B !important; background: var(--sf-surface-subtle) !important; font-size: 28px !important; font-weight: 600 !important; }
[data-bs-theme=dark] .export-card .export-image > span, [data-bs-theme=dark] .export-card .sf-expert-avatar:not(img) { color: #D4BC8A !important; }
.export-section.section-spacing { padding-top: 40px !important; }
/* Footer bottom bar in dark: --bs-primary turns gold, so the text must be charcoal (brand rule: anything on gold = charcoal). */
[data-bs-theme=dark] footer .footer-bottom, [data-bs-theme=dark] footer .footer-bottom * , [data-bs-theme=dark] footer .footer-bottom a { color: #1F1F1F !important; }
/* Guest header actions (WebHeader): Sign in outline + Find a salon. */
.sf-header-guest .sf-button { white-space: nowrap; }
/* Booking detail (WebBookingDetail): template sand blocks become the design's white bordered cards. */
.booking-details-box, .booking-detail-section .payments-container, .payments-container.bg-gray-800 { background: var(--sf-surface) !important; border: 1px solid var(--sf-border-subtle); border-radius: 12px !important; }
/* Website fields (design WebField): white field, 1.5px neutral border, 8px radius (dark #1A1A1A / #5E6671); no sand fill. */
:root:has(link[href*="modules/frontend/style.css"]) .form-control:not(header .form-control):not(.form-control-plaintext):not(.banner-section-wrapper .form-control):not(.input-group .form-control),
:root:has(link[href*="modules/frontend/style.css"]) .leave-section .form-control,
:root:has(link[href*="modules/frontend/style.css"]) .form-select:not(header .form-select) { background-color: var(--sf-surface) !important; border: 1.5px solid var(--sf-border) !important; border-radius: 8px; color: var(--sf-text); }
:root:has(link[href*="modules/frontend/style.css"]) .custom-input-group { background: transparent !important; }
:root:has(link[href*="modules/frontend/style.css"]) .custom-input-group .form-control { border-right: 1.5px solid var(--sf-border) !important; }
:root:has(link[href*="modules/frontend/style.css"]) .custom-input-group .input-group-text { background: transparent !important; border: 0 !important; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); z-index: 5; }
:root:has(link[href*="modules/frontend/style.css"]) .form-control:not(header .form-control):focus,
:root:has(link[href*="modules/frontend/style.css"]) .leave-section .form-control:focus { border-color: var(--sf-text) !important; box-shadow: 0 0 0 3px rgba(184,155,94,.25) !important; }
/* My bookings (WebAccount): white bordered booking cards, 64px image, flat detail block (no sand fill / nested card). */
.booking-card-container { background: var(--sf-surface) !important; border: 1px solid var(--sf-border-subtle); border-radius: 12px !important; padding: 18px 20px !important; }
.booking-card-container .booking-card-image .avatar { width: 64px !important; height: 64px !important; border-radius: 8px !important; }
.booking-card-container .booking-card-title { font-size: 17px; font-weight: 600; }
.booking-card-container .booking-card-details { background: transparent !important; padding: 12px 0 0 !important; border-top: 1px solid var(--sf-border-subtle); border-radius: 0 !important; }
/* Account datatables (notifications etc.): the card column must wrap inside the shell, not widen the page. */
.sf-account table.custom-card-table{display:table;width:100%!important;table-layout:fixed;}
.sf-account table.custom-card-table td,.sf-account table.custom-card-table .sf-notif__text{white-space:normal;overflow-wrap:anywhere;}
/* == end web-1 agent == */

/* == admin-2 agent == */
/* Lock card: "still open / locked" scope list (design AdminOwnerLockedModule). */
.sf-lock-card__scope { list-style: none; margin: 0 0 16px; padding: 12px 16px; background: #FAF7F1; border-radius: 8px; text-align: left; font-size: 13px; line-height: 1.7; }
.sf-lock-card__scope li { display: flex; gap: 8px; align-items: baseline; }
.sf-lock-card__scope i { font-size: 12px; width: 12px; }
.sf-lock-card__scope-locked { color: #6B665E; }
:root[data-bs-theme=dark] .sf-lock-card__scope { background: #242424; }
:root[data-bs-theme=dark] .sf-lock-card__scope-locked { color: #A8A196; }
/* Report toolbars (date range + staff select + reset): wrap on phones so the date field is readable. */
@media (max-width: 575.98px) {
  .input-group.flex-nowrap:has(> .booking-date-range) { flex-wrap: wrap !important; }
  .input-group.flex-nowrap:has(> .booking-date-range) > .booking-date-range { flex: 1 1 100%; width: 100%; margin-left: 0 !important; border-radius: 6px !important; }
  .input-group.flex-nowrap:has(> .booking-date-range) > .select2-container { flex: 1 1 0 !important; min-width: 0; }
}
/* Settings > Notification: the table carries .table-responsive itself, so it spilled out of the card. Scroll inside instead. */
.table.table-condensed.table-responsive { display: block; width: 100%; overflow-x: auto; }
/* .alert-secondary kept its cream fill in dark mode with light text (Settings > Payment, Subscriptions). */
:root[data-bs-theme=dark] .alert-secondary { background: #242424; border-color: #3A3A3A; color: #EDEDED; }
/* Lock card: centre it over the blurred page so it never sits on the band (Services list had it at the very top). */
.sf-locked__overlay { align-items: center; }
/* .bg-light panels stayed near-white in dark mode with light text (Edit salon: Quick decision bar, branch list). */
:root[data-bs-theme=dark] .bg-light:not(.badge) { background-color: #242424 !important; color: #EDEDED; border-color: #3A3A3A !important; }
/* Hard-coded .bg-white / .text-dark headers stayed white in dark mode (Salon profile 'Salon Photos & Branding'). */
:root[data-bs-theme=dark] .card-header.bg-white { background-color: transparent !important; border-color: #333 !important; }
:root[data-bs-theme=dark] .card .text-dark:not(.badge):not(.bg-light *) { color: #EDEDED !important; }
/* A .visually-hidden header label inside .table-responsive escaped the scroll box and widened the page to 842px on phones (Salon plans). */
.table-responsive { position: relative; }
/* == end admin-2 agent == */
/* == web-2 agent == (partner status meta row, design WebSalonStatus) */
.sf-status-meta { display: flex; justify-content: space-between; gap: 12px; background: #FAF7F1; border-radius: 8px; padding: 14px 16px; margin: 0 0 16px; font-size: 14px; }
.sf-status-meta span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sf-status-meta small { color: #5F6670; font-size: 12px; }
.sf-status-meta b { font-weight: 600; color: #1F1F1F; overflow-wrap: anywhere; }
[data-bs-theme="dark"] .sf-status-meta { background: #1E1B16; }
[data-bs-theme="dark"] .sf-status-meta small { color: #A3A3A3; }
[data-bs-theme="dark"] .sf-status-meta b { color: #EDEDED; }
/* Partner register step 2 (design WebPartnerRegisterStep2): Reg. No fills the row, inputs line up when a label wraps. */
.sf-form-grid--address { align-items: end; }
.sf-form-grid--address .sf-field--span2 { grid-column: span 2; }
@media (max-width: 640px) { .sf-form-grid--address .sf-field--span2 { grid-column: auto; } }
/* Sign in / sign up: icon fields keep all four rounded corners (the icon sits inside the field). */
.sf-auth__card .custom-input-group > .form-control { border-radius: 8px !important; }
/* Auth split screen stacked (phone/tablet): keep air between the logo and the heading. */
@media (max-width: 991.98px) { .sf-auth .sf-auth__brand { gap: 24px; } }
/* Sign up: space between the gender choices and the Sign Up button. */
.sf-auth__card .select-gender { margin-bottom: 24px; }
/* Wallet (design WebWallet): charcoal balance card with the amount in gold; Withdrawal / Top Up as real buttons. */
.top-header-box ~ .balance-section { background: #1F1F1F !important; color: #FFFFFF; padding: 28px !important; gap: 8px; align-items: flex-start !important; }
.top-header-box ~ .balance-section p { color: #CFC6B4 !important; font-size: 14px; }
.top-header-box ~ .balance-section .balance-amount { color: #B89B5E !important; font-size: 32px !important; font-weight: 700; }
.top-header-box .btn-link[data-bs-toggle="modal"] { height: 44px; padding: 0 20px; border-radius: 8px; border: 1.5px solid #1F1F1F; color: #1F1F1F; font-weight: 700; font-size: 14px !important; text-decoration: none; display: inline-flex; align-items: center; }
.top-header-box .btn-link[data-bs-target="#topUpModal"] { background: #1F1F1F; color: #FFFFFF; }
[data-bs-theme="dark"] .top-header-box ~ .balance-section { background: #1A1A1A !important; border: 1px solid #2A2A2A; }
[data-bs-theme="dark"] .top-header-box .btn-link[data-bs-toggle="modal"] { border-color: #EDEDED; color: #EDEDED; }
[data-bs-theme="dark"] .top-header-box .btn-link[data-bs-target="#topUpModal"] { background: #EDEDED; color: #121212; }
/* Services cards: price and "Find a salon" wrap instead of pushing the button past the card edge. */
.sf-svc-card__foot { flex-wrap: wrap; }
.sf-svc-card__cta { flex-shrink: 0; }
/* == end web-2 agent == */

/* == flow-check agent == (2026-11-06 flow-by-flow pass) */
/* Dark disabled buttons: the old #242424 fill matched the offcanvas footer, so a disabled "Save Appointment"
   vanished. A lifted fill + visible border keeps it readable as "not yet". */
:root[data-bs-theme=dark] .btn:disabled, :root[data-bs-theme=dark] .btn.disabled,
:root[data-bs-theme=dark] fieldset:disabled .btn { background-color: #322E27 !important; border-color: #5A5245 !important; color: #B8B1A5 !important; }

/* TinyMCE 4 (lightgray skin only): dark toolbar/menus. The editable body is painted by public/js/sf-tinymce-theme.js. */
:root[data-bs-theme=dark] .mce-panel, :root[data-bs-theme=dark] .mce-container, :root[data-bs-theme=dark] .mce-container-body,
:root[data-bs-theme=dark] .mce-menubar, :root[data-bs-theme=dark] .mce-toolbar-grp, :root[data-bs-theme=dark] .mce-statusbar { background: #1A1A1A !important; border-color: #2E2E2E !important; color: #EDEDED !important; }
:root[data-bs-theme=dark] .mce-tinymce { border-color: #3A3A3A !important; box-shadow: none !important; }
:root[data-bs-theme=dark] .mce-btn, :root[data-bs-theme=dark] .mce-menubtn { background: transparent !important; border-color: transparent !important; }
:root[data-bs-theme=dark] .mce-btn button, :root[data-bs-theme=dark] .mce-btn .mce-txt, :root[data-bs-theme=dark] .mce-ico,
:root[data-bs-theme=dark] .mce-menu-item .mce-text, :root[data-bs-theme=dark] .mce-path-item, :root[data-bs-theme=dark] .mce-label { color: #EDEDED !important; text-shadow: none !important; }
:root[data-bs-theme=dark] .mce-btn:hover, :root[data-bs-theme=dark] .mce-btn.mce-active, :root[data-bs-theme=dark] .mce-menu-item:hover { background: #2A2620 !important; border-color: #5A4E36 !important; }
:root[data-bs-theme=dark] .mce-menu { background: #242424 !important; border-color: #3A3A3A !important; }
:root[data-bs-theme=dark] .mce-edit-area iframe { background: #1A1A1A; }

/* Home "Get the app" band: dark surface in dark mode (it stayed cream). Beats the earlier charcoal-text rule. */
html:root[data-bs-theme=dark] .app-download-section { background: #1A1A1A !important; }
html:root[data-bs-theme=dark] .app-download-section .title, html:root[data-bs-theme=dark] .app-download-section p,
html:root[data-bs-theme=dark] .app-download-section li, html:root[data-bs-theme=dark] .app-download-section li span,
html:root[data-bs-theme=dark] .app-download-section .app-download-flow__item { color: #EDEDED !important; }
html:root[data-bs-theme=dark] .app-download-eyebrow, html:root[data-bs-theme=dark] .app-download-flow__number { color: #D4BC88 !important; }
html:root[data-bs-theme=dark] .app-download-flow__number { background: #2A2620 !important; }
html:root[data-bs-theme=dark] .app-download-screens::before { background: rgba(184,155,94,.12); }
html:root[data-bs-theme=dark] .app-screen-placeholder { border-color: #3A3A3A; }
html:root[data-bs-theme=dark] .app-screen-placeholder__content { background: #242424; }
html:root[data-bs-theme=dark] .app-screen-placeholder__title { color: #EDEDED; }
html:root[data-bs-theme=dark] .app-screen-placeholder__line { background: #3A3A3A; }
html:root[data-bs-theme=dark] .app-screen-placeholder__card { background: #1A1A1A; }
html:root[data-bs-theme=dark] .app-screen-placeholder__image, html:root[data-bs-theme=dark] .app-screen-placeholder__button { background: #B89B5E; }
/* Website booking cards: the outlined "Reschedule" (btn-orange) had a charcoal border on the dark card. */
html:root[data-bs-theme=dark] .btn-orange { border-color: #8A857C !important; color: #EDEDED !important; background: transparent !important; }
html:root[data-bs-theme=dark] .btn-orange:hover { border-color: #B89B5E !important; color: #D4BC88 !important; }
/* Website notifications: long titles ran under the date on phones; let the body shrink and the title wrap. */
.sf-notif__body { min-width: 0; flex: 1 1 auto; }
.sf-notif__title { overflow-wrap: anywhere; }
.sf-notif__meta { flex-shrink: 0; }
/* The notifications page wraps rows in a DataTables table; without a fixed layout the cell grew past the card on phones. */
table.custom-card-table:has(.sf-notif) { table-layout: fixed; width: 100% !important; }
table.custom-card-table:has(.sf-notif) td, .sf-notif__link { white-space: normal !important; }
/* == end flow-check agent == */

/* == admin-final agent == (2026-11-06 admin flow pass) */
/* Branch gallery offcanvas (design AdminBranchGallery): "N photos" + dashed cream upload, 4:3 tiles with a round remove. */
.sf-gallery-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.sf-gallery-head b { font-size: 15px; }
.sf-gallery-upload { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; margin: 0; border-radius: 8px; border: 1.5px dashed #D9CBAE; background: #FAF7F1; color: #8A6F3B; font-weight: 600; font-size: 14px; cursor: pointer; }
.sf-gallery-upload:hover { border-color: #B89B5E; }
.sf-gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sf-gallery-tile { position: relative; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #EFEAE0; }
.sf-gallery-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sf-gallery-remove { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 999px; border: 0; background: rgba(31,31,31,.8); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; }
.sf-gallery-empty { margin: 0; padding: 32px 16px; text-align: center; color: #6B665E; border: 1px dashed #D9CBAE; border-radius: 8px; }
:root[data-bs-theme=dark] .sf-gallery-upload { background: #2A2620; border-color: #5A4E36; color: #D4BC88; }
:root[data-bs-theme=dark] .sf-gallery-tile { background: #242424; }
:root[data-bs-theme=dark] .sf-gallery-empty { color: #B8B1A5; border-color: #3A3A3A; }
/* Calendar day view: the header grid is sized to max-content, so long staff names widened its columns past the
   180px body columns and the two grids drifted apart. The name no longer adds intrinsic width; it ellipsizes. */
.booking-scheduler .scheduler-resource-head { min-width: 0; overflow: hidden; }
.booking-scheduler .resource-name { flex: 1 1 0; min-width: 0; contain: inline-size; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Disabled buttons: labels wrapped in a <span> kept the enabled-state charcoal (#121212) from the gold-button rule,
   so a disabled "Save Appointment" read black-on-dark. Children follow the disabled colour. */
html:root .btn:disabled *:not(.badge), html:root .btn.disabled *:not(.badge),
html:root[data-bs-theme=dark] .btn.btn-secondary:disabled *:not(.badge), html:root[data-bs-theme=dark] .btn.btn-secondary.disabled *:not(.badge) { color: inherit !important; }
/* Form selects: design fields are 44px. A theme rule pins .multiselect to min-height 32px !important,
   so selects sat at ~36px next to 44px date/text inputs. */
.offcanvas .multiselect, .card .multiselect, .sf-form .multiselect { min-height: 44px !important; }
/* == end admin-final agent == */

/* == Responsive fixes (audit/responsive.md, 2026-11-07) == */
/* P1: dock the admin sidebar from 1024 (iPad landscape), not 1200. The theme makes it an overlay below 1200,
   so 1180 opened every page behind the menu. 1024-1199: open = docked full sidebar, mini = icon rail. */
@media (min-width: 1024px) and (max-width: 1199.98px) {
  .sidebar + .main-content { margin-left: var(--sidebar-width); }
  .sidebar.sidebar-mini { transform: none; }
  .sidebar.sidebar-mini + .main-content { --sidebar-width: 4.8rem; margin-left: var(--sidebar-width); }
  .sidebar:not(.sidebar-mini) { box-shadow: none; }
  .sidebar:not(.sidebar-mini) + .main-content::before { content: none; }
  .sidebar .logo-mini { display: revert !important; }
  .sidebar:not(.sidebar-mini) .logo-mini { display: none !important; }
  .iq-navbar .navbar-brand, .iq-navbar > .container-fluid > .sidebar-toggle { display: none !important; }
  .sidebar + .main-content .iq-navbar.navs-sticky.menu-sticky { width: calc(100% - var(--sidebar-width)); }
}

/* Below 1024 the topbar's sidebar toggle is the one menu button: an in-flow hamburger left of the logo, not the
   template's floating dark circle over it. */
@media (max-width: 1023.98px) {
  .iq-navbar > .container-fluid > .sidebar-toggle {
    position: static; order: -1; transform: none; margin-inline-end: 4px; width: 44px; height: 44px; min-width: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent !important; box-shadow: none !important; border: 0; color: var(--sf-text) !important; cursor: pointer;
  }
  .iq-navbar > .container-fluid > .sidebar-toggle .icon { color: inherit !important; }
  .iq-navbar #navbar-toggle { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
}

/* Topbar touch targets: the sidebar toggle and the A/A/A font-size labels are 44px on touch screens. */
@media (pointer: coarse) {
  .iq-navbar > .container-fluid > .sidebar-toggle { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .iq-font-style .btn-check + label.btn { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
}

/* Dashboard date range below 576: the form wraps, the input takes the row and Submit sits below it. */
@media (max-width: 575.98px) {
  .d-flex:has(> form .sf-date-range) { width: 100%; }
  form:has(.sf-date-range) { flex-wrap: wrap; width: 100%; }
  form:has(.sf-date-range) > .form-group { flex: 1 1 100%; margin-left: 0 !important; }
  form:has(.sf-date-range) > .btn { flex: 1 1 100%; }
}

/* Band (Layout B) below 576: the band grows with its content instead of a fixed 120px, actions take the
   full row and button labels never wrap (Bookings "Calendar View" overlapped the band edge). */
@media (max-width: 575.98px) {
  .iq-banner .iq-navbar-header { height: auto !important; padding-block: 16px; }
  .iq-navbar-header .iq-container .d-flex.justify-content-between { row-gap: 12px; }
  .iq-navbar-header .iq-container .d-flex.justify-content-between > .d-flex { width: 100%; }
  .iq-navbar-header .iq-container .d-flex.justify-content-between > .d-flex > .btn { flex: 1 1 0; white-space: nowrap; }
  /* List filter bars (section header toolbar): one full-width column. */
  .card-header .d-flex.flex-column.flex-md-row > div,
  .card-header .d-flex.flex-column.flex-md-row > div > .d-flex { width: 100%; }
  .card-header .d-flex.flex-column.flex-md-row > div > .d-flex.flex-wrap { display: grid !important; grid-template-columns: minmax(0, 1fr); }
  .card-header .btn-toolbar { align-items: stretch !important; }
  .card-header .btn-toolbar > *, .card-header .btn-toolbar .input-group, .card-header .btn-toolbar .select2-container { width: 100% !important; }
}

/* Table row checkboxes: 20px (24px on touch), up from the theme's 13px. */
table.dataTable .form-check-input, .table .form-check-input[type=checkbox] { width: 20px; height: 20px; margin-top: 0; }
@media (pointer: coarse) { table.dataTable .form-check-input, .table .form-check-input[type=checkbox] { width: 24px; height: 24px; } }

/* Website touch targets (coarse pointers only): text links get a 44px hit area without moving anything
   (padding grows the box, an equal negative margin cancels it); checkboxes and radios grow to 24px. */
@media (pointer: coarse) {
  .sf-topbar a, footer a, footer .nav-link, .breadcrumb-item a, a.sf-link, .sf-home-cats__all {
    display: inline-block; padding-block: 15px; margin-block: -15px;
  }
  a.text-primary.fw-medium { display: inline-block; padding-block: 13px; margin-block: -13px; }
  footer .nav-link { display: block; }
  /* Icon buttons keep their drawn size; an invisible ::after extends the hit area to 44px. */
  .right-panel > .navbar-toggler, .offcanvas-header .btn-close { position: relative; }
  .right-panel > .navbar-toggler::after, .offcanvas-header .btn-close::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%);
  }
  .form-check-input[type=checkbox], .form-check-input[type=radio] { width: 24px; height: 24px; flex-shrink: 0; }
}
/* Dark mode: the unchecked checkbox border was the same colour as the card, so "Remember me" had no visible box. */
:root[data-bs-theme=dark] .form-check-input:not(:checked) { border-color: #6B6B6B; }
/* == end responsive fixes == */

/* ---- Accessibility (Lighthouse/axe) root fixes ---- */
/* Dark body text: the template's #848f99 fell to 4.1:1 on the gold-tinted section bands; #9aa4ad keeps 5.3:1 or more on every dark surface. */
:root[data-bs-theme=dark] { --bs-body-color: #9aa4ad; --bs-body-color-rgb: 154, 164, 173; }
/* Blog category chip is gold in dark mode: anything on gold uses charcoal text. */
:root[data-bs-theme=dark] .blog-card .blog-card-meta li.blog-category { color: #1F1F1F; }
/* Disabled pagination still has to be legible (the template faded it to about 2:1). */
.page-item.disabled .page-link, .page-link.disabled, .disabled > .page-link { color: #6B7280 !important; opacity: 1; }
:root[data-bs-theme=dark] .page-item.disabled .page-link,
:root[data-bs-theme=dark] .page-link.disabled,
:root[data-bs-theme=dark] .disabled > .page-link { color: #8A8A8A !important; }
/* Salon photo on the detail sidebar: crop to the box instead of stretching the image. */
.branch-details-box .branch-details-img { object-fit: cover; }
/* Light body text: Bootstrap's #6c757d fell to 4.1:1 on the cream bands; #5c636a keeps 5.3:1 or more. */
:root[data-bs-theme=light] { --bs-body-color: #5c636a; --bs-body-color-rgb: 92, 99, 106; }
/* The footer is near-black in both themes, so its links keep the light grey (8:1) whatever the body colour is. */
:root footer ul.list-unstyled > li > a.nav-link { color: #9aa4ad; }
:root footer ul.list-unstyled > li > a.nav-link:hover { color: #FFFFFF; }
/* Select placeholders read as hints but still need 4.5:1. */
:root .select2-container--default .select2-selection--single .select2-selection__placeholder { color: #5c636a; }
:root[data-bs-theme=dark] .select2-container--default .select2-selection--single .select2-selection__placeholder { color: #9aa4ad; }

/* Bootstrap muted text (#92989e) fails WCAG AA on white; use the brand muted token (Lighthouse color-contrast). */
.text-body-secondary, .text-muted { color: var(--sf-text-muted) !important; }

/* == web-theme agent (2026-11-08): 3-way theme switcher, band title, why-choose panel == */

/* 1) Band title font + contrast. The visual-only <p class="sf-band__title"> variant (no heading
      param) escaped the heading force-sans rule and fell back to Times (serif) in dark mode.
      Force the brand sans on BOTH the <h1> and <p> variants and keep the title high-contrast
      against the band surface (charcoal on the cream band in light; cream on the dark band in
      dark -- the band is --sf-surface-subtle, i.e. cream in light, warm-dark in dark). */
.breadcrumb-section .sf-band__title {
  font-family: "Lexend Deca", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  color: var(--sf-text) !important;
}
:root[data-bs-theme=dark] .breadcrumb-section .sf-band__title { color: #F3EFE6 !important; }

/* 2) "Why Choose" panel. .bg-orange-subtle resolves to a near-white warm tint (#FFFAF2) that is
      almost invisible on the cream page in light mode. Give the panel a stronger warm sand
      surface and a subtle border so it reads as a distinct card; keep a defined warm-dark
      surface in dark. The inner icon cards (.choose-us-card--icon) keep their own surface rules. */
.why-choose-section-wrapper.bg-orange-subtle,
.why-choose-section-wrapper {
  background-color: #F3EAD6 !important;
  border: 1px solid var(--sf-border-subtle) !important;
}
:root[data-bs-theme=dark] .why-choose-section-wrapper.bg-orange-subtle,
:root[data-bs-theme=dark] .why-choose-section-wrapper {
  background-color: #241F17 !important;
  border: 1px solid #38311F !important;
}

/* 3) Theme switcher dropdown (Light / Dark / System). Minimal, brand-styled. */
.sf-theme-switch .sf-theme-switch__trigger {
  gap: 6px; padding: .5rem .6rem; color: inherit; cursor: pointer; border-radius: 8px;
}
.sf-theme-switch .sf-theme-switch__trigger .sf-theme-switch__icon { font-size: 1.15rem; line-height: 1; }
.sf-theme-switch .sf-theme-switch__trigger:focus-visible { outline: 2px solid var(--sf-focus); outline-offset: 2px; }
[data-bs-theme=dark] .sf-theme-switch .sf-theme-switch__trigger .sf-theme-switch__icon { color: #FFFFFF; }

.sf-theme-switch__menu {
  min-width: 190px; padding: 6px; background: var(--sf-surface);
  border: 1px solid var(--sf-border-subtle); border-radius: 12px;
  box-shadow: 0 10px 30px rgba(31, 31, 31, .12);
}
.sf-theme-switch__menu .sf-theme-switch__option {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 10px; border: 0; border-radius: 8px; background: transparent;
  font-family: "Lexend Deca", system-ui, sans-serif; font-size: 14px; font-weight: 500;
  color: var(--sf-text); cursor: pointer;
}
.sf-theme-switch__menu .sf-theme-switch__option > span { flex: 1 1 auto; text-align: start; }
.sf-theme-switch__menu .sf-theme-switch__option > i:first-child { font-size: 1.1rem; color: var(--sf-text-muted); }
.sf-theme-switch__menu .sf-theme-switch__option .sf-theme-switch__tick { font-size: 1rem; color: var(--sf-accent); opacity: 0; }
.sf-theme-switch__menu .sf-theme-switch__option.is-active { background: var(--sf-surface-subtle); }
.sf-theme-switch__menu .sf-theme-switch__option.is-active > i:first-child { color: var(--sf-text); }
.sf-theme-switch__menu .sf-theme-switch__option.is-active .sf-theme-switch__tick { opacity: 1; }
.sf-theme-switch__menu .sf-theme-switch__option:hover,
.sf-theme-switch__menu .sf-theme-switch__option:focus-visible { background: var(--sf-surface-subtle); outline: none; }
.sf-theme-switch__menu .sf-theme-switch__option:focus-visible { box-shadow: 0 0 0 2px var(--sf-focus) inset; }

/* === Admin theme switcher (Light / Dark / System) === */
.sf-admin-theme__menu { min-width: 180px; padding: 6px; }
.sf-admin-theme__menu .sf-admin-theme__option { border-radius: 8px; padding-block: 8px; }
.sf-admin-theme__menu .sf-admin-theme__option > i:first-child { width: 1rem; text-align: center; color: var(--sf-text-muted, #8A8A8A); }
.sf-admin-theme__menu .sf-admin-theme__option .sf-admin-theme__tick { color: var(--sf-accent, #B89B5E); opacity: 0; }
.sf-admin-theme__menu .sf-admin-theme__option.active { background: var(--sf-surface-subtle, rgba(184,155,94,.1)); font-weight: 600; }
.sf-admin-theme__menu .sf-admin-theme__option.active > i:first-child { color: var(--sf-accent, #B89B5E); }
.sf-admin-theme__menu .sf-admin-theme__option.active .sf-admin-theme__tick { opacity: 1; }
.sf-admin-theme__trigger .sf-admin-theme__icon { font-size: 1.05rem; line-height: 1; }
[data-bs-theme=dark] .sf-admin-theme__trigger .sf-admin-theme__icon { color: #FFFFFF; }

/* === Mobile header (<1200px): centered logo, rounded-square menu button === */
@media (max-width: 1199.98px) {
  .landing-header { position: relative; min-height: 60px; }
  .landing-header .navbar-brand {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0;
  }
  /* Keep the logo's aspect ratio: fix height, let width follow. A max-width
     together with a fixed height squishes it, so cap generously (won't trigger
     at this height) and never constrain both dimensions. */
  .landing-header .navbar-brand img,
  .landing-header .logo-normal img,
  .landing-header .logo-dark img { height: 34px !important; width: auto !important; max-width: 56vw !important; object-fit: contain !important; }
  .landing-header .toggle-rounded-btn {
    width: 44px !important; height: 44px !important; line-height: 44px !important;
    border-radius: 12px !important; font-size: 20px; padding: 0 !important; flex-shrink: 0;
  }
}

/* === Language picker: comfortable, easy-to-tap targets (mobile + desktop) === */
.dropdown-menu-language { min-width: 210px; padding: 6px; }
.dropdown-menu-language .dropdown-item {
  display: flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 10px 14px; border-radius: 8px; font-size: 1rem; line-height: 1.2;
}
.dropdown-menu-language .dropdown-item img { width: 24px; height: 24px; flex-shrink: 0; }

/* === Mobile header row padding + picker (theme/language) responsiveness === */
@media (max-width: 1199.98px) {
  .landing-header .navbar-inner,
  .landing-header .navbar { padding-top: 8px !important; padding-bottom: 8px !important; }
  /* Comfortable tap targets for the action pickers */
  .landing-header .sf-theme-switch__trigger,
  .landing-header .dropdown-language-wrapper .dropdown-toggle,
  .landing-header #search-drop {
    min-width: 40px; min-height: 40px; display: flex; align-items: center; justify-content: center;
  }
  /* Keep the picker dropdowns inside the screen (they were opening off to the side) */
  .landing-header .sf-theme-switch__menu,
  .landing-header .dropdown-menu-language,
  .landing-header .dropdown-search,
  .landing-header .dropdown-user-menu {
    position: absolute !important; top: 100% !important; bottom: auto !important; right: 0 !important; left: auto !important;
    inset-inline-end: 0 !important; inset-inline-start: auto !important;
    max-width: calc(100vw - 24px) !important; min-width: 280px !important;
    max-height: calc(100vh - 80px) !important; overflow-y: auto !important;
    transform: none !important; margin-top: 8px !important; z-index: 1050 !important;
  }
}

@media (max-width: 479px) {
  header .nav .right-panel .navbar-nav .nav-item.dropdown-user-wrapper .dropdown-user-menu {
    inset-inline-end: 0 !important; right: 0 !important; left: auto !important; max-width: calc(100vw - 24px) !important;
  }
}

/* === Landing video section (settings-driven YouTube/mp4 embed) === */
.sf-video-section .sf-video-embed { max-width: 920px; box-shadow: 0 10px 34px rgba(31,31,31,.14); background: #000; }
:root[data-bs-theme=dark] .sf-video-section .sf-video-embed { box-shadow: 0 10px 34px rgba(0,0,0,.5); }

/* === Admin info callouts (.alert-light): readable text + code (was muted/low-contrast) === */
.alert-light { color: #30302F !important; }
.alert-light code,
.alert-light .d-block code { color: #1F1F1F; background: rgba(31,31,31,.07); padding: 2px 6px; border-radius: 4px; }
:root[data-bs-theme=dark] .alert-light { background: #1C1C1C !important; color: #E9E4D9 !important; border-color: #333 !important; }
:root[data-bs-theme=dark] .alert-light code { color: #E9E4D9; background: rgba(255,255,255,.08); }

/* === Pagination row: space between the "Showing X results" count and the page
   buttons, and comfortable, consistent gaps between the buttons (global). === */
.dataTables_wrapper .dataTables_paginate,
.dataTables_wrapper .dt-paging,
.pagination-wrapper .pagination { margin-inline-start: 24px; }
.dataTables_wrapper .row:last-child,
.dataTables_wrapper .dt-layout-row:last-child,
.dataTables_wrapper .dt-row:last-child { align-items: center !important; row-gap: 12px; column-gap: 20px; }
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dt-info { white-space: nowrap; padding-top: 2px; }
.pagination { gap: 6px !important; margin-bottom: 0; flex-wrap: wrap; }
.pagination .page-item .page-link,
.pagination .page-link { margin: 0 !important; }
@media (max-width: 575.98px) {
  .dataTables_wrapper .dataTables_paginate,
  .dataTables_wrapper .dt-paging { margin-inline-start: 0; margin-top: 10px; }
}

/* Card-list pages (bookings, addresses) keep a hidden DataTables table only for paging/search and
   render cards + the shared empty state themselves. The empty-table rule above must not reveal it. */
table.d-none,
table.d-none:has(td.dataTables_empty),
table.d-none:has(td.dataTables_empty) * { display: none !important; }

/* Landing video: preview image + play button until tapped (the YouTube player is ~900 KB).
   aspect-ratio reserves the player's space, so swapping in the iframe causes no layout shift. */
.sf-video-facade { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: inherit; overflow: hidden; background: #1F1F1F; cursor: pointer; }
.sf-video-facade img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sf-video-facade__play { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: #B89B5E; color: #1F1F1F; font-size: 30px; box-shadow: 0 6px 20px rgba(0,0,0,.35); transition: transform .2s ease; }
.sf-video-facade:hover .sf-video-facade__play, .sf-video-facade:focus-visible .sf-video-facade__play { transform: translate(-50%, -50%) scale(1.08); }
.sf-video-facade:focus-visible { outline: 3px solid #B89B5E; outline-offset: 3px; }
.video-wrapper-section iframe { aspect-ratio: 16 / 9; height: auto; }
@media (prefers-reduced-motion: reduce) { .sf-video-facade__play { transition: none; } }

/* Theme switcher icon: the template hides every .mode-icons unless it also has .light-mode/.dark-mode;
   our single icon swaps sun/moon/desktop itself, so it must always show. */
.sf-admin-theme__trigger .mode-icons.sf-admin-theme__icon { display: inline-block !important; }

/* ===================================================================================
   Push notification preview (System → Push notifications, 2026-11-11): a phone-style
   notification card that mirrors the title and message as the super admin types.
   =================================================================================== */
.sf-push-preview { background: #FAF7F1; border: 1px solid #E6DECD; border-radius: 16px; padding: 12px 14px; }
.sf-push-preview__head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #6B665E; margin-bottom: 6px; }
.sf-push-preview__icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 5px; background: #1F1F1F; color: #B89B5E; font-size: 10px; }
.sf-push-preview__title { display: block; color: #1F1F1F; font-size: 14px; overflow-wrap: anywhere; }
.sf-push-preview__body { margin: 2px 0 0; color: #1F1F1F; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; white-space: pre-line; }
:root[data-bs-theme=dark] .sf-push-preview { background: #242424; border-color: #444; }
:root[data-bs-theme=dark] .sf-push-preview__head { color: #B2ACA0; }
:root[data-bs-theme=dark] .sf-push-preview__title, :root[data-bs-theme=dark] .sf-push-preview__body { color: #EDEDED; }

/* Push notification image: expanded-notification picture in the preview, small thumbnail in the history. */
.sf-push-preview__image { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 8px; margin-top: 8px; }
.sf-push-thumb { width: 64px; height: 32px; object-fit: cover; border-radius: 6px; flex: none; background: var(--sf-surface-subtle); }

/* Admin header notifications: skeleton while the list loads (same shape as a notification row). */
.sf-notify-loading { padding: 16px; display: grid; gap: 14px; min-width: 300px; }
.sf-notify-loading__title { display: block; height: 18px; width: 55%; }
.sf-notify-loading__row { display: flex; align-items: center; gap: 12px; }
.sf-notify-loading__avatar { flex: 0 0 36px; height: 36px; border-radius: 50%; }
.sf-notify-loading__line { flex: 1 1 auto; height: 36px; border-radius: 8px; }

/* Inline action rows (e.g. Growth review queue): buttons keep their natural width even inside list items. */
.list-group .sf-btn-row > .btn, .sf-btn-row > .btn { display: inline-flex !important; width: auto !important; min-width: 0 !important; flex: 0 0 auto; justify-content: center; }

/* Release tag (config app.version) in the site footer, admin footer and admin sidebar: quiet, never a focal point. */
.sf-app-version { opacity: .8; font-size: .8em; font-weight: 400; font-variant-numeric: tabular-nums; }
.sf-app-version--sidebar { display: block; padding: 10px 24px 14px; color: var(--bs-secondary-color, #6c757d); }
.sidebar-mini .sf-app-version--sidebar { display: none; }

/* ---- Growth plan (/app/growth/plan): current phase, sparkline, downloads chart ---- */
.sf-plan-current { border: 2px solid #B89B5E; }
.sf-plan-spark { display: block; width: 100%; max-height: 72px; height: auto; margin: 8px 0 4px; }
.sf-plan-chart { display: block; width: 100%; height: auto; max-height: 240px; }
.sf-plan-spark polyline, .sf-plan-chart polyline { stroke: #8A6F3B; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.sf-plan-spark circle, .sf-plan-chart circle { fill: #8A6F3B; stroke: var(--bs-body-bg, #fff); stroke-width: 2; }
.sf-plan-chart__axis { stroke: #E6DECD; stroke-width: 1; vector-effect: non-scaling-stroke; }
.sf-plan-help { background: #FAF7F1; border-radius: 8px; padding: 12px 14px; }
.sf-plan-check { min-width: 36px; min-height: 36px; flex-shrink: 0; }
:root[data-bs-theme=dark] .sf-plan-spark polyline, :root[data-bs-theme=dark] .sf-plan-chart polyline { stroke: #B89B5E; }
:root[data-bs-theme=dark] .sf-plan-spark circle, :root[data-bs-theme=dark] .sf-plan-chart circle { fill: #B89B5E; }
:root[data-bs-theme=dark] .sf-plan-chart__axis { stroke: #3A3A3A; }
:root[data-bs-theme=dark] .sf-plan-help { background: #2A2A2A; }

/* Table row actions ("Review Request" / "Manage"): one width, so every row's button lines up. */
.sf-row-action {
    min-width: 9.75rem;
    justify-content: center;
}
