/* User details column */
.user-details-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  width: 220px;
  max-width: 220px; /* prevent table stretching */
  word-wrap: break-word;
}

.user-details-list li {
  margin-bottom: 4px;
  line-height: 1.4;
  color: #333;
}

/* Highlight user name */
.user-details-list li:first-child {
  font-weight: 600;
}

/* Smaller text for email/phone */
.user-details-list li:nth-child(2),
.user-details-list li:nth-child(6) {
  font-size: 12px;
  color: #555;
}

.reason-reject-column {
  width: 200px; /* or adjust as needed */
  max-width: 200px;
  word-wrap: break-word; /* wrap long text */
}

/* Table styling */
.table {
  width: 100%;
  border-collapse: collapse; /* needed for proper row borders */
}

/* Table headers */
.table th {
  /* position: sticky; */
  top: 0;
  background: #f8f9fa;
  z-index: 2;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #ddd;
  padding: 10px;
}

/* Table cells with row borders */
.table td {
  padding: 10px;
  vertical-align: top;
  border-bottom: 1px solid #ddd; /* row border */
}

/* Sticky header */
/* .table thead th {
  position: sticky;
  top: 0;
  background: #f8f9fa;
  z-index: 2;
  font-weight: 600;
  color: #333;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
} */

/* Optional: alternating row background */
/* .table tbody tr:nth-child(even) {
  background-color: #fdfdfd;
} */

/* ---------- Alternate row colors ---------- */
.table tbody tr:nth-child(odd) {
  background-color: #ffffff; /* white for odd rows */
}

.table tbody tr:nth-child(even) {
  background-color: #e9eaeb; /* light gray for even rows */
}

/* Optional hover effect */
/* .table tbody tr:hover {
  background-color: #e9f5ff; 
} */

/* Status colors */
.status {
  font-weight: 900;
}

.status-rejected {
  color: #ff0000;
}
.status-approved {
  color: #28a745;
}
.status-waiting {
  color: #ffc107;
}

/* Image styling */
.warranty-image {
  width: 100px;
  height: auto;
  object-fit: contain;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.warranty-image:hover {
  transform: scale(1.05);
}

/* Buttons */
.btn-primary,
.btn-danger {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  color: #fff;
  font-weight: 600;
  transition: background-color 0.3s ease;
}
.btn-primary {
  background-color: #007bff;
}
.btn-primary:hover {
  background-color: #0069d9;
}
.btn-danger {
  background-color: #dc3545;
}
.btn-danger:hover {
  background-color: #bb2d3b;
}

/* Links */
.action-link {
  color: #007bff;
  text-decoration: none;
  cursor: pointer;
}
.action-link:hover {
  text-decoration: underline;
}

.warranty-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.warranty-header a.warranty-list-link {
  font-size: 1rem;
  text-decoration: none;
  color: #0073aa; /* WordPress blue */
  background-color: #f1f1f1;
  padding: 6px 12px;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.warranty-header a.warranty-list-link:hover {
  background-color: #0073aa;
  color: #fff;
}

.form-control-file {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
  cursor: pointer;
  width: 100%;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control-file:hover {
  border-color: #0073aa;
  box-shadow: 0 0 5px rgba(0, 115, 170, 0.2);
}

/* Optional: Show selected file name nicely */
/* .form-control-file::file-selector-button {
  background-color: #0073aa;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
} */

.form-control-file::file-selector-button:hover {
  background-color: #005177;
}

.notice {
  color: #d63638;
  margin-bottom: 10px;
  font-weight: bold;
}

.wrapper {
  max-width: 100%;
  overflow-x: auto;
  padding: 20px;
  font-family: Arial, sans-serif;
}

.warranty-form {
  max-width: 700px;
  background: #fff;
  padding: 24px 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.warranty-form h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
  color: #333;
}

.input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.input-group label {
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
  font-size: 14px;
}

.input-group input,
.input-group select,
.input-group textarea {
  background: #f3f3f3;
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 16px;
  color: #333;
  outline: none;
  transition: background 0.2s ease;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  background: #ececec;
}

.input-group input::placeholder,
.input-group textarea::placeholder {
  color: #999;
}

.required {
  color: red;
}

.form-submit {
  background: #007cba;
  border: none;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.form-submit:hover {
  background: #005a8f;
}

.form-submit.cancel {
  background: #ccc;
  color: #333;
  margin-left: 10px;
}

.form-submit.cancel:hover {
  background: #b3b3b3;
}