/* Babe Staff Dashboard – clean black/white, app-like, mobile friendly */

/* Logged-out / access-denied gate (all staff dashboards) */
.babe-dashboard-gate {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, sans-serif;
  color: #111;
  background: #fff;
}

.babe-dashboard-gate-card {
  padding: 24px 20px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #fafafa;
}

.babe-dashboard-gate-title {
  margin: 0 0 12px;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.babe-dashboard-gate-message,
.babe-dashboard-gate-hint {
  margin: 0 0 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
}

.babe-dashboard-gate-hint {
  color: #555;
  font-size: 0.9rem;
}

.babe-dashboard-gate-actions {
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.babe-dashboard-gate-btn {
  display: inline-block;
  text-decoration: none;
}

/* ===== Shared staff dashboard shell (BB-047) ===== */
.babe-staff-shell,
.babe-staff-dashboard,
.babe-admin-dashboard,
.babe-doctor-dashboard {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px 40px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, sans-serif;
  color: #111;
  background: #fff;
  line-height: 1.45;
}

.babe-staff-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #ececec;
}

.babe-staff-eyebrow {
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #777;
}

.babe-staff-title {
  margin: 0 0 6px;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.babe-staff-subtitle {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: #444;
}

.babe-staff-date {
  margin: 0;
  font-size: 0.85rem;
  color: #666;
}

.babe-staff-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.babe-staff-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.babe-staff-card {
  margin-bottom: 16px;
  padding: 16px 18px;
  background: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
}

.babe-staff-card-title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 600;
  color: #222;
}

.babe-staff-stat {
  text-align: left;
  padding: 14px 16px;
}

.babe-staff-stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
}

.babe-staff-stat-label {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: #666;
}

.babe-staff-stat-hint {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  color: #888;
}

.babe-staff-next {
  background: #fff;
  border-color: #ddd;
}

.babe-staff-appointment-featured {
  display: grid;
  gap: 4px;
}

.babe-staff-appointment-time {
  font-weight: 600;
  font-size: 1rem;
}

.babe-staff-appointment-name {
  font-size: 1.05rem;
  font-weight: 500;
}

.babe-staff-appointment-treatment,
.babe-staff-appointment-status {
  font-size: 0.88rem;
  color: #555;
}

.babe-staff-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.babe-staff-button,
.babe-staff-button-secondary {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 0.88rem;
}

.babe-staff-button-secondary {
  background: #fff;
  color: #111;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.babe-staff-empty {
  margin: 0;
  padding: 8px 0;
  font-size: 0.92rem;
  color: #555;
  line-height: 1.5;
}

.babe-staff-alert {
  background: #f5f8fc;
  border-color: #d6e4f5;
}

.babe-staff-alert-text {
  margin: 0;
  font-size: 0.88rem;
  color: #334;
}

.babe-staff-paused {
  background: #f9f9f7;
  border-color: #e5e5df;
}

.babe-staff-paused-list,
.babe-staff-help-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: #444;
}

.babe-staff-paused-list li,
.babe-staff-help-list li {
  margin-bottom: 6px;
}

.babe-staff-help {
  background: #fff;
}

.babe-staff-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.babe-staff-dashboard {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px 32px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, sans-serif;
  color: #111;
  background: #fff;
}

.babe-staff-dashboard .babe-staff-heading {
  margin: 0 0 20px;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.babe-staff-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 1px solid #e0e0e0;
  padding: 0;
}

.babe-staff-tab {
  flex: 1;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #666;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.babe-staff-tab:hover {
  color: #111;
}

.babe-staff-tab.is-active {
  color: #111;
  border-bottom-color: #111;
}

.babe-staff-day {
  display: none;
}

.babe-staff-day-title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}

.babe-staff-empty {
  margin: 0;
  padding: 24px 0;
  font-size: 0.9rem;
  color: #666;
}

.babe-staff-cards {
  list-style: none;
  margin: 0;
  padding: 0;
}

.babe-staff-card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  gap: 4px 16px;
  margin-bottom: 12px;
  padding: 14px 16px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 10px;
}

.babe-staff-card-time {
  grid-column: 1;
  grid-row: 1;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111;
}

.babe-staff-card-status {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  justify-self: end;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 4px;
}

.babe-staff-status-pending {
  background: #f5f5f5;
  color: #666;
}

.babe-staff-status-confirmed {
  background: #e8f5e9;
  color: #2e7d32;
}

.babe-staff-status-completed {
  background: #e3f2fd;
  color: #1565c0;
}

.babe-staff-status-cancelled {
  background: #ffebee;
  color: #c62828;
}

.babe-staff-card-name {
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: 0.95rem;
  font-weight: 500;
  color: #111;
}

.babe-staff-card-treatments {
  grid-column: 1 / -1;
  grid-row: 3;
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
}

.babe-staff-card-actions {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.babe-staff-btn {
  padding: 6px 12px;
  font-size: 0.85rem;
  color: #111;
  background: #fff;
  border: 1px solid #111;
  border-radius: 6px;
  cursor: pointer;
}

.babe-staff-btn:hover:not(:disabled) {
  background: #111;
  color: #fff;
}

.babe-staff-commission {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px 32px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, sans-serif;
  color: #111;
}

.babe-staff-commission-total {
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.babe-staff-commission-month label { margin-right: 8px; }
.babe-staff-commission-month select { margin-right: 12px; }

.babe-staff-commission-table {
  margin-top: 12px;
}

/* Overtime (babe_staff_overtime) */
.babe-staff-overtime {
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 16px 32px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, sans-serif;
  color: #111;
}

.babe-overtime-notice-success {
  padding: 10px 12px;
  margin-bottom: 16px;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 6px;
  font-size: 0.9rem;
}

.babe-overtime-form label { display: block; margin-bottom: 4px; font-weight: 500; }
.babe-overtime-form input[type="date"],
.babe-overtime-form input[type="number"],
.babe-overtime-form input[type="text"] {
  width: 100%;
  max-width: 240px;
  padding: 8px 10px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.babe-overtime-hint { font-size: 0.85rem; color: #666; margin-left: 8px; }

.babe-overtime-table { margin-top: 12px; }
.babe-overtime-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}
.babe-overtime-status-pending { background: #fff3e0; color: #e65100; }
.babe-overtime-status-approved { background: #e8f5e9; color: #2e7d32; }
.babe-overtime-status-rejected { background: #ffebee; color: #c62828; }

@media (max-width: 640px) {
  .babe-staff-shell,
  .babe-staff-dashboard,
  .babe-admin-dashboard,
  .babe-doctor-dashboard {
    padding: 16px 12px 32px;
  }

  .babe-staff-stats {
    grid-template-columns: 1fr 1fr;
  }

  .babe-staff-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .babe-staff-actions .babe-admin-btn,
  .babe-staff-actions .babe-doctor-btn,
  .babe-staff-actions .babe-staff-btn,
  .babe-staff-button-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .babe-staff-dashboard {
    padding: 16px 12px 24px;
  }

  .babe-staff-tab {
    padding: 10px 12px;
    font-size: 0.85rem;
  }

  .babe-staff-card {
    padding: 12px 14px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
  }

  .babe-staff-card-time {
    grid-column: 1;
    grid-row: 1;
  }

  .babe-staff-card-status {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }

  .babe-staff-card-name {
    grid-row: 3;
  }

  .babe-staff-card-treatments {
    grid-row: 4;
  }
}

/* ===== Admin dashboard (babe_admin_dashboard) ===== */
.babe-admin-dashboard {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px 32px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, sans-serif;
  color: #111;
  background: #fff;
}

.babe-admin-heading {
  margin: 0 0 16px;
  font-size: 1.5rem;
  font-weight: 600;
}

.babe-admin-day-title {
  margin: 24px 0 12px;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}

.babe-admin-notifications-panel {
  margin-bottom: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  border: none;
}

.babe-admin-notif-filter { margin-bottom: 12px; }
.babe-admin-notif-filter select { margin-right: 8px; }

.babe-admin-notif-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.babe-admin-notif-item {
  padding: 10px 12px;
  margin-bottom: 6px;
  background: #fff;
  border-radius: 6px;
  border-left: 3px solid #111;
  font-size: 0.9rem;
}

.babe-admin-notif-item.is-read {
  border-left-color: #ccc;
  opacity: 0.85;
}

.babe-admin-notif-title { font-weight: 600; }
.babe-admin-notif-msg { color: #555; margin-left: 6px; }
.babe-admin-notif-time { color: #888; font-size: 0.85rem; margin-left: 8px; }
.babe-admin-notif-item form { margin-left: 8px; }
.babe-admin-btn-small { padding: 4px 10px; font-size: 0.8rem; }

.babe-admin-empty {
  margin: 0;
  padding: 12px 0;
  color: #666;
  font-size: 0.9rem;
}

.babe-admin-btn {
  padding: 8px 16px;
  font-size: 0.9rem;
  color: #111;
  background: #fff;
  border: 1px solid #111;
  border-radius: 6px;
  cursor: pointer;
}

.babe-admin-btn:hover {
  background: #111;
  color: #fff;
}

.babe-admin-btn-primary {
  background: #111;
  color: #fff;
}

.babe-admin-btn-primary:hover {
  background: #333;
  color: #fff;
}

.babe-admin-cards {
  list-style: none;
  margin: 0;
  padding: 0;
}

.babe-admin-card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto auto;
  gap: 6px 12px;
  margin-bottom: 12px;
  padding: 14px 16px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 10px;
}

.babe-admin-card-time {
  grid-column: 1;
  font-weight: 600;
  font-size: 0.95rem;
}

.babe-admin-card-status {
  grid-column: 2;
  justify-self: end;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
}

.babe-admin-status-pending { background: #f5f5f5; color: #666; }
.babe-admin-status-confirmed { background: #e8f5e9; color: #2e7d32; }
.babe-admin-status-completed { background: #e3f2fd; color: #1565c0; }
.babe-admin-status-cancelled { background: #ffebee; color: #c62828; }

.babe-admin-card-name {
  grid-column: 1 / -1;
  font-weight: 500;
}

.babe-admin-card-treatments {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  color: #666;
}

.babe-admin-card-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.babe-admin-muted {
  font-size: 0.85rem;
  color: #666;
}

.babe-admin-cr-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.babe-admin-cr-item {
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fafafa;
  font-size: 0.9rem;
}

.babe-admin-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.babe-admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.babe-admin-modal-content {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.babe-admin-modal-content h3 {
  margin-top: 0;
  margin-bottom: 16px;
}

.babe-admin-modal-content label {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
}

.babe-admin-modal-content input[type="text"],
.babe-admin-modal-content input[type="email"],
.babe-admin-modal-content input[type="date"],
.babe-admin-modal-content input[type="time"],
.babe-admin-modal-content input[type="search"],
.babe-admin-modal-content select,
.babe-admin-modal-content textarea {
  width: 100%;
  max-width: 100%;
  margin-bottom: 12px;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.babe-admin-modal-content .babe-admin-services-select {
  min-height: 120px;
}

.babe-admin-modal-content p {
  margin-bottom: 12px;
}

.babe-admin-search-results {
  max-height: 160px;
  overflow-y: auto;
  margin-top: 4px;
}

/* ===== Doctor dashboard (babe_doctor_dashboard) ===== */
.babe-doctor-dashboard {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 16px 32px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, sans-serif;
  color: #111;
  background: #fff;
}

.babe-doctor-heading {
  margin: 0 0 16px;
  font-size: 1.5rem;
  font-weight: 600;
}

.babe-doctor-day-title {
  margin: 24px 0 12px;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}

.babe-doctor-empty {
  margin: 0;
  padding: 12px 0;
  color: #666;
  font-size: 0.9rem;
}

.babe-doctor-btn {
  padding: 8px 16px;
  font-size: 0.9rem;
  color: #111;
  background: #fff;
  border: 1px solid #111;
  border-radius: 6px;
  cursor: pointer;
}

.babe-doctor-btn:hover:not(:disabled) {
  background: #111;
  color: #fff;
}

.babe-doctor-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.babe-doctor-btn-primary {
  background: #111;
  color: #fff;
}

.babe-doctor-btn-primary:hover {
  background: #333;
  color: #fff;
}

.babe-doctor-cards {
  list-style: none;
  margin: 0;
  padding: 0;
}

.babe-doctor-card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto auto;
  gap: 6px 12px;
  margin-bottom: 12px;
  padding: 14px 16px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 10px;
}

.babe-doctor-card-time {
  grid-column: 1;
  font-weight: 600;
  font-size: 0.95rem;
}

.babe-doctor-card-status {
  grid-column: 2;
  justify-self: end;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
}

.babe-doctor-status-pending { background: #f5f5f5; color: #666; }
.babe-doctor-status-confirmed { background: #e8f5e9; color: #2e7d32; }
.babe-doctor-status-completed { background: #e3f2fd; color: #1565c0; }
.babe-doctor-status-cancelled { background: #ffebee; color: #c62828; }

.babe-doctor-card-name {
  grid-column: 1 / -1;
  font-weight: 500;
}

.babe-doctor-card-treatments {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  color: #666;
}

.babe-doctor-card-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.babe-doctor-required {
  color: #c62828;
}

.babe-doctor-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.babe-doctor-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.babe-doctor-modal-content {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.babe-doctor-modal-content h3 {
  margin-top: 0;
  margin-bottom: 16px;
}

.babe-doctor-modal-content label {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
}

.babe-doctor-modal-content input[type="text"],
.babe-doctor-modal-content input[type="email"],
.babe-doctor-modal-content input[type="date"],
.babe-doctor-modal-content select,
.babe-doctor-modal-content textarea {
  width: 100%;
  max-width: 100%;
  margin-bottom: 12px;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.babe-doctor-modal-body {
  margin-bottom: 16px;
  min-height: 60px;
}

.babe-doctor-notes-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.babe-doctor-note-item {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
}

.babe-doctor-note-item:last-child {
  border-bottom: none;
}

.babe-doctor-note-meta {
  font-size: 0.85rem;
  color: #666;
  margin-left: 8px;
}

/* Holiday requests (staff dashboard) */
.babe-staff-holidays {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.babe-staff-holiday-form label {
  display: inline-block;
  margin-right: 12px;
}

.babe-staff-holiday-form textarea {
  width: 100%;
  max-width: 320px;
  box-sizing: border-box;
}

.babe-staff-holiday-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.babe-staff-holiday-item {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
}

.babe-staff-holiday-item:last-child {
  border-bottom: none;
}

.babe-staff-holiday-dates {
  font-weight: 500;
}

.babe-staff-holiday-note {
  color: #666;
  margin-left: 8px;
}

.babe-staff-holiday-status.babe-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-left: 8px;
}

.babe-badge-pending {
  background: #f0f0f0;
  color: #555;
}

.babe-badge-success {
  background: #d4edda;
  color: #155724;
}

.babe-badge-error {
  background: #f8d7da;
  color: #721c24;
}

.babe-staff-holiday-form-msg.success { color: #155724; }
.babe-staff-holiday-form-msg.error { color: #721c24; }
.babe-staff-holiday-empty { color: #666; font-style: italic; }
