/* Styles for the My Orders table */
.table-responsive {
  overflow-x: auto;
  width: 100%;
}

#my-orders-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  margin-bottom: 1rem;
}

#my-orders-table th,
#my-orders-table td {
  padding: 0.5rem 0.75rem;
  border: 1px solid #ddd;
}

#my-orders-table thead {
  background-color: #f2f2f2;
}

#my-orders-table tbody tr:nth-child(even) {
  background-color: #fafafa;
}

.status-badge {
  display: inline-block;
  padding: 0.25em 0.5em;
  border-radius: 4px;
  font-size: 0.875em;
  color: #fff;
  line-height: 1;
}

.status-paid {
  background-color: #28a745;
}

.status-pending {
  background-color: #ffc107;
  color: #000;
}

.action-btn {
  display: inline-block;
  padding: 0.25em 0.5em;
  background-color: #0073aa;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.875em;
}

.action-btn:hover,
.action-btn:focus {
  background-color: #005a87;
}

.login-required-message {
  padding: 2rem;
  background: #f9f9f9;
  border: 1px solid #ddd;
  text-align: center;
}

@media (max-width: 600px) {
  #my-orders-table,
  #my-orders-table thead,
  #my-orders-table tbody,
  #my-orders-table th,
  #my-orders-table td,
  #my-orders-table tr {
    display: block;
  }
  #my-orders-table thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  #my-orders-table tr {
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.5rem;
  }
  #my-orders-table td {
    border: none;
    position: relative;
    padding-left: 50%;
  }
  #my-orders-table td::before {
    content: attr(data-label);
    position: absolute;
    top: 0;
    left: 0.5rem;
    width: 45%;
    white-space: nowrap;
    font-weight: bold;
  }
}
