﻿/* ------------------------- 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 ------------------------- */





