a:hover {
  opacity: 0.7;
}

.status-created {
  color: #4b5563;
  background-color: #f9fafb;
  padding: 0.25rem 0.5rem;
}

.status-confirmed {
  color: #0ea5e9;
  background-color: #f0f9ff;
  padding: 0.25rem 0.5rem;
}

.status-approved {
  color: #0891b2;
  background-color: #ecfeff;
  padding: 0.25rem 0.5rem;
}

.status-shipped {
  color: #8b5cf6;
  background-color: #faf5ff;
  padding: 0.25rem 0.5rem;
}

.status-delivered {
  color: #059669;
  background-color: #ecfdf5;
  padding: 0.25rem 0.5rem;
}

.status-cancelled {
  color: #dc2626;
  background-color: #fef2f2;
  padding: 0.25rem 0.5rem;
}

.status-cancellationrequested {
  color: #ea580c;
  background-color: #fff7ed;
  padding: 0.25rem 0.5rem;
}

/* Toast Notification Styles */
#toast-container .alert {
  background-color: white;
  color: #111827;
  /* gray-900 for text */
  border: 1px solid;
  border-radius: 0.5rem;
  /* rounded-lg */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 1rem 1.25rem;
  min-width: 300px;
  max-width: 500px;
  cursor: pointer;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

#toast-container .alert span {
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  min-width: 0;
}

#toast-container .alert-success {
  border-color: #86efac;
  /* green-300 - lighter */
  background-color: #f0fdf4;
  /* very light green tint */
}

#toast-container .alert-error {
  border-color: #fca5a5;
  /* red-300 - lighter */
  background-color: #fef2f2;
  /* very light red tint */
}

#toast-container .alert-warning {
  border-color: #fcd34d;
  /* amber-300 - lighter */
  background-color: #fffbeb;
  /* very light amber tint */
}

#toast-container .alert-info {
  border-color: #93c5fd;
  /* blue-300 - lighter */
  background-color: #eff6ff;
  /* very light blue tint */
}

/* Icon colors matching border */
#toast-container .alert-success svg {
  stroke: #10b981;
  /* green-500 */
}

#toast-container .alert-error svg {
  stroke: #ef4444;
  /* red-500 */
}

#toast-container .alert-warning svg {
  stroke: #f59e0b;
  /* amber-500 */
}

#toast-container .alert-info svg {
  stroke: #3b82f6;
  /* blue-500 */
}

.shipping-route-info {
  display: flex;
  align-items: center;
}

.shipping-route-info span {
  display: inline-flex;
  padding: 2px;
}

.shipping-route-info .flag img {
  width: 20px;
  height: 12px;
}

/* Toast Animations */
@keyframes slide-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slide-out {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.animate-slide-in {
  animation: slide-in 0.3s ease-out;
}

.animate-slide-out {
  animation: slide-out 0.3s ease-in;
}

/* HTMX Loading Spinner Styles */
.spinner {
  display: none;
}

.htmx-request.spinner {
  display: inline;
}

.htmx-request.spinner~.button-text {
  visibility: hidden;
}

.shipment-status-draft {
  color: #78716c;
  background-color: #fafaf9;
  padding: 0.25rem 0.5rem;
  white-space: nowrap;
}

.shipment-status-ready {
  color: #ca8a04;
  background-color: #fefce8;
  padding: 0.25rem 0.5rem;
  white-space: nowrap;
}

.shipment-status-intransit {
  color: #ea580c;
  background-color: #fff7ed;
  padding: 0.25rem 0.5rem;
  white-space: nowrap;
}

.shipment-status-delivered {
  color: #57534e;
  background-color: #f5f5f4;
  padding: 0.25rem 0.5rem;
  white-space: nowrap;
}

.shipment-status-cancelled {
  color: #dc2626;
  background-color: #fef2f2;
  padding: 0.25rem 0.5rem;
}

#popover-add-order {
  margin-top: -40px;
}
