/* ─── Availability Table ─────────────────────────────────── */
.availability-table {
    border: 1px solid #ddd;
    border-radius: 0px;
    overflow: hidden;
    position: relative;
}

.table-scroll-container {
    max-height: 400px;
    overflow: auto;
    background-color: white;
    position: relative;
}

.availability-table-main {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

/* Sticky header row */
.table-header-row {
    background: #D70724;
    position: sticky;
    top: 0;
    z-index: 10;
}

.time-header,
.seat-header {
    background: #D70724;
    color: white;
    text-align: center;
    padding: 8px 3px;
    font-weight: bold;
    font-size: 9px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 11;
}

/* Time column header — sticky left + top */
.time-header {
    min-width: 40px;
    width: 40px;
    position: sticky;
    left: 0;
    z-index: 12;
}

.seat-header {
    min-width: 20px;
}

/* Top-left corner cell */
.seat-header:first-child {
    position: sticky;
    left: 0;
    z-index: 13;
}

/* Body rows */
.availability-table-main tbody tr {
    border-bottom: 0.3px solid #eee;
}

.availability-table-main tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.availability-table-main tbody tr:nth-child(odd) {
    background-color: white;
}

.availability-table-main tbody td {
    text-align: center;
    padding: 2px 1px;
    border-right: 0.3px solid #eee;
    vertical-align: middle;
}

/* Sticky row label */
.time-slot,
.seat-type-name {
    font-weight: bold;
    color: #333;
    background-color: #f5f5f5 !important;
    border-right: 0.3px solid #ddd;
    position: sticky;
    left: 0;
    z-index: 9;
    min-width: 60px;
    font-size: 11px;
    padding: 2px 1px;
}

/* Availability indicator circle */
.availability-circle {
    width: 16px;
    height: 16px;
    border: 1px solid #D70724;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    background-color: white;
    transition: all 0.2s ease;
    position: relative;
}

.availability-circle.selected {
    background-color: #D70724;
    border-color: #9B1424;
}

.availability-circle.unavailable {
    border-color: #ccc;
    background-color: #f5f5f5;
    cursor: not-allowed;
}


.availability-circle.unavailable::before {
    content: "×";
    color: #999;
    font-size: 8px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
}

/* Outside business hours — clickable, shows message, no booking */
.availability-circle.outside-schedule {
    border-color: #ccc;
    background-color: #f0f0f0;
    cursor: pointer;
}
.availability-circle.outside-schedule::before {
    content: "−";
    color: #aaa;
    font-size: 9px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
}


.package_wrap.inactive {
    background: #F1F1F1;
    color: #999;
    cursor: not-allowed;
}

/* Custom scrollbar */
.table-scroll-container::-webkit-scrollbar       { width: 6px; }
.table-scroll-container::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 3px; }
.table-scroll-container::-webkit-scrollbar-thumb { background: #D70724; border-radius: 3px; }
.table-scroll-container::-webkit-scrollbar-thumb:hover { background: #9B1424; }

/* ─── Date trigger lock (lesson mode, no instructor selected) ── */
#date-input-trigger.date-trigger-locked {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}

.availability-title { /* container for "予約状況" title text */ }
