/* Diálogo "Citas de hoy" (WEB-INF/includes/citas-hoy.xhtml), en Principal y Citas. */
.citas-hoy {
    max-height: 60vh;
    overflow-y: auto;
}

.citas-hoy-grupo {
    margin: 12px 0 6px;
    color: #2196F3;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.citas-hoy-grupo:first-child {
    margin-top: 0;
}

.citas-hoy-fila {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 6px;
    border: 1px solid #e5eaf3;
    border-radius: 12px;
    background: #ffffff;
}

.citas-hoy-hora {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 56px;
    color: #0f172a;
    line-height: 1.15;
}

.citas-hoy-hora strong {
    font-size: 1.05rem;
}

.citas-hoy-hora span {
    color: #64748b;
    font-size: .72rem;
}

.citas-hoy-datos {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    color: #64748b;
    font-size: .82rem;
}

.citas-hoy-datos strong {
    color: #0f172a;
    font-size: .9rem;
}

.citas-hoy-datos span,
.citas-hoy-datos strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.citas-hoy-estado {
    flex: 0 0 auto;
    padding: 4px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: .74rem;
    font-weight: 700;
}

.citas-hoy-acciones {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}

/* Celular: el diálogo mide 480px y se salía por la derecha; ocupa el ancho de la pantalla con margen. */
@media (max-width: 640px) {
    .ui-dialog.citas-hoy-dialogo {
        width: calc(100vw - 24px) !important;
        left: 12px !important;
        right: auto !important;
    }

    .ui-dialog.citas-hoy-dialogo .ui-dialog-content {
        padding: 10px 12px;
    }

    .citas-hoy-fila {
        gap: 8px;
        padding: 8px 10px;
    }

    /* El nombre completo en vez de cortarlo: pasa a la línea siguiente. */
    .citas-hoy-datos strong {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .citas-hoy-hora {
        flex-basis: 46px;
    }

    .citas-hoy-hora strong {
        font-size: .95rem;
    }

    .citas-hoy-estado {
        padding: 3px 8px;
        font-size: .7rem;
    }
}
