.schedule-grid-hidden-desktop {
    display: none !important;
}

.schedule-desktop-overview {
    border-bottom: 1px solid #d8e7df;
    background: #f4f8f6;
}

.schedule-desktop-overview[hidden] {
    display: none !important;
}

.schedule-desktop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    border-bottom: 1px solid #dce9e2;
    background: rgba(255, 255, 255, .97);
}

.schedule-desktop-toolbar-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.schedule-desktop-toolbar-copy strong {
    color: #173f2c;
    font-size: .9rem;
}

.schedule-desktop-toolbar-copy small {
    color: #6b8176;
    font-size: .72rem;
    line-height: 1.4;
}

.schedule-desktop-tabs {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(112px, auto));
    gap: 6px;
}

.schedule-desktop-tab {
    min-height: 39px;
    padding: 0 13px;
    border: 1px solid #cbded4;
    border-radius: 11px;
    background: #f8fbf9;
    color: #466658;
    font: inherit;
    font-size: .74rem;
    font-weight: 850;
    cursor: pointer;
    transition: background .12s ease, border-color .12s ease, box-shadow .12s ease;
}

.schedule-desktop-tab:hover {
    border-color: #9ccbb5;
    background: #eef8f3;
}

.schedule-desktop-tab.active {
    border-color: #0b8f60;
    background: #e7f7ef;
    color: #08714a;
    box-shadow: inset 0 0 0 1px rgba(11, 143, 96, .11);
}

.schedule-desktop-content {
    padding: 14px 16px 16px;
}

.schedule-desktop-court-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 12px;
}

.schedule-desktop-court-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #d6e5dd;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(23, 77, 52, .055);
}

.schedule-desktop-court-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 13px;
    border-bottom: 1px solid #e5eee9;
    background: #f8fbf9;
}

.schedule-desktop-court-heading > div {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.schedule-desktop-court-heading strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #153d2b;
    font-size: .88rem;
}

.schedule-desktop-court-heading small {
    color: #6d8176;
    font-size: .67rem;
}

.schedule-desktop-count {
    flex: 0 0 auto;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e9f5ef;
    color: #247052;
    font-size: .64rem;
    font-weight: 850;
}

.schedule-desktop-segments,
.schedule-desktop-list {
    display: grid;
}

.schedule-desktop-list {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 10px;
}

.schedule-desktop-booking,
.schedule-desktop-free {
    width: 100%;
    min-width: 0;
    min-height: 58px;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border: 0;
    border-bottom: 1px solid #edf2ef;
    padding: 9px 11px;
    background: #fff;
    color: #173c2b;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.schedule-desktop-booking:last-child,
.schedule-desktop-free:last-child {
    border-bottom: 0;
}

.schedule-desktop-booking:hover,
.schedule-desktop-free:hover {
    background: #f3faf6;
}

.schedule-desktop-booking {
    border-left: 4px solid #0ab86f;
}

.schedule-desktop-booking.opened { border-left-color: #289ed7; }
.schedule-desktop-booking.warning,
.schedule-desktop-booking.unpaid-ended { border-left-color: #d99a1b; }
.schedule-desktop-booking.inactive { border-left-color: #9da9b3; }
.schedule-desktop-booking.completed { border-left-color: #4a7d6d; }
.schedule-desktop-booking.unknown { border-left-color: #795fc4; }

.schedule-desktop-booking.compact {
    overflow: hidden;
    border: 1px solid #d8e5de;
    border-left-width: 4px;
    border-radius: 13px;
    box-shadow: 0 3px 12px rgba(23, 77, 52, .045);
}

.schedule-desktop-free {
    background: #fbfdfc;
}

.schedule-desktop-time {
    color: #45685a;
    font-size: .71rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.schedule-desktop-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.schedule-desktop-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .8rem;
}

.schedule-desktop-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #71877b;
    font-size: .65rem;
}

.schedule-desktop-free .schedule-desktop-copy strong {
    color: #39735b;
}

.schedule-desktop-add {
    padding: 5px 8px;
    border-radius: 999px;
    background: #e4f7ed;
    color: #08794c;
    font-size: .64rem;
    font-weight: 900;
    white-space: nowrap;
}

.schedule-desktop-arrow {
    color: #8aa096;
    font-size: 1.25rem;
    line-height: 1;
}

.schedule-desktop-empty {
    padding: 18px 12px;
    color: #71857b;
    font-size: .73rem;
    text-align: center;
}

.schedule-desktop-empty.standalone {
    border: 1px dashed #cbdcd3;
    border-radius: 14px;
    background: #fff;
}

@media (max-width: 980px) and (min-width: 601px) {
    .schedule-desktop-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .schedule-desktop-tabs {
        width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .schedule-desktop-court-grid,
    .schedule-desktop-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .schedule-desktop-overview {
        display: none !important;
    }
}
