body {
  background-color: #f4f4f4;
  color: #333;
  margin: 0;
  padding: 0;
}

.cancel-payment,
.payment-icon {
  background-color: transparent;
}

.cancel-payment:disabled {
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.5;
}

.container {
  max-width: 1200px;
  margin: 50px auto;
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  margin-bottom: 30px;
}

.table-head {
  padding: 10px;
  position: sticky;
  top: 0;
}

.table-responsive {
  width: 100%;
  max-height: 70vh;
}

.product {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.product-amount {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #555;
}

.product-name {
  font-size: 16px;
  color: #333;
}

.filter-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.filter-section label {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.filter-section input[type='date'],
.filter-section select {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px;
  font-size: 16px;
}

.filters {
  display: flex;
  gap: 15px;
  flex: 1;
}

.btn {
  font-size: 14px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-success {
  background-color: var(--template-color-1);
  border-color: var(--template-color-1);
  color: #fff;
}

.btn-success:hover {
  background-color: #a5b600;
  border-color: #a5b600;
}

.btn-danger {
  background-color: #dc3545;
  border-color: #dc3545;
  color: #fff;
}

.btn-danger:hover {
  background-color: #c82333;
  border-color: #c82333;
}

.table thead th {
  background-color: var(--template-color-1);
  color: #fff;
}

.table td,
.table th {
  padding: 12px;
  text-align: left;
}

.table td ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.skeleton-line {
  height: 1.2em;
  margin-bottom: 0.5em;
  background: #f9f9f9;
  border-radius: 4px;
  animation: pulse 1.2s infinite ease-in-out;
}

.filter-section select {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px;
  font-size: 16px;
  background-color: #fff;
  color: #333;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.filter-section select option {
  background-color: #fff;
  color: #333;
}

@keyframes pulse {
  0% {
    background-color: #f9f9f9;
  }
  50% {
    background-color: #f0f0f0;
  }
  100% {
    background-color: #f9f9f9;
  }
}

@media (max-width: 768px) {
  .filter-section {
    flex-direction: column;
  }
  .filters {
    flex-direction: column;
  }
  .filter-section label {
    margin-bottom: 10px;
  }
}

.status-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.875rem;
}

.status-pending {
  background-color: #fff3cd;
  color: #856404;
}

.status-paid {
  background-color: #d4edda;
  color: #155724;
}

.status-new {
  background-color: #cce5ff;
  color: #004085;
}

.status-rejected {
  background-color: #f8d7da;
  color: #721c24;
}

.status-in-progress {
  background-color: #d1ecf1;
  color: #0c5460;
}

.status-issued {
  background-color: #f8d7da;
  color: #721c24;
}

.status-delivered {
  background-color: #d4edda;
  color: #155724;
}

.status-invoiced {
  background-color: #d1ecf1;
  color: #0c5460;
}

.source-badge {
  color: #28a745;
  font-size: 0.875rem;
}

.table > :not(caption) > * > * {
  padding: 1rem 0.5rem;
}

.product-count {
  margin-right: 0.5rem;
}

.actions-cell {
  width: 40px;
}

.order-description {
  max-width: 300px;
  white-space: pre-line;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checkbox-cell {
  width: 40px;
}
