/**
 * Calendrier mensuel des réservations du local (vue localresa).
 * Rose  = demande en attente de validation.
 * Rouge = réservation validée par le gérant (local bloqué).
 */

.scm-resa-calendar {
  margin: 0 0 2rem;
}

.scm-resa-calendar__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.scm-resa-calendar__title {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: capitalize;
}

.scm-resa-calendar__nav a {
  white-space: nowrap;
}

.scm-resa-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.scm-resa-legend__key {
  display: inline-flex;
  align-items: center;
}

.scm-resa-legend__key::before {
  content: "";
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  margin-right: 0.4rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.scm-resa-legend__key.is-requested::before {
  background: #f8c8dc;
}

.scm-resa-legend__key.is-blocked::before {
  background: #e23b3b;
}

table.scm-resa-grid {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

table.scm-resa-grid th {
  padding: 0.4rem;
  text-align: center;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

table.scm-resa-grid td {
  vertical-align: top;
  height: 6.5rem;
  padding: 0.35rem;
  border: 1px solid #d5d5d5;
  background: #fff;
}

td.scm-resa-day.is-out {
  background: #f4f4f4;
  color: #9a9a9a;
}

td.scm-resa-day.is-today {
  outline: 2px solid #1b71c4;
  outline-offset: -2px;
}

td.scm-resa-day.is-requested {
  background: #f8c8dc;
}

td.scm-resa-day.is-blocked {
  background: #e23b3b;
  color: #fff;
}

.scm-resa-daynum {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

ul.scm-resa-slots {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.scm-resa-slots li {
  margin: 0 0 0.15rem;
}

.scm-resa-slot {
  display: block;
  font-size: 0.75rem;
  line-height: 1.3;
}

td.scm-resa-day.is-blocked .scm-resa-slot {
  color: #fff;
}

@media (max-width: 600px) {
  table.scm-resa-grid td {
    height: auto;
    min-height: 3.5rem;
  }

  .scm-resa-slot {
    font-size: 0.7rem;
  }
}
