/* Minimal custom styles - most styling handled by Tailwind */
.hidden {
  display: none !important;
}

@media print {
  .no-print {
    display: none !important;
  }
}

/* Mobile-first touch optimization */
.touch-target {
  min-height: 44px; /* Minimum touch target size for accessibility */
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

/* Improve number input on mobile */
input[type="number"] {
  -webkit-appearance: none;
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Better focus states for mobile */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

/* Prevent zoom on input focus on iOS */
@media screen and (max-width: 640px) {
  input[type="text"],
  input[type="number"],
  input[type="email"],
  input[type="tel"],
  select,
  textarea {
    font-size: 16px !important; /* Prevents zoom on iOS */
  }
}

/* Custom scrollbar styles */
.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Improve dropdown results on mobile */
#purchase-order-supplier-search-results,
#purchase-order-product-search-results {
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
