/* BABE front desk staff dashboard — Today at BABE */

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

.babe-staff-notice {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.92rem;
}

.babe-staff-notice--success {
  background: #edf7ee;
  border: 1px solid #c8e6c9;
  color: #1b5e20;
}

.babe-staff-notice--error {
  background: #fdecea;
  border: 1px solid #f5c6c2;
  color: #8a1f11;
}

.babe-staff-notice__text {
  margin: 0;
  flex: 1;
}

.babe-staff-notice__dismiss {
  border: none;
  background: transparent;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
  padding: 0 4px;
}

.babe-staff-notice__dismiss:hover {
  opacity: 1;
}

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

.babe-staff-search__label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #333;
}

.babe-staff-search__row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.babe-staff-search__input {
  flex: 1;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #d0d0d0;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
}

.babe-staff-search__hint,
.babe-staff-search__empty {
  margin: 8px 0 0;
  font-size: 0.84rem;
  color: #666;
}

.babe-staff-search__empty {
  color: #8a6d2f;
}

.babe-staff-request-row__note--hint {
  color: #777;
  font-style: normal;
}

.babe-staff-inline-form {
  display: inline;
}

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

.babe-staff-hero__title {
  margin: 0 0 6px;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.babe-staff-hero__subtitle {
  margin: 0 0 10px;
  font-size: 1rem;
  color: #444;
  max-width: 42em;
}

.babe-staff-hero__meta {
  margin: 0;
  font-size: 0.88rem;
  color: #666;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}

.babe-staff-hero__staff {
  color: #888;
}

.babe-staff-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.babe-staff-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  color: #111;
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  box-sizing: border-box;
}

.babe-staff-button:hover,
.babe-staff-button:focus-visible {
  background: #f5f5f5;
  border-color: #bbb;
  color: #111;
  text-decoration: none;
}

.babe-staff-button--primary {
  background: #111;
  border-color: #111;
  color: #fff;
}

.babe-staff-button--primary:hover,
.babe-staff-button--primary:focus-visible {
  background: #333;
  border-color: #333;
  color: #fff;
}

.babe-staff-button--secondary {
  background: #fff;
  border-color: #ccc;
}

.babe-staff-button--small {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 0.85rem;
}

.babe-staff-section {
  margin-bottom: 28px;
}

.babe-staff-section__title {
  margin: 0 0 14px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
}

.babe-staff-attention-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

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

.babe-staff-card--attention {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.babe-staff-card--empty {
  background: #f4faf5;
  border-color: #d4e8d6;
  text-align: left;
}

.babe-staff-card--empty .babe-staff-card__value {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2e6b34;
}

.babe-staff-card__value {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.1;
  color: #111;
}

.babe-staff-card__label {
  font-size: 0.92rem;
  font-weight: 600;
  color: #222;
}

.babe-staff-card__hint {
  margin: 0;
  font-size: 0.84rem;
  color: #666;
  line-height: 1.45;
}

.babe-staff-card__action {
  margin-top: 8px;
}

.babe-staff-next-card {
  padding: 20px 22px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
}

.babe-staff-next-card__grid {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.babe-staff-next-card__time {
  font-size: 1.15rem;
  font-weight: 600;
}

.babe-staff-next-card__name {
  font-size: 1.05rem;
  font-weight: 500;
}

.babe-staff-next-card__treatment,
.babe-staff-next-card__payment {
  font-size: 0.9rem;
  color: #555;
}

.babe-staff-next-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.babe-staff-table-wrap {
  overflow-x: auto;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  background: #fff;
}

.babe-staff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.babe-staff-table th,
.babe-staff-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}

.babe-staff-table th {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #666;
  background: #fafafa;
}

.babe-staff-table tr:last-child td {
  border-bottom: none;
}

.babe-staff-table__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: flex-start;
}

.babe-staff-receipt-meta {
  flex-basis: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--babe-staff-muted, #5c6670);
}

.babe-staff-receipt-meta__line {
  display: block;
}
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.babe-status-chip {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 999px;
  white-space: nowrap;
}

.babe-status-chip--pending {
  background: #f5f0e6;
  color: #8a6d2f;
}

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

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

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

.babe-status-chip--change {
  background: #fff3e0;
  color: #e65100;
}

.babe-status-chip--payment {
  background: #fce4ec;
  color: #ad1457;
}

.babe-status-chip--neutral {
  background: #f0f0f0;
  color: #555;
}

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

.babe-staff-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.babe-staff-requests {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.babe-staff-request-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 20px;
  padding: 16px 18px;
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: 10px;
  align-items: start;
}

.babe-staff-request-row__main {
  display: grid;
  gap: 4px;
}

.babe-staff-request-row__patient {
  font-weight: 600;
  font-size: 0.95rem;
}

.babe-staff-request-row__type {
  font-size: 0.85rem;
  color: #666;
}

.babe-staff-request-row__meta,
.babe-staff-request-row__note {
  font-size: 0.85rem;
  color: #555;
}

.babe-staff-request-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.babe-staff-notifications {
  font-size: 0.9rem;
}

.babe-staff-notifications__filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.babe-staff-notifications__filter select {
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
}

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

.babe-staff-notif-item {
  padding: 10px 12px;
  margin-bottom: 6px;
  background: #fafafa;
  border-radius: 8px;
  border-left: 3px solid #111;
  font-size: 0.88rem;
}

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

.babe-staff-notif-item__title {
  font-weight: 600;
}

.babe-staff-notif-item__msg {
  color: #555;
  margin-left: 6px;
}

.babe-staff-notif-item__time {
  color: #888;
  font-size: 0.82rem;
  margin-left: 8px;
}

.babe-staff-notif-empty {
  margin: 0;
  font-size: 0.88rem;
  color: #777;
}

.babe-owner-notes {
  margin-top: 32px;
  border: 1px solid #e5e5df;
  border-radius: 10px;
  background: #f9f9f7;
}

.babe-owner-notes summary {
  padding: 14px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.babe-owner-notes summary::-webkit-details-marker {
  display: none;
}

.babe-owner-notes__body {
  padding: 0 18px 16px;
  font-size: 0.88rem;
  color: #444;
}

.babe-owner-notes__body ul {
  margin: 0;
  padding-left: 1.1rem;
}

.babe-owner-notes__body li {
  margin-bottom: 6px;
}

/* Gate (logged out) */
.babe-staff-dashboard.babe-dashboard-gate {
  max-width: 480px;
  padding: 48px 20px 56px;
}

.babe-staff-dashboard .babe-dashboard-gate-card {
  border-radius: 12px;
}

.babe-staff-dashboard .babe-dashboard-gate-btn {
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 500;
  text-decoration: none;
}

/* Hide legacy WordPress page title above dashboard */
body.babe-page-staff-dashboard .entry-title,
body.babe-page-admin-dashboard .entry-title,
body.babe-page-staff-dashboard .page-title,
body.babe-page-admin-dashboard .page-title,
body.babe-page-staff-dashboard .elementor-widget-theme-post-title,
body.babe-page-admin-dashboard .elementor-widget-theme-post-title {
  display: none !important;
}

.babe-staff-actions__foot {
  margin: -4px 0 20px;
  font-size: 0.88rem;
}

.babe-staff-actions__link {
  color: #444;
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

/* Admin dashboard modals */
.babe-staff-dashboard .babe-admin-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.babe-staff-dashboard .babe-admin-modal.is-open {
  display: flex;
}

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

.babe-staff-dashboard .babe-admin-modal-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 760px;
  max-height: 85vh;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.babe-staff-dashboard .babe-admin-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}

.babe-staff-dashboard .babe-admin-modal__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: #111;
}

.babe-staff-dashboard .babe-admin-modal__close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: #f3f3f3;
  color: #333;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.babe-staff-dashboard .babe-admin-modal__close:hover {
  background: #e8e8e8;
}

.babe-staff-dashboard .babe-admin-modal__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px 20px;
  -webkit-overflow-scrolling: touch;
}

.babe-staff-dashboard .babe-admin-modal__hint {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.45;
}

.babe-staff-dashboard .babe-admin-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid #eee;
  background: #fafafa;
  flex-shrink: 0;
}

.babe-staff-dashboard .babe-admin-field {
  margin-bottom: 14px;
}

.babe-staff-dashboard .babe-admin-field__label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 0.92rem;
  color: #222;
}

.babe-staff-dashboard .babe-admin-field--row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.babe-staff-dashboard .babe-admin-field input[type="text"],
.babe-staff-dashboard .babe-admin-field input[type="email"],
.babe-staff-dashboard .babe-admin-field input[type="date"],
.babe-staff-dashboard .babe-admin-field input[type="time"],
.babe-staff-dashboard .babe-admin-field input[type="search"],
.babe-staff-dashboard .babe-admin-field select,
.babe-staff-dashboard .babe-admin-field textarea {
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.95rem;
  box-sizing: border-box;
}

.babe-staff-dashboard .babe-admin-field textarea {
  min-height: 72px;
  resize: vertical;
}

.babe-staff-dashboard .babe-admin-customer-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
}

.babe-staff-dashboard .babe-admin-customer-mode label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  cursor: pointer;
}

.babe-staff-dashboard .babe-admin-field--treatments .babe-admin-treatment-filter {
  margin-bottom: 8px;
}

.babe-staff-dashboard .babe-admin-services-select {
  min-height: 200px;
  width: 100%;
}

.babe-staff-dashboard .babe-admin-search-results {
  max-height: 180px;
  overflow-y: auto;
  margin-top: 6px;
}

.babe-staff-dashboard .babe-find-patient-results {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.babe-staff-dashboard .babe-find-patient-row {
  padding: 12px 14px;
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  background: #fafafa;
}

.babe-staff-dashboard .babe-find-patient-row__name {
  margin: 0 0 4px;
  font-weight: 600;
  color: #111;
}

.babe-staff-dashboard .babe-find-patient-row__meta {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: #555;
}

.babe-staff-dashboard .babe-find-patient-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.babe-staff-dashboard .babe-find-patient-empty {
  margin: 12px 0 0;
  font-size: 0.9rem;
  color: #666;
}

.babe-staff-dashboard .babe-find-patient-loading {
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: #555;
}

.babe-staff-dashboard .babe-admin-modal__footer .babe-staff-button--primary,
.babe-staff-dashboard .babe-admin-modal-content .babe-staff-button--primary {
  background: #111;
  color: #fff;
  border-color: #111;
}

body.babe-admin-modal-open {
  overflow: hidden;
}

/* Staff page shell: reduce patient-facing clutter */
body.babe-page-staff-dashboard .babe-floating-actions {
  display: none !important;
}

body.babe-page-staff-dashboard .pchi-header-cta,
body.babe-page-staff-dashboard .pchi-sticky-shell .pchi-header-cta {
  display: none !important;
}

body.babe-page-staff-dashboard {
  scroll-padding-top: 120px;
  scroll-behavior: smooth;
}

.babe-admin-search-hit {
  padding: 8px 10px;
  cursor: pointer;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 4px;
  background: #fff;
}

.babe-admin-search-hit:hover {
  background: #f5f5f5;
}

@media (max-width: 900px) {
  .babe-staff-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .babe-staff-dashboard {
    padding: 88px 14px 56px;
    max-width: 100%;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .babe-staff-dashboard .babe-staff-card__hint,
  .babe-staff-dashboard .babe-patient-import-form,
  .babe-staff-dashboard .babe-admin-field,
  .babe-staff-dashboard .babe-admin-field input,
  .babe-staff-dashboard .babe-admin-field select,
  .babe-staff-dashboard .babe-admin-field textarea {
    max-width: 100%;
    min-width: 0;
  }

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

  .babe-staff-search__row .babe-staff-button {
    width: 100%;
  }

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

  .babe-staff-actions .babe-staff-button {
    width: 100%;
  }

  .babe-staff-dashboard .babe-admin-modal {
    padding: 8px;
  }

  .babe-staff-dashboard .babe-admin-modal-dialog {
    max-height: 92vh;
    border-radius: 12px;
  }

  .babe-staff-dashboard .babe-admin-field--row {
    grid-template-columns: 1fr;
  }

  .babe-staff-dashboard .babe-admin-modal__footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .babe-staff-dashboard .babe-admin-modal__footer .babe-staff-button {
    width: 100%;
  }

  .babe-staff-dashboard .babe-find-patient-row__actions .babe-staff-button {
    flex: 1 1 auto;
  }

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

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

  .babe-staff-request-row__actions {
    justify-content: flex-start;
  }

  .babe-staff-next-card__actions,
  .babe-staff-empty__actions {
    flex-direction: column;
  }

  .babe-staff-next-card__actions .babe-staff-button,
  .babe-staff-empty__actions .babe-staff-button,
  .babe-staff-table__actions .babe-staff-button {
    width: 100%;
  }

  .babe-staff-table th:nth-child(5),
  .babe-staff-table td:nth-child(5) {
    display: none;
  }
}

/* FRONT-DESK-004 patient hub */
.babe-fd-patients {
  margin: 1.25rem 0 2rem;
}
.babe-fd-patients__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.babe-fd-patients__title {
  margin: 0;
  font-size: 1.35rem;
}
.babe-fd-patient-detail {
  margin-top: 1.25rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.babe-patient-import-details {
  margin: 1.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.babe-patient-import-details > summary {
  cursor: pointer;
  display: inline-block;
  margin-bottom: 0.75rem;
}
.babe-fd-patient-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}
.babe-fd-country-select {
  max-width: 100%;
  min-width: min(100%, 16rem);
}
.babe-fd-name-row {
  margin-bottom: 0.5rem;
}
#babe-fd-duplicate-warning:not([hidden]) {
  margin: 0.75rem 0;
}
@media (max-width: 640px) {
  .babe-fd-patient-actions .babe-staff-button {
    width: 100%;
  }
}

.babe-public-bookings {
  margin: 0 0 20px;
  padding: 16px;
  border: 1px solid #e4e4e4;
  border-radius: 12px;
  background: #fafafa;
}

.babe-public-bookings__title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 600;
}

.babe-public-bookings__help {
  margin: 0;
  color: #222;
  font-size: 0.92rem;
}

.babe-public-bookings__date {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0;
  font-weight: 600;
}

.babe-public-bookings__date input {
  min-height: 44px;
  max-width: 220px;
  font: inherit;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
}

.babe-public-bookings__groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.babe-public-bookings__group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 12px;
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 10px;
}

.babe-public-bookings__label,
.babe-public-bookings__status,
.babe-public-bookings__live,
.babe-public-bookings__error {
  margin: 0;
}

.babe-public-bookings__status strong {
  font-weight: 700;
}

.babe-public-bookings__group .babe-staff-button,
.babe-public-bookings__both .babe-staff-button {
  min-height: 44px;
  width: 100%;
}

.babe-public-bookings__both {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.babe-public-bookings__error {
  margin-bottom: 10px;
  color: #8a1f11;
  font-weight: 600;
}

.babe-public-bookings__live:empty {
  display: none;
}

@media (max-width: 640px) {
  .babe-public-bookings__groups,
  .babe-public-bookings__both {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .babe-public-bookings__date input {
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 400px) {
  .babe-staff-dashboard {
    padding-left: 8px;
    padding-right: 8px;
  }

  .babe-staff-dashboard .babe-admin-field--row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.babe-staff-portal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.babe-followup-switch,
.babe-followup-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin: 0 0 16px;
}

.babe-followup-switch .babe-staff-button,
.babe-followup-toolbar .babe-staff-button,
.babe-followup-edit .babe-staff-button {
  min-height: 44px;
}

.babe-followup-switch .is-active {
  font-weight: 700;
}

.babe-followup-toolbar label,
.babe-followup-edit label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
}

.babe-followup-toolbar input,
.babe-followup-toolbar select,
.babe-followup-toolbar textarea,
.babe-followup-edit input,
.babe-followup-edit select {
  min-height: 44px;
  font-size: 16px;
}

.babe-followup-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 16px;
}

.babe-followup-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.babe-followup-table th,
.babe-followup-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid #e6e1da;
  vertical-align: top;
}

.babe-followup-schedule dl {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 6px 12px;
  margin: 0 0 12px;
}

.babe-followup-schedule dt {
  font-weight: 600;
}

.babe-followup-schedule dd {
  margin: 0;
}

@media (max-width: 720px) {
  .babe-followup-toolbar,
  .babe-followup-edit,
  .babe-followup-switch {
    flex-direction: column;
    align-items: stretch;
  }

  .babe-followup-toolbar .babe-staff-button,
  .babe-followup-edit .babe-staff-button,
  .babe-followup-switch .babe-staff-button {
    width: 100%;
  }

  .babe-followup-schedule dl {
    grid-template-columns: 1fr;
  }
}
