.booking-body {
  --booking-primary: #2563eb;
  --booking-primary-hover: #1d4ed8;
  --booking-primary-soft: #eff6ff;
  --booking-primary-border: #bfdbfe;
  background: #f1f5f9;
  margin: 0;
}
html.booking-html--embed {
  overflow-x: hidden;
  overflow-y: visible;
  max-width: 100%;
  height: auto;
  min-height: 0;
}
html.booking-html--embed body.booking-body--embed {
  overflow-x: hidden;
  overflow-y: visible;
  max-width: 100%;
  height: auto;
  min-height: 0;
}
.booking-body--embed {
  background: transparent;
  width: 100%;
  box-sizing: border-box;
}
.booking-wrap { max-width: 720px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.booking-wrap--embed {
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0 0 0.75rem;
  box-sizing: border-box;
  overflow-x: hidden;
}
.booking-body--embed .booking-wrap--wide {
  max-width: 100%;
  width: 100%;
}
.booking-body--embed .booking-panel,
.booking-body--embed .card,
.booking-body--embed .booking-step2-card,
.booking-body--embed .booking-details-card {
  width: auto;
  max-width: 100%;
  box-sizing: border-box;
}
.booking-body--embed .booking-progress {
  margin-top: 0;
}
.booking-body--embed .booking-panel,
.booking-body--embed .card {
  box-shadow: none;
}

/* Shared booking flow actions (steps 1–4) */
.booking-panel-footer,
.booking-step1-footer,
.booking-step2-footer,
.booking-step3-footer,
.booking-welcome-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e5e7eb;
}
.booking-step1-footer {
  justify-content: flex-end;
}
.booking-btn-primary,
.booking-next-btn,
.booking-step2-next,
.booking-welcome-next,
.booking-welcome-lookup-btn,
.booking-body .btn.btn-primary.booking-btn-primary,
.booking-body .booking-form .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 6rem;
  padding: 0.65rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  background: var(--booking-primary);
  border: 1px solid var(--booking-primary);
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}
.booking-next-btn {
  min-width: 120px;
  padding: 0.7rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
}
.booking-btn-primary:hover,
.booking-next-btn:hover:not(:disabled),
.booking-step2-next:hover:not(:disabled),
.booking-welcome-next:hover,
.booking-welcome-lookup-btn:hover,
.booking-body .btn.btn-primary.booking-btn-primary:hover,
.booking-body .booking-form .btn-primary:hover {
  background: var(--booking-primary-hover);
  border-color: var(--booking-primary-hover);
  color: #fff;
}
.booking-next-btn:disabled,
.booking-step2-next:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.booking-btn-outline,
.booking-step2-back,
.booking-welcome-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: none;
  color: var(--booking-primary);
  background: #fff;
  border: 1px solid var(--booking-primary);
  border-radius: 6px;
  cursor: pointer;
  box-sizing: border-box;
}
.booking-btn-outline:hover,
.booking-step2-back:hover,
.booking-welcome-back:hover {
  background: var(--booking-primary-soft);
  color: var(--booking-primary-hover);
  border-color: var(--booking-primary-hover);
}
.booking-btn-arrow {
  font-size: 1.05em;
  line-height: 1;
}
.booking-btn-icon {
  width: 3rem;
  height: 3rem;
  min-width: 3rem;
  padding: 0;
  font-size: 1.75rem;
  line-height: 1;
  border: none;
  border-radius: 6px;
}
.booking-header h1 { margin: 0 0 0.25rem; font-size: 1.5rem; }
.booking-progress { margin: 1rem 0 1.75rem; }
.booking-session-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: -0.5rem 0 1.25rem;
  padding: 0.95rem 1.15rem;
  border-radius: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  font-size: 1rem;
}
.booking-session-bar.is-expired {
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
}
.booking-session-bar--email-confirm {
  margin-top: 0;
}
.booking-session-bar-icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
}
.booking-session-bar-icon svg {
  width: 100%;
  height: 100%;
}
.booking-session-bar-text {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  line-height: 1.35;
}
.booking-session-bar-label {
  font-weight: 600;
}
.booking-session-countdown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.25rem;
  padding: 0.45rem 1rem;
  border-radius: 10px;
  background: #1d4ed8;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  line-height: 1;
  box-shadow: 0 3px 10px rgba(29, 78, 216, 0.28);
}
.booking-session-expired-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.55);
}
.booking-session-expired-overlay[hidden] {
  display: none;
}
.booking-session-expired-card {
  width: min(100%, 26rem);
  padding: 1.5rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  text-align: center;
}
.booking-session-expired-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}
.booking-session-expired-desc {
  margin: 0 0 1.25rem;
  color: #475569;
  line-height: 1.5;
}
.booking-session-expired-restart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
body.booking-session-is-expired .booking-panel {
  pointer-events: none;
  opacity: 0.45;
}
body.booking-session-is-expired .booking-session-bar,
body.booking-session-is-expired .booking-session-expired-overlay {
  pointer-events: auto;
  opacity: 1;
}
.booking-progress-steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0;
}
.booking-progress-step {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
}
.booking-progress-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  min-width: 0;
  max-width: 100%;
  position: relative;
  z-index: 1;
}
.booking-progress-step.is-done .booking-progress-link {
  color: var(--booking-primary);
  cursor: pointer;
}
.booking-progress-step.is-done .booking-progress-link:hover .booking-progress-label {
  text-decoration: underline;
}
.booking-progress-step.is-current .booking-progress-link {
  color: var(--booking-primary);
}
.booking-progress-step.is-upcoming .booking-progress-link {
  color: #94a3b8;
  cursor: default;
}
.booking-progress-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  background: #e2e8f0;
  color: #64748b;
  border: 2px solid #e2e8f0;
}
.booking-progress-step.is-current .booking-progress-marker {
  background: var(--booking-primary);
  border-color: var(--booking-primary);
  color: #fff;
}
.booking-progress-step.is-done .booking-progress-marker {
  background: var(--booking-primary);
  border-color: var(--booking-primary);
  color: #fff;
}
.booking-progress-connector {
  position: absolute;
  top: 1rem;
  left: calc(50% + 1rem);
  right: calc(-50% + 1rem);
  width: auto;
  height: 2px;
  margin: 0;
  background: #e2e8f0;
  z-index: 0;
  pointer-events: none;
}
.booking-progress-step.is-done .booking-progress-connector {
  background: var(--booking-primary);
}
.booking-progress-step.is-current .booking-progress-connector {
  background: linear-gradient(90deg, var(--booking-primary) 0%, #e2e8f0 100%);
}
.booking-progress-label {
  display: block;
  width: 100%;
  line-height: 1.2;
  max-width: 5.5rem;
  text-align: center;
}

/* Public booking — step 1 service picker */
.booking-step1-card,
.booking-step2-card,
.booking-welcome-card,
.booking-body .booking-panel:not(.booking-details-card) {
  padding: 1.75rem 1.75rem 1.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.06);
}
.booking-today-kicker {
  margin: 0;
  font-size: 0.95rem;
  color: #64748b;
}
.booking-today-datetime {
  margin: 0.15rem 0 1.25rem;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: #0f172a;
}
.booking-urgency {
  margin: 0 0 1.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.booking-step1-form { margin: 0; }
.booking-service-select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.85rem 2.5rem 0.85rem 0.85rem;
  font-size: 1rem;
  color: #64748b;
  background: #fff;
  border: 1px solid #9ca3af;
  border-radius: 4px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  cursor: pointer;
}
.booking-service-select:focus {
  outline: 2px solid var(--booking-primary);
  outline-offset: 1px;
  color: #0f172a;
}
.booking-service-select:valid { color: #0f172a; }
.booking-step1-footer {
  margin-top: 2rem;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.booking-service-list { display: grid; gap: 0.75rem; }
.booking-service-card { display: block; padding: 1rem; border: 1px solid #e2e8f0; border-radius: 8px; text-decoration: none; color: inherit; background: #fff; }
.booking-service-card:hover { border-color: #94a3b8; }
.booking-service-card strong { display: block; margin-bottom: 0.25rem; }
.booking-service-meta { display: block; margin-top: 0.5rem; font-size: 0.85rem; color: #64748b; }

.booking-wrap--wide { max-width: 960px; }


/* Public booking — step 2 day columns */
.booking-step2-head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}
.booking-step2-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--booking-primary-soft);
  color: var(--booking-primary);
}
.booking-step2-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}
.booking-step2-head-body {
  flex: 1;
  min-width: 0;
}
.booking-step2-today {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  line-height: 1.35;
  color: #334155;
}
.booking-step2-today strong {
  font-size: clamp(1.15rem, 3.5vw, 1.45rem);
  font-weight: 800;
  color: #0f172a;
}
.booking-step2-intro {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #334155;
}
.booking-step2-intro strong {
  color: var(--booking-primary);
  font-weight: 700;
}
.booking-step2-staff {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  line-height: 1.4;
  color: #475569;
}
.booking-step2-staff strong {
  color: var(--booking-primary);
  font-weight: 700;
}
.booking-step2-staff-sep {
  color: #94a3b8;
  margin: 0 0.15rem;
}
.booking-step2-staff-default {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  vertical-align: middle;
}
.booking-step2-meta-icon {
  display: inline-flex;
  color: var(--booking-primary);
  flex-shrink: 0;
}
.booking-step2-meta-icon svg {
  width: 1rem;
  height: 1rem;
}
.booking-step2-hint {
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.45;
}
.booking-day-columns-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #fff;
}
.booking-after-hours-note {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #f8fafc;
}
.booking-after-hours-note p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #475569;
}
.booking-day-columns {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}
.booking-day-col {
  flex: 1 1 0;
  min-width: 0;
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
}
.booking-day-col:last-child { border-right: none; }
.booking-day-col-head {
  background: var(--booking-primary);
  color: #fff;
  text-align: center;
  padding: 0.55rem 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.booking-day-col-head--closed {
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.5rem 0.35rem;
  min-height: 3.75rem;
  background: #f1f5f9;
  color: #64748b;
}
.booking-day-col-dow {
  display: block;
  font-weight: 700;
  font-size: 0.72rem;
  color: #334155;
}
.booking-day-col-date {
  display: block;
  font-weight: 500;
  font-size: 0.68rem;
  color: #64748b;
}
.booking-day-col-status {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.booking-day-col-slots {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.4rem 0.35rem 0.65rem;
  flex: 1;
}
.booking-day-col-slots--closed {
  padding: 0;
  min-height: 14rem;
  background-color: #fff;
  background-image:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 47px,
      #e8eef4 47px,
      #e8eef4 48px
    ),
    repeating-linear-gradient(
      -45deg,
      #f8fafc,
      #f8fafc 6px,
      #e8f2ff 6px,
      #e8f2ff 12px
    );
}
.booking-day-col--closed {
  background: #fff;
}
.booking-day-slot {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.35rem;
  border: 1px solid #cbd5e1;
  border-radius: 2px;
  background: #fff;
  text-decoration: none;
  color: #0f172a;
  font-size: 0.78rem;
  line-height: 1.2;
  transition: border-color 0.12s, background 0.12s;
}
.booking-day-slot:hover {
  border-color: var(--booking-primary);
  background: var(--booking-primary-soft);
}
.booking-day-slot-radio {
  width: 13px;
  height: 13px;
  border: 1px solid #64748b;
  border-radius: 50%;
  flex-shrink: 0;
  box-sizing: border-box;
}
.booking-day-slot-time {
  font-weight: 500;
  white-space: nowrap;
}
.booking-step2-status {
  margin: 0.75rem 0 0;
  min-height: 1.25rem;
  font-size: 0.85rem;
}
.booking-welcome-card {
  padding: 1.5rem 1.75rem 1.25rem;
}
.booking-welcome-section {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #e5e7eb;
}
.booking-welcome-section--lookup {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.booking-welcome-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--booking-primary-soft);
  color: var(--booking-primary);
}
.booking-welcome-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}
.booking-welcome-icon--person {
  border-radius: 50%;
}
.booking-welcome-section-body {
  flex: 1;
  min-width: 0;
}
.booking-welcome-section-title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
}
.booking-welcome-lead {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.45;
}
.booking-welcome-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  color: #475569;
}
.booking-welcome-meta strong {
  color: var(--booking-primary);
  font-weight: 700;
}
.booking-welcome-meta-icon {
  display: inline-flex;
  color: var(--booking-primary);
  flex-shrink: 0;
}
.booking-welcome-meta-icon svg {
  width: 1rem;
  height: 1rem;
}
.booking-welcome-phone-label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
}
.booking-welcome-phone-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: stretch;
}
.booking-welcome-phone-field {
  flex: 1 1 12rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
}
.booking-welcome-phone-icon {
  color: #94a3b8;
  display: inline-flex;
}
.booking-welcome-phone-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}
.booking-welcome-phone-field input {
  flex: 1;
  min-width: 0;
  border: none;
  padding: 0.65rem 0;
  font-size: 0.95rem;
  background: transparent;
}
.booking-welcome-phone-field input:focus {
  outline: none;
}
.booking-welcome-lookup-btn {
  flex: 0 0 auto;
  align-self: stretch;
  white-space: nowrap;
  min-width: 0;
}
.booking-welcome-skip {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
}
.booking-welcome-skip a {
  color: var(--booking-primary);
  font-weight: 600;
  text-decoration: underline;
}
.booking-welcome-skip a:hover {
  color: var(--booking-primary-hover);
}

.booking-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.5rem; margin-top: 0.5rem; }
.booking-slot-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 3.25rem;
  padding: 0.65rem 0.5rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  text-align: center;
  text-decoration: none;
  color: #0f172a;
  font-size: 0.9rem;
}
.booking-slot-btn:hover { border-color: #0f172a; }
.booking-slot-time { font-weight: 700; line-height: 1.2; }
.booking-slot-staff {
  display: block;
  font-size: 0.72rem;
  line-height: 1.25;
  color: #64748b;
  font-weight: 500;
}
.booking-slot-staff-summary { margin-top: -0.25rem; }
/* Step 4 — contact details */
.booking-details-card {
  padding: 0;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.06);
}
.booking-details-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid #bfdbfe;
  background: #eff6ff;
}
.booking-details-banner--top {
  border-top: 0;
}
.booking-details-banner--bottom {
  margin-top: 1.25rem;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
}
.booking-details-banner-icon {
  flex-shrink: 0;
  display: inline-flex;
  margin-top: 0.05rem;
  color: var(--booking-primary);
}
.booking-details-banner-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}
.booking-details-banner p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #334155;
}
.booking-details-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 1.25rem 1.25rem 0.85rem;
}
.booking-details-header-icon {
  display: inline-flex;
  color: var(--booking-primary);
}
.booking-details-header-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}
.booking-details-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
}
.booking-details-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0 1.25rem 1.25rem;
}
.booking-details-summary-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  padding: 0.85rem 0.9rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}
.booking-details-summary-icon {
  display: inline-flex;
  color: var(--booking-primary);
}
.booking-details-summary-icon svg {
  width: 1rem;
  height: 1rem;
}
.booking-details-summary-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
}
.booking-details-summary-value {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--booking-primary);
}
.booking-details-summary-note {
  font-size: 0.76rem;
  line-height: 1.35;
  color: #64748b;
}
.booking-details-welcome {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0 1.25rem 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #f0fdf4;
}
.booking-details-welcome-icon {
  flex-shrink: 0;
  display: inline-flex;
  color: #16a34a;
}
.booking-details-welcome-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}
.booking-details-welcome p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #166534;
}
.booking-details-form {
  padding: 0 1.25rem 1.25rem;
}
.booking-details-form .flash {
  margin-bottom: 1rem;
}
.booking-details-field {
  margin-top: 1rem;
}
.booking-details-field-row {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}
.booking-details-field-row--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.booking-details-field-row--3 {
  grid-template-columns: 2fr 1fr 1fr;
}
.booking-details-field-row .booking-details-field,
.booking-details-field-row--2 .booking-details-field,
.booking-details-field-row--3 .booking-details-field {
  margin-top: 0;
}
.booking-details-form label {
  display: block;
  margin: 0 0 0.35rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: #334155;
}
.booking-details-label-muted {
  font-weight: 500;
  color: #64748b;
}
.booking-details-field-hint {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #64748b;
}
.booking-details-form input,
.booking-details-form textarea,
.booking-details-select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.8rem;
  font-size: 0.95rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
}
.booking-details-select {
  appearance: none;
  padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  cursor: pointer;
}
.booking-details-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0 0.8rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
}
.booking-details-input-wrap:focus-within {
  outline: 2px solid var(--booking-primary-border);
  border-color: var(--booking-primary);
}
.booking-details-input-wrap input {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0.7rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.booking-details-input-wrap input:focus {
  outline: none;
  border-color: transparent;
}
.booking-details-input-icon {
  display: inline-flex;
  flex-shrink: 0;
  color: #94a3b8;
}
.booking-details-input-icon svg {
  width: 1rem;
  height: 1rem;
}
.booking-details-form input:focus,
.booking-details-form textarea:focus,
.booking-details-select:focus {
  outline: 2px solid var(--booking-primary-border);
  border-color: var(--booking-primary);
}
.booking-details-form textarea {
  min-height: 6.5rem;
  resize: vertical;
}
.booking-details-field--notes {
  position: relative;
}
.booking-details-char-count {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: #94a3b8;
  text-align: right;
}
.booking-photo-dropzone {
  padding: 1.1rem 1rem;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
}
.booking-photo-input-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.booking-photo-choose {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
}
.booking-photo-choose:hover {
  border-color: #94a3b8;
  background: #fff;
}
.booking-photo-choose-icon {
  display: inline-flex;
  color: var(--booking-primary);
}
.booking-photo-choose-icon svg {
  width: 1rem;
  height: 1rem;
}
.booking-photo-filename {
  margin-left: 0.65rem;
  font-size: 0.85rem;
  color: #64748b;
}
.booking-photo-formats {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  color: #94a3b8;
}
.booking-photo-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}
.booking-photo-preview li {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #fff;
}
.booking-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.booking-form-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 0.75rem;
}
.booking-details-info-em {
  color: var(--booking-primary);
  font-weight: 700;
}
.booking-details-actions {
  margin-top: 1.5rem;
  padding-top: 0;
  border-top: 0;
}
.booking-details-submit {
  min-width: 11.5rem;
  padding: 0.75rem 1.4rem;
  margin: 0;
  font-size: 0.95rem;
}
.booking-details-submit-icon {
  display: inline-flex;
}
.booking-details-submit-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}
@media (max-width: 720px) {
  .booking-details-summary-grid {
    grid-template-columns: 1fr;
  }
  .booking-details-field-row--2,
  .booking-details-field-row--3 {
    grid-template-columns: 1fr;
  }
}

.booking-form label { display: block; margin-top: 0.75rem; font-weight: 600; font-size: 0.9rem; }
.booking-form input, .booking-form textarea { width: 100%; box-sizing: border-box; margin-top: 0.25rem; }
.booking-honeypot { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.booking-message { text-align: center; padding: 2rem; }
.booking-request-status { text-align: left; max-width: 560px; margin: 0 auto; }
.booking-request-status-card {
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}
.appt-badge { display: inline-block; padding: 0.2rem 0.55rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.badge-warn { background: #fef3c7; color: #92400e; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-muted { background: #e2e8f0; color: #475569; }
.badge-info { background: #dbeafe; color: #1e40af; }
.appointment-calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; font-size: 0.8rem; }
.appointment-calendar-grid .cal-head { font-weight: 700; text-align: center; padding: 0.35rem; background: #e2e8f0; }
.appointment-calendar-grid .cal-day { min-height: 88px; border: 1px solid #e2e8f0; padding: 0.25rem; background: #fff; vertical-align: top; }
.appointment-calendar-grid .cal-day.is-muted { background: #f8fafc; color: #94a3b8; }
.cal-day-num {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.2rem;
  font-weight: 600;
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
}
.cal-appt { display: block; margin-bottom: 0.2rem; padding: 0.15rem 0.25rem; border-radius: 4px; background: #dbeafe; color: #1e3a8a; text-decoration: none; font-size: 0.7rem; line-height: 1.2; }
.cal-appt.is-confirmed { background: #dcfce7; color: #166534; }
.cal-appt.is-requested { background: #fef3c7; color: #92400e; }
.cal-appt.is-queued { background: #cffafe; color: #0e7490; }
.cal-appt.is-pending-verify { background: #ea580c; color: #fff; }
.cal-appt.is-expired { background: #f1f5f9; color: #64748b; text-decoration: line-through; }
.cal-appt.is-completed { background: #2563eb; color: #fff; }

/* Admin calendar toolbar */
.cal-toolbar { margin: 1rem 0; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.cal-nav { margin: 0.75rem 0 1rem; display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.cal-view-tabs { display: flex; gap: 0.35rem; margin: 1rem 0 0.75rem; }
.cal-view-tab { padding: 0.4rem 0.85rem; border-radius: 6px; background: #e2e8f0; color: #475569; text-decoration: none; font-size: 0.9rem; }
.cal-view-tab.is-active { background: #0f172a; color: #fff; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 0.75rem; font-size: 0.85rem; color: #64748b; }
.cal-legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 0.35rem; vertical-align: middle; }
.cal-legend-dot.is-confirmed { background: #86efac; }
.cal-legend-dot.is-requested { background: #fde68a; }
.cal-legend-dot.is-queued { background: #67e8f9; }
.cal-legend-dot.is-pending-verify { background: #ea580c; }
.cal-legend-dot.is-expired { background: #cbd5e1; }
.cal-legend-dot.is-completed { background: #2563eb; }
.cal-day.is-today { box-shadow: inset 0 0 0 2px #0f172a; }
.cal-day.is-closed { background: #f8fafc; }
.cal-day-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0;
  border: 0;
  background: transparent;
  text-decoration: none;
  color: #64748b;
  line-height: 1;
  border-radius: 4px;
  padding: 0.1rem;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.cal-day-add:hover,
.cal-day-add:focus-visible {
  color: #0f172a;
  background: #e2e8f0;
  outline: none;
}
.cal-week-head {
  position: relative;
}
.cal-day-add iconify-icon {
  display: block;
}
.cal-day-add--week {
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  padding: 0.05rem;
}

.appt-display-toggle {
  display: inline-flex;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.appt-display-btn {
  padding: 0.45rem 0.95rem;
  text-decoration: none;
  color: #334155;
  font-size: 0.9rem;
  background: #fff;
}
.appt-display-btn + .appt-display-btn {
  border-left: 1px solid #e2e8f0;
}
.appt-display-btn.is-active {
  background: #f1f5f9;
  font-weight: 600;
  color: #0f172a;
}
.appt-display-btn:hover {
  background: #f8fafc;
}

.appt-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}
.appt-toolbar-primary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}
.appt-status-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0;
}
.appt-status-filter label {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: #64748b;
}
.appt-status-filter select {
  min-width: 11rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.9rem;
  background: #fff;
}
.appt-date-bar {
  margin-bottom: 1rem;
}
.appt-queue-summary {
  margin: 0 0 1rem;
}

/* Week time grid */
.cal-week-wrap { overflow-x: auto; margin-top: 0.5rem; }
.cal-week-grid {
  display: grid;
  grid-template-columns: 56px repeat(var(--cal-cols, 7), minmax(110px, 1fr));
  min-width: min(860px, calc(56px + var(--cal-cols, 7) * 110px));
  border: 1px solid #e2e8f0;
  background: #fff;
  position: relative;
}
.cal-week-corner { background: #f8fafc; border-bottom: 1px solid #e2e8f0; border-right: 1px solid #e2e8f0; grid-column: 1; grid-row: 1; }
.cal-week-head {
  position: relative;
  padding: 0.5rem 0.35rem;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 0.8rem;
}
.cal-week-head.is-today { background: #eff6ff; }
.cal-week-head.is-closed { background: #f1f5f9; color: #94a3b8; }
.cal-week-dow { display: block; font-weight: 700; }
.cal-week-date { display: block; color: #64748b; }
.cal-closed-label { display: block; font-size: 0.7rem; margin-top: 0.25rem; }
.cal-week-times {
  position: relative;
  border-right: 1px solid #e2e8f0;
  height: calc(var(--cal-hours) * 48px);
}
.cal-week-time {
  position: absolute;
  top: calc(var(--cal-hour) * 48px);
  left: 0;
  right: 0;
  height: 48px;
  padding: 0.15rem 0.35rem;
  font-size: 0.7rem;
  color: #94a3b8;
  border-top: 1px solid #f1f5f9;
  box-sizing: border-box;
}
.cal-week-day {
  position: relative;
  height: calc(var(--cal-hours) * 48px);
  border-right: 1px solid #e2e8f0;
  background: #fff;
}
.cal-week-day.is-today { background: #fafcff; }
.cal-week-day.is-closed { background: repeating-linear-gradient(-45deg, #f8fafc, #f8fafc 6px, #f1f5f9 6px, #f1f5f9 12px); }
.cal-week-slot {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--cal-hour) * 48px);
  height: 48px;
  border-top: 1px solid #f1f5f9;
  box-sizing: border-box;
}
.cal-week-events {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cal-week-event {
  position: absolute;
  left: 3px;
  right: 3px;
  min-height: 18px;
  padding: 0.15rem 0.3rem;
  border-radius: 4px;
  background: #dbeafe;
  color: #1e3a8a;
  text-decoration: none;
  font-size: 0.68rem;
  line-height: 1.15;
  overflow: hidden;
  pointer-events: auto;
  box-sizing: border-box;
}
.cal-week-event.is-confirmed { background: #bbf7d0; color: #14532d; }
.cal-week-event.is-requested { background: #fef08a; color: #713f12; }
.cal-week-event.is-queued { background: #a5f3fc; color: #155e75; }
.cal-week-event.is-pending-verify { background: #ea580c; color: #fff; }
.cal-week-event.is-expired { background: #e2e8f0; color: #64748b; }
.cal-week-event.is-completed { background: #2563eb; color: #fff; }
.cal-week-event-time { display: block; font-weight: 700; }
.cal-week-event-title, .cal-week-event-service, .cal-week-event-staff { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-week-event-staff { opacity: 0.85; font-style: italic; }
.cal-week-event-staff--unassigned { color: #b45309; font-weight: 600; font-style: normal; }
.cal-event-staff-line { font-weight: 600; font-style: normal; }
.cal-event-staff-line--wait-confirm { color: #c2410c; }
.cal-event-staff-line--pending-assignment { color: #b45309; }
.cal-event-staff-line--expired { color: #64748b; font-weight: 500; }
.booking-slot-btn.is-selected { border-color: #0f172a; background: #0f172a; color: #fff; }
.booking-staff-block { margin: 0.85rem 0 1rem; }
.booking-staff-label {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
}
.booking-staff-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.booking-staff-list .staff-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}
.appt-new-card { margin-top: 1rem; max-width: 920px; }
.appt-page-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}
.appt-page-title {
  margin: 0;
  font-size: 1.15rem;
}
.appt-page-breadcrumb { margin-top: 0.35rem; }

/* Admin appointment form v2 */
.appt-form-v2 {
  --appt-accent: #6366f1;
  --appt-border: #e5e7eb;
  --appt-muted: #6b7280;
  --appt-surface: #f9fafb;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.appt-form-row {
  display: grid;
  gap: 1rem;
}
.appt-form-row--2 {
  grid-template-columns: 1fr;
}
.appt-field-label {
  display: block;
  margin: 0 0 0.4rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: #111827;
}
.appt-field-label .catalog-required { color: #dc2626; }
.appt-field-label--inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}
.appt-field-control {
  position: relative;
}
.appt-field-control select,
.appt-field-control input[type="date"],
.appt-field-control textarea,
.appt-form-v2 textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.62rem 0.75rem;
  border: 1px solid var(--appt-border);
  border-radius: 10px;
  font-size: 0.92rem;
  background: #fff;
  color: #111827;
}
.appt-field-control--icon select,
.appt-field-control--icon input[type="date"] {
  padding-left: 2.35rem;
}
.appt-field-control--icon > iconify-icon:first-child {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}
.appt-field-icon-trailing {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}
.appt-field-control--icon input[type="date"] {
  padding-right: 2.35rem;
  color-scheme: light;
}
.appt-field-control--icon input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  position: absolute;
  right: 0;
  width: 2.5rem;
  height: 100%;
  cursor: pointer;
}
.appt-field-control--status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.appt-field-control--status select { flex: 1; }
.appt-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.appt-status-dot.is-confirmed { background: #22c55e; }
.appt-status-dot.is-pending { background: #f59e0b; }

.appt-form-section {
  border: 1px solid var(--appt-border);
  border-radius: 12px;
  padding: 1rem;
  background: #fff;
}
.appt-form-section-head {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: #111827;
}
.appt-form-section-head iconify-icon { color: var(--appt-accent); }
.appt-datetime-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.appt-form-footnote {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  color: var(--appt-muted);
}
.appt-form-footnote iconify-icon { flex-shrink: 0; }

.appt-form-accordions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.appt-form-panel {
  border: 1px solid var(--appt-border);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.appt-form-panel-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.appt-form-panel-summary::-webkit-details-marker { display: none; }
.appt-form-panel-summary-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}
.appt-form-panel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
}
.appt-form-panel-icon--status { background: #ecfdf5; color: #059669; }
.appt-form-panel-icon--staff { background: #eef2ff; color: #6366f1; }
.appt-form-panel-icon--notes { background: #eff6ff; color: #2563eb; }
.appt-form-panel-icon--internal { background: #fefce8; color: #ca8a04; }
.appt-form-panel-icon--advanced { background: #f3f4f6; color: #6b7280; }
.appt-form-panel-summary-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.appt-form-panel-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: #111827;
}
.appt-form-panel-preview {
  font-size: 0.82rem;
  color: var(--appt-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.appt-form-panel-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid #9ca3af;
  border-bottom: 2px solid #9ca3af;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  flex-shrink: 0;
  margin-top: -4px;
}
.appt-form-panel[open] > .appt-form-panel-summary .appt-form-panel-chevron {
  transform: rotate(-135deg);
  margin-top: 4px;
}
.appt-form-panel-body {
  padding: 0 1rem 1rem;
  border-top: 1px solid #f3f4f6;
}
.appt-form-panel-footnote {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: var(--appt-muted);
}
.appt-form-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.08rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  vertical-align: middle;
}
.appt-form-badge--client { background: #dbeafe; color: #1d4ed8; }
.appt-form-badge--internal { background: #fef3c7; color: #b45309; }

.appt-advanced-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.25rem;
}
.appt-advanced-toggle-row strong {
  display: block;
  font-size: 0.9rem;
  color: #111827;
}
.appt-advanced-toggle-desc {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
}
.appt-advanced-toggle-footnote { margin-top: 0.35rem; }
.appt-toggle {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  cursor: pointer;
}
.appt-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.appt-toggle-slider {
  display: block;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #d1d5db;
  transition: background 0.15s ease;
}
.appt-toggle-slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.appt-toggle input:checked + .appt-toggle-slider { background: var(--appt-accent); }
.appt-toggle input:checked + .appt-toggle-slider::after { transform: translateX(20px); }
.appt-form-panel-body--advanced .appt-invoice-ref-field {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f3f4f6;
}

.appt-create-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}
.appt-new-submit { margin-top: 1.25rem; }

.appt-new-form label:not(.staff-assign-item),
.appt-modal-form-body label:not(.staff-assign-item):not(.appt-field-label):not(.appt-toggle) {
  display: block;
  margin: 0.85rem 0 0.35rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: #334155;
}

/* Appointment booking modal */
.appointment-modal.doc-preview-modal {
  align-items: center;
}
.appointment-modal .appointment-modal-dialog {
  display: flex;
  flex-direction: column;
  width: min(920px, calc(100% - 1rem));
  max-height: calc(100vh - 2rem);
  height: auto;
  overflow: hidden;
  border-radius: 16px;
}
.appointment-modal .appointment-modal-dialog.doc-preview-dialog {
  height: auto;
}
.appt-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--appt-border, #e5e7eb);
  background: #fff;
  flex-shrink: 0;
}
.appt-modal-header-main {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}
.appt-modal-header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eef2ff;
  color: #6366f1;
  flex-shrink: 0;
}
.appt-modal-header-text h2 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.25;
}
.appt-modal-header-text p {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
}
.appt-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--appt-border, #e5e7eb);
  border-radius: 10px;
  background: #fff;
  color: #6b7280;
  cursor: pointer;
  flex-shrink: 0;
}
.appt-modal-close:hover { background: #f9fafb; color: #111827; }
.appointment-modal .appointment-modal-body {
  flex: 0 1 auto;
  min-height: 0;
  overflow-y: auto;
  background: #fafbfc;
}
.appointment-modal .appt-modal-form-body {
  padding: 0.85rem 1rem 0.5rem;
}
.appointment-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-shrink: 0;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}
@media (max-width: 640px) {
  .appointment-modal.doc-preview-modal {
    align-items: flex-end;
    padding: 0;
  }
  .appointment-modal .appointment-modal-dialog {
    width: 100%;
    max-height: min(92dvh, 100%);
    border-radius: 16px 16px 0 0;
  }
  .appointment-modal-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .appointment-modal-footer .btn { width: 100%; justify-content: center; }
  .appt-modal-header {
    padding: 0.85rem 1rem;
  }
  .appt-form-v2 {
    gap: 0.75rem;
  }
  .appt-form-accordions {
    gap: 0.5rem;
  }
  .appt-form-panel-summary {
    padding: 0.7rem 0.85rem;
  }
  .appt-form-panel-body {
    padding: 0 0.85rem 0.75rem;
  }
}

/* Admin new appointment — available times step */
.appt-form-v2 .appt-times-step {
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.appt-times-step {
  margin-top: 0.85rem;
  padding: 0.85rem 0.9rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  transition: opacity 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.appt-times-step > label {
  margin-top: 0;
}
.appt-times-step.is-pending {
  opacity: 1;
  border-color: #e8edf3;
  background: #f8fafc;
  color: #94a3b8;
}
.appt-form-v2 .appt-times-step.is-pending {
  background: transparent;
  border: 0;
  color: inherit;
}
.appt-times-step.is-pending > label,
.appt-times-step.is-pending .appt-times-hint {
  color: #94a3b8;
}
.appt-form-v2 .appt-times-step.is-pending > label { color: #111827; }
.appt-times-step.is-pending .appt-times-slots {
  pointer-events: none;
}
.appt-times-step.is-active {
  border-color: #cbd5e1;
  background: #fff;
  color: inherit;
}
.appt-form-v2 .appt-times-step.is-active {
  border: 0;
  background: transparent;
}
.appt-times-step.is-loading .appt-times-slots {
  min-height: 2.5rem;
}
.appt-times-slots {
  margin-top: 0.45rem;
  min-height: 2.75rem;
}
.appt-times-slots.has-slot-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}
.appt-times-slots:not(.has-slot-buttons) {
  display: block;
}
.appt-times-placeholder {
  margin: 0.35rem 0 0;
  padding: 0.65rem 0.75rem;
  border: 1px dashed #dbe3ec;
  border-radius: 8px;
  background: #f1f5f9;
  color: #94a3b8;
  font-size: 0.88rem;
  text-align: center;
}
.appt-times-hint {
  margin-top: 0.4rem;
  margin-bottom: 0;
}
.appt-form-v2 .appt-times-slots.has-slot-buttons + .appt-times-hint {
  display: none;
}

.appt-form-v2 .booking-slot-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 2.5rem;
  border-radius: 10px;
  font-size: 0.88rem;
}
.appt-form-v2 .booking-slot-btn.is-selected {
  border-color: var(--appt-accent, #6366f1);
  background: var(--appt-accent, #6366f1);
  color: #fff;
}

.appt-custom-time-step .appt-custom-time-field {
  margin-top: 0.45rem;
}
.appt-custom-time-step .appt-custom-time-field input[type=datetime-local] {
  width: 100%;
  margin: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid #dbe3ec;
  border-radius: 10px;
  background: #fff;
  font-size: 0.95rem;
  color: #0f172a;
}
.appt-custom-time-step .appt-custom-time-field input[type=datetime-local]:focus {
  outline: none;
  border-color: #6366f1;
}

@media (min-width: 768px) {
  .appt-form-row--2 {
    grid-template-columns: 1fr 1fr;
  }
  .appt-datetime-grid {
    grid-template-columns: minmax(180px, 220px) 1fr;
    align-items: start;
  }
  .appt-form-accordions--meta,
  .appt-form-accordions--notes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .appt-form-accordions--meta .appt-form-panel,
  .appt-form-accordions--notes .appt-form-panel {
    height: 100%;
  }
  .appt-form-panel > .appt-form-panel-summary {
    pointer-events: none;
    cursor: default;
    padding-bottom: 0.65rem;
  }
  .appt-form-panel > .appt-form-panel-summary .appt-form-panel-chevron {
    display: none;
  }
  .appt-form-panel > .appt-form-panel-body {
    border-top: 0;
    padding-top: 0;
  }
  .appt-form-panel--advanced > .appt-form-panel-summary {
    pointer-events: auto;
    cursor: pointer;
  }
  .appt-form-panel--advanced > .appt-form-panel-summary .appt-form-panel-chevron {
    display: block;
  }
  .appt-form-panel--advanced > .appt-form-panel-body {
    border-top: 1px solid #f3f4f6;
    padding-top: 0;
  }
  .appt-times-slots.has-slot-buttons {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .appt-form-panel:not([open]) .appt-form-panel-body {
    display: none;
  }
  .appt-form-panel--status {
    border-color: #bbf7d0;
  }
}

/* Calendar — book icon centered in open hour slots */
.cal-week-slot--bookable {
  z-index: 1;
}
.cal-slot-add {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.cal-week-slot--bookable:hover .cal-slot-add,
.cal-slot-add:focus-visible {
  opacity: 1;
}
.cal-slot-add:hover,
.cal-slot-add:focus-visible {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.04);
  outline: none;
}
.cal-week-slot--bookable:hover {
  background: rgba(15, 23, 42, 0.03);
}
.cal-week-wrap--compact .cal-slot-add iconify-icon {
  width: 16px !important;
  height: 16px !important;
}

.staff-color-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.35rem;
  vertical-align: middle;
}
.staff-chip {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.85rem;
  background: color-mix(in srgb, var(--staff-color) 18%, white);
  border: 1px solid color-mix(in srgb, var(--staff-color) 40%, white);
}
.staff-assign-list { display: grid; gap: 0.45rem; margin-top: 0.35rem; max-width: 420px; }
.staff-assign-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  cursor: pointer;
}
.staff-assign-item input { margin: 0; }
.staff-assign-group-label {
  margin: 1rem 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #64748b;
}
.staff-assign-group-label:first-of-type { margin-top: 0.35rem; }
.staff-assign-group-label--busy { margin-top: 1.15rem; }
.staff-assign-item--available { font-weight: 500; }
.staff-assign-fav { color: #f59e0b; }
.staff-assign-default {
  display: inline-block;
  margin-left: 0.2rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: #dbeafe;
  color: #1d4ed8;
}
.staff-assign-busy-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  font-size: 0.88rem;
  max-width: 420px;
}
.staff-assign-busy-list li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0;
}
.staff-assign-empty {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: #b45309;
}
.appt-needs-staff-label {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #fef3c7;
  color: #92400e;
}
.appt-row-needs-staff td { background: #fffbeb; }
.appt-delete-card {
  border-color: #fecaca;
  background: #fffafa;
}
.appt-delete-card h3 { color: #991b1b; }
.appt-tag-not-confirmed { letter-spacing: 0.02em; }
.appt-tag-expired { letter-spacing: 0.02em; }
.appt-booking-tag {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: middle;
}
.appt-booking-tag--not-confirmed { background: #fef3c7; color: #92400e; }
.appt-booking-tag--expired { background: #e2e8f0; color: #64748b; }

.appt-detail-client {
  margin: 1.25rem 0 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}
.appt-detail-client-heading {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text, #0f172a);
}
.appt-detail-fields {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}
.appt-detail-field {
  display: grid;
  grid-template-columns: minmax(6.5rem, 7.75rem) minmax(0, 1fr);
  gap: 0.65rem 1rem;
  align-items: start;
}
.appt-detail-field dt {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.appt-detail-field dd {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text, #0f172a);
  word-break: break-word;
}
.appt-detail-address {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.appt-detail-address-text {
  flex: 1 1 auto;
  min-width: 0;
}
.appt-detail-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.appt-detail-phone-text {
  flex: 0 1 auto;
  min-width: 0;
}
.appt-detail-client .client-sms-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  padding: 0.15rem;
  border: none;
  background: transparent;
  color: var(--primary, #2563eb);
  text-decoration: none;
  flex-shrink: 0;
}
.appt-detail-client .client-sms-link:hover {
  color: var(--primary-dark, #1d4ed8);
}
.appt-detail-client .client-sms-icon {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.appt-detail-client .client-sms-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.appt-detail-client .client-map-directions-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  margin-top: 0.05rem;
  padding: 0.35rem;
  border: none;
  background: transparent;
  color: var(--primary, #2563eb);
  text-decoration: none;
  flex-shrink: 0;
  border-radius: 999px;
  transition: color 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
}
.appt-detail-client .client-map-directions-link:hover {
  color: var(--primary-dark, #1d4ed8);
}
.appt-detail-client .client-map-directions-link:active,
.appt-detail-client .client-map-directions-link:focus-visible {
  color: var(--primary-dark, #1d4ed8);
  background: rgba(37, 99, 235, 0.12);
  transform: scale(1.08);
  outline: none;
}
.appt-detail-client .client-map-directions-icon {
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: width 0.15s ease, height 0.15s ease;
}
.appt-detail-client .client-map-directions-link:active .client-map-directions-icon,
.appt-detail-client .client-map-directions-link:focus-visible .client-map-directions-icon {
  width: 2rem;
  height: 2rem;
}
.appt-detail-client .client-map-directions-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.appt-detail-client-actions {
  margin: 0.85rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border, #e2e8f0);
  font-size: 0.9rem;
}

.appt-pending-flow {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}
.appt-pending-flow-title {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}
.appt-pending-steps {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.55rem;
}
.appt-pending-steps li {
  color: #334155;
}
.appt-pending-steps li.is-done { color: #166534; }
.appt-pending-steps li.is-current { color: #92400e; font-weight: 600; }
.appt-pending-steps li.is-waiting { color: #94a3b8; }
.appt-pending-steps .muted {
  display: block;
  font-weight: 400;
  font-size: 0.88rem;
  margin-top: 0.15rem;
}
.btn-sm {
  padding: 0.25rem 0.55rem;
  font-size: 0.82rem;
}
.catalog-name-btn .staff-color-dot { margin-right: 0.4rem; }

.settings-subsection-title {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.work-hours-block { margin: 0.5rem 0 0; }
.work-hours-intro { margin: 0 0 0.65rem; font-size: 0.9rem; }
.work-hours-table {
  width: 100%;
  max-width: 520px;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.work-hours-table th,
.work-hours-table td {
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}
.work-hours-table input[type="time"] {
  width: 100%;
  min-width: 0;
  padding: 0.3rem 0.4rem;
}
.work-hours-table input[type="checkbox"] { margin: 0; }
.work-hours-block--readonly { opacity: 0.72; pointer-events: none; }
.staff-hours-note { margin: 0 0 0.65rem; font-size: 0.85rem; line-height: 1.4; }

/* Appointments dashboard */
.appt-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}
.appt-page-header h2 {
  margin: 0;
  flex: 1 1 auto;
}
.appt-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.appt-status-legend {
  margin: 0 0 1rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  gap: 0.75rem 1.25rem;
}
.appt-status-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  vertical-align: middle;
}
.appt-dash-status,
.appt-dash-col-status {
  width: 2.75rem;
  text-align: center;
}
.appt-summary-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.appt-summary-card {
  display: block;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.appt-summary-card:hover {
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}
.appt-summary-card--today {
  border-color: #bfdbfe;
  background: linear-gradient(135deg, #eff6ff 0%, #fff 100%);
}
.appt-summary-card--pending {
  border-color: #fde68a;
  background: linear-gradient(135deg, #fffbeb 0%, #fff 100%);
}
.appt-summary-card--confirmed {
  border-color: #bbf7d0;
  background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%);
}
.appt-summary-card--upcoming {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}
.appt-summary-card--pending.appt-summary-card--upcoming {
  border-color: #fcd34d;
  background: linear-gradient(135deg, #fff7ed 0%, #fff 100%);
}
.appt-summary-card--confirmed.appt-summary-card--upcoming {
  border-color: #86efac;
  background: linear-gradient(135deg, #ecfdf5 0%, #fff 100%);
}
.appt-summary-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.appt-summary-value {
  display: block;
  font-size: 1.75rem;
  line-height: 1.2;
  margin: 0.2rem 0 0.15rem;
  color: #0f172a;
}
.appt-summary-meta {
  display: block;
  font-size: 0.82rem;
  color: #64748b;
}
.appt-alert-toolbar {
  margin-bottom: 1rem;
}
.appt-dashboard-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.65rem;
  width: 100%;
}
.appt-dashboard-toolbar .appt-layout-toggle {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
}
.appt-dashboard-toolbar .appt-layout-btn {
  flex: 1 1 0;
  text-align: center;
}
.appt-dashboard-toolbar + .appt-status-legend {
  margin-top: 0;
  margin-bottom: 0.85rem;
}
.appt-dashboard-toolbar-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #64748b;
}
.appt-layout-toggle {
  display: inline-flex;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.appt-layout-btn {
  padding: 0.45rem 0.85rem;
  border: 0;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}
.appt-layout-btn + .appt-layout-btn {
  border-left: 1px solid #e2e8f0;
}
.appt-layout-btn.is-active {
  background: #0f172a;
  color: #fff;
  font-weight: 600;
}
.appt-layout-btn:hover:not(.is-active) {
  background: #f8fafc;
}
.appt-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 46%);
  gap: 1rem;
  align-items: start;
}
.appt-dashboard.is-layout-both {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 48%);
}
.appt-dashboard.is-layout-list {
  grid-template-columns: 1fr;
}
.appt-dashboard.is-layout-list .appt-dashboard-side {
  display: none;
}
.appt-dashboard.is-layout-calendar {
  grid-template-columns: 1fr;
}
.appt-dashboard.is-layout-calendar .appt-dashboard-main {
  display: none;
}
.appt-dashboard.is-layout-calendar .cal-week-wrap--compact .cal-week-grid {
  width: 100%;
  min-width: 0;
  grid-template-columns: 44px repeat(var(--cal-cols, 6), minmax(0, 1fr));
}
.appt-dashboard.is-layout-calendar .cal-week-wrap--compact.cal-week-wrap--week .cal-week-grid {
  grid-template-columns: 36px repeat(var(--cal-cols, 6), minmax(0, 1fr));
}
.appt-dashboard.is-layout-calendar .cal-week-wrap--compact .cal-week-day,
.appt-dashboard.is-layout-calendar .cal-week-wrap--compact .cal-week-times {
  height: calc(var(--cal-hours) * 48px);
}
.appt-dashboard.is-layout-calendar .cal-week-wrap--compact .cal-week-slot {
  top: calc(var(--cal-hour) * 48px);
  height: 48px;
}
.appt-dashboard.is-layout-calendar .cal-week-wrap--compact .cal-week-time {
  top: calc(var(--cal-hour) * 48px);
  height: 48px;
  font-size: 0.7rem;
}
.appt-dashboard.is-layout-calendar .cal-week-wrap--compact .cal-week-head {
  font-size: 0.8rem;
  padding: 0.5rem 0.35rem;
}
.appt-dashboard.is-layout-calendar .cal-week-wrap--compact .cal-week-event {
  font-size: 0.68rem;
  padding: 0.15rem 0.3rem;
}
.appt-dashboard-main {
  min-width: 0;
}
.appt-dashboard-side {
  min-width: 0;
  position: sticky;
  top: 1rem;
}
.appt-dash-list-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.85rem 1rem 1rem;
}
.appt-dash-tabs {
  margin-bottom: 0.85rem;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid #e2e8f0;
  margin: 0;
  padding: 0;
}
.appt-dash-tab {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.5rem 0.45rem 0.4rem;
  text-decoration: none;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 600;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  position: relative;
}
.appt-dash-tab + .appt-dash-tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 1px;
  background: #e2e8f0;
}
.appt-dash-tab.is-active {
  color: #2563eb;
  border-bottom-color: #2563eb;
  font-weight: 600;
}
.appt-dash-tab:hover:not(.is-active) {
  color: #334155;
  background: #f8fafc;
}
.appt-dash-tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  color: inherit;
}
.appt-dash-tab-icon iconify-icon {
  width: 1.35rem;
  height: 1.35rem;
}
.appt-dash-tab-count {
  line-height: 1;
  font-size: 0.68rem;
  font-weight: 600;
  color: inherit;
  opacity: 0.9;
}
.appt-dash-tab.is-active .appt-dash-tab-count {
  opacity: 1;
}
.appt-dash-status-filter {
  width: 100%;
  margin: 0;
}
.appt-dash-status-filter label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: #64748b;
}
.appt-dash-status-filter select {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
.appt-dash-table-wrap {
  overflow-x: auto;
}
.appt-dash-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  white-space: nowrap;
}
.appt-dash-when {
  white-space: nowrap;
  vertical-align: top;
}
.appt-dash-when-time {
  display: block;
  font-size: 0.95rem;
}
.appt-dash-when-date {
  display: block;
  font-size: 0.8rem;
}
.appt-dash-schedule-inner {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}
.appt-dash-schedule-meta strong {
  display: block;
  font-size: 0.92rem;
}
.appt-dash-schedule-name {
  color: inherit;
  text-decoration: none;
}
.appt-dash-schedule-name:hover {
  text-decoration: underline;
}
.appt-dash-schedule-service {
  display: block;
  font-size: 0.82rem;
  line-height: 1.35;
  margin-top: 0.1rem;
}
.appt-dash-route,
.appt-dash-col-route {
  width: 4.5rem;
  text-align: center;
  white-space: nowrap;
}
.appt-route-btn {
  padding: 0.3rem 0.55rem;
  font-size: 0.78rem;
  line-height: 1.2;
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}
.appt-route-btn:hover {
  background: #15803d;
  border-color: #15803d;
  color: #fff;
}
.appt-route-empty {
  font-size: 0.85rem;
}
.appt-dash-staff,
.appt-dash-col-staff {
  width: 3rem;
  text-align: center;
}
.appt-dash-staff-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}
.appt-dash-client-inner {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}
.appt-dash-avatar {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  background: #e2e8f0;
  color: #334155;
}
.appt-dash-avatar--staff {
  background: color-mix(in srgb, var(--avatar-color, #6366f1) 22%, white);
  color: #0f172a;
  border: 1px solid color-mix(in srgb, var(--avatar-color, #6366f1) 45%, white);
}
.appt-dash-client-meta strong {
  display: block;
  font-size: 0.92rem;
}
.appt-dash-client-line {
  display: block;
  font-size: 0.8rem;
  line-height: 1.35;
}
.appt-dash-service {
  font-size: 0.88rem;
  max-width: 12rem;
}
.appt-dash-list-count {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
}
.appt-dash-panel-list {
  display: grid;
  gap: 0.75rem;
}
.appt-dash-panel {
  display: block;
}
.appt-dash-panel.doc-mobile-panel::before {
  display: none;
}
.appt-dash-panel-head {
  padding: 0.55rem 0.85rem 0.4rem;
  border-bottom: 1px solid #e2e8f0;
}
.appt-dash-panel-when {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
}
.appt-dash-panel-when:hover {
  color: #2563eb;
  text-decoration: underline;
}
.appt-dash-panel-body {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem 0.55rem;
}
.appt-dash-panel-schedule-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  line-height: 1.3;
  overflow: hidden;
}
.appt-dash-panel-name-line {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  flex: 0 1 auto;
  max-width: 100%;
}
.appt-dash-status-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin: 0;
}
.appt-dash-panel-client {
  flex: 0 1 auto;
  min-width: 0;
  font-weight: 700;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.appt-dash-panel-client:hover {
  color: #2563eb;
  text-decoration: underline;
}
.appt-dash-panel-service {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 0.76rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.appt-dash-panel-service::before {
  content: "·";
  margin-right: 0.35rem;
  color: #94a3b8;
}
.appt-dash-panel-meta-row {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.35rem;
}
.appt-dash-panel-staff-avatar {
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.65rem;
}
.appt-dash-panel-staff-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: #e2e8f0;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 700;
}
.appt-dash-route-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 6px;
  color: #0f172a;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e2e8f0;
}
.appt-dash-route-icon iconify-icon {
  width: 1.1rem;
  height: 1.1rem;
}
.appt-dash-route-icon:hover {
  color: #2563eb;
  border-color: #bfdbfe;
  background: #eff6ff;
}
.appt-dash-panel-action-row {
  flex: 0 0 auto;
  margin: 0;
}
.appt-customer-photos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}
.appt-customer-photo {
  display: block;
  width: 5rem;
  height: 5rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}
.appt-customer-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.appt-dash-empty {
  margin: 0.5rem 0;
}
.appt-cal-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.75rem 0.65rem 0.85rem;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
.appt-cal-panel-head {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}
.appt-cal-nav-btn {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  text-decoration: none;
  font-size: 1.1rem;
  line-height: 1;
}
.appt-cal-nav-btn:hover {
  background: #f1f5f9;
}
.appt-cal-panel-title {
  flex: 1;
  text-align: center;
  min-width: 0;
}
.appt-cal-panel-title strong {
  display: block;
  font-size: 0.92rem;
}
.appt-cal-panel-sub,
.appt-cal-panel-range {
  display: block;
  font-size: 0.75rem;
  line-height: 1.35;
}
.cal-week-wrap--compact .cal-week-grid {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  grid-template-columns: 36px repeat(var(--cal-cols, 5), minmax(0, 1fr));
}
.cal-week-wrap--compact.cal-week-wrap--week {
  overflow-x: hidden;
}
.cal-week-wrap--compact.cal-week-wrap--week .cal-week-grid {
  grid-template-columns: 32px repeat(var(--cal-cols, 6), minmax(0, 1fr));
}
.cal-week-wrap--compact.cal-week-wrap--day .cal-week-grid {
  min-width: 0;
  grid-template-columns: 52px minmax(0, 1fr);
}
.cal-week-wrap--compact.cal-week-wrap--day .cal-week-time {
  font-size: 0.64rem;
  padding: 0.12rem 0.3rem;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.appt-cal-view-tabs {
  display: flex;
  gap: 0.35rem;
  margin: 0 0 0.75rem;
}
.appt-cal-view-tab {
  flex: 1 1 0;
  text-align: center;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: #e2e8f0;
  color: #475569;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
}
.appt-cal-view-tab.is-active {
  background: #0f172a;
  color: #fff;
}
.appt-cal-month {
  margin-top: 0.35rem;
}
.appointment-calendar-grid--compact {
  margin-top: 0;
}
.appointment-calendar-grid--compact .cal-day.is-closed .cal-day-num {
  color: #94a3b8;
}
.cal-day-status-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  margin-top: 0.2rem;
}
.cal-day-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
}
.cal-day-status-badge.is-confirmed {
  background: #22c55e;
  color: #fff;
}
.cal-day-status-badge.is-requested {
  background: #f59e0b;
  color: #fff;
}
.cal-day-status-badge.is-pending-verify {
  background: #ea580c;
  color: #fff;
}
.cal-day-status-badge.is-completed {
  background: #2563eb;
  color: #fff;
}
.cal-week-wrap--compact .cal-week-head {
  padding: 0.35rem 0.2rem;
  font-size: 0.68rem;
}
.cal-week-wrap--compact .cal-day-add--week iconify-icon {
  width: 14px;
  height: 14px;
}
.cal-week-wrap--compact .cal-week-time {
  font-size: 0.62rem;
  padding: 0.1rem 0.2rem;
}
.cal-week-wrap--compact .cal-week-day {
  height: calc(var(--cal-hours) * 40px);
}
.cal-week-wrap--compact .cal-week-times {
  height: calc(var(--cal-hours) * 40px);
}
.cal-week-wrap--compact .cal-week-slot {
  top: calc(var(--cal-hour) * 40px);
  height: 40px;
}
.cal-week-wrap--compact .cal-week-time {
  top: calc(var(--cal-hour) * 40px);
  height: 40px;
}
.cal-week-wrap--compact .cal-week-event {
  font-size: 0.58rem;
  padding: 0.1rem 0.2rem;
}
.appt-dashboard.is-layout-both .cal-week-wrap--compact .cal-week-event.cal-week-event--chip {
  left: 2px;
  right: 2px;
  width: auto;
  height: auto !important;
  min-height: 17px;
  max-height: 2.6em;
  margin-left: 0;
  padding: 0.12rem 0.2rem 0.12rem 0.35rem;
  border-radius: 4px;
  transform: none;
  overflow: hidden;
  box-sizing: border-box;
  line-height: 1.15;
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
}
.appt-dashboard.is-layout-both .cal-week-wrap--compact .cal-week-event--chip::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  margin-top: 0.2em;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.9;
}
.appt-dashboard.is-layout-both .cal-week-wrap--compact .cal-week-event--chip .cal-week-event-time,
.appt-dashboard.is-layout-both .cal-week-wrap--compact .cal-week-event--chip .cal-week-event-title,
.appt-dashboard.is-layout-both .cal-week-wrap--compact .cal-week-event--chip .cal-week-event-staff {
  display: none !important;
}
.appt-dashboard.is-layout-both .cal-week-wrap--compact .cal-week-event--chip .cal-week-event-service {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.56rem;
  font-weight: 600;
  overflow: hidden;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.2;
}
.cal-week-now-line {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 3;
  pointer-events: none;
  transform: translateY(-50%);
}
.cal-week-now-line--week {
  z-index: 4;
}
.cal-week-now-label {
  position: absolute;
  left: 0.35rem;
  top: -1.15rem;
  width: 56px;
  box-sizing: border-box;
  font-size: 0.68rem;
  font-weight: 700;
  color: #ff0000;
  background: #fff;
  padding: 0 0.2rem;
  white-space: nowrap;
  line-height: 1.2;
}
.cal-week-now-rail {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 11px;
}
.cal-week-now-dot {
  flex: 0 0 11px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff0000;
}
.cal-week-now-dash {
  flex: 1 1 auto;
  height: 2px;
  margin-left: 0;
  background: repeating-linear-gradient(
    to right,
    #ff0000 0,
    #ff0000 9px,
    transparent 9px,
    transparent 13.5px
  );
}
@media (max-width: 1100px) {
  .appt-dashboard.is-layout-both {
    grid-template-columns: 1fr;
  }
  .appt-dashboard.is-layout-both .appt-dashboard-side {
    position: static;
  }
  .appt-summary-cards {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .appt-summary-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .appt-summary-cards {
    grid-template-columns: 1fr;
  }
  .appt-page-header {
    flex-direction: column;
    align-items: stretch;
  }
  .appt-page-header h2 {
    flex: none;
  }
  .appt-page-actions {
    width: 100%;
    justify-content: center;
  }
  .appt-dashboard-toolbar {
    width: 100%;
  }
  .appt-layout-toggle {
    display: flex;
    width: 100%;
    min-width: 0;
  }
  .appt-layout-btn {
    flex: 1 1 0;
    text-align: center;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }
  .appt-dash-tabs {
    width: 100%;
  }
  .appt-dash-list-toolbar .appt-status-filter {
    width: 100%;
  }
  .appt-dash-panel-body {
    flex-wrap: wrap;
    row-gap: 0.35rem;
  }
  .appt-dash-panel-schedule-copy {
    flex: 1 1 100%;
  }
  .appt-dash-panel-meta-row {
    margin-right: auto;
  }
  .appt-detail-field {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
  .cal-week-wrap--compact.cal-week-wrap--week {
    overflow-x: hidden;
    margin-top: 0.35rem;
  }
  .cal-week-wrap--compact.cal-week-wrap--week .cal-week-grid {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    grid-template-columns: 26px repeat(var(--cal-cols, 6), minmax(0, 1fr));
  }
  .cal-week-wrap--compact.cal-week-wrap--week .cal-week-head {
    padding: 0.15rem 0.02rem;
    font-size: 0.42rem;
    line-height: 1.1;
  }
  .cal-week-wrap--compact.cal-week-wrap--week .cal-week-dow {
    font-size: 0.42rem;
    font-weight: 700;
    letter-spacing: -0.03em;
  }
  .cal-week-wrap--compact.cal-week-wrap--week .cal-week-date {
    font-size: 0.4rem;
    color: #64748b;
    letter-spacing: -0.03em;
  }
  .cal-week-wrap--compact.cal-week-wrap--week .cal-closed-label {
    font-size: 0.38rem;
    margin-top: 0.1rem;
  }
  .cal-week-wrap--compact.cal-week-wrap--week .cal-week-time {
    font-size: 0.5rem;
    padding: 0 0.05rem;
    letter-spacing: -0.02em;
  }
  .cal-week-wrap--compact.cal-week-wrap--week .cal-week-event,
  .appt-dashboard.is-layout-both .cal-week-wrap--compact.cal-week-wrap--week .cal-week-event.cal-week-event--chip {
    font-size: 0.48rem;
    padding: 0.08rem 0.1rem;
    line-height: 1.1;
  }
  .cal-week-wrap--compact.cal-week-wrap--week .cal-week-now-label {
    width: 26px;
    font-size: 0.5rem;
    left: 0.1rem;
  }
  .appt-dashboard.is-layout-calendar .cal-week-wrap--compact.cal-week-wrap--week .cal-week-grid {
    grid-template-columns: 26px repeat(var(--cal-cols, 6), minmax(0, 1fr));
  }
}
