body {
  font-family: 'Cairo', 'Inter', sans-serif;
  background-color: #f8fafc;
  color: #0f172a;
}
.num-input {
  font-family: 'Inter', 'Cairo', sans-serif;
  direction: ltr;
  text-align: center;
}
.num-cell {
  font-family: 'Inter', 'Cairo', sans-serif;
  direction: ltr;
  white-space: nowrap;
}
.stage-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stage-card:hover {
  transform: translateY(-3px);
}
@media print {
  .no-print {
    display: none !important;
  }
  body {
    background: #ffffff !important;
  }
  .print-area {
    box-shadow: none !important;
    border: 1px solid #cbd5e1 !important;
  }
}
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Responsive layout safeguards */
.overflow-x-auto {
  max-width: 100%;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}
.overflow-y-auto {
  overscroll-behavior-block: contain;
}
input, select, textarea, button {
  max-width: 100%;
}
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #0d9488;
  outline-offset: 2px;
}
@media (max-width: 640px) {
  .num-cell {
    white-space: nowrap;
  }
  .num-input {
    min-width: 3.5rem;
  }
  #modalSchedule > div,
  #modalImportNames > div {
    max-height: 92dvh;
  }
  #modalSchedule .grid,
  #modalImportNames .grid {
    min-width: 0;
  }
  .stage-card:hover {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
