.admin-appointment-page {
    gap: 1rem;
}

.admin-appointment-header {
    align-items: flex-start;
}

.admin-appointment-weekbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 6px;
    background: #ffffff;
}

.admin-appointment-weekbar__current {
    display: grid;
    gap: 0.15rem;
    text-align: center;
}

.admin-appointment-weekbar__current strong {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 850;
}

.admin-appointment-weekbar__current span {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.admin-appointment-calendar {
    display: grid;
    grid-template-columns: 5.5rem repeat(5, minmax(8.5rem, 1fr));
    gap: 1px;
    overflow-x: auto;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.08);
    -webkit-overflow-scrolling: touch;
    user-select: none;
}

.admin-appointment-calendar__corner,
.admin-appointment-calendar__day,
.admin-appointment-calendar__time {
    min-width: 0;
    background: #f8fafc;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 850;
}

.admin-appointment-calendar__corner,
.admin-appointment-calendar__time {
    display: grid;
    place-items: center;
    min-height: 4.1rem;
}

.admin-appointment-calendar__day {
    position: sticky;
    top: 0;
    z-index: 1;
    display: grid;
    gap: 0.15rem;
    min-height: 3.4rem;
    padding: 0.75rem;
    text-align: center;
}

.admin-appointment-calendar__day strong {
    color: #0f172a;
    font-size: 0.9rem;
}

.admin-appointment-calendar__day span {
    color: #64748b;
    font-size: 0.75rem;
}

.admin-appointment-slot {
    display: grid;
    align-content: center;
    gap: 0.22rem;
    min-width: 8.5rem;
    min-height: 4.1rem;
    padding: 0.65rem 0.7rem;
    border: 0;
    background: #ffffff;
    color: #0f172a;
    text-align: left;
    cursor: pointer;
    transition: background 140ms ease, box-shadow 140ms ease, color 140ms ease;
}

.admin-appointment-slot:hover,
.admin-appointment-slot:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.35);
}

.admin-appointment-slot span {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
}

.admin-appointment-slot strong {
    font-size: 0.88rem;
    font-weight: 850;
}

.admin-appointment-slot em {
    overflow: hidden;
    color: inherit;
    font-size: 0.74rem;
    font-style: normal;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-appointment-slot.is-free {
    background: #ecfdf5;
    color: #065f46;
}

.admin-appointment-slot.is-free span {
    color: #047857;
}

.admin-appointment-slot.is-blocked {
    background: #f8fafc;
    color: #64748b;
}

.admin-appointment-slot.is-blocked strong {
    color: #475569;
}

.admin-appointment-slot.is-booked {
    background: #eff6ff;
    color: #1d4ed8;
    cursor: default;
}

.admin-appointment-slot.is-booked span {
    color: #2563eb;
}

.admin-appointment-slot:disabled {
    opacity: 1;
}

.admin-appointment-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.2rem;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 750;
}

.admin-appointment-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.admin-appointment-legend i {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 999px;
}

.admin-appointment-legend i.is-free {
    background: #10b981;
}

.admin-appointment-legend i.is-blocked {
    background: #94a3b8;
}

.admin-appointment-legend i.is-booked {
    background: #2563eb;
}

.admin-appointment-detail-dialog {
    width: min(100%, 34rem);
}

.admin-appointment-detail {
    display: grid;
    gap: 0.8rem;
}

.admin-appointment-detail > div {
    display: grid;
    gap: 0.18rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.admin-appointment-detail > div:last-child {
    border-bottom: 0;
}

.admin-appointment-detail span {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.admin-appointment-detail strong {
    color: #0f172a;
    font-weight: 850;
}

.admin-appointment-detail small,
.admin-appointment-detail p {
    margin: 0;
    color: #475569;
}

@media (max-width: 760px) {
    .admin-appointment-weekbar {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-appointment-weekbar__current {
        order: -1;
        text-align: left;
    }

    .admin-appointment-calendar {
        grid-template-columns: 4.8rem repeat(5, minmax(7.8rem, 1fr));
    }

    .admin-appointment-slot {
        min-width: 7.8rem;
        min-height: 4.6rem;
    }
}
