/*
 * 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-8bd9d6b7.css");

.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-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%;
  padding: 1rem;
}

.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-content {
  opacity: 0.45;
  transition-delay: 180ms;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-time-off-balances-loading,
  .mobile-time-off-balances-content {
    transition: none;
  }
}

/* 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; /* Ensures total height matches the 36px string input (34px + 2px border) */
  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 .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;
}

.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;
  }
}
