/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

@import url("/assets/tom-select-b1537b0e.css");
@import url("/assets/tom-select.rsp-78f9b4da.css");

.notable-event-public-holiday {
  color: #9333ea !important;
}

.notable-event-standard {
  color: var(--rs-warning, #d97706) !important;
}

.landing-footer {
  position: fixed;
  bottom: 10%;
}

/* Header Dropdown */
#dropdown-switch {
  transform: translate3d(80px, 108px, 0px)!important;
}

#dropdown-manage {
  transform: translate3d(1060px, 55px, 0px)!important;
}

.mobile-drawer-panel {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 560px;
  max-height: 82vh;
  margin-inline: auto;
  overflow: hidden;
  background: #fff;
  border-radius: 1rem 1rem 0 0;
  box-shadow: 0 -18px 45px rgba(15, 23, 42, 0.18);
  transform: translateY(100%);
  transition: transform 300ms ease-out;
}

.mobile-refresh-placeholder {
  position: relative;
  min-width: 0;
  pointer-events: none;
  overflow: clip;
}

.mobile-refresh-placeholder-content {
  position: sticky;
  top: var(--mobile-refresh-top, 0px);
}

.mobile-refresh-placeholder--compact {
  display: inline-block;
  flex-shrink: 0;
  border-radius: 9999px;
  background: #e2e8f0;
}

/* Mobile feedback convention: docs/mobile-button-conventions.md.
   Shared by Rails flashes and page-owned autosave status, on every platform. */
.mobile-flash,
.mobile-feedback-status {
  --mobile-feedback-accent: #475569;
  --mobile-feedback-wash: #f1f5f9;
}

.mobile-flash {
  --mobile-feedback-accent: #cbd5e1;
  --mobile-feedback-wash: rgb(148 163 184 / 0.15);
}

.mobile-flash :is([data-flash-tone="success"], [data-flash-tone="notice"]) {
  --mobile-feedback-accent: #6ee7b7;
  --mobile-feedback-wash: rgb(16 185 129 / 0.15);
}

.mobile-feedback-status[data-mobile-feedback-state="saved"] {
  --mobile-feedback-accent: #047857;
  --mobile-feedback-wash: #ecfdf5;
}

.mobile-flash :is([data-flash-tone="danger"], [data-flash-tone="error"], [data-flash-tone="alert"]) {
  --mobile-feedback-accent: #fda4af;
  --mobile-feedback-wash: rgb(244 63 94 / 0.15);
}

.mobile-feedback-status[data-mobile-feedback-state="error"] {
  --mobile-feedback-accent: #be123c;
  --mobile-feedback-wash: #fff1f2;
}

.mobile-flash [data-flash-tone="warning"] {
  --mobile-feedback-accent: #fcd34d;
  --mobile-feedback-wash: rgb(245 158 11 / 0.15);
}

.mobile-flash [data-flash-tone="info"] {
  --mobile-feedback-accent: #7dd3fc;
  --mobile-feedback-wash: rgb(14 165 233 / 0.15);
}

.mobile-feedback-status[data-mobile-feedback-state="saving"] {
  --mobile-feedback-accent: #0369a1;
  --mobile-feedback-wash: #f0f9ff;
}

.mobile-flash .mobile-feedback-surface,
.mobile-feedback-status .mobile-feedback-surface {
  pointer-events: auto;
  min-width: 0;
  max-width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  box-shadow: 0 4px 18px rgb(15 23 42 / 0.12);
}

.mobile-flash .flash-stack {
  top: var(--mobile-feedback-top, calc(env(safe-area-inset-top, 0px) + 4.25rem));
  z-index: 90;
  justify-content: center;
  padding-inline: 12px;
  max-height: var(--mobile-feedback-available-height, calc(100dvh - 7rem));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-flash--modal .flash-stack {
  top: var(--mobile-feedback-top, calc(env(safe-area-inset-top, 0px) + 0.75rem));
}

.mobile-flash .flash-stack-inner {
  max-width: 536px;
  gap: 8px;
}

.mobile-flash .flash-toast {
  flex: 0 0 auto;
  border-color: #334155;
  background: #0f172a;
  color: #f1f5f9;
  box-shadow: 0 6px 20px rgb(15 23 42 / 0.22);
  animation: mobile-feedback-enter 180ms ease-out both;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.mobile-flash .flash-toast-exit {
  animation: mobile-feedback-exit 160ms ease-in forwards;
}

.mobile-flash .flash-toast-body {
  align-items: center;
  min-height: 52px;
  gap: 8px;
  padding: 4px 4px 4px 12px;
}

.mobile-flash .flash-toast-body > .min-w-0 {
  max-height: calc(var(--mobile-feedback-available-height, 100dvh - 7rem) - 10px);
  padding-block: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-flash .flash-toast-icon {
  align-self: flex-start;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-top: 8px;
  background: var(--mobile-feedback-wash);
  color: var(--mobile-feedback-accent);
}

.mobile-flash .flash-toast-icon svg {
  color: inherit;
}

.mobile-flash .flash-toast-title {
  display: none;
}

.mobile-flash .flash-toast-message,
.mobile-feedback-status .mobile-feedback-message {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.mobile-flash .flash-toast-close,
.mobile-feedback-status .mobile-feedback-action {
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0 8px;
  border-radius: 8px;
  outline: none;
  color: #4338ca;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.mobile-flash .flash-toast-close {
  align-self: flex-start;
  color: #cbd5e1;
}

.mobile-feedback-status .mobile-feedback-action:hover {
  background: #eef2ff;
}

.mobile-feedback-status {
  position: fixed;
  inset-inline: 0;
  bottom: var(--mobile-feedback-bottom, calc(5rem + env(safe-area-inset-bottom, 0px) + 0.75rem));
  z-index: 45;
  justify-content: center;
  padding-inline: 12px;
  pointer-events: none;
}

.mobile-feedback-status .mobile-feedback-surface {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 44px;
  width: fit-content;
  max-width: min(100%, 536px);
  gap: 8px;
  padding: 0 12px;
  border-radius: 24px;
}

.mobile-feedback-status[data-mobile-feedback-state="error"] .mobile-feedback-surface {
  border-radius: 12px;
}

.mobile-feedback-status .mobile-feedback-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--mobile-feedback-accent);
}

.mobile-feedback-status .mobile-feedback-message {
  flex: 1;
  padding-block: 8px;
}

.mobile-feedback-status .mobile-feedback-action--neutral {
  color: #475569;
}

.mobile-flash .flash-toast-close:hover {
  color: #fff;
  background: #334155;
}

.mobile-feedback-status .mobile-feedback-action--neutral:hover {
  background: #f1f5f9;
}

.mobile-feedback-status.hidden,
.mobile-feedback-status[hidden],
.mobile-feedback-status[data-mobile-feedback-suspended],
.mobile-flash .flash-stack[data-mobile-feedback-suspended],
.mobile-feedback-status .mobile-feedback-action.hidden {
  display: none;
}

@keyframes mobile-feedback-enter {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes mobile-feedback-exit {
  to { opacity: 0; transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-flash .flash-toast,
  .mobile-flash .flash-toast-exit {
    animation: none;
  }
}

/* Sales comparison tones describe sales history, independently of rank order. */
.mobile-sales-summary-card {
  --sales-summary-wash: transparent;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 0.75rem;
  background-color: #fff;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 0 0 1px #e2e8f0;
}

.mobile-sales-summary-card::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background: radial-gradient(ellipse at 100% 0%, var(--sales-summary-wash), transparent 72%);
}

.mobile-sales-summary-card[data-sales-summary-tone="positive"] {
  --sales-summary-wash: #d1fae5;
}

.mobile-sales-summary-card[data-sales-summary-tone="negative"] {
  --sales-summary-wash: #ffe4e6;
}

.mobile-sales-summary-card[data-sales-summary-tone="mixed"] {
  --sales-summary-wash: #fef3c7;
}

.mobile-sales-comparisons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1rem;
}

.mobile-sales-comparison {
  display: grid;
  min-width: 0;
  grid-template-rows: auto 1fr auto;
}

.mobile-sales-comparison-values { display: contents; }

.mobile-sales-comparison-values > div:first-child { align-self: end; }

.mobile-sales-comparisons[data-comparison-count="1"] { grid-template-columns: minmax(0, 1fr); }

.mobile-sales-comparisons[data-comparison-count="1"] .mobile-sales-comparison {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  align-items: baseline;
}

.mobile-sales-comparison-track {
  position: relative;
  grid-column: 1 / -1;
  height: 4px;
  margin-top: 6px;
  border-radius: 9999px;
  background-color: rgb(148 163 184 / 0.22);
}

.mobile-sales-comparison-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background-color: #94a3b8;
}

.mobile-sales-comparison-track[data-direction="above"] .mobile-sales-comparison-fill { background-color: #10b981; }
.mobile-sales-comparison-track[data-direction="below"] .mobile-sales-comparison-fill { background-color: #f43f5e; }

.mobile-sales-comparison-marker {
  position: absolute;
  top: -2px;
  height: 8px;
  width: 1px;
  background-color: #64748b;
}

.mobile-sales-comparison-track[data-sales-summary-progress="unavailable"] {
  background: repeating-linear-gradient(to right, #cbd5e1 0 3px, transparent 3px 6px);
}

.mobile-sales-summary-day {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12px;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  padding-block: 4px;
  border-top: 1px solid #f1f5f9;
  color: inherit;
  text-decoration: none;
  outline: none;
}

.mobile-sales-summary-day[href]:is(:hover, :active) { background-color: #f8fafc; }
.mobile-sales-summary-day:not([href]) { cursor: default; }
.mobile-sales-summary-day [hidden] { display: none; }

.mobile-sales-summary-slider {
  display: block;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
  outline: none;
}

.mobile-sales-summary-slider::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 9999px;
  background: linear-gradient(to right, #0284c7 var(--sales-summary-slider-progress, 100%), #cbd5e1 var(--sales-summary-slider-progress, 100%));
}

.mobile-sales-summary-slider::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  margin-top: -6.5px;
  border: 0;
  border-radius: 50%;
  background-color: #0284c7;
  appearance: none;
  -webkit-appearance: none;
}

.mobile-sales-summary-slider::-moz-range-track {
  height: 3px;
  border-radius: 9999px;
  background-color: #cbd5e1;
}

.mobile-sales-summary-slider::-moz-range-progress {
  height: 3px;
  border-radius: 9999px;
  background-color: #0284c7;
}

.mobile-sales-summary-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background-color: #0284c7;
}

.mobile-sales-summary-slider:disabled { cursor: default; opacity: 0.5; }

/* Post identity stays decorative; the message and reaction footer retain space. */
.mobile-company-update-card,
.mobile-company-update-notification-icon {
  --company-update-accent: #475569;
  --company-update-wash: #f1f5f9;
}

.mobile-company-update-card[data-company-update-acknowledgement-pending="true"] {
  --company-update-wash: #fef3c7;
}

.mobile-company-update-card[data-company-update-kind="event"],
.mobile-company-update-notification-icon[data-company-update-kind="event"] {
  --company-update-accent: #0f766e;
  --company-update-wash: #ccfbf1;
}

.mobile-company-update-card[data-company-update-kind="birthday"],
.mobile-company-update-notification-icon[data-company-update-kind="birthday"] {
  --company-update-accent: #be123c;
  --company-update-wash: #ffe4e6;
}

.mobile-company-update-card[data-company-update-kind="sales_growth_award"],
.mobile-company-update-notification-icon[data-company-update-kind="sales_growth_award"] {
  --company-update-accent: #047857;
  --company-update-wash: #d1fae5;
}

.mobile-company-update-card[data-company-update-kind="roster_efficiency_award"],
.mobile-company-update-notification-icon[data-company-update-kind="roster_efficiency_award"] {
  --company-update-accent: #b45309;
  --company-update-wash: #fef3c7;
}

.mobile-company-update-notification-icon {
  color: var(--company-update-accent);
  background-color: var(--company-update-wash);
}

/* Keep press feedback on the complete notification surface, including padding. */
.mobile-notification-surface .mobile-notification-open:is(:hover, :active) {
  background-color: transparent;
}

.mobile-notification-card .mobile-notification-surface:has(.mobile-notification-open:active) {
  background-color: #f8fafc;
}

.mobile-notification-card[data-notification-read-state="unread"] .mobile-notification-surface:has(.mobile-notification-open:active) {
  background-color: #e0e7ff;
}

.mobile-company-update-content {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.mobile-company-update-content::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  height: 180px;
  content: "";
  pointer-events: none;
  background: radial-gradient(ellipse at 100% 0%, var(--company-update-wash), transparent 72%);
}

.mobile-company-update-content > :not(.mobile-company-update-decoration) {
  position: relative;
  z-index: 1;
}

.mobile-company-update-decoration {
  position: absolute;
  top: 48px;
  right: 12px;
  z-index: 0;
  width: 96px;
  height: 96px;
  max-height: calc(100% - 56px);
  color: var(--company-update-accent);
  pointer-events: none;
  user-select: none;
}

.mobile-company-update-card[data-company-update-kind="sales_growth_award"] .mobile-company-update-decoration,
.mobile-company-update-card[data-company-update-kind="roster_efficiency_award"] .mobile-company-update-decoration {
  width: 44px;
  height: 44px;
}

.mobile-company-update-motif {
  display: block;
  width: 100%;
  height: 100%;
  opacity: .2;
}

.mobile-company-update-watermark {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: .16;
}

.mobile-company-update-kind-label,
.mobile-company-update-award-value {
  color: var(--company-update-accent);
}

.mobile-company-update-type-icon {
  color: var(--company-update-accent);
  background: var(--company-update-wash);
}

/* Unread discovery shares the standard button role; placement is shell-owned. */
.mobile-company-updates-discovery {
  position: fixed;
  inset-inline: 0;
  bottom: var(--company-updates-bottom, calc(5.75rem + env(safe-area-inset-bottom, 0px)));
  z-index: 25;
  max-width: 560px;
  margin-inline: auto;
  padding-inline: 1rem;
  pointer-events: none;
}

.mobile-company-updates-discovery .mobile-company-updates-prompt {
  --mobile-resting-outline: 3px solid white;
  position: relative;
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  border-radius: 9999px;
  box-shadow: 0 6px 18px rgb(79 70 229 / 24%);
  outline: var(--mobile-resting-outline);
  pointer-events: auto;
}

.mobile-company-updates-discovery .mobile-company-updates-prompt[hidden] {
  display: none;
}

.mobile-company-updates-prompt-dot {
  position: absolute;
  top: 0.125rem;
  right: 0.125rem;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 9999px;
  background: #fbbf24;
  box-shadow: 0 0 0 2px white;
}

.mobile-shell-frame:has(input:focus, textarea:focus, select:focus, [contenteditable="true"]:focus,
  #modal [data-controller~="turbo-modal"], .mobile-drawer-panel.is-open,
  [data-mobile-action-bar]:not([data-mobile-action-active="false"]):not(details:not([open]) *, [hidden] *, .hidden *)) .mobile-company-updates-discovery {
  visibility: hidden;
}

.mobile-drawer-panel.is-open {
  transform: translateY(0);
}

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(15, 23, 42, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.mobile-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-company-switcher-summary::-webkit-details-marker {
  display: none;
}

.mobile-company-switcher-menu {
  max-height: min(60vh, 24rem);
  overscroll-behavior: contain;
}

.mobile-time-off-balances-section {
  position: relative;
}

.mobile-time-off-balances-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.86);
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease-out;
  transition-delay: 0ms;
}

.mobile-time-off-balances-skeleton {
  width: 100%;
  animation-play-state: paused !important;
}

.mobile-time-off-balances-content {
  transition: opacity 140ms ease-out;
  transition-delay: 0ms;
}

turbo-frame[busy] .mobile-time-off-balances-loading {
  opacity: 1;
  pointer-events: auto;
  transition-delay: 180ms;
}

turbo-frame[busy] .mobile-time-off-balances-skeleton {
  animation-play-state: running !important;
}

turbo-frame[busy] .mobile-time-off-balances-content {
  opacity: 0.45;
  transition-delay: 180ms;
}

turbo-frame.mobile-state-frame {
  display: block;
  transition: opacity 140ms ease-out;
  transition-delay: 0ms;
}

turbo-frame.mobile-state-frame[busy] {
  opacity: 0.96;
  transition-delay: 180ms;
}

turbo-frame.mobile-shell-frame > main {
  transition: opacity 140ms ease-out;
  transition-delay: 0ms;
}

turbo-frame.mobile-shell-frame[busy] > main {
  opacity: 0.96;
  transition-delay: 180ms;
}

.campaign-audience-content {
  transition: opacity 140ms ease-out;
  transition-delay: 0ms;
}

.campaign-audience-updating {
  opacity: 0;
  transition: opacity 140ms ease-out;
  transition-delay: 0ms;
}

turbo-frame.campaign-audience-frame[busy] .campaign-audience-content {
  opacity: 0.94;
  transition-delay: 180ms;
}

turbo-frame.campaign-audience-frame[busy] .campaign-audience-updating {
  opacity: 1;
  transition-delay: 180ms;
}

.booking-whatsapp-operations-content {
  transition: opacity 140ms ease-out;
  transition-delay: 0ms;
}

.booking-whatsapp-operations-updating {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 20;
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  gap: 0.375rem;
  border: 1px solid rgba(99, 102, 241, 0.16);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.96);
  padding: 0.375rem 0.625rem;
  color: rgb(71, 85, 105);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.05);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.125rem);
  transition: opacity 140ms ease-out, transform 140ms ease-out;
  transition-delay: 0ms;
}

turbo-frame.booking-whatsapp-operations-frame[busy] .booking-whatsapp-operations-content {
  opacity: 0.96;
  pointer-events: none;
  transition-delay: 180ms;
}

turbo-frame.booking-whatsapp-operations-frame[busy] .booking-whatsapp-operations-updating {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 180ms;
}

button[aria-expanded="true"] .booking-whatsapp-disclosure-chevron {
  transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
  .mobile-time-off-balances-skeleton {
    animation: none !important;
  }

  .mobile-time-off-balances-loading,
  .mobile-time-off-balances-content,
  .campaign-audience-content,
  .campaign-audience-updating,
  .booking-whatsapp-operations-content,
  .booking-whatsapp-operations-updating,
  .booking-whatsapp-disclosure-chevron,
  turbo-frame.mobile-state-frame,
  turbo-frame.mobile-shell-frame > main {
    transition: none;
  }
}

/* Mobile focus is restored after navigation and dialog/list updates. Keep the
   logical focus without a persistent ring; component borders, checked states
   and resting shadows remain responsible for the visual state. */
@media (forced-colors: none) {
  .mobile-shell-frame {
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-shell-frame :focus {
    outline: var(--mobile-resting-outline, none) !important;
  }

  /* Shared form/plugin styles also serve desktop, so reset their focus rings
     only inside the mobile shell. Keep ordinary input shadows. */
  .mobile-shell-frame :is(input, select, textarea):focus,
  .mobile-shell-frame :is(.btn, .btn-primary, .btn-secondary, .btn-danger, .addon-billing-action):focus,
  .mobile-shell-frame :is(.nav-pill, .subpage-tab, [class*="focus:ring"], [class*="focus-visible:ring"]):focus,
  .mobile-shell-frame [class*="focus-within:ring"]:focus-within,
  .mobile-shell-frame .peer:focus-visible ~ .toggle-pill-track {
    --tw-ring-offset-shadow: 0 0 #0000 !important;
    --tw-ring-shadow: 0 0 #0000 !important;
    box-shadow: var(--tw-shadow, 0 0 #0000) !important;
  }

  .mobile-shell-frame .ts-wrapper.focus .ts-control,
  .mobile-shell-frame .ts-wrapper.admin-form-control.focus .ts-control {
    box-shadow: none !important;
  }
}

/* Complete custom Tom Select styling with Tailwind */
.ts-wrapper {
  padding: 0 !important; /* Override padding copied from original input */
  border-width: 0 !important;
  background: transparent !important;
  outline: none !important;
}

/* Prevent native focus styles from causing a black flicker before/after JS .focus class */
.ts-wrapper:focus {
  box-shadow: none !important;
  outline: none !important;
}

/* Keep the wrapper as layout only; the visible input state belongs to .ts-control. */
.ts-wrapper.focus {
  box-shadow: none !important;
  outline: none !important;
}

.ts-wrapper .ts-control {
  border: 1px solid #e2e8f0 !important; /* border-slate-200 */
  padding: 0.375rem 2rem 0.375rem 0.75rem !important; /* Match admin-select spacing */
  line-height: 1.25rem;
  min-height: 36px; /* Compact baseline; shared admin controls override this when they declare a height. */
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  background: white;
  border-radius: inherit;
  box-shadow: none !important;
  outline: none !important;
  transition-property: border-color, box-shadow;
  transition-duration: 0.15s;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.ts-wrapper.focus .ts-control {
  border-color: #818cf8 !important; /* focus:border-indigo-400 */
  box-shadow: 0 0 0 4px #e0e7ff !important; /* focus:ring-4 focus:ring-indigo-100 */
}

.ts-wrapper.admin-form-control {
  height: 2.5rem;
  width: 100%;
}

.ts-wrapper.admin-form-control .ts-control {
  height: 2.5rem;
  min-height: 2.5rem;
  padding: 0 2rem 0 0.75rem !important;
}

.ts-wrapper.admin-form-control.focus .ts-control {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
}

.ts-wrapper.admin-multi-select {
  height: auto;
  min-height: 2.5rem;
}

.ts-wrapper.admin-multi-select .ts-control {
  height: auto;
  min-height: 2.5rem;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding-top: 0.375rem !important;
  padding-bottom: 0.375rem !important;
}

.staff-outlet-target-field {
  grid-template-rows: 1.25rem auto auto;
}

.admin-form-field-error .ts-wrapper.admin-form-control .ts-control {
  border-color: rgb(253 164 175) !important;
}

.admin-form-field-error .ts-wrapper.admin-form-control.focus .ts-control {
  border-color: rgb(251 113 133) !important;
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.1) !important;
}

.ts-wrapper .ts-control .item {
  font-size: 12.5px;
  color: #1e293b !important; /* text-slate-800 */
}

.ts-control input[type="text"] {
  width: 0 !important;
  min-width: 0 !important;
  flex-grow: 1;
  font-size: 12.5px;
  color: #1e293b;
  outline: none !important;
  box-shadow: none !important;
}

.ts-control input::placeholder {
  color: #94a3b8 !important; /* text-slate-400 */
  font-size: 12.5px !important;
}

.ts-control > input {
  margin-left: 0 !important;
}

/* Complete dropdown styling override */
.ts-dropdown {
  border: 1px solid #e2e8f0; /* border-slate-200 */
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  margin-top: 0.25rem;
  z-index: 1000;
  overflow: hidden;
}

.ts-dropdown .ts-dropdown-content {
  padding: 0.25rem;
  max-height: 16rem;
  overscroll-behavior: contain;
}

.ts-dropdown[data-tom-select-modal-dropdown="true"] {
  position: fixed;
  margin-top: 0;
}

.ts-dropdown .option {
  padding: 0.375rem 0.5rem;
  color: #475569; /* text-slate-600 */
  cursor: pointer;
  border-radius: 0.375rem;
  font-size: 12.5px;
  transition-property: background-color, color;
  transition-duration: 0.1s;
  transition-timing-function: ease-in-out;
}

.ts-dropdown .option:hover {
  background-color: #f8fafc; /* bg-slate-50 */
  color: #1e293b; /* text-slate-800 */
}

.ts-dropdown .option.active {
  background-color: #eef2ff; /* bg-indigo-50 */
  color: #4338ca; /* text-indigo-700 */
}

.ts-dropdown .option.selected {
  background-color: #eef2ff; /* bg-indigo-50 */
  color: #4338ca; /* text-indigo-700 */
  font-weight: 500;
}

.ts-dropdown .option.selected:hover {
  background-color: #e0e7ff; /* bg-indigo-100 */
}

/* If you have option groups */
.ts-dropdown .optgroup {
  border: none;
}

.ts-dropdown .optgroup-header {
  padding: 0.5rem 0.5rem 0.25rem;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8; /* text-slate-400 */
  background-color: transparent;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* No results styling */
.ts-dropdown .no-results {
  padding: 0.5rem;
  color: #94a3b8; /* text-slate-400 */
  text-align: center;
  font-size: 12.5px;
}

.operating-hours-pattern-flash {
  background-color: rgba(254, 243, 199, 0.72); /* amber-100 */
  transition: none;
}

.operating-hours-pattern-flash-fade {
  background-color: transparent;
  transition: background-color 1200ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .operating-hours-pattern-flash,
  .operating-hours-pattern-flash-fade {
    transition: none;
  }
}
