/* /Components/Pages/ResetPasswordPage.razor.rz.scp.css */
.account-form[b-t3cmlxpito] {
    width: 100%;
}
/* /Components/Pages/Schedule.razor.rz.scp.css */
/* Fills the remaining viewport height; the calendar itself is sized in app.css (.main-calendar),
   because scoped CSS does not reach the root element rendered by MudCalendar. */
.scheduler-container[b-msqpg4vef0] {
    position: relative;
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
}

.schedule-page[b-msqpg4vef0] {
    gap: 0;
}

/* ---------- Appointment events (CellTemplate) ---------- */

/* Size container so the event can adapt its layout to the slot height/width. */
.appointment-slot[b-msqpg4vef0] {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: 2px 3px;
    container-type: size;
}

.appointment-event[b-msqpg4vef0] {
    position: relative;
    box-sizing: border-box;
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    gap: 0.1rem;
    overflow: hidden;
    padding: 0.35rem 0.55rem 0.35rem 0.75rem;
    border: 1px solid color-mix(in srgb, var(--appointment-color) 38%, transparent);
    border-radius: 0.6rem;
    background: color-mix(in srgb, var(--appointment-color) 14%, var(--mud-palette-surface));
    color: var(--mud-palette-text-primary);
    transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

/* Accent bar, same language as the proposal cards in the sidebar. */
.appointment-event[b-msqpg4vef0]::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    background: var(--appointment-color);
    content: "";
}

.appointment-event--free[b-msqpg4vef0] {
    border-style: dashed;
    background: color-mix(in srgb, var(--appointment-color) 7%, var(--mud-palette-surface));
}

.appointment-event--free[b-msqpg4vef0]::before {
    opacity: 0.55;
}

.appointment-event--mine[b-msqpg4vef0] {
    border-color: color-mix(in srgb, var(--appointment-color) 50%, transparent);
    background: color-mix(in srgb, var(--appointment-color) 18%, var(--mud-palette-surface));
}

.appointment-event.is-interactive[b-msqpg4vef0] {
    cursor: pointer;
}

.appointment-event:not(.is-interactive)[b-msqpg4vef0] {
    cursor: default;
}

@media (hover: hover) {
    .appointment-event--free.is-interactive:hover[b-msqpg4vef0] {
        border-style: solid;
        border-color: var(--appointment-color);
        background: color-mix(in srgb, var(--appointment-color) 16%, var(--mud-palette-surface));
        box-shadow: 0 4px 14px color-mix(in srgb, var(--appointment-color) 22%, transparent);
    }

    .appointment-event--free.is-interactive:hover[b-msqpg4vef0]::before {
        opacity: 1;
    }

    .appointment-event--mine:hover[b-msqpg4vef0] {
        background: color-mix(in srgb, var(--appointment-color) 24%, var(--mud-palette-surface));
        box-shadow: 0 4px 14px color-mix(in srgb, var(--appointment-color) 22%, transparent);
    }
}

.appointment-event-head[b-msqpg4vef0] {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.35rem;
}

.appointment-event-icon[b-msqpg4vef0] {
    display: inline-flex;
    flex: 0 0 auto;
    color: var(--appointment-color);
}

.appointment-event-icon[b-msqpg4vef0]  .mud-icon-root {
    width: 1rem;
    height: 1rem;
    font-size: 1rem;
}

.appointment-event-time[b-msqpg4vef0] {
    min-width: 0;
    overflow: hidden;
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.appointment-event-label[b-msqpg4vef0] {
    min-width: 0;
    overflow: hidden;
    color: var(--mud-palette-text-secondary);
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.appointment-event--mine .appointment-event-label[b-msqpg4vef0] {
    color: color-mix(in srgb, var(--appointment-color) 75%, var(--mud-palette-text-primary));
    font-weight: 600;
}

/* Short slots (e.g. 30 min): single centred line, no label. */
@container (max-height: 46px) {
    .appointment-event[b-msqpg4vef0] {
        justify-content: center;
        padding-top: 0;
        padding-bottom: 0;
    }

    .appointment-event-label[b-msqpg4vef0] {
        display: none;
    }
}

/* Narrow columns (small screens): drop the icon to keep the time readable. */
@container (max-width: 92px) {
    .appointment-event[b-msqpg4vef0] {
        padding-right: 0.3rem;
        padding-left: 0.5rem;
    }

    .appointment-event-icon[b-msqpg4vef0] {
        display: none;
    }

    .appointment-event-time[b-msqpg4vef0] {
        font-size: 0.72rem;
    }
}

/* ---------- Loading ---------- */

.loading-overlay[b-msqpg4vef0] {
    position: absolute;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    border-radius: 1rem;
    background: var(--mud-palette-background);
    inset: 0;
}
