.booking-start-panel {
    background: #fff;
    border: 1px solid var(--line, #dbe3ea);
    border-radius: 18px;
    padding: 24px;
}

.booking-step-tabs {
    margin-top: 0;
}

.cancellation-filter {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) repeat(2, minmax(145px, .65fr)) minmax(260px, 1.4fr) auto;
    gap: 16px;
    align-items: end;
    margin-bottom: 18px;
}

.cancellation-filter label {
    display: grid;
    gap: 6px;
}

.cancellation-table td:last-child {
    width: 1%;
    white-space: nowrap;
    text-align: right;
}

.cancellation-status {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    background: #fff3cd;
    color: #765b00;
    font-size: .8rem;
    font-weight: 800;
}

.booking-start-panel[hidden] {
    display: none;
}

.booking-player-filter {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto minmax(215px, auto) auto;
    gap: 18px;
    align-items: end;
}

.booking-player-filter > label:first-child {
    display: grid;
    gap: 6px;
}

.booking-player-role-filter {
    display: flex;
    gap: 12px;
    min-width: 270px;
    min-height: var(--btnHeight, 38px);
    align-items: center;
    padding: 6px 12px;
    border: 1px solid var(--admin-line);
    border-radius: 8px;
}

.booking-player-role-filter legend {
    padding: 0 5px;
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 700;
}

.booking-player-role-filter label {
    display: inline-flex;
    gap: 5px;
    align-items: center;
}

.booking-inactive-filter {
    min-width: 215px;
}

.booking-inactive-hint {
    grid-column: 3;
    color: var(--admin-muted);
    line-height: 1.35;
}

.booking-player-table-wrap {
    max-height: 480px;
    overflow-y: auto;
}

.booking-player-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--admin-panel);
}

.booking-player-table th:last-child,
.booking-player-table td:last-child {
    text-align: right;
}

.accounting-person-symbol.is-guest {
    background: #c83b3b;
}

.accounting-person-symbol.is-active {
    background: #2f8a4c;
}

.accounting-person-symbol.is-inactive {
    background: #89939d;
}

.booking-player-actions {
    align-items: center;
}

.booking-player-actions p {
    margin: 0 auto 0 0;
    color: var(--admin-muted);
    font-weight: 700;
}

.booking-selected-player {
    display: grid;
    gap: 3px;
    padding: 8px 12px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--color-primary) 10%, white);
}

.booking-selected-player[hidden] {
    display: none;
}

.booking-selected-player span {
    color: var(--admin-muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.booking-appointment-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.booking-overview-layout {
    display: grid;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.booking-filter-card {
    display: grid;
    gap: 16px;
}

.booking-filter-card label {
    display: grid;
    gap: 6px;
}

.booking-filter-card select,
.booking-filter-card input {
    width: 100%;
}

.booking-filter-hint {
    color: var(--muted, #64748b);
    font-size: .9rem;
    line-height: 1.45;
    margin: 0;
}

.booking-open-mercurio {
    text-align: center;
}

.booking-week-card {
    min-width: 0;
    border: 1px solid var(--line, #dbe3ea);
    border-radius: 14px;
    padding: 18px;
}

.booking-week-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: end;
    margin-bottom: 14px;
}

.booking-week-head h3,
.booking-week-head p {
    margin: 0;
}

.booking-week-navigation {
    display: flex;
    gap: 8px;
    align-items: center;
}

.booking-week-navigation p {
    min-width: 145px;
    color: var(--admin-muted);
    font-size: .9rem;
    font-weight: 700;
    text-align: center;
}

.booking-week-nav-button {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    background: var(--admin-panel);
    color: var(--admin-ink);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.booking-week-nav-button:hover:not(:disabled) {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.booking-week-nav-button:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.booking-week-status {
    padding: 28px 16px;
    border-radius: 10px;
    background: #f5f7fa;
    color: #52606d;
    text-align: center;
}

.booking-week-status.is-error {
    background: #fff1f1;
    color: #a12626;
}

.booking-week-scroll {
    overflow-x: auto;
}

.booking-week-grid {
    --booking-week-days: 7;
    display: grid;
    grid-template-columns: minmax(110px, 1.1fr) repeat(var(--booking-week-days), minmax(94px, 1fr));
    min-width: 850px;
    border-top: 1px solid #dfe6ec;
    border-left: 1px solid #dfe6ec;
}

.booking-week-grid > * {
    border-right: 1px solid #dfe6ec;
    border-bottom: 1px solid #dfe6ec;
}

.booking-week-corner,
.booking-week-day,
.booking-week-court {
    padding: 10px;
    background: #f5f7fa;
    font-weight: 700;
}

.booking-week-day {
    text-align: center;
}

.booking-week-court {
    display: flex;
    align-items: flex-start;
}

.booking-week-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-content: flex-start;
    min-height: 58px;
    padding: 6px;
}

.booking-week-cell.is-empty {
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.booking-week-slot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 4px 5px;
    border-radius: 6px;
    font-size: .77rem;
    line-height: 1;
    text-decoration: none;
}

.booking-week-slot.is-free,
.booking-week-legend .is-free {
    background: #dff5e4;
    color: #17632a;
}

a.booking-week-slot.is-free:hover {
    background: #bfe9c9;
    box-shadow: 0 0 0 2px #4aa461 inset;
}

.booking-week-slot.is-busy,
.booking-week-legend .is-busy {
    background: #edf0f3;
    color: #86919b;
}

.booking-week-legend {
    display: flex;
    gap: 18px;
    margin: 14px 0 0;
    color: #64748b;
    font-size: .85rem;
}

.booking-week-legend span {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.booking-week-legend i {
    width: 14px;
    height: 14px;
    border-radius: 4px;
}

@media (max-width: 900px) {
    .cancellation-filter {
        grid-template-columns: 1fr;
    }

    .booking-player-filter {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .booking-overview-layout {
        grid-template-columns: 1fr;
    }
}
