/* ------------------------- INICIO SECCIÓN: GenericDialog ------------------------- */
/* Estilos para el componente genérico de diálogo */
.GenericDialog_wrapper {
    padding: 0;
    font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
    color: rgba(0,0,0,0.87);
    /* Removed wrapper background/border/box-shadow so we can use MudPaper inside the dialog */
}

    /* Variantes para aplicar sobre las clases que genera MudBlazor */
    .GenericDialog_wrapper .mud-dialog-paper,
    .GenericDialog_wrapper .mud-paper-root,
    .GenericDialog_wrapper .mud-dialog {
        /* keep bottom corners rounded but make top corners square to let the title bar be square */
        border-top-left-radius: 0 !important;
        border-top-right-radius: 0 !important;
        border-bottom-left-radius: 8px !important;
        border-bottom-right-radius: 8px !important;
        background-clip: padding-box !important;
    }

    /* Título: fondo distintivo y texto blanco, ocupa toda la anchura superior */
    .GenericDialog_Title,
    .GenericDialog_wrapper .mud-dialog-title,
    .GenericDialog_wrapper .mud-dialog-title-root,
    .mud-dialog .GenericDialog_Title,
    .mud-dialog-content .GenericDialog_Title {
        display: block;
        width: calc(100% + 32px) !important; /* extend to full dialog width by compensating for typical 16px padding */
        margin-left: -16px !important;
        margin-right: -16px !important;
        background-color: #1E88E5 !important; /* color primario coherente */
        color: #ffffff !important;
        font-size: 1.125rem; /* similar to Typo.h6 */
        font-weight: 700 !important;
        padding: 12px 16px !important;
        box-sizing: border-box !important;
        /* Make the title bar square (no rounded top corners) */
        border-top-left-radius: 0 !important;
        border-top-right-radius: 0 !important;
    }

/* Ensure the title sits above content and is not clipped */
.mud-dialog .GenericDialog_Title {
    position: relative;
    z-index: 2;
}

/* Cuerpo: texto centrado y espaciado */
.GenericDialog_Body,
.GenericDialog_wrapper .mud-dialog-content,
.GenericDialog_wrapper .mud-dialog-content-root {
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 16px 20px;
    color: rgba(0,0,0,0.85) !important;
    text-align: center; /* centrar el texto del contenido */
}

/* Actions bar: remove background so only buttons show background; keep padding */
.GenericDialog_ActionsBar,
.GenericDialog_wrapper .mud-dialog-actions-bar {
    width: 100%;
    /* background-color removed to let dialog surface show through */
    padding: 10px 16px;
    /* keep rounded bottom corners on the bar container */
    box-sizing: border-box;
}

/* Actions: alinear a la derecha con espacio entre botones (contenido dentro de la barra) */
.GenericDialog_Actions,
.GenericDialog_wrapper .mud-dialog-actions,
.GenericDialog_wrapper .mud-dialog-actions-root {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    align-items: center;
}

/* Botones dentro de la barra: estilo contrastado */
.GenericDialog_ActionsBar .mud-button-root,
.GenericDialog_wrapper .mud-dialog-actions-bar .mud-button-root {
    font-weight: 700 !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
}

    /* Botón primario (OK) dentro de la barra: fondo blanco y texto azul */
    .GenericDialog_ActionsBar .mud-button-root.mud-button-filled,
    .GenericDialog_wrapper .mud-dialog-actions-bar .mud-button-root.mud-button-filled {
        background-color: #ffffff !important;
        color: #1565c0 !important;
        box-shadow: 0 4px 10px rgba(21,101,192,0.12) !important;
    }

    /* Botón secundario (Cancel) dentro de la barra: traslucido with text same as primary color? keep white text for contrast */
    .GenericDialog_ActionsBar .mud-button-root:not(.mud-button-filled),
    .GenericDialog_wrapper .mud-dialog-actions-bar .mud-button-root:not(.mud-button-filled) {
        background-color: rgba(255,255,255,0.08) !important;
        color: #ffffff !important;
        border: 1px solid rgba(255,255,255,0.12) !important;
    }

/* Añadir una ligera sombra y border-radius a la superficie del diálogo para hacerlo menos aséptico */
.MudDialog-paper > .mud-paper-root,
.MudDialog-paper,
.GenericDialog_wrapper .mud-dialog-paper,
.GenericDialog_wrapper .mud-paper-root {
    /* keep bottom corners rounded (top corners set above) */
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(2,6,23,0.12) !important;
}

/* Pequeño ajuste para el separador */
.GenericDialog_Body + .mud-divider {
    margin-top: 8px;
    margin-bottom: 8px;
}
/* ------------------------- FIN SECCIÓN: GenericDialog ------------------------- */



/* ------------------------- INICIO SECCIÓN: MudTable ------------------------- */
/* Estilos para filas seleccionadas en MudTable (prefijo `MudTable_`) */
.MudTable_selected {
    background-color: #1E88E5 !important;
}

    .MudTable_selected > td {
        color: white !important;
    }

        .MudTable_selected > td .mud-input {
            color: white !important;
        }

/* Clase auxiliar para mostrar cursor pointer en filas clicables (prefijo `MudTable_`) */
.MudTable_cursor-pointer {
    cursor: pointer;
}
/* ------------------------- FIN SECCIÓN: MudTable ------------------------- */



/* ------------------------- INICIO SECCIÓN: FtAlumnosIntegrado ------------------------- */
.ft-integrado-layout {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

/* Responsive: en pantallas pequeñas apilar verticalmente */
@media (max-width: 768px) {
    .ft-integrado-layout {
        flex-direction: column;
    }

        .ft-integrado-layout .left-panel {
            flex: 0 0 auto !important;
            width: 100% !important;
            min-width: unset;
        }

        .ft-integrado-layout .right-panel {
            width: 100% !important;
        }
}
/* ------------------------- FIN SECCIÓN: FtAlumnosIntegrado ------------------------- */



/* ------------------------- INICIO SECCIÓN: xxxx ------------------------- */
/* ------------------------- FIN SECCIÓN: xxxx ------------------------- */
/* ------------------------- INICIO SECCIÓN: GmdFichaClinica ------------------------- */
.gmd-ficha-layout {
    align-items: stretch;
}

.gmd-process-timeline,
.gmd-process-detail {
    border: 1px solid #e0e0e0;
    background-color: #ffffff;
    min-height: 100%;
}

.gmd-process-timeline {
    max-height: calc(100vh - 150px);
    overflow-y: auto;
}

.gmd-process-node,
.gmd-process-child {
    justify-content: flex-start !important;
    text-align: left !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    margin-bottom: 8px !important;
    padding: 10px 12px !important;
    color: #263238 !important;
    background-color: #ffffff !important;
}

.gmd-process-node {
    border-left: 5px solid #2e7d32 !important;
}

.gmd-process-child {
    border-left: 5px solid #0288d1 !important;
    margin-left: 18px !important;
    width: calc(100% - 18px) !important;
}

.gmd-process-node-selected,
.gmd-process-child-selected {
    background-color: #e3f2fd !important;
    border-color: #1e88e5 !important;
}

.gmd-process-node .mud-button-label,
.gmd-process-child .mud-button-label {
    width: 100%;
    display: block;
}

@media (max-width: 960px) {
    .gmd-process-timeline {
        max-height: none;
    }
}
/* ------------------------- FIN SECCIÓN: GmdFichaClinica ------------------------- */


/* ------------------------- INICIO SECCIÓN: GeadD_Asuntos_Dashboard ------------------------- */
/* KPI cards */
.gead-kpi-item {
    text-align: center;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gead-kpi-total { border-left: 4px solid #1976d2; }
.gead-kpi-abiertos { border-left: 4px solid #0288d1; }
.gead-kpi-enprogreso { border-left: 4px solid #f9a825; }
.gead-kpi-cerrados { border-left: 4px solid #43a047; }
.gead-kpi-vencidos { border-left: 4px solid #e53935; }

/* Filtros card */
.gead-filtros-card .mud-input-root {
    width: 100%;
}

/* Tabla card */
.gead-tabla-card .mud-table-row {
    cursor: pointer;
}

/* Detalle drawer */
.gead-detalle-card {
    max-height: 90vh;
    overflow-y: auto;
}

.gead-linea-item {
    border-left: 3px solid #1976d2;
    margin-bottom: 0.5rem;
}
/* ------------------------- FIN SECCIÓN: GeadD_Asuntos_Dashboard ------------------------- */

/* ------------------------- INICIO SECCIÓN: GeadD_Asuntos_Dashboard_KPI_Row ------------------------- */
.gead-kpi-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.gead-kpi-item {
    flex: 0 0 auto;
    min-width: 140px;
    text-align: center;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
/* ------------------------- FIN SECCIÓN: GeadD_Asuntos_Dashboard_KPI_Row ------------------------- */

/* ------------------------- INICIO SECCIÓN: GeadD_Asuntos_Dashboard_Filtros_Row ------------------------- */
.gead-filtros-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-start;
}

.gead-filtros-row .mud-select,
.gead-filtros-row .mud-text-field,
.gead-filtros-row .mud-button {
    flex: 0 0 auto;
    min-width: 140px;
}
/* ------------------------- FIN SECCIÓN: GeadD_Asuntos_Dashboard_Filtros_Row ------------------------- */

