/* 日付ヘッダーをスクロール時に固定 */
.table-calendar-thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #faf6f6;
}

/* ===== カレンダー (週間予約グリッド) ===== */
.table-calendar {
    border-collapse: separate;
    border-spacing: 0;
    border: 0;
}

.table-calendar th,
.table-calendar td {
    border: 0;
    border-right: 1px solid #f0e8e8;
    border-bottom: 1px solid #f0e8e8;
    padding: 0;
}

.table-calendar th:first-child,
.table-calendar td:first-child {
    border-left: 1px solid #f0e8e8;
}

.table-calendar tr:first-child th {
    border-top: 1px solid #f0e8e8;
}

/* 日付ヘッダー */
.table-calendar thead th,
.table-sticky-header-wrapper .table-calendar tr:first-child th {
    background-color: #faf6f6;
    color: #5a3838;
    font-weight: 600;
    padding: 0.4rem 0;
}

.table-sticky-header-wrapper .table-calendar tr:first-child th:first-child {
    background-color: #faf6f6;
}

/* 時間ラベル列 */
.table-calendar tbody th {
    background-color: #faf6f6;
    color: #8a7878;
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.5rem 0;
}

/* セル */
.table-calendar td {
    background-color: #fff;
}

/* 予約可能ボタン */
.table-calendar .btn-light {
    background-color: transparent;
    border: 0;
    border-radius: 0;
    color: #ea4b4b;
    transition: background-color 0.15s ease, color 0.15s ease;
    padding: 0.5rem 0;
}

.table-calendar .btn-light:hover,
.table-calendar .btn-light:focus,
.table-calendar .btn-check:checked + .btn-light {
    background-color: #ffeeee;
    color: #ea4b4b;
}

.table-calendar .btn-check:checked + .btn-light i {
    transform: scale(1.1);
}

.table-calendar .btn-light i {
    transition: transform 0.15s ease;
}

/* 不可セル */
.table-calendar .btn-white.disabled {
    background-color: transparent;
    border: 0;
    border-radius: 0;
    color: #d6cccc;
    padding: 0.5rem 0;
    pointer-events: none;
}

@media (max-width: 767.98px) {
    .table-calendar {
        font-size: 0.7rem;
    }
}
