.bk-page .bk-main {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 0 48px;
}

.bk-app {
  width: 100%;
}

.bk-hero {
  padding: 16px 16px 8px;
}

.bk-hero h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
}

.bk-hero p {
  margin: 6px 0 0;
  font-size: 0.88rem;
  color: var(--mage-muted);
}

.bk-tabs {
  display: flex;
  gap: 0;
  margin: 12px 16px 0;
  background: var(--mage-white);
  border: 1px solid var(--mage-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.bk-tab {
  flex: 1;
  padding: 12px;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mage-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
}

.bk-tab.is-active {
  color: var(--mage-green);
  border-bottom-color: var(--mage-green);
  background: var(--mage-mint-light);
}

.bk-section-title {
  margin: 20px 16px 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mage-muted);
}

.bk-list {
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bk-card {
  background: var(--mage-white);
  border: 1px solid var(--mage-border);
  border-radius: var(--radius-md);
  padding: 14px;
}

.bk-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.bk-card-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.bk-card-meta {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--mage-muted);
  line-height: 1.4;
}

.bk-badge {
  flex-shrink: 0;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.bk-badge--pending { background: #fff3e0; color: #e65100; }
.bk-badge--confirmed { background: #e8f4ef; color: #1a5c40; }
.bk-badge--awaiting_payment { background: #e3eef9; color: #1565c0; }
.bk-badge--in_progress { background: #e8f0fa; color: #0d47a1; }
.bk-badge--completed { background: #f0f0f0; color: #555; }
.bk-badge--cancelled { background: #fdecea; color: #b71c1c; }
.bk-badge--refused { background: #fdecea; color: #b71c1c; }
.bk-badge--other { background: #f5f5f0; color: #666; }

.bk-card-price {
  margin-top: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--mage-green-dark);
}

.bk-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.bk-btn {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--mage-border);
  background: var(--mage-white);
  color: var(--mage-ink);
  cursor: pointer;
  font-family: inherit;
}

.bk-btn--primary {
  background: var(--mage-green);
  border-color: var(--mage-green);
  color: #fff;
}

.bk-btn--danger {
  border-color: #ffcdd2;
  color: #b71c1c;
  background: #fff5f5;
}

.bk-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.bk-dispatch {
  margin: 12px 16px 0;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid #ffb74d;
  background: #fff8e1;
}

.bk-dispatch h2 {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.bk-empty {
  margin: 24px 16px;
  padding: 28px 20px;
  text-align: center;
  color: var(--mage-muted);
  font-size: 0.9rem;
  background: var(--mage-mint-light);
  border-radius: var(--radius-md);
}

.bk-empty strong {
  display: block;
  margin-bottom: 8px;
  color: var(--mage-ink);
}

.bk-toast {
  margin: 12px 16px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
}

.bk-toast.ok { background: #e8f5ee; color: #1a5c40; }
.bk-toast.err { background: #fdecea; color: #b71c1c; }

.bk-app-hint {
  margin: 20px 16px 0;
  padding: 12px 14px;
  font-size: 0.85rem;
  color: var(--mage-muted);
  background: #f8f8f4;
  border-radius: var(--radius-md);
  line-height: 1.45;
}

.bk-loading {
  margin: 32px auto;
  text-align: center;
  color: var(--mage-muted);
}

.bk-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 16px 12px;
}

.bk-nav-links a {
  font-size: 0.85rem;
  font-weight: 600;
}

/* Lien détail prestation (listes Mes réservations / Demandes reçues) */
.bk-card-view {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--mage-green);
  background: var(--mage-mint-light);
  color: var(--mage-green-dark);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
  font-family: inherit;
}

.bk-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.bk-card-actions .bk-card-view {
  flex: 1;
  min-width: 120px;
  margin-top: 0;
  width: auto;
}

.bk-card-view--ghost {
  background: #fff;
  border-style: dashed;
}

.bk-mini-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef6f3;
  color: #2d584b;
  margin-right: 4px;
}

.bk-card-view:hover {
  background: var(--mage-green);
  color: #fff;
}

.bk-card-view:focus-visible {
  outline: 2px solid var(--mage-green);
  outline-offset: 2px;
}

/* ── Vue Calendrier (style agenda Apple) ─────────────────────────────────── */

.bk-view-toggle {
  display: flex;
  margin: 4px 16px 12px;
  padding: 3px;
  background: #e8eeeb;
  border-radius: 12px;
  gap: 2px;
}

.bk-view-btn {
  flex: 1;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  color: #5a7269;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.bk-view-btn.is-active {
  background: #fff;
  color: #1a2e28;
  box-shadow: 0 1px 3px rgba(26, 46, 40, 0.12);
}

.bk-cal-wrap {
  padding: 0 16px 8px;
}

.bk-cal {
  background: #fff;
  border: 1px solid var(--mage-border);
  border-radius: 18px;
  padding: 14px 12px 16px;
  box-shadow: 0 10px 28px rgba(26, 46, 40, 0.06);
}

.bk-cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.bk-cal-month {
  margin: 0;
  flex: 1;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a2e28;
  text-transform: capitalize;
  letter-spacing: -0.01em;
}

.bk-cal-nav {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #f1f5f3;
  color: #1a2e28;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.bk-cal-nav:hover {
  background: #e3f2ef;
}

.bk-cal-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #5a7269;
}

.bk-cal-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.bk-cal-today-btn {
  margin-left: auto;
  border: none;
  background: transparent;
  color: var(--mage-green);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 6px;
}

.bk-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.bk-dot--sap {
  background: #5b8def;
}

.bk-dot--pro {
  background: #366c5d;
}

.bk-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}

.bk-cal-weekdays span {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #8a9a94;
  padding: 4px 0;
}

.bk-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.bk-cal-day {
  position: relative;
  min-height: 44px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #1a2e28;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  padding: 4px 0 2px;
}

.bk-cal-day > span:first-child {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  line-height: 1;
}

.bk-cal-day--pad {
  visibility: hidden;
  pointer-events: none;
}

.bk-cal-day--muted {
  color: #a8b5b0;
}

.bk-cal-day--today > span:first-child {
  font-weight: 700;
  box-shadow: inset 0 0 0 1.5px #c5d8d1;
}

.bk-cal-day--selected > span:first-child {
  background: var(--mage-green);
  color: #fff;
  font-weight: 700;
  box-shadow: none;
}

.bk-cal-day--selected.bk-cal-day--today > span:first-child {
  box-shadow: none;
}

.bk-cal-day:hover:not(.bk-cal-day--pad):not(.bk-cal-day--selected)
  > span:first-child {
  background: #eef6f3;
}

.bk-cal-dots {
  display: flex;
  gap: 3px;
  min-height: 6px;
  align-items: center;
  justify-content: center;
}

.bk-cal-day--selected .bk-dot--sap {
  background: #5b8def;
}

.bk-cal-day--selected .bk-dot--pro {
  background: #366c5d;
}

.bk-cal-day-panel {
  margin-top: 14px;
}

.bk-cal-day-title {
  margin: 0 2px 10px;
  font-size: 1rem;
  font-weight: 700;
  color: #1a2e28;
  text-transform: capitalize;
}

.bk-list--day {
  padding: 0;
}

.bk-cal-empty {
  margin: 0;
  padding: 20px 14px;
  text-align: center;
  color: var(--mage-muted);
  font-size: 0.88rem;
  background: #f7faf9;
  border-radius: 12px;
  border: 1px dashed #d7e3de;
}

.bk-card--pro {
  border-color: #c5ddd4;
}

.bk-list-wrap {
  /* wrapper for list mode */
}

@media (min-width: 720px) {
  .bk-cal-day {
    min-height: 48px;
    font-size: 0.9rem;
  }

  .bk-cal-day > span:first-child {
    width: 30px;
    height: 30px;
  }
}
