@import '_content/Plataforma.Web.RCL/Plataforma.Web.RCL.tejl374imc.bundle.scp.css';

/* /Pages/Agenda/Calendario.razor.rz.scp.css */
/* ── Wrapper general ─────────────────────────────────────────────────── */
.cal-paper[b-kji31m64t5] {
    border-radius: 12px;
    overflow: hidden;
    user-select: none;
}

/* ── Cabecera de días ────────────────────────────────────────────────── */
.cal-header[b-kji31m64t5] {
    display: grid;
    grid-template-columns: 52px repeat(7, 1fr);
    border-bottom: 2px solid var(--mud-palette-lines-default);
    background: var(--mud-palette-surface);
    position: sticky;
    top: 0;
    z-index: 10;
}

.cal-day-head[b-kji31m64t5] {
    padding: 10px 6px 8px;
    text-align: center;
    border-left: 1px solid var(--mud-palette-lines-default);
    transition: background 0.15s;
}

.cal-day-head--hoy[b-kji31m64t5] {
    background: rgba(var(--mud-palette-primary-rgb), 0.05);
}

.cal-day-nombre[b-kji31m64t5] {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mud-palette-text-secondary);
    margin-bottom: 4px;
}

.cal-day-num[b-kji31m64t5] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    font-size: 1.25rem;
    font-weight: 300;
    border-radius: 50%;
    line-height: 1;
}

.cal-day-num--hoy[b-kji31m64t5] {
    background: var(--mud-palette-primary);
    color: #fff !important;
    font-weight: 600;
}

/* ── Cuerpo scrollable ───────────────────────────────────────────────── */
.cal-body[b-kji31m64t5] {
    display: grid;
    grid-template-columns: 52px repeat(7, 1fr);
    overflow-y: auto;
    max-height: 620px;
    scrollbar-width: thin;
}

/* ── Gutter de horas ─────────────────────────────────────────────────── */
.cal-gutter[b-kji31m64t5] {
    width: 52px;
    flex-shrink: 0;
}

.cal-horas[b-kji31m64t5] {
    position: relative;
}

.cal-hora-label[b-kji31m64t5] {
    height: 64px;
    padding: 2px 6px 0 2px;
    font-size: 0.62rem;
    font-variant-numeric: tabular-nums;
    color: var(--mud-palette-text-disabled);
    text-align: right;
    border-top: 1px solid var(--mud-palette-lines-default);
    box-sizing: border-box;
}

/* ── Columna de día ──────────────────────────────────────────────────── */
.cal-col[b-kji31m64t5] {
    position: relative;
    height: calc(13 * 64px); /* HoraFin-HoraInicio × PxPorHora */
    border-left: 1px solid var(--mud-palette-lines-default);
    cursor: pointer;
    transition: background 0.1s;
}

.cal-col:hover[b-kji31m64t5] {
    background: rgba(var(--mud-palette-primary-rgb), 0.025);
}

.cal-col--hoy[b-kji31m64t5] {
    background: rgba(var(--mud-palette-primary-rgb), 0.03);
}

.cal-col--pasado[b-kji31m64t5] {
    cursor: default;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 10px,
        rgba(128,128,128,0.03) 10px,
        rgba(128,128,128,0.03) 11px
    );
    opacity: 0.7;
}

/* ── Líneas de fondo ─────────────────────────────────────────────────── */
.cal-hora-bg[b-kji31m64t5] {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1px solid var(--mud-palette-lines-default);
    pointer-events: none;
}

.cal-media-bg[b-kji31m64t5] {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1px dashed rgba(128, 128, 128, 0.15);
    pointer-events: none;
}

/* ── Indicador hora actual ───────────────────────────────────────────── */
.cal-now[b-kji31m64t5] {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 5;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.cal-now[b-kji31m64t5]::after {
    content: '';
    flex: 1;
    height: 2px;
    background: #EA4335;
}

.cal-now-dot[b-kji31m64t5] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #EA4335;
    flex-shrink: 0;
    margin-left: -1px;
}

/* ── Bloque de cita ──────────────────────────────────────────────────── */
.cita-bloque[b-kji31m64t5] {
    position: absolute;
    left: 3px;
    right: 3px;
    border-radius: 6px;
    padding: 3px 6px;
    overflow: hidden;
    z-index: 2;
    cursor: pointer;
    transition: filter 0.12s, transform 0.1s, z-index 0s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
    color: #fff;
}

.cita-bloque:hover[b-kji31m64t5] {
    filter: brightness(1.12);
    transform: scale(1.015) translateX(-1px);
    z-index: 4;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.cita-hora[b-kji31m64t5] {
    font-size: 0.62rem;
    font-weight: 700;
    opacity: 0.92;
    letter-spacing: 0.03em;
    line-height: 1.1;
}

.cita-paciente[b-kji31m64t5] {
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.cita-terapia[b-kji31m64t5] {
    font-size: 0.63rem;
    opacity: 0.82;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

/* ── Wizard — indicador de pasos ─────────────────────────────────── */
.wz-steps[b-kji31m64t5] {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 4px 16px 8px;
    width: 100%;
}

.wz-step[b-kji31m64t5] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.wz-circle[b-kji31m64t5] {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #B0BEC5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #B0BEC5;
    background: transparent;
    transition: all 0.25s ease;
}

.wz-label[b-kji31m64t5] {
    font-size: 0.67rem;
    font-weight: 500;
    color: #B0BEC5;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.25s;
}

.wz-step--active .wz-circle[b-kji31m64t5] {
    border-color: #0D7377;
    background: #0D7377;
    color: #fff;
    box-shadow: 0 2px 10px rgba(13,115,119,0.35);
}

.wz-step--active .wz-label[b-kji31m64t5] {
    color: #0D7377;
    font-weight: 700;
}

.wz-step--done .wz-circle[b-kji31m64t5] {
    border-color: #14A085;
    background: #14A085;
    color: #fff;
}

.wz-step--done .wz-label[b-kji31m64t5] {
    color: #14A085;
}

.wz-line[b-kji31m64t5] {
    flex: 1;
    height: 2px;
    background: #B0BEC5;
    margin: 17px 10px 0;
    transition: background 0.25s;
    min-width: 24px;
}

.wz-line--done[b-kji31m64t5] {
    background: #14A085;
}

/* ── Wizard — cuerpo del paso ────────────────────────────────────── */
.wz-paso-body[b-kji31m64t5] {
    min-height: 200px;
    padding: 4px 0;
}

/* ── Paciente vacío ──────────────────────────────────────────────── */
.paciente-empty[b-kji31m64t5] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    border: 2px dashed #CBD5D8;
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    text-align: center;
}

.paciente-empty:hover[b-kji31m64t5] {
    border-color: #0D7377;
    background: rgba(13, 115, 119, 0.04);
}

/* ── Tarjeta de paciente ─────────────────────────────────────────── */
.paciente-card[b-kji31m64t5] {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 2px solid #DDE8E8;
    background: var(--mud-palette-surface);
    cursor: pointer;
    transition: all 0.2s ease;
}

.paciente-card--selected[b-kji31m64t5] {
    border-color: #0D7377;
    background: rgba(13,115,119,0.05);
    box-shadow: 0 2px 10px rgba(13,115,119,0.12);
}

.paciente-avatar[b-kji31m64t5] {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0D7377 0%, #32E0C4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.paciente-nombre[b-kji31m64t5] {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
}

.paciente-id[b-kji31m64t5] {
    font-size: 0.77rem;
    color: var(--mud-palette-text-secondary);
    margin-top: 2px;
}

/* ── Cuadrícula de tipos de terapia ──────────────────────────────── */
.terapia-grid[b-kji31m64t5] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}

.terapia-card[b-kji31m64t5] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 10px;
    border-radius: 12px;
    border: 2px solid #DDE8E8;
    background: var(--mud-palette-surface);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.terapia-card:hover[b-kji31m64t5] {
    border-color: #32E0C4;
    background: rgba(50,224,196,0.06);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(50,224,196,0.18);
}

.terapia-card--selected[b-kji31m64t5] {
    border-color: #0D7377;
    background: rgba(13,115,119,0.07);
    box-shadow: 0 3px 12px rgba(13,115,119,0.18);
}

.terapia-icono[b-kji31m64t5] {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0D7377 0%, #14A085 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s;
}

.terapia-card--selected .terapia-icono[b-kji31m64t5] {
    background: linear-gradient(135deg, #0D7377, #32E0C4);
    box-shadow: 0 2px 10px rgba(50,224,196,0.35);
}

.terapia-nombre[b-kji31m64t5] {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
}

.terapia-padre[b-kji31m64t5] {
    font-size: 0.68rem;
    color: var(--mud-palette-text-secondary);
    line-height: 1.2;
}

/* ── Slots de hora ───────────────────────────────────────────────── */
.hora-slots-grid[b-kji31m64t5] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    max-height: 196px;
    overflow-y: auto;
    padding-right: 2px;
    scrollbar-width: thin;
}

.hora-slot[b-kji31m64t5] {
    padding: 8px 4px;
    border-radius: 8px;
    border: 1.5px solid #DDE8E8;
    background: var(--mud-palette-surface);
    text-align: center;
    font-size: 0.79rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.hora-slot:hover:not(.hora-slot--disabled)[b-kji31m64t5] {
    border-color: #0D7377;
    background: rgba(13,115,119,0.06);
    color: #0D7377;
}

.hora-slot--selected[b-kji31m64t5] {
    background: #0D7377 !important;
    border-color: #0D7377 !important;
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(13,115,119,0.3);
}

.hora-slot--disabled[b-kji31m64t5] {
    background: var(--mud-palette-background-grey, #F5F5F5);
    border-color: #ECEFF1;
    color: #B0BEC5;
    cursor: not-allowed;
    text-decoration: line-through;
}
