/* =========================================================
   Formulaire
   ========================================================= */

.lr-res-form {
    max-width: 720px;
    margin: 2rem 0;
    padding: 1.5rem;
    border: 1px solid #e3e0d8;
    border-radius: 12px;
    background: #fffdf8;
}

.lr-res-form h2 {
    margin-top: 0;
}

.lr-res-field {
    margin-bottom: 1rem;
}

.lr-res-field label {
    display: block;
    margin-bottom: .35rem;
    font-weight: 600;
}

.lr-res-field input,
.lr-res-field textarea {
    width: 100%;
    padding: .7rem;
    border: 1px solid #d5d0c6;
    border-radius: 8px;
}

.lr-res-checkbox label {
    display: flex;
    gap: .5rem;
    align-items: center;
    font-weight: 400;
}

.lr-res-checkbox input {
    width: auto;
}

.lr-res-form button {
    padding: .8rem 1.2rem;
    border: none;
    border-radius: 8px;
    background: #47636f;
    color: white;
    cursor: pointer;
}

.lr-res-form button:hover {
    background: #334c56;
}


/* =========================================================
   Messages
   ========================================================= */

.lr-res-message {
    max-width: 720px;
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 8px;
}

.lr-res-message-ok {
    background: #edf7ed;
    border: 1px solid #b7ddb7;
}

.lr-res-message-error {
    background: #fff0f0;
    border: 1px solid #e2b3b3;
}

/* =========================================================
   WARNING
   ========================================================= */

.lr-date-warning {
    margin-top: .45rem;
    padding: .65rem .8rem;
    border-radius: 8px;
    font-size: .92rem;
    line-height: 1.35;
}

.lr-date-warning.is-reserve {
    background: #fff0f0;
    border: 1px solid #d99;
    color: #8a2d2d;
}

.lr-date-warning.is-option {
    background: #fff8e6;
    border: 1px solid #e5bd62;
    color: #765000;
}
/* =========================================================
   Calendrier
   ========================================================= */

.lr-res-calendar-wrapper {
    margin: 2rem 0;
}

#lr-res-calendar {
    max-width: 1100px;
    margin: 0 auto;
}


/* =========================================================
   Légende
   ========================================================= */

.lr-res-legend {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1rem;
}

.lr-res-legend-item {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .95rem;
}

.lr-res-legend-item::before {
    content: "";
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border-radius: 4px;
}

.lr-res-legend-reserve::before {
    background: #b95454;
}

.lr-res-legend-option::before {
    background: #e8b75d;
}

/* =========================================================
   CHOIX
   ========================================================= */

.lr-res-choice {
    padding: 1rem;
    border: 1px solid #e4ded2;
    border-radius: 10px;
    background: #fffaf0;
}

.lr-res-choice > label:first-child {
    margin-bottom: .6rem;
}

.lr-res-choice label {
    display: block;
    margin-bottom: .5rem;
    font-weight: 400;
}

.lr-res-choice input {
    width: auto;
    margin-right: .4rem;
}

/* =========================================================
   Événements FullCalendar
   ========================================================= */

.fc .lr-event-reserve {
    background-color: #b95454;
    border-color: #b95454;
    color: #fff;
}

.fc .lr-event-option {
    background-color: #e8b75d;
    border-color: #d89f38;
    color: #332400;
    opacity: .85;
}

.fc .lr-event-option .fc-event-title {
    font-style: italic;
}

/* =========================================================
   Tableau des réservations
   ========================================================= */

.lr-res-list {
    max-width: 1100px;
    margin: 2rem auto 0;
}

.lr-res-list h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.lr-res-table-wrapper {
    overflow-x: auto;
}

.lr-res-table {
    width: 100%;
    border-collapse: collapse;
    background: #fffdf8;
    border: 1px solid #e4ded2;
    border-radius: 10px;
    overflow: hidden;
}

.lr-res-table th,
.lr-res-table td {
    padding: .75rem .85rem;
    border-bottom: 1px solid #ece6da;
    text-align: left;
    vertical-align: top;
}

.lr-res-table th {
    background: #f5efe3;
    font-weight: 700;
    white-space: nowrap;
}

.lr-res-table tr:last-child td {
    border-bottom: none;
}

.lr-res-row-reserve {
    border-left: 5px solid #b95454;
}

.lr-res-row-option {
    border-left: 5px solid #e8b75d;
    background: #fff9e9;
}

.lr-res-status-badge {
    display: inline-block;
    padding: .25rem .55rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 700;
    white-space: nowrap;
}

.lr-res-row-reserve .lr-res-status-badge {
    background: #b95454;
    color: #fff;
}

.lr-res-row-option .lr-res-status-badge {
    background: #e8b75d;
    color: #332400;
}

.lr-res-table-comment {
    margin-top: .35rem;
    font-size: .9rem;
    color: #666;
    font-style: italic;
}

.lr-res-edit-link {
    display: inline-block;
    padding: .35rem .6rem;
    border-radius: 6px;
    background: #47636f;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

.lr-res-edit-link:hover {
    background: #334c56;
    color: #fff;
}

@media (max-width: 700px) {
    .lr-res-table th,
    .lr-res-table td {
        padding: .6rem;
        font-size: .9rem;
    }
}