/* Order Status and Tracking Styles */
/* Order Status Container */
.order-status-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}
/* Orders List Table Styles */
.orders-header-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px 0;
  border-bottom: 2px solid #e5e7eb;
}
.orders-header-section h4 {
  margin: 0;
  color: #8b4513;
  font-size: 1.25rem;
  font-weight: 600;
}
.orders-table-wrapper {
  overflow-x: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}
.orders-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
.orders-table thead th {
  background: linear-gradient(135deg, #8b4513, #a0522d);
  color: white;
  padding: 12px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #654321;
}
.orders-table tbody td {
  padding: 12px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}
.orders-table tbody tr:hover {
  background-color: #f8f9fa;
}
.orders-table tbody tr:last-child td {
  border-bottom: none;
}
.order-number {
  font-weight: 600;
  color: #8b4513;
  background: #f5f5dc;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.875rem;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.payment-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}
.payment-badge.promptpay {
  background: #e3f2fd;
  color: #1565c0;
}
.payment-badge.cash {
  background: #f3e5f5;
  color: #7b1fa2;
}
.orders-actions {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid #e5e7eb;
}
/* Order Details Modal Styles */
.order-detail-section {
  margin-bottom: 24px;
}
.order-detail-section h4 {
  color: #8b4513;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.order-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.info-item label {
  font-weight: 500;
  color: #666;
  font-size: 0.875rem;
}
.info-item span {
  color: #333;
  font-weight: 600;
}
.status-badge.completed {
  background: #d4edda;
  color: #155724;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.order-summary-table table {
  width: 100%;
  border-collapse: collapse;
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
}
.order-summary-table th,
.order-summary-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #dee2e6;
}
.order-summary-table th {
  background: #e9ecef;
  font-weight: 600;
  color: #495057;
}
.order-total-summary {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  border: 2px solid #8b4513;
}
.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.total-label {
  font-size: 1.125rem;
  font-weight: 600;
  color: #333;
}
.total-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: #8b4513;
}
/* No Orders State */
.no-orders {
  text-align: center;
  padding: 40px 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px dashed #dee2e6;
}
.no-orders i {
  font-size: 3rem;
  color: #adb5bd;
  margin-bottom: 16px;
}
.no-orders h4 {
  color: #495057;
  margin-bottom: 8px;
}
.no-orders p {
  color: #6c757d;
  margin-bottom: 20px;
}
.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f3f4f6;
}
.order-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}
.order-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}
.order-status i {
  font-size: 1rem;
}
/* Status Colors */
.status-pending {
  background: #fef3c7;
  color: #d97706;
  border: 1px solid #f59e0b;
}
.status-received {
  background: #dbeafe;
  color: #2563eb;
  border: 1px solid #3b82f6;
}
.status-preparing {
  background: #fed7e2;
  color: #be185d;
  border: 1px solid #ec4899;
}
.status-ready {
  background: #dcfce7;
  color: #16a34a;
  border: 1px solid #22c55e;
}
.status-completed {
  background: #d1fae5;
  color: #059669;
  border: 1px solid #10b981;
}
.status-cancelled {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #ef4444;
}
/* Order Details */
.order-details {
  margin-bottom: 24px;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
}
.detail-row:last-child {
  border-bottom: none;
}
.detail-row span:first-child {
  font-weight: 500;
  color: #6b7280;
}
.detail-row span:last-child {
  font-weight: 600;
  color: #1f2937;
}
.payment-status {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}
.payment-status.pending {
  background: #fef3c7;
  color: #d97706;
}
.payment-status.paid {
  background: #d1fae5;
  color: #059669;
}
.payment-status.failed {
  background: #fee2e2;
  color: #dc2626;
}
.payment-status.refunded {
  background: #e0e7ff;
  color: #6366f1;
}
/* Status Progress */
.status-progress {
  margin: 32px 0;
}
.progress-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  z-index: 1;
}
.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border: 2px solid #e5e7eb;
  color: #9ca3af;
  font-size: 1rem;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}
.progress-step.active .step-circle {
  background: #dbeafe;
  border-color: #3b82f6;
  color: #2563eb;
}
.progress-step.current .step-circle {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
  animation: pulse 2s infinite;
}
.step-label {
  font-size: 0.75rem;
  text-align: center;
  color: #6b7280;
  font-weight: 500;
}
.progress-step.active .step-label {
  color: #2563eb;
  font-weight: 600;
}
.step-line {
  position: absolute;
  top: 20px;
  left: calc(50% + 20px);
  right: calc(-50% + 20px);
  height: 2px;
  background: #e5e7eb;
  z-index: 0;
}
.step-line.active {
  background: #3b82f6;
}
/* Order Actions */
.order-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.order-actions .btn {
  padding: 8px 16px;
  font-size: 0.875rem;
}
/* Order Details Modal */
.order-details-content {
  max-height: 70vh;
  overflow-y: auto;
}
.order-summary {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}
.order-summary h4 {
  margin: 0 0 16px 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
}
.customer-info {
  background: #f8fafc;
  padding: 16px;
  border-radius: 8px;
}
.customer-info h5 {
  margin: 0 0 12px 0;
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
}
.customer-info p {
  margin: 4px 0;
  font-size: 0.875rem;
  color: #6b7280;
}
/* Order Items */
.order-items {
  margin-bottom: 24px;
}
.order-items h5 {
  margin: 0 0 16px 0;
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
}
.items-list {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}
.order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid #f3f4f6;
}
.order-item:last-child {
  border-bottom: none;
}
.item-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}
.item-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  background: #f3f4f6;
}
.item-details h6 {
  margin: 0 0 4px 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
}
.item-details p {
  margin: 2px 0;
  font-size: 0.875rem;
  color: #6b7280;
}
.item-price {
  text-align: right;
}
.unit-price {
  display: block;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 4px;
}
.total-price {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
}
/* Order Totals */
.order-totals {
  background: #f8fafc;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
}
.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}
.total-row.final-total {
  padding-top: 12px;
  border-top: 2px solid #e5e7eb;
  font-size: 1.125rem;
}
/* Order Notes */
.order-notes {
  background: #fef7ed;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #fed7aa;
}
.order-notes h5 {
  margin: 0 0 8px 0;
  font-size: 1rem;
  font-weight: 600;
  color: #ea580c;
}
.order-notes p {
  margin: 0;
  font-size: 0.875rem;
  color: #9a3412;
}
/* Pulse Animation */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}
/* Responsive Design */
@media (max-width: 768px) {
  .order-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .order-status {
    align-self: flex-start;
  }
  .progress-steps {
    flex-direction: column;
    gap: 16px;
  }
  .step-line {
    display: none;
  }
  .progress-step {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    gap: 12px;
  }
  .step-circle {
    margin-bottom: 0;
    width: 32px;
    height: 32px;
  }
  .step-label {
    text-align: left;
  }
  .order-actions {
    justify-content: stretch;
    flex-direction: column;
  }
  .tracking-input-group {
    flex-direction: column;
    align-items: stretch;
  }
  .order-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .item-info {
    width: 100%;
  }
  .item-price {
    align-self: flex-end;
  }
}