.order-entry-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.order-search-box {
  margin-bottom: 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.order-search-box .input-group {
  display: flex;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
}

.order-search-box input {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.95);
  transition: all 0.3s ease;
}

.order-search-box input:focus {
  outline: none;
  background: white;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.order-search-box button {
  padding: 12px 24px;
  background: white;
  color: #667eea;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-search-box button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.order-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.order-actions button {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.order-actions .btn-success {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  color: white;
}

.order-actions .btn-danger {
  background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
  color: white;
}

.order-actions .btn-warning {
  background: linear-gradient(135deg, #f2994a 0%, #f2c94c 100%);
  color: white;
}

.order-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.order-actions button:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.table-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 24px;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#orders-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

#orders-table thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

#orders-table th {
  padding: 16px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 10;
}

#orders-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s ease;
}

#orders-table tbody tr:hover {
  background: #f8f9fa;
  transform: scale(1.01);
}

#orders-table td {
  padding: 14px 12px;
  font-size: 14px;
  vertical-align: middle;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.status-badge.redeemed {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  color: white;
}

.status-badge.pending {
  background: linear-gradient(135deg, #f2994a 0%, #f2c94c 100%);
  color: white;
}

.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pagination {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-item {
  display: inline-block;
}

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  color: #495057;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  background: white;
  cursor: pointer;
}

.page-item.active .page-link {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: transparent;
}

.page-item:not(.disabled) .page-link:hover {
  border-color: #667eea;
  color: #667eea;
  transform: translateY(-2px);
}

.page-item.disabled .page-link {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-jump {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 20px;
}

.pagination-jump input {
  width: 60px;
  padding: 6px 10px;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  text-align: center;
  font-weight: 500;
}

.pagination-jump button {
  padding: 6px 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.pagination-jump button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

#order-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

#order-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

#order-modal .modal-content {
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

#order-modal .modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px 24px;
  border-radius: 16px 16px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#order-modal .modal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

#order-modal .close {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
  font-size: 24px;
  line-height: 1;
}

#order-modal .close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

#order-modal .modal-body {
  padding: 24px;
}

#order-form .form-group {
  margin-bottom: 20px;
}

#order-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #495057;
  font-size: 14px;
}

#order-form .form-control {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

#order-form .form-control:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#order-form select.form-control {
  cursor: pointer;
  background: white;
}

#redeemed {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #6c757d;
}

.empty-state i {
  font-size: 48px;
  color: #dee2e6;
  margin-bottom: 16px;
}

.empty-state p {
  font-size: 16px;
  margin: 0;
}

#order-form button[type="submit"] {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

#order-form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .order-entry-container {
    padding: 12px;
  }
  
  .order-search-box {
    padding: 16px;
    border-radius: 8px;
  }
  
  .order-search-box .input-group {
    flex-direction: column;
    gap: 12px;
  }
  
  .order-search-box input,
  .order-search-box button {
    width: 100%;
  }
  
  .order-actions {
    flex-direction: column;
  }
  
  .order-actions button {
    width: 100%;
    justify-content: center;
  }
  
  #orders-table {
    font-size: 12px;
  }
  
  #orders-table th,
  #orders-table td {
    padding: 10px 8px;
  }

  #orders-table th:nth-child(3),
  #orders-table td:nth-child(3) {
    display: none;
  }
  
  .pagination-container {
    flex-direction: column;
    gap: 16px;
  }
  
  .pagination-jump {
    margin-left: 0;
  }
  
  #order-modal .modal-content {
    width: 95%;
    margin: 10px;
    border-radius: 12px;
  }
  
  #order-modal .modal-header {
    padding: 16px 20px;
    border-radius: 12px 12px 0 0;
  }
  
  #order-modal .modal-body {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .order-entry-container {
    padding: 8px;
  }
  
  .status-badge {
    font-size: 11px;
    padding: 4px 8px;
  }
  
  .pagination {
    gap: 4px;
  }
  
  .page-link {
    min-width: 32px;
    height: 32px;
    font-size: 14px;
  }
}

.btn-edit-order,
.btn-delete-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-right: 8px;
  font-size: 14px;
  line-height: 1;
}

.btn-edit-order {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
}

.btn-edit-order:hover {
  background: linear-gradient(135deg, #2980b9 0%, #1f618d 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.btn-delete-order {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
  margin-right: 0;
}

.btn-delete-order:hover {
  background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

#orders-table td:last-child {
  text-align: center;
  padding: 10px 8px;
}

#orders-table tbody tr:hover {
  background: linear-gradient(90deg, rgba(52, 152, 219, 0.05) 0%, rgba(52, 152, 219, 0.02) 100%);
  transform: none;
}

.btn-edit-order:disabled,
.btn-delete-order:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

@media (max-width: 768px) {
  .btn-edit-order,
  .btn-delete-order {
    width: 28px;
    height: 28px;
    font-size: 12px;
    margin-right: 6px;
  }
  
  .btn-delete-order {
    margin-right: 0;
  }
  
  #orders-table td:last-child {
    padding: 8px 6px;
  }
}

@media (max-width: 480px) {
  .btn-edit-order,
  .btn-delete-order {
    width: 24px;
    height: 24px;
    font-size: 11px;
    margin-right: 4px;
  }
  
  .btn-delete-order {
    margin-right: 0;
  }

  #orders-table th:last-child,
  #orders-table td:last-child {
    width: 80px;
    min-width: 80px;
  }
}

.rate-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  margin-right: 8px;
}

.points-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  color: white;
}

#points-preview {
  margin-top: 8px;
  padding: 8px 12px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
}

#redemption-rate {
  font-weight: 600;
  color: #667eea;
}

#redemption-rate:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

@media (max-width: 768px) {
  .rate-badge,
  .points-badge {
    font-size: 11px;
    padding: 3px 8px;
    margin-right: 4px;
  }

  .rate-badge {
    display: block;
    margin-bottom: 4px;
    margin-right: 0;
    width: fit-content;
  }
  
  .points-badge {
    display: block;
    width: fit-content;
  }
}