.transactions-container {
  padding: 20px;
  font-family: "Segoe UI", sans-serif;
  margin-top: 100px;
  margin-left: 280px;
}

.margin {
  margin-bottom: 50px;
}

.transactions-header {
  font-size: 24px;
  margin-bottom: 15px;
  color: #333;
}

.transactions-table {
  width: 100%;
  border-collapse: collapse;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  overflow: hidden;
}

.transactions-table th,
.transactions-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.transactions-table th {
  background-color: #f9fafb;
  color: #555;
  font-weight: 600;
}

.transactions-table tr:hover {
  background-color: #f1f5f9;
}

.voided-row {
  background-color: #ffeaea;
}

.status {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  display: inline-block;
}

.status-completed {
  background-color: #d1fae5;
  color: #065f46;
}

.status-voided {
  background-color: #fee2e2;
  color: #991b1b;
}

.btn-view,
.btn-void,
.btn-toggle-status {
  padding: 6px 12px;
  text-decoration: none;
  font-size: 14px;
  border-radius: 4px;
  margin-right: 5px;
  margin-bottom: 5px;
  display: inline-block;
  min-width: 80px; /* Ensures buttons are of equal width */
}

.btn-view {
  background-color: #3b82f6;
  color: white;
}

.btn-view:hover {
  background-color: #2563eb;
}

.btn-void,
.btn-toggle-status.btn-danger {
  background-color: #ef4444;
  color: white;
}

.btn-void:hover,
.btn-toggle-status.btn-danger:hover {
  background-color: #dc2626;
}

.btn-toggle-status.btn-success {
  background-color: #22c55e;
  color: white;
}

.btn-toggle-status.btn-success:hover {
  background-color: #16a34a;
}

/* PAGINATION */

.pagination {
  text-align: center;
  margin-top: 40px;
}
.pagination a {
  display: inline-block;
  margin: 0 5px;
  padding: 6px 12px;
  border: 1px solid #ccc;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
}
.pagination a.active {
  background-color: #007bff;
  color: white;
  font-weight: bold;
}
.pagination a:hover {
  background-color: #0056b3;
  color: white;
}

/* dropdown fields */
.item-status-dropdown {
  max-width: 160px;
  display: inline-block;
}

/* status cell */
.status-cell {
  width: 250px;
  white-space: nowrap;
}

/* void button disabled state */

.btn-disabled-void {
  background-color: #d6d6d6 !important;
  border-color: #c0c0c0 !important;
  color: #888 !important;
  cursor: not-allowed;
  pointer-events: auto; /* still allow click */
  opacity: 1 !important;
}
