/*
 * 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.
 */

/* Tom Select Styles */
@import url("/assets/tom-select-ee45231c.css");

/* Custom Tom Select Styles for Biomarkers */
.ts-wrapper .optgroup-header {
  font-weight: 600;
  color: #374151;
  background-color: #f9fafb;
  padding: 8px 12px;
  border-bottom: 1px solid #e5e7eb;
}

.ts-wrapper .option {
  padding: 8px 12px;
  border-bottom: 1px solid #f3f4f6;
}

.ts-wrapper .option:hover {
  background-color: #f3f4f6;
}

.ts-wrapper .unit {
  font-weight: normal;
  opacity: 0.6;
  margin-left: 4px;
}

.ts-wrapper .ts-dropdown .optgroup {
  border-bottom: 1px solid #e5e7eb;
}

.ts-wrapper .ts-dropdown .optgroup:last-child {
  border-bottom: none;
}

.ts-wrapper .item {
  display: flex;
  align-items: center;
}

.ts-wrapper .item .unit {
  font-weight: normal;
  opacity: 0.6;
  margin-left: 4px;
}

/* TomSelect Multiple Selection Styles */
.ts-wrapper.multi .ts-control {
  padding: 4px 8px;
  min-height: 38px;
}

.ts-wrapper.multi .item {
  background-color: #e5e7eb;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 2px 6px;
  margin: 2px;
  font-size: 0.875rem;
}

.ts-wrapper.multi .item .remove {
  color: #6b7280;
  margin-left: 4px;
  cursor: pointer;
}

.ts-wrapper.multi .item .remove:hover {
  color: #ef4444;
}

.ts-wrapper.multi .ts-control .item:last-child {
  margin-right: 0;
}

/* Custom breakpoint for waiting list layout */
@media (max-width: 884px) {
  .waiting-list-responsive {
    display: flex !important;
    flex-direction: column-reverse !important;
  }
}

@media (min-width: 885px) {
  .waiting-list-responsive {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (min-width: 1280px) {
  .waiting-list-responsive {
    display: flex !important;
    flex-direction: row !important;
  }
}

/* Loading Animation - 3 pontos flutuantes */
@keyframes loading-bounce {

  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }

  40% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

.loading-dot {
  animation: loading-bounce 1.4s infinite ease-in-out;
}

.loading-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.loading-dot:nth-child(2) {
  animation-delay: -0.16s;
}

.loading-dot:nth-child(3) {
  animation-delay: 0s;
}

/* Mobile table overflow fix */
@media (max-width: 768px) {
  .overflow-x-auto {
    overflow-x: hidden !important;
  }

  .exam-results-pagination-date-column {
    width: auto !important;
    min-width: auto !important;
    max-width: none !important;
  }

  /* Ensure hidden columns don't take space */
  .exam-results-pagination-date-column[style*="display: none"] {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}