.agenda-legend {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 0.9rem;
}
.agenda-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.agenda-swatch {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    border: 1px solid #d0d0d0;
}
.agenda-grid {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    overflow: visible;
    padding: 0 6px;
}
.agenda-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 2px;
    margin-bottom: 8px;
}
.agenda-day {
    flex: 0 0 150px;
}
.agenda-day-header {
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 6px;
}
.agenda-day-body {
    position: relative;
    border-radius: 10px;
    background: repeating-linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.04),
        rgba(0, 0, 0, 0.04) 1px,
        transparent 1px,
        transparent calc(var(--slot-height) * 4)
    );
    height: calc(var(--slot-height) * var(--slots));
}
.agenda-block {
    position: absolute;
    left: 0;
    width: 100%;
    border-radius: 10px;
    padding: 0 6px;
    box-sizing: border-box;
    font-size: 0.7rem;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f2a2e;
    cursor: pointer;
}
.agenda-block.free {
    background: #bfe3d0;
}
.agenda-block.range {
    background: #bfe3d0;
    cursor: default;
}
.agenda-block.range-closed {
    background: #e2e3e5;
    cursor: default;
}
.agenda-block.busy {
    background: #f2b7bd;
    cursor: not-allowed;
}
.agenda-block.hold {
    background: #ffd19a;
    cursor: not-allowed;
}
.agenda-block.overlap {
    opacity: 0.92;
}
.agenda-block.selected {
    box-shadow: 0 0 0 2px #4f709c, 0 6px 10px rgba(0, 0, 0, 0.12);
    transform: scale(1.02);
    z-index: 6;
}
.agenda-modalite-dot {
    position: absolute;
    top: 4px;
    right: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
}
.agenda-modalite-dot.inline {
    position: static;
    margin-right: 6px;
}
.agenda-modalite-presentiel {
    background: #7bc96f;
}
.agenda-modalite-distanciel {
    background: #6ea8fe;
}
.agenda-modalite-mixte {
    background: #f5c46a;
}

.rdv-agenda .d-flex {
    display: flex;
}
.rdv-agenda .flex-wrap {
    flex-wrap: wrap;
}
.rdv-agenda .gap-2 {
    gap: 8px;
}
.rdv-agenda .mb-2 {
    margin-bottom: 8px;
}
.rdv-agenda .btn {
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid #c5c5c5;
    background: #ffffff;
    font-size: 0.75rem;
    cursor: pointer;
}
.rdv-agenda .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.rdv-agenda .btn-outline-secondary {
    color: #4f709c;
    border-color: #c5c5c5;
}
.rdv-agenda .form-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.rdv-agenda .form-check-input {
    margin: 0;
}
