.owner-calendar__week-grid {
    min-width: 1320px;
    display: grid;
    grid-template-columns: minmax(140px, 180px) repeat(7, minmax(160px, 1fr));
    align-items: stretch;
}

.owner-calendar__week-row {
    display: contents;
}

.owner-calendar__week-corner,
.owner-calendar__week-heading,
.owner-calendar__week-resource,
.owner-calendar__week-cell {
    min-width: 0;
    padding: var(--space-md);
    border-right: 1px solid var(--color-border-glass-card);
    border-bottom: 1px solid var(--color-border-glass-card);
}

.owner-calendar__week-corner,
.owner-calendar__week-heading {
    position: sticky;
    top: 0;
    z-index: 3;
    background: rgba(18, 24, 44, 0.94);
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    font-weight: 800;
    text-transform: capitalize;
}

.owner-calendar__week-corner,
.owner-calendar__week-resource {
    position: sticky;
    left: 0;
    z-index: 2;
    background: rgba(18, 24, 44, 0.96);
}

.owner-calendar__week-corner {
    z-index: 4;
}

.owner-calendar__week-resource {
    display: flex;
    align-items: flex-start;
    color: var(--color-text-primary);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.owner-calendar__week-cell {
    min-height: 142px;
    display: grid;
    align-content: start;
    gap: var(--space-sm);
    background: rgba(255, 255, 255, 0.018);
}

.owner-calendar__week-row:nth-child(odd) .owner-calendar__week-cell {
    background: rgba(255, 255, 255, 0.028);
}

.owner-calendar__week-heading:last-child,
.owner-calendar__week-cell:last-child {
    border-right: 0;
}

.owner-calendar__week-row:last-child .owner-calendar__week-resource,
.owner-calendar__week-row:last-child .owner-calendar__week-cell {
    border-bottom: 0;
}

.owner-calendar__week-cell .owner-calendar__booking {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    padding: 10px;
}

.owner-calendar__week-cell .owner-calendar__booking-time,
.owner-calendar__week-cell .owner-calendar__badges {
    justify-content: flex-start;
}

.owner-calendar__week-cell .owner-calendar__badges {
    max-width: 100%;
}

.owner-calendar__week-cell .owner-calendar__resource {
    display: none;
}

@media (min-width: 1180px) {
    .owner-calendar__week-grid {
        min-width: 100%;
    }
}
