.slot-calendar {
    display: grid;
    gap: 14px;
}

.calendar-day {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 12px 32px rgba(24, 86, 163, 0.07);
}

.calendar-day-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
    padding: 16px 18px;
    color: var(--brand-dark);
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
    transition: background-color 160ms ease;
}

.calendar-day-summary::-webkit-details-marker {
    display: none;
}

.calendar-day-summary::after {
    content: "";
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(45deg);
    transition: transform 160ms ease;
}

.calendar-day[open] .calendar-day-summary {
    border-bottom: 1px solid var(--line);
    background: var(--brand-soft);
}

.calendar-day[open] .calendar-day-summary::after {
    transform: rotate(225deg);
}

.calendar-day-summary:hover {
    background: var(--bg-soft);
}

.calendar-day-meta {
    margin-left: auto;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.calendar-day-body {
    padding: 16px;
}

.calendar-table {
    min-width: 720px;
}

.calendar-table th:first-child,
.calendar-table td:first-child {
    width: 120px;
}

.slot-cell {
    min-width: 170px;
    vertical-align: top;
    transition: background-color 140ms ease;
}

.slot-cell:hover {
    background: rgba(23, 143, 101, 0.045);
}

.slot-cell-empty {
    color: var(--muted);
    text-align: center;
}

.button-booked,
.button-booked:disabled {
    width: 100%;
    background: var(--warning);
    color: #7a5200;
    font-weight: 700;
    cursor: not-allowed;
}

.button-booked:hover,
.button-booked:disabled:hover {
    background: var(--warning);
    transform: none;
}

.button-booked-mine,
.button-booked-mine:disabled {
    width: 100%;
    background: #cbe7ff;
    color: #06466f;
    font-weight: 700;
    cursor: not-allowed;
}

.button-booked-mine:hover,
.button-booked-mine:disabled:hover {
    background: #cbe7ff;
    transform: none;
}

.slot-cell .form {
    margin: 0;
}

.slot-cell button,
.slot-cell .button-link {
    width: 100%;
}
