.plan-month-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.plan-month-title { font-size: 1.2em; font-weight: 600; }
.plan-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.85em; color: #9aa3b2; margin-bottom: 16px; }
.plan-legend span::before { content: ''; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.plan-legend .lg-available::before { background: #2d6a4f; }
.plan-legend .lg-blocked::before { background: #555; }
.plan-legend .lg-unavailable::before { background: #555; }
.plan-legend .lg-booked::before { background: #d62828; }
.plan-legend .lg-travel::before { background: #e85d04; }
.plan-legend .lg-mine::before { background: #ff0000; }

.plan-cal-wrap { overflow-x: auto; }
.plan-cal { width: 100%; min-width: 720px; border-collapse: collapse; }
.plan-cal th { padding: 8px 4px; font-size: 0.8em; color: #9aa3b2; text-align: center; border-bottom: 1px solid var(--border); }
.plan-cal td { vertical-align: top; border: 1px solid var(--border); min-height: 100px; width: 14.28%; padding: 6px; background: var(--bg-elevated); }
.plan-cal td.outside { opacity: 0.35; pointer-events: none; }
.plan-cal td.past { opacity: 0.5; }
.plan-day-num { font-weight: 700; font-size: 0.9em; margin-bottom: 6px; }
.plan-day-num.today { color: #ff0000; }
.plan-slots { display: flex; flex-direction: column; gap: 3px; }
.plan-slot {
  font-size: 0.72em; padding: 4px 5px; border-radius: 4px; border: 1px solid transparent;
  text-align: center; line-height: 1.2;
}
.plan-slot.available { background: rgba(45,106,79,0.25); border-color: #2d6a4f; color: #b7e4c7; cursor: pointer; }
.plan-slot.available:hover { background: rgba(45,106,79,0.45); }
.plan-slot.available.selected { background: #ff0000; border-color: #ff0000; color: #fff; }
.plan-slot.blocked { background: rgba(85,85,85,0.35); color: #888; cursor: pointer; }
.plan-slot.blocked:hover { background: rgba(85,85,85,0.55); }
.plan-slot.booked { background: rgba(214,40,40,0.2); color: #ff6b6b; cursor: pointer; }
.plan-slot.booked:hover { background: rgba(214,40,40,0.35); }
.plan-slot.travel { background: rgba(232,93,4,0.2); color: #f48c06; cursor: default; }
.plan-slot.unavailable { background: rgba(85,85,85,0.35); color: #888; cursor: default; }
.plan-slot.mine { background: rgba(214,40,40,0.35); border-color: #ff0000; color: #ffb3b3; cursor: default; font-weight: 600; }
.plan-slot.past { opacity: 0.4; pointer-events: none; }

/* Vue mobile compacte — un mois par écran */
.plan-cal-wrap--compact { overflow: visible; }
.plan-cal-compact {
  min-width: 0;
  table-layout: fixed;
}
.plan-cal-compact th {
  padding: 6px 2px;
  font-size: 0.72em;
}
.plan-cal-compact td {
  min-height: 0;
  height: 52px;
  padding: 4px 2px;
  text-align: center;
  vertical-align: middle;
  cursor: default;
  transition: background 0.15s;
}
.plan-cal-compact td[data-date] { cursor: pointer; }
.plan-cal-compact td.has-slots {
  background: rgba(45, 106, 79, 0.12);
}
.plan-cal-compact td.has-slots:active,
.plan-cal-compact td.day-selected {
  background: rgba(45, 106, 79, 0.28);
  outline: 2px solid #2d6a4f;
  outline-offset: -2px;
}
.plan-cal-compact td.has-mine {
  background: rgba(214, 40, 40, 0.15);
}
.plan-cal-compact .plan-day-num {
  margin: 0;
  font-size: 0.95em;
  line-height: 1.2;
}
.plan-day-badge {
  display: inline-block;
  margin-top: 2px;
  min-width: 18px;
  padding: 1px 5px;
  border-radius: 999px;
  font-size: 0.62em;
  font-weight: 700;
  background: #2d6a4f;
  color: #fff;
  line-height: 1.4;
}
.plan-day-badge.mine {
  background: var(--red, #ff0000);
  font-size: 0.55em;
  padding: 2px 4px;
}

.plan-day-panel-wrap { margin-top: 12px; }
.plan-day-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 12px;
}
.plan-day-panel-title {
  font-weight: 700;
  text-transform: capitalize;
  margin-bottom: 4px;
  font-size: 0.95em;
}
.plan-day-panel-hint {
  font-size: 0.75em;
  color: #9aa3b2;
  margin-bottom: 10px;
}
.plan-day-panel-slots {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.plan-day-panel-slots::-webkit-scrollbar { height: 4px; }
.plan-day-panel-slots::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.plan-mobile-slot {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid #2d6a4f;
  background: rgba(45, 106, 79, 0.2);
  color: #b7e4c7;
  font-weight: 600;
  font-size: 0.95em;
  cursor: pointer;
  white-space: nowrap;
}
.plan-mobile-slot.selected {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.plan-panel-admin-slot {
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-width: 56px;
  border: none;
  font: inherit;
}

@media (max-width: 768px) {
  .plan-month-nav .btn { padding: 8px 14px; min-width: 44px; }
  .plan-month-title { font-size: 1.05em; }
}