html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-variant-numeric: tabular-nums;
}

body.client-mode .client-demo-access {
  display: none !important;
}

body.client-mode input,
body.client-mode select,
body.client-mode textarea {
  color: #0b0d10 !important;
  -webkit-text-fill-color: #0b0d10 !important;
  caret-color: #0b0d10 !important;
}

body.client-mode input::placeholder,
body.client-mode textarea::placeholder {
  color: rgba(11, 13, 16, 0.46) !important;
  -webkit-text-fill-color: rgba(11, 13, 16, 0.46) !important;
}

body.client-mode .slot,
body.client-mode .activity-time-card,
body.client-mode .formule-card,
body.client-mode .duration-card,
body.client-mode .formula-order-row {
  transition-property: background-color, border-color, color, transform, opacity;
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}

body.client-mode .formule-card,
body.client-mode .qb-slot-chip {
  appearance: none;
  width: 100%;
  text-align: left;
}

body.client-mode .formule-card:disabled,
body.client-mode .qb-slot-chip:disabled,
body.client-mode .formula-route-step:disabled {
  cursor: not-allowed !important;
  transform: none !important;
  opacity: .58;
}

body.client-mode .formule-card.disabled:disabled,
body.client-mode .qb-slot-chip.locked:disabled,
body.client-mode .formula-route-step:disabled {
  pointer-events: none;
}

body.client-mode .slot:active:not(.disabled),
body.client-mode .activity-time-card:active:not(.disabled),
body.client-mode .formule-card:active:not(.disabled):not(:disabled),
body.client-mode .duration-card:active,
body.client-mode button:active:not(:disabled) {
  transform: scale(.96);
}

body.staff-mode,
body.admin-mode {
  --ops-bg: #050607;
  --ops-surface: #0a0d12;
  --ops-surface-2: #11161d;
  --ops-surface-3: #161c25;
  --ops-border: rgba(167, 179, 194, .16);
  --ops-border-strong: rgba(214, 224, 236, .28);
  --ops-text: #f5f7fa;
  --ops-muted: #9aa6b5;
  --ops-faint: #687384;
  --ops-accent: #8f7cff;
  --ops-success: #37b47d;
  --ops-warning: #c78f35;
  --ops-danger: #d76c62;
  background: var(--ops-bg) !important;
  color: var(--ops-text) !important;
}

body.staff-mode.staff-light,
body.admin-mode.staff-light {
  --ops-bg: #f5f6f8;
  --ops-surface: #ffffff;
  --ops-surface-2: #f9fafb;
  --ops-surface-3: #eef1f5;
  --ops-border: rgba(17, 24, 39, .12);
  --ops-border-strong: rgba(17, 24, 39, .24);
  --ops-text: #121821;
  --ops-muted: #536071;
  --ops-faint: #7b8796;
  --ops-accent: #4f46e5;
  --ops-success: #0f8a5f;
  --ops-warning: #9a6418;
  --ops-danger: #b6423a;
}

body.staff-mode button,
body.admin-mode button,
body.staff-mode input,
body.admin-mode input,
body.staff-mode select,
body.admin-mode select,
body.staff-mode textarea,
body.admin-mode textarea {
  font: inherit;
}

body.staff-mode button,
body.admin-mode button {
  min-height: 40px;
  transition-property: background-color, border-color, color, opacity, transform;
  transition-duration: 150ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}

body.staff-mode button:active:not(:disabled),
body.admin-mode button:active:not(:disabled) {
  transform: scale(.96);
}

body.staff-mode button:focus-visible,
body.admin-mode button:focus-visible,
body.staff-mode input:focus-visible,
body.admin-mode input:focus-visible,
body.staff-mode select:focus-visible,
body.admin-mode select:focus-visible,
body.staff-mode textarea:focus-visible,
body.admin-mode textarea:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ops-accent) 74%, white);
  outline-offset: 2px;
}

body.staff-mode input,
body.admin-mode input,
body.staff-mode select,
body.admin-mode select,
body.staff-mode textarea,
body.admin-mode textarea {
  background: var(--ops-surface) !important;
  border-color: var(--ops-border) !important;
  color: var(--ops-text) !important;
  -webkit-text-fill-color: var(--ops-text) !important;
  caret-color: var(--ops-text) !important;
}

body.staff-mode input::placeholder,
body.admin-mode input::placeholder,
body.staff-mode textarea::placeholder,
body.admin-mode textarea::placeholder {
  color: var(--ops-faint) !important;
  -webkit-text-fill-color: var(--ops-faint) !important;
}

body.staff-mode.staff-light input,
body.admin-mode.staff-light input,
body.staff-mode.staff-light select,
body.admin-mode.staff-light select,
body.staff-mode.staff-light textarea,
body.admin-mode.staff-light textarea {
  background: #ffffff !important;
  color: #121821 !important;
  -webkit-text-fill-color: #121821 !important;
  caret-color: #121821 !important;
}

body.staff-mode .staff-wrap,
body.admin-mode .admin-wrap,
body.staff-mode .dashboard-page,
body.staff-mode .clients-page,
body.staff-mode .reservations-page,
body.staff-mode .pricing-page,
body.staff-mode .emails-page,
body.staff-mode .campaigns-page {
  color: var(--ops-text);
}

body.staff-mode .dashboard-kpi,
body.staff-mode .clients-kpi,
body.staff-mode .reservations-kpi,
body.staff-mode .pricing-kpi,
body.staff-mode .email-metric,
body.staff-mode .campaign-metric,
body.admin-mode .admin-card,
body.admin-mode .admin-kpi,
body.admin-mode .admin-panel,
body.admin-mode .ops-card,
body.admin-mode .ops-panel {
  background: var(--ops-surface-2) !important;
  border: 1px solid var(--ops-border) !important;
  box-shadow: none !important;
}

body.staff-mode.staff-light .dashboard-kpi,
body.staff-mode.staff-light .clients-kpi,
body.staff-mode.staff-light .reservations-kpi,
body.staff-mode.staff-light .pricing-kpi,
body.staff-mode.staff-light .email-metric,
body.staff-mode.staff-light .campaign-metric,
body.admin-mode.staff-light .admin-card,
body.admin-mode.staff-light .admin-kpi,
body.admin-mode.staff-light .admin-panel,
body.admin-mode.staff-light .ops-card,
body.admin-mode.staff-light .ops-panel {
  background: #ffffff !important;
  color: #121821 !important;
}

body.staff-mode table,
body.admin-mode table,
body.staff-mode .admin-reservations-table,
body.admin-mode .admin-reservations-table,
body.staff-mode .clients-table-panel,
body.staff-mode .reservations-calendar-panel,
body.staff-mode .email-list,
body.staff-mode .campaign-table {
  background: var(--ops-surface) !important;
  color: var(--ops-text) !important;
  border-color: var(--ops-border) !important;
}

body.staff-mode th,
body.admin-mode th,
body.staff-mode td,
body.admin-mode td {
  color: inherit;
  border-color: var(--ops-border) !important;
}

body.staff-mode.staff-light table,
body.admin-mode.staff-light table,
body.staff-mode.staff-light .admin-reservations-table,
body.admin-mode.staff-light .admin-reservations-table,
body.staff-mode.staff-light .clients-table-panel,
body.staff-mode.staff-light .reservations-calendar-panel,
body.staff-mode.staff-light .email-list,
body.staff-mode.staff-light .campaign-table {
  background: #ffffff !important;
  color: #121821 !important;
}

body.staff-mode .status,
body.staff-mode .admin-status,
body.staff-mode .res-status,
body.admin-mode .status,
body.admin-mode .admin-status {
  text-shadow: none !important;
}

body.staff-mode .booking-block,
body.staff-mode .laser-session-card,
body.staff-mode .reservation-row,
body.staff-mode .reservations-detail-row {
  transition-property: background-color, border-color, transform, opacity;
  transition-duration: 150ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}

body.staff-mode .booking-block:hover,
body.staff-mode .laser-session-card:hover,
body.staff-mode .reservation-row:hover,
body.staff-mode .reservations-detail-row:hover {
  border-color: var(--ops-border-strong) !important;
}

body.staff-mode .booking-block.formula,
body.staff-mode .reservation-row.formula,
body.staff-mode .reservations-detail-row.complete,
body.staff-mode .laser-session-card.formula {
  background: color-mix(in srgb, var(--ops-warning) 13%, var(--ops-surface-2)) !important;
  border-color: color-mix(in srgb, var(--ops-warning) 48%, transparent) !important;
}

body.staff-mode .booking-block.laser,
body.staff-mode .reservation-row.laser,
body.staff-mode .reservations-detail-row.laser,
body.staff-mode .laser-session-card.direct {
  background: color-mix(in srgb, #8fb8ee 12%, var(--ops-surface-2)) !important;
  border-color: color-mix(in srgb, #8fb8ee 42%, transparent) !important;
}

body.staff-mode .booking-block.paid,
body.staff-mode .reservation-row.paid {
  border-color: color-mix(in srgb, var(--ops-success) 44%, transparent) !important;
}

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