/* Step 6.2 — Customer Cabinet /customers/ + /customers/set-password/
   (REQ-CUS-01/02). KHÔNG có baseline nguồn: snapshot content-snapshot/
   customers.html là trang lỗi WP (log 5.7) — nguồn render bằng CSS Bootstrap
   của Bookly, không port được sang theme NicePage. CSS tự dựng tối thiểu theo
   khung u-* như status.css (tiền lệ log 5.5). */

.cabinet-section .u-sheet-1 {
  min-height: 400px;
  padding: 40px 0 60px;
}
.cabinet-auth {
  max-width: 420px;
  margin: 0 auto;
}
.cabinet-auth h1 {
  margin: 0 0 16px;
}
.cabinet-field {
  margin: 0 0 16px;
}
.cabinet-field label {
  display: block;
  margin-bottom: 6px;
}
.cabinet-field input[type="text"],
.cabinet-field input[type="email"],
.cabinet-field input[type="tel"],
.cabinet-field input[type="password"],
.cabinet-field select {
  width: 100%;
  box-sizing: border-box;
}
.cabinet-field-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cabinet-check {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  margin: 0 !important;
}
.cabinet-lost {
  text-decoration: underline;
}
.cabinet-hint {
  margin-top: 24px;
  font-size: 0.9em;
}
.cabinet-error {
  display: block;
  margin: 12px 0;
  padding: 10px 14px;
  background: #F95D51;
  color: #fff;
}
.cabinet-success {
  display: block;
  margin: 12px 0;
  padding: 10px 14px;
  background: #e7f5e7;
  border: 1px solid #4caf50;
  color: #1b5e20;
}
/* display:block ở trên thắng rule [hidden] của UA stylesheet → phải khai
   báo lại (bug bắt được khi browser verify 6.2). */
.cabinet-error[hidden],
.cabinet-success[hidden] {
  display: none;
}
.cabinet-field-error {
  display: block;
  min-height: 1em;
  color: #F95D51;
  font-size: 0.85em;
}
.cabinet-field-error:empty {
  display: none;
}

/* --- Cabinet đã đăng nhập --- */
.cabinet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}
.cabinet-head h1 {
  margin: 0;
  font-size: 1.6em;
}
.cabinet-tabs {
  list-style: none;
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 16px 0 24px;
  border-bottom: 2px solid #e5e5e5;
}
.cabinet-tab {
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
  padding: 10px 18px;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.cabinet-tab.active {
  border-bottom-color: #F95D51;
  font-weight: 700;
}
.cabinet-tabpane {
  display: none;
}
.cabinet-tabpane.active {
  display: block;
}
.cabinet-table {
  width: 100%;
  border-collapse: collapse;
}
.cabinet-table th,
.cabinet-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #e5e5e5;
  vertical-align: top;
}
.cabinet-muted {
  display: block;
  color: #888;
  font-size: 0.85em;
}
.cabinet-empty {
  color: #666;
  padding: 24px 0;
}
.cabinet-pager {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 20px;
}
.cabinet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0 16px;
}
.cabinet-birthday {
  display: flex;
  gap: 6px;
}
.cabinet-password {
  border: 1px solid #e5e5e5;
  padding: 12px 16px 4px;
  margin: 8px 0 16px;
}
.cabinet-password legend {
  padding: 0 6px;
  font-weight: 700;
}

/* --- Modal xác nhận hủy (nguồn: bookly-modal "Cancel Appointment") --- */
.cabinet-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.cabinet-modal[hidden] {
  display: none;
}
.cabinet-modal-box {
  background: #fff;
  color: #333;
  max-width: 420px;
  width: calc(100% - 32px);
  padding: 24px 28px;
  border-radius: 4px;
}
.cabinet-modal-box h2 {
  margin: 0 0 12px;
  font-size: 1.3em;
}
.cabinet-modal-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.u-btn-secondary {
  background: #fff;
  border: 1px solid #999;
  color: #333;
}
