/* Subnav tabs: doorlopen tot onderrand */
.nav-tabs.nav-bordered .nav-item {
    margin-bottom: -2px;
}

.del_rsp_row {
    cursor: pointer;
}

.del_crt {
    cursor: pointer;
}

.input-group > .form-control.rsp_minutes {
    min-width: 55px;
}

.input-group > .form-control.rsp_price {
    min-width: 65px;
}

.res_sum_search_img {
    width: 400px;
}

/* ── Stepper / progress indicator ── */
.res-stepper {
    padding: 0 1rem;
}

.res-stepper-track {
    display: flex;
    align-items: flex-start;
}

.res-stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1 1 0;
}

/* Left-half line: from left edge to center (into this circle) */
.res-stepper-line {
    position: absolute;
    top: 14px;
    left: 0;
    right: 50%;
    height: 2px;
    background: #dee2e6;
    z-index: 0;
}

/* Right-half line: from center to right edge (out of this circle) */
.res-stepper-item::after {
    content: '';
    position: absolute;
    top: 14px;
    left: 50%;
    right: 0;
    height: 2px;
    background: #dee2e6;
    z-index: 0;
}

/* No right-half on last item, no left-half on first (handled in template) */
.res-stepper-item:last-child::after {
    display: none;
}

/* Color left-half if this step is completed or active */
.res-stepper-item.completed .res-stepper-line,
.res-stepper-item.active .res-stepper-line {
    background: var(--bs-primary, #3e60d5);
}

/* Color right-half only if this step is completed (next is completed/active) */
.res-stepper-item.completed::after {
    background: var(--bs-primary, #3e60d5);
}

.res-stepper-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
    background: #fff;
    border: 2px solid #dee2e6;
    color: #adb5bd;
}

.res-stepper-item.completed .res-stepper-circle {
    background: var(--bs-primary, #3e60d5);
    border-color: var(--bs-primary, #3e60d5);
    color: #fff;
    font-size: 0.7rem;
}

.res-stepper-item.active .res-stepper-circle {
    background: var(--bs-primary, #3e60d5);
    border-color: var(--bs-primary, #3e60d5);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(62, 96, 213, 0.25);
}

.res-stepper-label {
    margin-top: 6px;
    font-size: 0.75rem;
    color: #adb5bd;
    white-space: nowrap;
}

.res-stepper-item.completed .res-stepper-label {
    color: var(--bs-primary, #3e60d5);
}

.res-stepper-item.active .res-stepper-label {
    color: var(--bs-primary, #3e60d5);
    font-weight: 600;
}

/* ── Gantt chart ── */
.gantt_table {
    font-size: 0.8rem;
}

.gantt_table th,
.gantt_table td {
    padding: 0.25rem 0.15rem;
}

.gantt_table .times_row th {
    font-weight: 600;
    font-size: 0.75rem;
}

/* Vertical grid lines at full-hour boundaries */
.gantt_table .full_hour_start {
    border-left: 1px solid #adb5bd;
}

/* Horizontal grid lines between court rows */
.gantt_table .court_availability_row {
    border-top: 1px solid #adb5bd !important;
    border-bottom: 1px solid #adb5bd !important;
}

/* Subtle lines between timeslots */
.gantt_table .gantt_timeslot {
    border-left: 1px solid #dee2e6;
}

.gantt_table .gantt_timeslot.full_hour_start {
    border-left: 1px solid #adb5bd;
}

/* Clickable slots */
.gantt_table .clickable {
    cursor: pointer;
}

.gantt_table .clickable:hover {
    opacity: 0.7;
}

/* Status colors */
.table-beschikbaar {
    background-color: #d1f2eb !important;
}

.table-reservering {
    background-color: #f8d7da !important;
}

.table-reservering-current {
    background-color: #cfe2ff !important;
}

.table-gesloten {
    background-color: #e2e3e5 !important;
}

.table-training {
    background-color: #fff3cd !important;
}

.table-wedstrijden {
    background-color: #e0cffc !important;
}

.table-evenement {
    background-color: #d1ecf1 !important;
}

/* Responsive: smaller on mobile */
@media (max-width: 480px) {
    .res-stepper-circle {
        width: 24px;
        height: 24px;
        font-size: 0.65rem;
    }
    .res-stepper-item.completed .res-stepper-circle {
        font-size: 0.6rem;
    }
    .res-stepper-line {
        top: 11px;
    }
    .res-stepper-label {
        font-size: 0.65rem;
    }
}
