/* Background */
.users-bg {
  background: url("../images/bg.png") center/cover no-repeat fixed;
  position: fixed;
  inset: 0;
  opacity: 0.15;
  z-index: -1;
}

.layout {
  display: flex;
  justify-content: center;
  padding-top: 40px;
}

/* Layout override */
.users-panel {
width: 1100px;        /* same width style like manage panel */
margin: 0 auto;
}
.users-main {
display: grid;
grid-template-columns: 47% 53%;
gap: 25px;
}
/* Header */
.users-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.users-header h1 {
  margin: 0;
}

.users-subtitle {
  margin: 0;
  font-size: 14px;
  color: #555;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.back-home-btn {
  padding: 7px 16px;
  background: #004aad;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
}

/* Toolbar */
.users-toolbar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.filter-group {
  display: flex;
  gap: 10px;
}

.users-meta {
  font-weight: 600;
}

/* 2-column layout */
.users-main {
  display: grid;
  grid-template-columns: 45% 1fr;
  gap: 25px;
}

/* User table */
.users-table-wrapper {
  background: #fff;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #ddd;
}

.users-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.users-table th {
  background: #f5f7fa;
  text-align: left;
  padding: 10px;
  font-weight: 600;
  border-bottom: 1px solid #ddd;
}

.users-table td {
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.users-table tr:hover {
  background: #f8fbff;
}

.empty-state {
  text-align: center;
  padding: 15px;
  color: #777;
  display: none;
}

/* Actions */
.users-table button {
  padding: 6px 12px;
  border: 1px solid #004aad;
  background: #eef2ff;
  color: #004aad;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}
.users-table button:hover {
  background: #e0e7ff;
}

.users-table button.delete {
  padding: 6px 12px;
  border: 1px solid #b40000;
  background: #eef2ff;
  color: #b40000;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}
.users-table button.delete:hover {
  background: #e0e7ff;
}


/* Right detail card */
.user-detail-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #ddd;
}

.user-detail-placeholder {
  text-align: center;
  padding: 40px;
  color: #777;
}

.user-detail-form h2 {
  margin-top: 0;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.form-field {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-field input,
.form-field select {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #bbb;
}

/* Password section */
.password-section {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  width: 100%;
}

.password-fields {
  display: flex;
  gap: 20px;
  margin-top: 12px;
}

.helper-text {
  font-size: 12px;
  color: #777;
}

/* Save button */
.detail-actions {
  margin-top: 20px;
  text-align: right;
}

.primary-btn {
  margin-right: 10px;
  padding: 10px 18px;
  background: #004aad;
  color: #fff;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.pagination-bar {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #4b5563;
}

.pagination-bar button {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #215ed8;
  background: #6eaae5;
  cursor: pointer;
  font-size: 12px;
}

.pagination-bar button:disabled {
  background: #e5e7eb;
}

.pagination-info {
  font-size: 12px;
  color: #555;
}

/* Align "Change password" checkbox nicely */
.password-section .checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin-bottom: 8px;
}

.password-section .checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

/* Password helper text */
.password-section .helper-text {
  font-size: 12px;
  color: #555;
  margin-top: 4px;
}

/* Detail action buttons (Save + Send reset link) */
.detail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.detail-actions .secondary-btn {
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid #c4d2ff;
  background: #eef2ff;
  color: #1a4bb8;
  font-size: 13px;
  cursor: pointer;
}

.detail-actions .secondary-btn:hover {
  background: #e0e7ff;
}

.detail-actions .secondary-btn:disabled {
  opacity: 0.5;
  cursor: default;
}